JCPalmer Posted February 10, 2015 Share Posted February 10, 2015 I was making a scene, so I could take a picture for the Doc site. I added a mirror to emphasize the direction a mesh facing, but it does not show up in it. I made scene by taking a .blend file & generating an inline source file. No problem there, but remember a mirror has to be added post Blender. Added this to my html:var mirrorMaterial = new BABYLON.StandardMaterial("mirrorMat", scene);mirrorMaterial.reflectionTexture = new BABYLON.MirrorTexture("mirrorTex", 1024, scene, true);mirrorMaterial.reflectionTexture.mirrorPlane = scene.getMeshByID("Mirror");mirrorMaterial.reflectionTexture.renderList = [scene.getMeshByID("Gus")];I verified that Meshes "Mirror" & "Gus", exist from console.log messages. Any thoughts? Light issues, maybe? Here is scene with arc rotate camera. You can see mesh for mirror is a plane. With no backside culling left on, it disappears when behind it.https://googledrive.com/host/0B6-s6ZjHyEwUflhfdFFnNGJQXzc1U3I4YjZ5b1FMWW16ZHNWd2JVbE9abTRDN2tEWWgwclk Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.