Mesh VerticesData quesition

I use freecad to automatically convert an .stp file into .glb and import it into babylon. I also use ‘BABYLON.Mesh.MergeMeshes’ to merge the discrete pieces into a mesh and finally export .babylon file in my PG.

But I found some problems with this model, such as my PG, the vertices of this model are counterclockwise and the normal phase is toward the Y-axis, just like the red face. But the material of the model is rendered to the back of the model.

I tried a lot of methods but couldn’t get the model material to render correctly, can someone tell me why

ps:I don’t want to use: mat.backFaceCulling = false;

This is my PG:

Hello !

In the inspector, just under the backface culling option, you have the face orientation.
You can set it to counterclock wise (material.sideOrientation = 1;)

4 Likes

Thank you for your help!