I'm trying to rebuild the normals of an obj file loaded in a freeform, but the problem is that everytime I use it the normals of the object are created at random directions giving me black effects over the object form, I use this code:
with ObjectA.MeshObjects.Items do
Triangles := ExtractTriangles;
Indices := BuildVectorCountOptimizedIndices(Triangles);
BuildNormals(Indices, momTriangles); <- I've used triangles and triangleStrip
but it always gives me the wrong normals, I think it might be with the order of the vertices indices, but I don't know what to do
can someone help me?
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.