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.opacity error #1486

Closed
atlas1119 opened this issue May 11, 2024 · 2 comments
Closed

model.opacity error #1486

atlas1119 opened this issue May 11, 2024 · 2 comments

Comments

@atlas1119
Copy link

gltfLoader
model.opacity = 0.3
image

why?

@xeolabs
Copy link
Member

xeolabs commented May 11, 2024

This is a problem with your model, where the vertices in its geometry have an irregular vertex winding order. Not all triangles have their vertices specified in the same order, causing some to be interpreted as front faces, and others interpreted as back faces. The front faces are rendered, and the back faces are culled. You need to fix your model.

@xeolabs xeolabs closed this as completed May 11, 2024
@paireks
Copy link
Member

paireks commented May 11, 2024

Just to add: you can use Blender (free and open-source) to fix such model problems. E.g. have a look here: https://www.youtube.com/watch?v=p4yDKp2MtlI

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

3 participants