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

Alpha is not exporting #150

Closed
Spkopach opened this issue Jan 13, 2021 · 5 comments
Closed

Alpha is not exporting #150

Spkopach opened this issue Jan 13, 2021 · 5 comments

Comments

@Spkopach
Copy link

Hey,

Ive been trying to get alpha to work on export in either GLTF or GLB. Tried by plugging in texture to the alpha on shader also even tried adjusting the alpha slide with nothing plugged in. No matter what its always fully opaque on export.

Is there any documentation on how to get alpha to work?

Thank you!
-Sk

Maya 2019
Maya2GLTF 1.2.1

@ziriax
Copy link
Contributor

ziriax commented Jan 13, 2021

Alpha export certainly did work in the past.

I will check tomorrow if it is broken.

@Spkopach
Copy link
Author

Awesome Thank you! Look forward to seeing what you find.

@ziriax
Copy link
Contributor

ziriax commented Jan 19, 2021

I cannot reproduce this, my transparent textures remain transparent, and show up transparent in a GLTF viewer.

Did you put your technique to transparent in Maya?

image

Note that the our preview shader doesn't support transparency rendering in the viewport, for some reason Maya is not providing the correct alpha channel, not even when explicitly connecting the alpha plug to a dedicated alpha texture (e.g. and alpha of 0 can become an alpha of 1 for some reason).

@Spkopach
Copy link
Author

Oh I didn't see that as an option. I will try that today and get back to you on it. Thank you!

@Spkopach
Copy link
Author

Everything is working on my side with the switch to transparent on shader side. Didn't know that option was there. So thank you for your help!

@ziriax ziriax closed this as completed Feb 1, 2021
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