Jump to content
  • Advertisement


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


Motion mixing in Direct3D

This topic is 5554 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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

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.


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

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!