Jump to content

Third Person animation and moving speed


Roland
 Share

Recommended Posts

When using a Third Person view, how do you guys approach the problem of moving the character at the correct speed that syncs with the feet's. I was thinking of make some kind of measuring of the distance between the feet's and then calculate the movement speed from that. If that works it would solve the move speed for run also.

 

Or is this the wrong way to approach this problem? Any better idea.

Roland Strålberg
Website: https://rstralberg.com

Link to comment
Share on other sites

Exactly Roland, let the animation drive the motion. I use bones in the feet to measure the distance moved per animation and apply that. Good bye to foot skating and it also works beautifully when blending animations, which is almost impossible to calculate otherwise as its constantly changing in the initial frames.

 

Animation movement is then directly linked to the animation speed and always in sync.

 

The NPC in this video I posted some time back demonstrates this technique in action: kingdom of soul path finding and animation demo

  • Upvote 1

Intel Core i5 2.66 GHz, Asus P7P55D, 8Gb DDR3 RAM, GTX460 1Gb DDR5, Windows 7 (x64), LE Editor, GMax, 3DWS, UU3D Pro, Texture Maker Pro, Shader Map Pro. Development language: C/C++

Link to comment
Share on other sites

There is a good talk about animation driven locomotion in GDC12. You can find it in the free section of gdcvault.

 

But I think driving the character's position completely from animations is not a good idea. Cause you know sometimes artists and designers does not have the same interests tongue.png

Ali Salehi | Programmer

 

Intel Core i3 2100 @ 3.0GHz | GeForce GTS 450 | 4GB DDR3 RAM | Windows 7 Ultimate x64

LE 2.50 | Visual Studio 2010 | RenderMonkey 1.82 | gDEBugger 5.8 | FX Composer 2.5 | UU3D 3 | xNormal 3.17

 

 

76561198023085627.png

Link to comment
Share on other sites

I just set the speed of movement I need and then tweak the anim speed until it looks right. Not very technical but seems to work.

Thats ok for a constant speed but when accelerating its almost impossible to calc the required motion as its constantly changing whilst accelerating. You notice this most when blending from one motion to another for example idle to walk or walk to run.

 

But I think driving the character's position completely from animations is not a good idea. Cause you know sometimes artists and designers does not have the same interests tongue.png

Sure, there is no perfect system, all systems have their advantages and disadvantages. I can override my system at any time and under certain circumstances do so. As designers we tend to design and refine our mechanics to reflect what we need to do.

Intel Core i5 2.66 GHz, Asus P7P55D, 8Gb DDR3 RAM, GTX460 1Gb DDR5, Windows 7 (x64), LE Editor, GMax, 3DWS, UU3D Pro, Texture Maker Pro, Shader Map Pro. Development language: C/C++

Link to comment
Share on other sites

It's where you effectively blend one animation into another by progressively adding more weight to the new animation as time goes by. The two animations are interpolated all the way through the process based on the weightings which effectively results in say a walk animation smoothly morphing into a run animation. You've probably seen something similar in adverts where they make one persons face change into another then another.

 

You can in fact blend more than two animations together simultaneously and layered systems for doing this are common in game engines.

Intel Core i5 2.66 GHz, Asus P7P55D, 8Gb DDR3 RAM, GTX460 1Gb DDR5, Windows 7 (x64), LE Editor, GMax, 3DWS, UU3D Pro, Texture Maker Pro, Shader Map Pro. Development language: C/C++

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...