guillaumeblanc / ozz-animation

Open source c++ skeletal animation library and toolset
http://guillaumeblanc.github.io/ozz-animation/
Other
2.46k stars 302 forks source link

[Guidance] Animation Blending with constraints #146

Open astaranowicz opened 2 years ago

astaranowicz commented 2 years ago

Hi @guillaumeblanc. This repo is pretty cool. I wanted to ask about some capabilities that are possible or not.

1) I have a walk and run animation. I can blend these two animations in such a way that the animation walks then looks like they take off into a sprint. Let's say I want to add in a joint limit to the left knee so it can't move outside a certain angle range. How would one be able to add in this limit without creating a separate animation for it?

2) I'm working on is trying to trim an animation. I have a walking animation, but instead of trying to make cuts in different software, I wanted to make a cut during the blending process. Let's say I have a full walk cycle (starts with left foot about to take off, and right heel hitting the ground and ends with with that same stance), I wanted to create several blends with different parts of this walking cycle, e.g., half-step, quarter-step, etc. Is this possible? I was thinking these half-steps could be used as a "stair climbing" animation or 'leg-up' pose.