Sign in to follow this  
blaze02

Multiple Model Animations

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this