{"action":"created","issue":{"url":"https://api.github.com/repos/KhronosGroup/glTF-Blender-Exporter/issues/301","repository_url":"https://api.github.com/repos/KhronosGroup/glTF-Blender-Exporter","labels_url":"https://api.github.com/repos/KhronosGroup/glTF-Blender-Exporter/issues/301/labels{/name}","comments_url":"https://api.github.com/repos/KhronosGroup/glTF-Blender-Exporter/issues/301/comments","events_url":"https://api.github.com/repos/KhronosGroup/glTF-Blender-Exporter/issues/301/events","html_url":"https://github.com/KhronosGroup/glTF-Blender-Exporter/issues/301","id":362024255,"node_id":"MDU6SXNzdWUzNjIwMjQyNTU=","number":301,"title":"Reflection between objects ( three.js & gltf2 & blender 2.79 )","user":{"login":"blend3dweb","id":43431061,"node_id":"MDQ6VXNlcjQzNDMxMDYx","avatar_url":"https://avatars2.githubusercontent.com/u/43431061?v=4","gravatar_id":"","url":"https://api.github.com/users/blend3dweb","html_url":"https://github.com/blend3dweb","followers_url":"https://api.github.com/users/blend3dweb/followers","following_url":"https://api.github.com/users/blend3dweb/following{/other_user}","gists_url":"https://api.github.com/users/blend3dweb/gists{/gist_id}","starred_url":"https://api.github.com/users/blend3dweb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blend3dweb/subscriptions","organizations_url":"https://api.github.com/users/blend3dweb/orgs","repos_url":"https://api.github.com/users/blend3dweb/repos","events_url":"https://api.github.com/users/blend3dweb/events{/privacy}","received_events_url":"https://api.github.com/users/blend3dweb/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-09-20T05:31:10Z","updated_at":"2018-09-21T13:27:54Z","closed_at":"2018-09-20T13:18:39Z","author_association":"NONE","body":"Good afternoon.\r\n I am export two models from Blender 2.79 to three.js.\r\nScene:[https://www.blend3dweb.ru/projects/test_reflection.html](url)\r\nShadows work. Objects reflect the world around them but do not reflect among themselves.\r\n\r\nScene  code:\r\n\r\n\r\n\r\n                         //MR -  YES mirror\r\n            var loader = new THREE.GLTFLoader();\r\n            loader.load( '/gltf/1.gltf', function ( gltf ) {\r\n\r\n                gltf.scene.traverse( function ( node ) {\r\n\r\n                    if ( node.isMesh || node.isLight ) node.castShadow = true;\r\n                    if ( node.isMesh || node.isLight ) node.receiveShadow = true;\r\n\r\n                } );\r\n\r\n                       gltf.scene.traverse( function ( child ) {\r\n\r\n                    if ( child.isMesh ) {\r\n\r\n                        child.material.envMap = envMap;\r\n                    }\r\n\r\n                } );\r\n                gltf.scene.position.x = 0;\r\n                gltf.scene.position.y = 0;\r\n                gltf.scene.position.z = 0;\r\n\r\n                       scene.add( gltf.scene );\r\n\r\n            } );\r\n                         //MR -  YES mirror\r\n            var loader = new THREE.GLTFLoader();\r\n            loader.load( '/gltf/2.gltf', function ( gltf2 ) {\r\n\r\n                gltf2.scene.traverse( function ( node ) {\r\n\r\n                    if ( node.isMesh || node.isLight ) node.castShadow = true;\r\n                    if ( node.isMesh || node.isLight ) node.receiveShadow = true;\r\n\r\n                } );\r\n\r\n                gltf2.scene.traverse( function ( child ) {\r\n\r\n                    if ( child.isMesh ) {\r\n\r\n                        child.material.envMap = envMap;\r\n\r\n                    }\r\n\r\n                } );\r\n                    gltf2.scene.position.x = 0;\r\n                    gltf2.scene.position.y = 0;\r\n                    gltf2.scene.position.z = 0;\r\n\r\n                    scene.add( gltf2.scene );\r\n\r\n            } );`\r\n\r\nRender reflection in Blender\r\n![1](https://user-images.githubusercontent.com/43431061/45797604-0c82d680-bcaf-11e8-90e9-bad4452b9549.png)\r\nHow to implement reflections between objects?\r\n![2](https://user-images.githubusercontent.com/43431061/45797665-5a97da00-bcaf-11e8-8543-27c6e717338e.gif)\r\n\r\nIs it related to the exporter?\r\n"},"comment":{"url":"https://api.github.com/repos/KhronosGroup/glTF-Blender-Exporter/issues/comments/423530737","html_url":"https://github.com/KhronosGroup/glTF-Blender-Exporter/issues/301#issuecomment-423530737","issue_url":"https://api.github.com/repos/KhronosGroup/glTF-Blender-Exporter/issues/301","id":423530737,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMzUzMDczNw==","user":{"login":"Vinc3r","id":3873421,"node_id":"MDQ6VXNlcjM4NzM0MjE=","avatar_url":"https://avatars0.githubusercontent.com/u/3873421?v=4","gravatar_id":"","url":"https://api.github.com/users/Vinc3r","html_url":"https://github.com/Vinc3r","followers_url":"https://api.github.com/users/Vinc3r/followers","following_url":"https://api.github.com/users/Vinc3r/following{/other_user}","gists_url":"https://api.github.com/users/Vinc3r/gists{/gist_id}","starred_url":"https://api.github.com/users/Vinc3r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vinc3r/subscriptions","organizations_url":"https://api.github.com/users/Vinc3r/orgs","repos_url":"https://api.github.com/users/Vinc3r/repos","events_url":"https://api.github.com/users/Vinc3r/events{/privacy}","received_events_url":"https://api.github.com/users/Vinc3r/received_events","type":"User","site_admin":false},"created_at":"2018-09-21T13:27:54Z","updated_at":"2018-09-21T13:27:54Z","author_association":"NONE","body":"it's surely not have to do with an exporter, but with the 3d engine. in blend4web both exporter & engine are linked and developped by the same team. \r\ndon't know about 3js, but in BJS for example you can use a mirrorPlane to do what you want ([example](https://www.babylonjs-playground.com/#2EP7UB#0) - line 70)"}}
{"actor":{"display_login":"Vinc3r"}}