smix8 / GodotAnimationRetargeting

Animation Retargeting module for Godot Game Engine
MIT License
129 stars 9 forks source link

Filter unnecessary bone tracks from new animations #18

Closed smix8 closed 3 years ago

smix8 commented 3 years ago

Currently the retargeted animationtrack adds all missing bonetracks with a start and end keyframe to assure that the new animation will properly work inside AnimationTree with existing blendspaces and blendtrees.

Currently if your skelton has 40 bones but the original animation has only 8 bones keyframed the new animations would have all 32 missing bones as well with only start and end keyframe.

Technically to assure that your retargeted animation does not break only bones are required that are between two other keyframed bones in the bone hierarchy.

Filtering out the uncessary bones would cleanup the new animation and reduce the number of stored animationtracks.

smix8 commented 3 years ago

Added to the feature tracker.