Motion mixing in Direct3D

Started by
2 comments, last by Shakal 20 years, 11 months ago
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.
Advertisement
Halo !!!
People !!! where are you ?
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
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]
3D Side-Scroller game demo Project-X2 "playable"Lashkar: A 3D Game & Simulation Project demo @ lashkar.berlios.de

This topic is closed to new replies.

Advertisement