{"action":"created","issue":{"url":"https://api.github.com/repos/minetest/minetest_game/issues/2164","repository_url":"https://api.github.com/repos/minetest/minetest_game","labels_url":"https://api.github.com/repos/minetest/minetest_game/issues/2164/labels{/name}","comments_url":"https://api.github.com/repos/minetest/minetest_game/issues/2164/comments","events_url":"https://api.github.com/repos/minetest/minetest_game/issues/2164/events","html_url":"https://github.com/minetest/minetest_game/issues/2164","id":338756573,"node_id":"MDU6SXNzdWUzMzg3NTY1NzM=","number":2164,"title":"Leaf texture requirements [information issue]","user":{"login":"paramat","id":3686677,"node_id":"MDQ6VXNlcjM2ODY2Nzc=","avatar_url":"https://avatars0.githubusercontent.com/u/3686677?v=4","gravatar_id":"","url":"https://api.github.com/users/paramat","html_url":"https://github.com/paramat","followers_url":"https://api.github.com/users/paramat/followers","following_url":"https://api.github.com/users/paramat/following{/other_user}","gists_url":"https://api.github.com/users/paramat/gists{/gist_id}","starred_url":"https://api.github.com/users/paramat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paramat/subscriptions","organizations_url":"https://api.github.com/users/paramat/orgs","repos_url":"https://api.github.com/users/paramat/repos","events_url":"https://api.github.com/users/paramat/events{/privacy}","received_events_url":"https://api.github.com/users/paramat/received_events","type":"User","site_admin":false},"labels":[{"id":32688599,"node_id":"MDU6TGFiZWwzMjY4ODU5OQ==","url":"https://api.github.com/repos/minetest/minetest_game/labels/Textures","name":"Textures","color":"d7e102","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-07-05T23:23:00Z","updated_at":"2018-07-06T16:48:06Z","closed_at":null,"author_association":"MEMBER","body":"MTE has 3 ways of rendering leaf textures (as long as the leaf has the 'allfaces_optional' drawtype):\r\n* Fancy:\r\nUses the texture specified in 'tiles'. This texture should have transparent pixels and be RGBA.\r\nFaces of every leaf node are rendered even if they are part of a solid volume of leaves. This gives a dense appearence.\r\n\r\n* Opaque:\r\nUses the texture specified in 'tiles' but makes it opaque by converting each transparent pixel into an opaque pixel that use the colour information of that transparent pixel.\r\nDue to this the 'tiles' texture must be RGBA not 'indexed alpha' to allow each transparent pixel to have individual colour information.\r\nThe colours of the transparent pixels should be set for a good appearence in 'opaque' mode instead of all being black.\r\nIn Gimp i do this by painting the pixels the desired colours then erasing them. Then when saving the texture using the 'save colour information from transparent pixels' option.\r\n\r\n* Simple:\r\nUses the texture specified in 'special_tiles' if it exists, if not, the 'tiles' texture. The 'special_tiles' texture should also have transparent pixels but can be 'indexed alpha'.\r\nThe newest mode which is a middle ground in appearence and rendering load.\r\nThe nodes are rendered using the 'glasslike' drawtype, only showing the surface nodes for any solid volume of leaves, not the internal faces.\r\nDue to this the appearence can, depending on the 'tiles' texture used, seem lacking in density. So the 'special_tiles' texture option is there to provide an alternative texture with transparent pixels but a denser appearence.\r\nThis alternative 'special tile' is not essential as the standard texture may already have a thick appearence. Some MTG leaves have 'special tiles' named '.. simple', but some do not as the 'tiles' texture is already dense in appearence."},"comment":{"url":"https://api.github.com/repos/minetest/minetest_game/issues/comments/403088115","html_url":"https://github.com/minetest/minetest_game/issues/2164#issuecomment-403088115","issue_url":"https://api.github.com/repos/minetest/minetest_game/issues/2164","id":403088115,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMzA4ODExNQ==","user":{"login":"TumeniNodes","id":18484258,"node_id":"MDQ6VXNlcjE4NDg0MjU4","avatar_url":"https://avatars1.githubusercontent.com/u/18484258?v=4","gravatar_id":"","url":"https://api.github.com/users/TumeniNodes","html_url":"https://github.com/TumeniNodes","followers_url":"https://api.github.com/users/TumeniNodes/followers","following_url":"https://api.github.com/users/TumeniNodes/following{/other_user}","gists_url":"https://api.github.com/users/TumeniNodes/gists{/gist_id}","starred_url":"https://api.github.com/users/TumeniNodes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TumeniNodes/subscriptions","organizations_url":"https://api.github.com/users/TumeniNodes/orgs","repos_url":"https://api.github.com/users/TumeniNodes/repos","events_url":"https://api.github.com/users/TumeniNodes/events{/privacy}","received_events_url":"https://api.github.com/users/TumeniNodes/received_events","type":"User","site_admin":false},"created_at":"2018-07-06T16:48:06Z","updated_at":"2018-07-06T16:48:06Z","author_association":"CONTRIBUTOR","body":"Maybe this can be worked into rubenwardy's modding book, somewhere in the textures section."}}
{"actor":{"display_login":"TumeniNodes"}}