-
Notifications
You must be signed in to change notification settings - Fork 38
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
Material opacity lost on export to USDZ #169
Comments
+1 Please let me know if there's anything I can do to help. |
+1 Please help. GLTF viewers show transparency correctly, which is lost on exporting to USDZ This is the part that gives alpha
|
@TyLindberg The line of code that set the default opacity value was removed on commit c0301fc like you suspected. Adding it back fixed it for me, but may not work for you. Added the following line to the self._clearcoat_roughness = material.CreateInput('clearcoatRoughness', Sdf.ValueTypeNames.Float)
self._clearcoat_roughness.Set(0.01)
self._opacity = material.CreateInput('opacity', Sdf.ValueTypeNames.Float)
self._opacity.Set(1.0) # added back this line to set a default value to the opacity.
self._ior = material.CreateInput('ior', Sdf.ValueTypeNames.Float)
self._ior.Set(1.5) |
@rafaelmaroxa Nice find! Might be worthwhile to open a pull request with that fix. |
opacity did not work after the convert to usdz file |
may i know what is the proper way to it up on gltf side? |
Any update on this issue? Should we consider a PR with the suggested fix? |
When the material in a gltf file has a base color with an alpha value less than 1, the material will still appear fully opaque in USDZ. This seems to have started happening at commit c0301fc.
Attached is an example model that exhibits this behavior.
TransparentDuck.zip
The text was updated successfully, but these errors were encountered: