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 glTF animation STEP interpolation #8786

Merged
merged 7 commits into from
Apr 23, 2020
Merged

Add glTF animation STEP interpolation #8786

merged 7 commits into from
Apr 23, 2020

Conversation

emackey
Copy link
Contributor

@emackey emackey commented Apr 22, 2020

This PR adds support for glTF's STEP animation interpolation. It also adds tests for output values of STEP and the existing LINEAR interpolations (previously there were tests for times only, not output values).

Note that the new tests depend on fixes introduced in #8769, so please merge #8769 before reviewing this PR.

STEP interpolation is important to support, because the Blender glTF exporter can end up writing this if there is exactly one keyframe, or if the Blender user has used "Constant" keyframes.

@cesium-concierge
Copy link

Thanks for the pull request @emackey!

  • ✔️ Signed CLA found.

Reviewers, don't forget to make sure that:

  • Cesium Viewer works.
  • Works in 2D/CV.
  • Works (or fails gracefully) in IE11.

@emackey emackey marked this pull request as draft April 22, 2020 21:55
It was fun!  How's everyone else's quarantine going so far?
@emackey emackey marked this pull request as ready for review April 23, 2020 01:18
@lilleyse
Copy link
Contributor

Looks great @emackey. Confirmed that InterpolationTest.glb looks like the gif in https://github.com/KhronosGroup/glTF-Sample-Models/tree/master/2.0/InterpolationTest

@lilleyse lilleyse merged commit 3f6bd3e into master Apr 23, 2020
@lilleyse lilleyse deleted the stepped-animation branch April 23, 2020 15:28
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

Successfully merging this pull request may close these issues.

3 participants