Archived

This topic is now archived and is closed to further replies.

Shakal

Motion mixing in Direct3D

Recommended Posts

Hi. Who can tell me how to mix two motions (loaded from two different .X files) for example - run and jump. The task is to do smooth transition between this motions. Is there are some algorithms, where i can take more information. Thanks.

Share this post


Link to post
Share on other sites
Hello,

An easy way is to interpolate between to keyframes, given some update interval. That will make your animations really smooth. I guess you are using D3D so Quaternions will help you and so will a vertex shader. www.gametutorials.com has a good MD3-animation tutorial which use linear interpolation through quaternions. This shouldn''t be to hard to adapt to your x-file animation. If I''m not mistaken the DXSDK has some neat x-file animation tutorials, that should be easy to use aswell.

Regards,
Deficte

Share this post


Link to post
Share on other sites
if you know how to use animation controller

load run cycle on track0
load jump on track1

SetTrackWeight(1, interpolate from 0.0 to 1.0f to 0.0);

or use KeyTrackWeight if you wan efficient use

[edited by - DirectXXX on May 7, 2003 4:03:28 AM]

Share this post


Link to post
Share on other sites