-
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 disabling resampling when frequency is 0
Using -af 0 now disables resampling and keeps the original time values. When resampling is disabled, we can still mark tracks as constant and remove them if they are not necessary, which cuts down on the animation size. In this mode it is more difficult to support ranges, so we assume track range will cover the relevant timespan if any tracks with time survive. Doing this analysis for cubic splines is slightly more difficult as if tangents are non-zero, an otherwise "constant" track will not result in constant output, so we disable analysis in that case for simplicity.
- Loading branch information
Showing
3 changed files
with
36 additions
and
31 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