Velentio Posted February 16, 2017 Share Posted February 16, 2017 I created default Cube without material with Blender and second one with Babylonjs BABYLON.MeshBuilder.CreateBox('Babylon', {size: 2}, _scene) All parameters is the same expect both have different positions, normals, indices. I assume it is because babylonjs has different axis system (left). Example: http://www.babylonjs-playground.com/#20LHWC#0 How can I make these cubes look the same? Quote Link to comment Share on other sites More sharing options...
adam Posted February 16, 2017 Share Posted February 16, 2017 Try recalculating your normals in Blender. http://blender.stackexchange.com/questions/18886/how-to-recalculate-normals edit: I think letsbro and johnk have the better answers. This doc could be helpful: http://babylonjsguide.github.io/advanced/Normals Quote Link to comment Share on other sites More sharing options...
Pierre Glibert Posted February 16, 2017 Share Posted February 16, 2017 Hello velentio, try to apply "edge split" (65°) modifier in blender on your cube : adam 1 Quote Link to comment Share on other sites More sharing options...
JohnK Posted February 16, 2017 Share Posted February 16, 2017 Any box created in BabylonJS is flat shaded, ie faces do not share vertices, hence the suggestions to change the normals or edge split in Blender. You could also convert the imported mesh to a flat shaded one mesh.convertToFlatShadedMesh(); adam 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.