{"action":"created","issue":{"url":"https://api.github.com/repos/minetest/minetest/issues/3923","repository_url":"https://api.github.com/repos/minetest/minetest","labels_url":"https://api.github.com/repos/minetest/minetest/issues/3923/labels{/name}","comments_url":"https://api.github.com/repos/minetest/minetest/issues/3923/comments","events_url":"https://api.github.com/repos/minetest/minetest/issues/3923/events","html_url":"https://github.com/minetest/minetest/pull/3923","id":143783157,"number":3923,"title":"Make plantlike drawtype more fun.","user":{"login":"sofar","id":1880041,"avatar_url":"https://avatars.githubusercontent.com/u/1880041?v=3","gravatar_id":"","url":"https://api.github.com/users/sofar","html_url":"https://github.com/sofar","followers_url":"https://api.github.com/users/sofar/followers","following_url":"https://api.github.com/users/sofar/following{/other_user}","gists_url":"https://api.github.com/users/sofar/gists{/gist_id}","starred_url":"https://api.github.com/users/sofar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sofar/subscriptions","organizations_url":"https://api.github.com/users/sofar/orgs","repos_url":"https://api.github.com/users/sofar/repos","events_url":"https://api.github.com/users/sofar/events{/privacy}","received_events_url":"https://api.github.com/users/sofar/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/minetest/minetest/labels/@%20Client%20/%20Audiovisuals","name":"@ Client / Audiovisuals","color":"009800"},{"url":"https://api.github.com/repos/minetest/minetest/labels/Enhancement","name":"Enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":46,"created_at":"2016-03-27T07:21:16Z","updated_at":"2016-08-21T05:06:50Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/minetest/minetest/pulls/3923","html_url":"https://github.com/minetest/minetest/pull/3923","diff_url":"https://github.com/minetest/minetest/pull/3923.diff","patch_url":"https://github.com/minetest/minetest/pull/3923.patch"},"body":"Adds several new ways that the plantlike drawtype mesh can be changed.\r\n\r\nThis requires paramtype2 = \"meshoptions\" to be set in the node\r\ndefinition. The drawtype for these nodes should be \"plantlike\".\r\n\r\nThese modifications are all done using param2. This field is now\r\na complex bitfield that allows some or more of the combinations to\r\nbe chosen, and the mesh draw code will choose the options based as\r\nneeded for each plantlike node.\r\n\r\nbit layout:\r\nbits 0, 1 and 2 (values 0x1 through 0x7) are for choosing the plant\r\nmesh shape:\r\n  0 - ordinary plantlike plant (\"x\" shaped)\r\n  1 - ordinary plant, but rotated 45 degrees (\"+\" shaped)\r\n  2 - a plant with 3 faces (\"*\" shaped)\r\n  3 - a plant with 4 faces (\"#\" shaped)\r\n  4 through 7 are unused and reserved for future mesh shapes.\r\n\r\nbit 3 (0x8) causes the plant to be randomly offset in the x,z\r\nplane. The plant should fall within the 1x1x1 nodebox if regularly\r\nsized.\r\n\r\nbit 4 (0x10) causes the plant mesh to grow by sqrt(2), and will cause\r\nthe plant mesh to fill out 1x1x1, and appear slightly larger. Texture\r\nmakers will want to make their plant texture 23x16 pixels to have the\r\nbest visual fit in 1x1x1 size.\r\n\r\nbit 5 (0x20) through bit 7 (0x80) are unused and reserved for\r\nfuture use.\r\n\r\n!(https://youtu.be/qWuI664krsI)\r\n\r\n\r\n- [X] - CPT2_MESHOPTIONS\r\n- [X] - don't stretch pixels\r\n- [X] - Reorganize bitfield\r\n- [x] - Docs"},"comment":{"url":"https://api.github.com/repos/minetest/minetest/issues/comments/241239326","html_url":"https://github.com/minetest/minetest/pull/3923#issuecomment-241239326","issue_url":"https://api.github.com/repos/minetest/minetest/issues/3923","id":241239326,"user":{"login":"MarkuBu","id":16163058,"avatar_url":"https://avatars.githubusercontent.com/u/16163058?v=3","gravatar_id":"","url":"https://api.github.com/users/MarkuBu","html_url":"https://github.com/MarkuBu","followers_url":"https://api.github.com/users/MarkuBu/followers","following_url":"https://api.github.com/users/MarkuBu/following{/other_user}","gists_url":"https://api.github.com/users/MarkuBu/gists{/gist_id}","starred_url":"https://api.github.com/users/MarkuBu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarkuBu/subscriptions","organizations_url":"https://api.github.com/users/MarkuBu/orgs","repos_url":"https://api.github.com/users/MarkuBu/repos","events_url":"https://api.github.com/users/MarkuBu/events{/privacy}","received_events_url":"https://api.github.com/users/MarkuBu/received_events","type":"User","site_admin":false},"created_at":"2016-08-21T05:06:50Z","updated_at":"2016-08-21T05:06:50Z","body":"If there is no technical reason this should be added. I also wait for this feature since month"}}
{"actor":{"display_login":"MarkuBu"}}