CesiumGS/obj2gltf

Model corrupted via obj2gltf

lanxinger opened this issue · 5 comments

We had some problem with a model conversion (see image below):

Model_errors

When using Blender gltf export we do not see this issue:

Correct

I couldn't reproduce this on other models. Anyone else had a similar issue?

@lanxinger can you share the source obj model?

And the glTF exported from Blender if you have it.

One thing to check too is if the obj has n-gons. obj2gltf tries to triangulate n-gons correctly but it's not perfect.

Also try enabling back face culling in Blender to see if any of these problems show up in the viewer itself.

Finally check if the glTF exported from Blender uses doubleSided: true in its material or not.

@lilleyse thanks for the quick response.

Here is the OJB + textures as well as the GLB's I converted with obj2gltf and out of Blender.
Sitting_Couple.zip

@lanxinger #236 fixes the problem

@lilleyse thank you!