-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Need to manually set thickness property when importing gltf scene #10931
Comments
A reproducer would be great. Once you have something small working; can you check if the property is correctly set in the gltF file? There's a chance this bug is on the Blender end, not the Bevy one. |
We had some discussion about the issue here. For example, if you have a Suzanne made of solid glass, you'd set the IOR to 1.5, but what do you set Once that is clear it should be easy to create a workaround and/or figure out if it's a Blender issue. |
Thickness in gltf is defined in an extension: This is loaded by Bevy if it's available. So you need to setup Blender to export materials with this extension. It can do it (KhronosGroup/glTF-Blender-IO#1646) but I don't know Blender enough to know how to set it there. |
Yeah just to be clear, when I ask "How does one create a solid glass material in Bevy?" I'm talking about a Bevy material, nothing gltf related |
Quick googling for the Blender export settings says:
|
Bevy version
0.12.1
What you did
What went wrong
No refraction is seen when the scene is loaded in the Bevy app. Need to manually set the
thickness
property of the StandardMaterial to achieve a similar look to the Eevee renderer in Blender. The StandardMaterial documentation does not seem to include how to approach this exactly. But ideally it would work out of the box.Additional information
Let me know if a reproducer would help, wanted to post first in case I just missed some export setting in Blender.
The text was updated successfully, but these errors were encountered: