Animation Controller

Started by
-1 comments, last by Torpedo 17 years, 1 month ago
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?

This topic is closed to new replies.

Advertisement