zturtleman / mm3d

Maverick Model 3D is a 3D model editor and animator for games.
https://clover.moe/mm3d
GNU General Public License v2.0
114 stars 22 forks source link

OBJ with concave or complex N-gons load incorrectly #143

Open zturtleman opened 4 years ago

zturtleman commented 4 years ago

OBJ models can have an unlimited number of vertexes per-face (N-gons). MM3D imports the faces as a triangle fan. This only works correctly if the polygon is convex. If the polygon is concave or complex then the imported mesh may have triangles set up incorrectly.

m-7761 commented 3 years ago

FWIW Assimp has some code for this which I've rewritten before.