Xetar Posted March 17, 2018 Share Posted March 17, 2018 Hello everyone, I have little issue with my mesh : When i load it, it get "auto smoothed", and also get "cutted" apart. Basically when I save my mesh in blender it looks like this : But when I load it with babylonjs Please help me to fix this, Thank you ! Quote Link to comment Share on other sites More sharing options...
aWeirdo Posted March 17, 2018 Share Posted March 17, 2018 Hi @Xetar Try Mesh.convertToFlatShadedMesh(); If it doesn't resolve it, do you mind sharing your .bablylon to help debugging it? You can PM it if you don't want to make it publicly available. Quote Link to comment Share on other sites More sharing options...
adam Posted March 18, 2018 Share Posted March 18, 2018 You can also use the "Flat Shade Entire Scene" option in the Blender Exporter: http://doc.babylonjs.com/resources/blender The faces that aren't showing might be due to face normals pointing inward. Quote Link to comment Share on other sites More sharing options...
V!nc3r Posted March 19, 2018 Share Posted March 19, 2018 In Blender, consider to always use smooth shading mode on your object, and play with autosmooth params in your mesh. As for the Blender exporter, you can check the flat option like adam said, or activate an edge split modifier on your meshes too (no need to apply it). You can read this to better understand why 1 vertex in Blender can finally be 2 or more when import in a realtime engine. Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted March 19, 2018 Share Posted March 19, 2018 The exporter dropped actually flat shading by itself in version 5.6. Adding a split edged modifier is an actual Blender feature, plus it generated meshes with less vertices than the exporter. You can still convert to flatshaded. If you still have parts of the mesh which do not show, that is probably not completely related. Sounds like a normals problem though. Perhaps recomputing normals in edit mode. Quote Link to comment Share on other sites More sharing options...
V!nc3r Posted March 19, 2018 Share Posted March 19, 2018 About the normals, JCPalmer probably spot the issue. To avoid doing wrong things with normals during modeling in Blender, I highly suggest you to always have checked Backface culling in your 3D View shading. 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.