Posted By: oldschoolj
Blending Animations in Lite-C A7 - 07/20/07 19:02
Is is possible to blend animation sequences together.
For instance:
During a Run cycle a Cast "" Spell sequence occurs
During a Walk cycle a Knocked Back sequence occurs
So far all of my animations are broken up like the manual says, and they all work, but I don't know how to make them blend or if thats possible.
Thanks conitec
Posted By: oldschoolj
Re: Blending Animations in Lite-C A7 - 07/20/07 19:14
looks like ent_blend is what I need, however, I have no bones and just vertex animations. So if that is the only real way then please let me know.
Posted By: oldschoolj
Re: Blending Animations in Lite-C A7 - 07/20/07 19:29
It also says that with ent_blend it assumes the animation is cyclic, and cuts off the animation. What if I need to play a "getting hit" animation, while "casting a spell" animation. Would I need to then write a script that will cause the animation to pick up from the frame it stopped at after the "getting hit" animation is over. Is that possible, and relatively easy or complex?
Posted By: Orange Brat
Re: Blending Animations in Lite-C A7 - 07/20/07 20:30
Check the first item out in my Master List in my signature. All of the motions are blended with it and are bones based. Also, The Kingdom Hearts tutorial in User Contributions does it nicely as well (and it's much easier to read and most likely expand).
Here's a stripped down version of the blending example...the one in the list is the big version:
http://www.geocities.com/hainesrs/special_blending.zip
Posted By: oldschoolj
Re: Blending Animations in Lite-C A7 - 07/20/07 21:25
yes but is that going to work wiht vertex animation, I won't beable to use bones.
Thanks alot for the info btw.
Posted By: Pappenheimer
Re: Blending Animations in Lite-C A7 - 07/20/07 21:47
ent_blend works with vertex animations too, there is no need to 'close' their cycle. You can start the blending from any frame of the cycle.
From the manual:
Quote:
Example:
//Sets the entity to a vertex frame within 50% of the walk cycle,
//and then blends over to the first frame of the stand cycle.
ent_cycle("walk",50);
ent_blend("stand",0,25);
//The result of this code is a frame mixed from 75% of the middle
//of the "walk" cycle and 25% of first frame of the "stand" cycle.
Skip the line with ent_cycle. Ent_blend will start from any animation and any frame of that animation that is performed in that moment.
Posted By: oldschoolj
Re: Blending Animations in Lite-C A7 - 07/20/07 23:39
thanks a bunch ill test it out