Sign in to follow this  
littlekid

Blending between animations tracks

Recommended Posts

littlekid    229
I have many animation tracks in my current model. After calculating the bone hierarchy of each track, how do I blend the tracks with each other. E.g Track1 -> BlendFactor 0.8 Track2 -> BlendFactor 0.2 Do i just add or multiply the transformation of Track1 and Track2 together?

Share this post


Link to post
Share on other sites
RobTheBloke    2553
exactly the same way you slerp between keyframes....

The big problems you have to overcome are :

a) extract root translation & rotation for each step of the anim and sum them into a position and rotation global var for the character (rotate the last frames translation by the current rot of the character).
b) make sure you sync anims so that feet fall in the same order (i.e. make sure walks and runs all start on the same foot)
c) modulate time so that as you lerp from a walk with 30 frames, it still matches with a run with 24 frames....
d) marking foot falls is useful to modulate time so that foot steps stay in sync. This tends to give much better results.

Ultimately the better the quality of your anim data, the better the results.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this