Sign in to follow this  
Torpedo

Animation Controller

Recommended Posts

Torpedo    122
Hi, I'm trying to animate using D3DXLoadMeshHierarchyFromX() and the animation controller. I have a problem but I don't realy know how to put it. I've already studied the MultiAnimation sample of the SDK but I don't quite get it. I've understanted the frame matrix update, the rendering loop and all. No prob here. What I don't understand, is how to use the same mesh to animate multiple objects that share that mesh. I'm assigning diferent animation controllers to the objects by using ID3DXAnimationController::CloneAnimationController(). What does this method do? Does it create a totaly new animation controller that is somehow connected to the mesh? Do I have to save the state of the animation for each object (time, animation track that is being played etc) and set it before the render?

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