Game Development Community

Blending animations only a bit?

by Daniel Buckmaster · in Game Design and Creative Issues · 08/05/2008 (9:47 am) · 1 replies

Is it possible to blend an animation on a node only a small amount? For example, if I have a node rotated facing north, and I blend an animation onto it that rotates it east - could I say 'blend at 50%' and have it face north-east?
I know thre are other ways to do that simple example - but what I'm actually intending to do with this is not that easy.

EDIT: I've looked into tsAnimate.cc a bit, specifically handleBlendSequence. I guess that's the place I need to be looking. Randomly, I tried mat.mul(0.1) right before the mNodeTransforms is set. This didn't work. I think I may be misunderstanding the practical use of MatrixF::mul.

About the author

Studying mechatronic engineering and computer science at the University of Sydney. Game development is probably my most time-consuming hobby!


#1
12/24/2008 (1:23 am)
Have a look at the updateLookAnimation() method in player.cc. There, it calls mShapeInstance->setPos() to set the playback position within its various TSThread instances.