All models load in with reversed normals

Discuss any questions about BEPUphysics or problems encountered.
Post Reply
swaelo
Posts: 3
Joined: Sun Mar 10, 2019 9:08 am

All models load in with reversed normals

Post by swaelo »

This has been true with v1 and v2 of the bepu physics engine, whenever I export models as .obj from blender and then load them into the bepu physics engine, all the normals are reversed.
The only way I've ever been able to solve this is to reverse all the normals before I export the model from blender, so when bepu flips them they get put back to normal.
I know its bepu that is flipping the normals because they appear correct in Blender before I export the model, and I can load the obj file into unity or something else and they still appear fine.
Norbo
Site Admin
Posts: 4929
Joined: Tue Jul 04, 2006 4:45 am

Re: All models load in with reversed normals

Post by Norbo »

Is it actually flipping the winding, or are the demos just using a different backface convention? Triangles in v2 are one sided and collide only on the clockwise side. The demos renderer matches this convention.
Post Reply