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

Holes in mesh #251

Open
Bketting opened this issue Mar 26, 2021 · 1 comment
Open

Holes in mesh #251

Bketting opened this issue Mar 26, 2021 · 1 comment

Comments

@Bketting
Copy link

Creating glb with obj2gltf results in a mesh with holes (see photo below, in model-viewer).

Obj looks fine in 3D editting software. Two tricks solved the problem:

  1. Setting hard edges before glb creation
  2. Creating glb with online converters

The problem persisted in multiple viewers.

Any thoughts on what is going wrong?

C290E976-42A5-46FF-9569-490175B6E773

@entriphy
Copy link

I have the same issue with some models. The face is technically still there, just that it's not facing the right direction. It seems to be a problem in the checkWindingCorrect function. It could also be a problem with incorrect normals in the model itself, since a normal is used in the calculation of checkWindingCorrect.

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

No branches or pull requests

2 participants