Advertisement Jump to content
Sign in to follow this  


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

As it stands, I have a class that keeps one copy of the AnimationController object. When I make a new instance of the animation, I reference this animation controller and use it to call CloneAnimationController. As a paramter I pass in a local copy animation controller to be used independently.
//This is the main animation controller

if(m_pDevice != NULL)
   if(S_OK == D3DXLoadMeshHierarchyFromX( xFile,
					  &pAC ))

//In another class, this is the local copied instance (m_pAC)
pAC->CloneAnimationController( pAC->GetMaxNumAnimationOutputs(),
                                      &m_pAC );

The problem is that when one animation is running, it works fine. However, as soon as another animation is created, neither animations work at all. Do I have to create a whole new AnimationController for each instance? Isn't the point of the cloning function to allow multiple animations referring to a common main controller? Thank you for any help you can offer.

Share this post

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

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. 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!