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

Key frames on the Shaders Alpha channel will not export #197

Open
SarahMCollier opened this issue Mar 28, 2023 · 1 comment
Open

Key frames on the Shaders Alpha channel will not export #197

SarahMCollier opened this issue Mar 28, 2023 · 1 comment

Comments

@SarahMCollier
Copy link

Hi,

I would like to have an object's transparency fade off over time. I assumed that keying the alpha in the shader would be fine. However, the keyframes are not exporting.

Please see the screen grab below for further information:

image

@ziriax
Copy link
Contributor

ziriax commented May 3, 2023

I missed this issue, mea culpa.

Unfortunately, glTF doesn't support material animation AFAIK

https://blender.stackexchange.com/questions/263473/cant-export-gltf-with-alpha-value-animation

To work around this, you would need to create a dummy transform with some known name, and then animate a supported channel on it (e.g. Translate, rotate, scale) and then write some code to copy that to the material alpha.

An extension exists that allows animating any property, but this plug-in doesn't support that yet.

BabylonJS/Babylon.js#12544

Pull requests are welcome 😁

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