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

Add light property animations #2011

Closed
Alexeyt89 opened this issue Aug 2, 2021 · 1 comment
Closed

Add light property animations #2011

Alexeyt89 opened this issue Aug 2, 2021 · 1 comment

Comments

@Alexeyt89
Copy link

Currently with "light" extension it is possible to save light nodes to glTF2.0
The nodes have "color" "intensity" "innerConeAngle" and "outerConeAngle" properties.
As EXT_property_animation extension has stuck in discussions for over a year and in the end it is not likelly to support light animations (#1301 (comment)) , I suggest that another extension should be created specifically to have the possibility to animate these properties.

@aaronfranke
Copy link
Contributor

This is now possible thanks to the glTF Object Model and the KHR_animation_pointer extension.

For example, an animation can have the target set to this to animate the color of light 0:

"target": {
    "path": "pointer",
    "extensions": {
        "KHR_animation_pointer": {
            "pointer": "/extensions/KHR_lights_punctual/lights/0/color"
        }
    }
}

This issue can be closed as resolved.

@emackey emackey closed this as completed Aug 2, 2024
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

3 participants