Motion mixing in Direct3D
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.
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
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
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]
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]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement