{"action":"created","issue":{"url":"https://api.github.com/repos/mrdoob/three.js/issues/5496","labels_url":"https://api.github.com/repos/mrdoob/three.js/issues/5496/labels{/name}","comments_url":"https://api.github.com/repos/mrdoob/three.js/issues/5496/comments","events_url":"https://api.github.com/repos/mrdoob/three.js/issues/5496/events","html_url":"https://github.com/mrdoob/three.js/issues/5496","id":46565907,"number":5496,"title":"renderDepth has no effect (WebGLRenderer & PerspectiveCamera)","user":{"login":"electricessence","id":5899455,"avatar_url":"https://avatars.githubusercontent.com/u/5899455?v=3","gravatar_id":"","url":"https://api.github.com/users/electricessence","html_url":"https://github.com/electricessence","followers_url":"https://api.github.com/users/electricessence/followers","following_url":"https://api.github.com/users/electricessence/following{/other_user}","gists_url":"https://api.github.com/users/electricessence/gists{/gist_id}","starred_url":"https://api.github.com/users/electricessence/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/electricessence/subscriptions","organizations_url":"https://api.github.com/users/electricessence/orgs","repos_url":"https://api.github.com/users/electricessence/repos","events_url":"https://api.github.com/users/electricessence/events{/privacy}","received_events_url":"https://api.github.com/users/electricessence/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mrdoob/three.js/labels/Bug","name":"Bug","color":"ffcfcf"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":42,"created_at":"2014-10-22T21:58:37Z","updated_at":"2015-08-18T19:34:24Z","closed_at":"2015-02-20T00:19:40Z","body":"I've spent a couple days working on this issue with no result.\r\nI tried to get a jsFiddle together but couldn't get dat.gui to integrate with it in order to demonstrate changing these values with no effect.\r\n\r\nBut the simple fact is:\r\nWith a WebGLRenderer and PerspectiveCamera, any attempt at altering sorting does nothing.\r\nI even tried hacking three.js at one point to introduce a custom sort, but apparently, it's overridden or ignored.\r\n\r\nThe sample I used is as follows:\r\n```javascript\r\nvar gui = new dat.GUI();\r\nvar folder = gui.addFolder(\"renderDepth\");\r\n\r\nvar R = new THREE.Mesh( new THREE.BoxGeometry(50, 50, 50), new THREE.MeshPhongMaterial({color:0xFF0000}) );\r\nR.position.set(-10,-10,-10);\r\nR.renderDepth = 3;\r\nfolder.add(R,\"renderDepth\").min(0).max(1000).step(1).name(\"Red\").listen();\r\nscene.add(R);\r\n\r\nvar G = new THREE.Mesh( new THREE.BoxGeometry(50, 50, 50), new THREE.MeshPhongMaterial({color:0x00FF00}) );\r\nG.renderDepth = 2;\r\nfolder.add(G,\"renderDepth\").min(0).max(1000).step(1).name(\"Green\").listen();\r\nscene.add(G);\r\n\r\nvar B = new THREE.Mesh( new THREE.BoxGeometry(50, 50, 50), new THREE.MeshPhongMaterial({color:0x0000FF}) );\r\nB.position.set(+10,+10,+10);\r\nB.renderDepth = 1;\r\nfolder.add(B,\"renderDepth\").min(0).max(1000).step(1).name(\"Blue\").listen();\r\nscene.add(B);\r\n\r\nfolder.open();\r\n```\r\nI also noticed that very few pertinent questions on StackOverflow were answered and so I'm hoping this is enough of a bug to post this here."},"comment":{"url":"https://api.github.com/repos/mrdoob/three.js/issues/comments/132327115","html_url":"https://github.com/mrdoob/three.js/issues/5496#issuecomment-132327115","issue_url":"https://api.github.com/repos/mrdoob/three.js/issues/5496","id":132327115,"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":"2015-08-18T19:34:24Z","updated_at":"2015-08-18T19:34:24Z","body":"@tmullen71 As stated in the [guidelines](https://github.com/mrdoob/three.js/blob/master/CONTRIBUTING.md), help requests should be directed to [stackoverflow](http://stackoverflow.com/questions/tagged/three.js).\r\n\r\nhttp://stackoverflow.com/questions/30407288/using-renderorder-in-three-js/30408704#30408704"}}