{"action":"created","issue":{"url":"https://api.github.com/repos/mrdoob/three.js/issues/14415","repository_url":"https://api.github.com/repos/mrdoob/three.js","labels_url":"https://api.github.com/repos/mrdoob/three.js/issues/14415/labels{/name}","comments_url":"https://api.github.com/repos/mrdoob/three.js/issues/14415/comments","events_url":"https://api.github.com/repos/mrdoob/three.js/issues/14415/events","html_url":"https://github.com/mrdoob/three.js/issues/14415","id":338266225,"node_id":"MDU6SXNzdWUzMzgyNjYyMjU=","number":14415,"title":"Two mesh with Muti-Materials set same renderOrder value, the z-order is not correct?","user":{"login":"navigator117","id":1814495,"node_id":"MDQ6VXNlcjE4MTQ0OTU=","avatar_url":"https://avatars1.githubusercontent.com/u/1814495?v=4","gravatar_id":"","url":"https://api.github.com/users/navigator117","html_url":"https://github.com/navigator117","followers_url":"https://api.github.com/users/navigator117/followers","following_url":"https://api.github.com/users/navigator117/following{/other_user}","gists_url":"https://api.github.com/users/navigator117/gists{/gist_id}","starred_url":"https://api.github.com/users/navigator117/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/navigator117/subscriptions","organizations_url":"https://api.github.com/users/navigator117/orgs","repos_url":"https://api.github.com/users/navigator117/repos","events_url":"https://api.github.com/users/navigator117/events{/privacy}","received_events_url":"https://api.github.com/users/navigator117/received_events","type":"User","site_admin":false},"labels":[{"id":58672,"node_id":"MDU6TGFiZWw1ODY3Mg==","url":"https://api.github.com/repos/mrdoob/three.js/labels/Feature%20Request","name":"Feature Request","color":"0e8a16","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/mrdoob/three.js/milestones/14","html_url":"https://github.com/mrdoob/three.js/milestone/14","labels_url":"https://api.github.com/repos/mrdoob/three.js/milestones/14/labels","id":3862399,"node_id":"MDk6TWlsZXN0b25lMzg2MjM5OQ==","number":14,"title":"r101","description":"","creator":{"login":"mrdoob","id":97088,"node_id":"MDQ6VXNlcjk3MDg4","avatar_url":"https://avatars0.githubusercontent.com/u/97088?v=4","gravatar_id":"","url":"https://api.github.com/users/mrdoob","html_url":"https://github.com/mrdoob","followers_url":"https://api.github.com/users/mrdoob/followers","following_url":"https://api.github.com/users/mrdoob/following{/other_user}","gists_url":"https://api.github.com/users/mrdoob/gists{/gist_id}","starred_url":"https://api.github.com/users/mrdoob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrdoob/subscriptions","organizations_url":"https://api.github.com/users/mrdoob/orgs","repos_url":"https://api.github.com/users/mrdoob/repos","events_url":"https://api.github.com/users/mrdoob/events{/privacy}","received_events_url":"https://api.github.com/users/mrdoob/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":0,"state":"open","created_at":"2018-12-01T01:22:53Z","updated_at":"2018-12-28T17:23:37Z","due_on":"2019-01-23T08:00:00Z","closed_at":null},"comments":25,"created_at":"2018-07-04T12:58:39Z","updated_at":"2018-12-28T18:42:03Z","closed_at":null,"author_association":"NONE","body":"##### Description of the problem\r\n\r\nI create two mesh with same renderOrder. \r\n\r\n```js\r\nvar circleGeometry = new THREE.CircleBufferGeometry(radius, segements);                                                                                                                                                                 \r\nvar ringGeometry = new THREE.RingBufferGeometry(radius, radius + ringWidth, segements);                                                                                                                                                                 \r\nvar cellGeometry = null;\r\n  \r\n//...\r\n\r\nvar circleMaterial = new THREE.MeshBasicMaterial({                                                                                                                                                                                                                                                                        \r\n  map: texture,                                                                                                                                                                                                                                                                                                         \r\n  // wireframe: true                                                                                                                                                                                                                                                                                                    \r\n});                                                                                                                                                                                                                                                                                                                       \r\nvar ringMaterial = new THREE.MeshBasicMaterial({                                                                                                                                                                                                                                                                          \r\n  color: 0x000000,                                                                                                                                                                                                                                                                                                      \r\n  vertexColors: THREE.VertexColors,                                                                                                                                                                                                                                                                                     \r\n  // wireframe: true                                                                                                                                                                                                                                                                                                    \r\n});\r\n                                                                                                                                                                                                                                                                                               \r\ncellGeometry = THREE.BufferGeometryUtils.mergeBufferGeometries([circleGeometry, ringGeometry], true);                                                                                                                                                                                                                     \r\nvar mesh1 = new THREE.Mesh(cellGeometry, [circleMaterial, ringMaterial]);                                                                                                                                                                                                                                                 \r\nscene.add(mesh1);                                                                                                                                                                                                                                                                                                         \r\nmesh1.renderOrder = radius;                                                                                                                                                                                                                                                                                               \r\nvar mesh2 = new THREE.Mesh(cellGeometry, [circleMaterial, ringMaterial]);                                                                                                                                                                                                                                                 \r\nmesh2.position.x += 2;                                                                                                                                                                                                                                                                                                    \r\nmesh2.renderOrder = radius;    \r\n                                                                                                                                                                                                                                                                             \r\nscene.add(mesh2);  \r\n```\r\n\r\nThe result was not correct, see screenshot!\r\n![1530709073076](https://user-images.githubusercontent.com/1814495/42278306-f63daf40-7fcc-11e8-9063-b8cecd26014d.jpg)\r\n￼\r\n\r\n##### Three.js version\r\n\r\n\r\n- [ ] r94\r\n\r\n\r\n##### Browser\r\n\r\n- [x] Chrome\r\n\r\n\r\n##### OS\r\n\r\n\r\n- [ ] macOS\r\n\r\n##### Hardware Requirements (graphics card, VR Device, ...)\r\n"},"comment":{"url":"https://api.github.com/repos/mrdoob/three.js/issues/comments/450407473","html_url":"https://github.com/mrdoob/three.js/issues/14415#issuecomment-450407473","issue_url":"https://api.github.com/repos/mrdoob/three.js/issues/14415","id":450407473,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MDQwNzQ3Mw==","user":{"login":"mrdoob","id":97088,"node_id":"MDQ6VXNlcjk3MDg4","avatar_url":"https://avatars0.githubusercontent.com/u/97088?v=4","gravatar_id":"","url":"https://api.github.com/users/mrdoob","html_url":"https://github.com/mrdoob","followers_url":"https://api.github.com/users/mrdoob/followers","following_url":"https://api.github.com/users/mrdoob/following{/other_user}","gists_url":"https://api.github.com/users/mrdoob/gists{/gist_id}","starred_url":"https://api.github.com/users/mrdoob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrdoob/subscriptions","organizations_url":"https://api.github.com/users/mrdoob/orgs","repos_url":"https://api.github.com/users/mrdoob/repos","events_url":"https://api.github.com/users/mrdoob/events{/privacy}","received_events_url":"https://api.github.com/users/mrdoob/received_events","type":"User","site_admin":false},"created_at":"2018-12-28T18:42:03Z","updated_at":"2018-12-28T18:42:03Z","author_association":"OWNER","body":"@FMS-Cat what about this solution? https://github.com/mrdoob/three.js/pull/14433#issuecomment-450405281"}}
{"actor":{"display_login":"mrdoob"}}