amo yeh Posted August 24, 2017 Share Posted August 24, 2017 Is there a way to smooth dynamic created mesh? searched the forum and found something related to VertexData.ComputeNormals, I tried it and not working. here is a demo http://www.babylonjs-playground.com/#0GUH53 the attached picture shows the problem, the outer head is a babylon file (smoothed ), the inner face is dynamically generated. clearly the lighting on the inner face looks flat. I guess it is something like this in unity forum ? http://answers.unity3d.com/questions/630505/how-to-procedurally-generate-smooth-meshes.html thanks for the help Quote Link to comment Share on other sites More sharing options...
amo yeh Posted August 24, 2017 Author Share Posted August 24, 2017 well ~ I got it working, what I did was I copied the normal values from exported .babylon item and apply it directly to the generated mesh http://www.babylonjs-playground.com/#0GUH53#1 ( values in new normal array is copied from .babylon exported item) Quote Link to comment Share on other sites More sharing options...
JohnK Posted August 24, 2017 Share Posted August 24, 2017 Alternative is to use the minimizeVertices snippet from http://babylonjsguide.github.io/snippets/Minimise_Vertices PG https://www.babylonjs-playground.com/#0GUH53#2 amo yeh 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.