{"action":"created","issue":{"url":"https://api.github.com/repos/OpenDungeons/OpenDungeons/issues/579","labels_url":"https://api.github.com/repos/OpenDungeons/OpenDungeons/issues/579/labels{/name}","comments_url":"https://api.github.com/repos/OpenDungeons/OpenDungeons/issues/579/comments","events_url":"https://api.github.com/repos/OpenDungeons/OpenDungeons/issues/579/events","html_url":"https://github.com/OpenDungeons/OpenDungeons/issues/579","id":63986500,"number":579,"title":"Spring cleaning in the materials/ folder","user":{"login":"akien-mga","id":4701338,"avatar_url":"https://avatars.githubusercontent.com/u/4701338?v=3","gravatar_id":"","url":"https://api.github.com/users/akien-mga","html_url":"https://github.com/akien-mga","followers_url":"https://api.github.com/users/akien-mga/followers","following_url":"https://api.github.com/users/akien-mga/following{/other_user}","gists_url":"https://api.github.com/users/akien-mga/gists{/gist_id}","starred_url":"https://api.github.com/users/akien-mga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akien-mga/subscriptions","organizations_url":"https://api.github.com/users/akien-mga/orgs","repos_url":"https://api.github.com/users/akien-mga/repos","events_url":"https://api.github.com/users/akien-mga/events{/privacy}","received_events_url":"https://api.github.com/users/akien-mga/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/OpenDungeons/OpenDungeons/labels/Enhancement","name":"Enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/OpenDungeons/OpenDungeons/labels/Game%20content","name":"Game content","color":"c7def8"},{"url":"https://api.github.com/repos/OpenDungeons/OpenDungeons/labels/Help%20wanted","name":"Help wanted","color":"159818"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/OpenDungeons/OpenDungeons/milestones/5","html_url":"https://github.com/OpenDungeons/OpenDungeons/milestones/0.6.0","labels_url":"https://api.github.com/repos/OpenDungeons/OpenDungeons/milestones/5/labels","id":1018294,"number":5,"title":"0.6.0","description":"The shiny one. 0.5.0 has established a good base concerning the UI, game play and normal use on models.\r\n\r\nNow, we will polish all that and add more advanced functionalities and gameplay.\r\n\r\nBridges and doors are the next things to do, along with creature's equipment.\r\nIf all goes well, a fully functional editor and user custom levels will be fully supported, along a new option menu.","creator":{"login":"Bertram25","id":765917,"avatar_url":"https://avatars.githubusercontent.com/u/765917?v=3","gravatar_id":"","url":"https://api.github.com/users/Bertram25","html_url":"https://github.com/Bertram25","followers_url":"https://api.github.com/users/Bertram25/followers","following_url":"https://api.github.com/users/Bertram25/following{/other_user}","gists_url":"https://api.github.com/users/Bertram25/gists{/gist_id}","starred_url":"https://api.github.com/users/Bertram25/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bertram25/subscriptions","organizations_url":"https://api.github.com/users/Bertram25/orgs","repos_url":"https://api.github.com/users/Bertram25/repos","events_url":"https://api.github.com/users/Bertram25/events{/privacy}","received_events_url":"https://api.github.com/users/Bertram25/received_events","type":"User","site_admin":false},"open_issues":18,"closed_issues":0,"state":"open","created_at":"2015-03-12T13:31:55Z","updated_at":"2015-03-24T13:31:37Z","due_on":null,"closed_at":null},"comments":13,"created_at":"2015-03-24T12:40:02Z","updated_at":"2015-03-24T16:09:56Z","closed_at":null,"body":"It is currently relatively hard to know which texture is linked to which material, and which material is used in game or not.\r\n\r\nAccording to @oyvindln's input on #492, most material IDs (defined in the materials/script/*.material files by the ```material``` tag) are referenced directly in the binary meshes. The we reference the meshes in the config/ files.\r\n\r\nSo basically to know the status for each material/model, we can:\r\n- Check that every texture is used in a material script\r\n- Extract the material IDs from the scripts\r\n- Check the meshes against those material IDs to know if they're using them\r\n- Check the meshes against the config files (and the code if there are some hardcoded meshes) to know which are used\r\n\r\nWe don't necessarily have to do exactly this for each step, since the data folders are not so huge so for most models we know if we see them in game already.\r\nI'm just trying to single out the textures/models that we might not be using actually."},"comment":{"url":"https://api.github.com/repos/OpenDungeons/OpenDungeons/issues/comments/85583310","html_url":"https://github.com/OpenDungeons/OpenDungeons/issues/579#issuecomment-85583310","issue_url":"https://api.github.com/repos/OpenDungeons/OpenDungeons/issues/579","id":85583310,"user":{"login":"akien-mga","id":4701338,"avatar_url":"https://avatars.githubusercontent.com/u/4701338?v=3","gravatar_id":"","url":"https://api.github.com/users/akien-mga","html_url":"https://github.com/akien-mga","followers_url":"https://api.github.com/users/akien-mga/followers","following_url":"https://api.github.com/users/akien-mga/following{/other_user}","gists_url":"https://api.github.com/users/akien-mga/gists{/gist_id}","starred_url":"https://api.github.com/users/akien-mga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akien-mga/subscriptions","organizations_url":"https://api.github.com/users/akien-mga/orgs","repos_url":"https://api.github.com/users/akien-mga/repos","events_url":"https://api.github.com/users/akien-mga/events{/privacy}","received_events_url":"https://api.github.com/users/akien-mga/received_events","type":"User","site_admin":false},"created_at":"2015-03-24T16:09:56Z","updated_at":"2015-03-24T16:09:56Z","body":"Analysis of the data will come later ;-)"}}