Advertisement Jump to content
Sign in to follow this  
blaze02

Multiple Model Animations

This topic is 4517 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

I've got an animated mesh rendering, but now I want more :) Lets say I want 2 meshes walking around, but in different animation frames at different times. Should I make an additional animation controller for each new object that uses the animated mesh? If that is the case, how do I know which animation controller is controlling the mesh, the last one that ->AdvanceTime has been called? Or I could just manipulate one animation controller for all of my objects using the same mesh, and manipulate the time and animation each time I want to render. But that doesn't seem like a good solution, especially since there is no function to set the absolute time of the animation. Thanks for any help.

Share this post


Link to post
Share on other sites
Advertisement
I've been looking at the DX sample "MultiAnimation" with a bunch of Tiny's running around. Its a little messy, but I finally found the answer. My guess was right, when the mesh is drawn, its matrices are set by the most recent animation controller's AdvanceTime function.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!