-
Notifications
You must be signed in to change notification settings - Fork 502
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gltfpack: Implement support for tracks with cubic spline interpolation
Tracks with cubic splines have three output components for each input component; also, they require writing interpolation type properly. When serializing cubic spline tracks for rotations, the tangents are not actually quaternions; as such, they can't be encoded using quaternion filter, and in -cc mode we need to fall back to raw snorm encoding. Even snorm encoding technically might not be sufficient as tangents could be outside of -1..1 range, but for now we can probably clamp out of range tangents.
- Loading branch information
Showing
4 changed files
with
28 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters