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

Transparency render order issue #169

Closed
samyH opened this issue Dec 2, 2019 · 4 comments
Closed

Transparency render order issue #169

samyH opened this issue Dec 2, 2019 · 4 comments
Labels

Comments

@samyH
Copy link

samyH commented Dec 2, 2019

Hi,

I have run into a problem whilst trying to correctly render the glass for a car. I have tried exporting as 4 separate objects and also as 1 object containing ass the glass.

From what I can see in the gltf viewer it seems to be splitting the 4 pieces of glass and rendering them in a particular order. Is there a way to disable this behavior whilst retaining the alpha & reflective properties.

Attached is the model & a screenshot of the material inside Blender.

Many Thanks

Screenshot-(159)

glass.zip

@donmccurdy
Copy link
Owner

donmccurdy commented Dec 23, 2019

Should be fixed by mrdoob/three.js#18235 (which won't be available in this viewer for a while). If you're using this model in your own threejs application in the meantime, you can set depthWrite=false on transparent materials to avoid the issue.

@donmccurdy
Copy link
Owner

Fixed in the latest viewer release; I'm not sure when/if the change will land in threejs.

Also note that the model doesn't appear to have UVs, which you'd need for that texture to work correctly.

@samyH
Copy link
Author

samyH commented Jan 14, 2020

Thanks for the heads up @donmccurdy - really appreciate all your hard work in this area. Cheers Sam

@donmccurdy
Copy link
Owner

Fixed in three.js — mrdoob/three.js#18235. Thanks for the report!

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

No branches or pull requests

2 participants