Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Model corrupted via obj2gltf #235

Closed
lanxinger opened this issue Mar 27, 2020 · 5 comments · Fixed by #236
Closed

Model corrupted via obj2gltf #235

lanxinger opened this issue Mar 27, 2020 · 5 comments · Fixed by #236

Comments

@lanxinger
Copy link

lanxinger commented Mar 27, 2020

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 lanxinger changed the title Model corrupted via obj2glt Model corrupted via obj2gltf Mar 27, 2020
@lilleyse
Copy link
Contributor

lilleyse commented Mar 27, 2020

@lanxinger can you share the source obj model?

And the glTF exported from Blender if you have it.

@lilleyse
Copy link
Contributor

lilleyse commented Mar 27, 2020

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.

@lanxinger
Copy link
Author

@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

@lilleyse
Copy link
Contributor

@lanxinger #236 fixes the problem

@lanxinger
Copy link
Author

@lilleyse thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants