burbonvagin Posted July 7, 2014 Share Posted July 7, 2014 The readme for the blender exporter says that it exports reflection textures. How do you add them in blender? Is it with an environment map texture? http://www.html5gamedevs.com/topic/2112-how-to-make-reflection-or-mirror-in-blender/This topic seems to say that they must be added in javascript, but maybe I read it wrong. Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted July 8, 2014 Share Posted July 8, 2014 I can only advise in this area from the exporter source code. There is a type of texture coordinates in the Mapping section, called 'Reflection'. If that is set & use_map_color_diffuse (don't know where that is set) & it is an image file texture, then the name of the texture is 'reflectionTexture'. Do not think generates any: new BABYLON.MirrorTexture()Looking at that advanced Texturing doc https://github.com/BabylonJS/Babylon.js/wiki/14-Advanced-Texturing, I do not see how the renderList of meshes to be mirrored would ever get populated without code on the Babylon side. Just make a mesh in Blender without assigning a material, and make the material along with the renderList as described. Assign it to the mesh after it is loaded. burbonvagin and GameMonetize 2 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted July 8, 2014 Share Posted July 8, 2014 @JCPalmer: Correct burbonvagin 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.