gamefan Posted April 14, 2017 Share Posted April 14, 2017 Hi, I am not able to get the normals on an extruded surface right. In this playground http://www.babylonjs-playground.com/#53YWDR try clicking on the extruded shape. The normals on the cap are right. But the normals on the side faces are irregular. Also the reflection of light on the surface is a bit weird. Probably wrong uv. Any ideas on how to fix this? I want to have the normals and the light reflection behave like it would do on a regular cube created with Mesh.CreateBox Thanks Quote Link to comment Share on other sites More sharing options...
adam Posted April 14, 2017 Share Posted April 14, 2017 You need to convert it to a flat shaded mesh. http://www.babylonjs-playground.com/#53YWDR#1 gamefan 1 Quote Link to comment Share on other sites More sharing options...
JohnK Posted April 14, 2017 Share Posted April 14, 2017 More reading about normals http://babylonjsguide.github.io/advanced/Normals Mesh.CreateBox creates a flat shaded mesh Mesh.CreateSphere and others do not gamefan 1 Quote Link to comment Share on other sites More sharing options...
gamefan Posted April 17, 2017 Author Share Posted April 17, 2017 @adam perfect exactly what I wanted. @JohnK that's a good read, gave me a better understanding of normals and when they are shared. 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.