{"action":"created","issue":{"url":"https://api.github.com/repos/mrdoob/three.js/issues/10150","repository_url":"https://api.github.com/repos/mrdoob/three.js","labels_url":"https://api.github.com/repos/mrdoob/three.js/issues/10150/labels{/name}","comments_url":"https://api.github.com/repos/mrdoob/three.js/issues/10150/comments","events_url":"https://api.github.com/repos/mrdoob/three.js/issues/10150/events","html_url":"https://github.com/mrdoob/three.js/issues/10150","id":189977538,"number":10150,"title":"Doesn't sorting the objects based on Material.Transparency contradicts with onBeforeRender of Object3D? ","user":{"login":"swomack","id":6313383,"avatar_url":"https://avatars.githubusercontent.com/u/6313383?v=3","gravatar_id":"","url":"https://api.github.com/users/swomack","html_url":"https://github.com/swomack","followers_url":"https://api.github.com/users/swomack/followers","following_url":"https://api.github.com/users/swomack/following{/other_user}","gists_url":"https://api.github.com/users/swomack/gists{/gist_id}","starred_url":"https://api.github.com/users/swomack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swomack/subscriptions","organizations_url":"https://api.github.com/users/swomack/orgs","repos_url":"https://api.github.com/users/swomack/repos","events_url":"https://api.github.com/users/swomack/events{/privacy}","received_events_url":"https://api.github.com/users/swomack/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-11-17T08:43:51Z","updated_at":"2016-11-20T17:52:16Z","closed_at":null,"body":"I have 100 meshes and only one material for all the meshes. I have to make the objects transparent  based on user interaction. What i have done is, i changed the material transparency in `onBeforeRender` of the mesh and changed it again in `onAfterRender`. But since objects gets sorted based on the `Material.Transparency`, it does not work properly.\r\n\r\nSo if we can change the transparency in `onBeforeRender`, shouldn't we sort the object based on something other than `Material.Transparency`? \r\n\r\n##### Three.js version\r\n\r\n- [ ] Dev\r\n- [x] r82\r\n- [ ] ...\r\n\r\n##### Browser\r\n\r\n- [x] All of them\r\n- [ ] Chrome\r\n- [ ] Firefox\r\n- [ ] Internet Explorer\r\n\r\n##### OS\r\n\r\n- [x] All of them\r\n- [ ] Windows\r\n- [ ] Linux\r\n- [ ] Android\r\n- [ ] IOS\r\n\r\n##### Hardware Requirements (graphics card, VR Device, ...)\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/mrdoob/three.js/issues/comments/261793279","html_url":"https://github.com/mrdoob/three.js/issues/10150#issuecomment-261793279","issue_url":"https://api.github.com/repos/mrdoob/three.js/issues/10150","id":261793279,"user":{"login":"WestLangley","id":1000017,"avatar_url":"https://avatars.githubusercontent.com/u/1000017?v=3","gravatar_id":"","url":"https://api.github.com/users/WestLangley","html_url":"https://github.com/WestLangley","followers_url":"https://api.github.com/users/WestLangley/followers","following_url":"https://api.github.com/users/WestLangley/following{/other_user}","gists_url":"https://api.github.com/users/WestLangley/gists{/gist_id}","starred_url":"https://api.github.com/users/WestLangley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WestLangley/subscriptions","organizations_url":"https://api.github.com/users/WestLangley/orgs","repos_url":"https://api.github.com/users/WestLangley/repos","events_url":"https://api.github.com/users/WestLangley/events{/privacy}","received_events_url":"https://api.github.com/users/WestLangley/received_events","type":"User","site_admin":false},"created_at":"2016-11-20T17:52:16Z","updated_at":"2016-11-20T17:52:16Z","body":"Hehe. You beat me by 8 sec..."}}
{"actor":{"display_login":"WestLangley"}}