Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I'm pretty new to this whole animating models thing. Just learning the ropes. I got a nice walking animation going, which I can loop while a character is walking, but what about when they stop walking?

I mean, they could be at any point in the animation at the time the player stops walking. How do I get them to smoothly return to a standing still position without having them snap into that position? The same goes for starting walking from a standing still position. Do you need a separate animation? How is this dealt with?

share|improve this question
    
Can't provide a detailed answer, but the term to Google is "animation blending." Basically, blend multiple animations together to handle transitions. Can also be used to mix physics (rag dolls) with animation, or to handle food/hand planting, and so on. –  Sean Middleditch Oct 30 '12 at 20:05
    
Unreal Engine uses a blend tree. You can also opt for a similar, but simpler animation stack. –  Torious Oct 30 '12 at 21:57
add comment

2 Answers

up vote 7 down vote accepted

You can have different levels of complexity depending on the degree of realism you want.

  1. Simply blend (= interpolate) from the walk to the stand animation when the character stops walking, and vice versa when the character starts.

  2. Let the walk animation rate depend on the character speed, this way the walk animation will slow down prior blending to the stand animation.

  3. Use transition animations: stand-to-walk is an easy one, just play it before your walk animation starts.

  4. Getting a walk-to-stand transition to work is a bit trickier, you'll have to know where your character is is his walk cycle, and wait for him to reach the transition point. And/or have several walk-to-stand animation that start at a different walk cycle point and trigger the right one when motion stops, probably with a bit of blending as well.

This goes on and on, you can consider using IK to snap feet to the floor, use human body physics for an even more realistic-looking motion, etc. This is really a question of artistic direction, and of how much time you can spend on this.

One thing for sure: if you want to experiment on all this easily, implement first a good data-driven animation system.

share|improve this answer
add comment

Just like you interpolate between the key frames of the walk animation, you could interpolate between standing pose and the frame when walking stopped. You can also let the walk animation play into the frame that is closest to the standing pose, though you probably need to let the character still move a bit then.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.