Jump to content
  • Advertisement
Sign in to follow this  
lucky6969b

How to unregister a key framed animationset

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

Hello,
According to the MS doc, only LPD3DXANIMATIONSET can be released by UnregisterAnimationSet.
LPD3DXKEYFRAMEDANIMATIONSET has no counterparts.
The closest i can get is UnregisterAnimation.
However, What i need is to unregister the animation set, otherwise i cannot continue to add new animation sets to the controller. The space is sparse. Any lights?
Thanks
Jack

Share this post


Link to post
Share on other sites
Advertisement
The keyframed animation set inherits from the animation set base class, so you can apply the unregister operation to it as well.

Share this post


Link to post
Share on other sites
Do I need any type casts? because as I remember in my past attempts, Unregister a key framed animationset won't let me compile. Let me confirm about it later. Thanks Jack

Share this post


Link to post
Share on other sites
You can safely cast a derived class to its base class.It is possible in some cases that an explicit cast is required, but this has nothing to do with the animation classes themselves.

Share this post


Link to post
Share on other sites
Hidden
m_pAnimSet->UnregisterAnimationset("CBSet1"); Error 1 error C2039: 'UnregisterAnimationset' : is not a member of 'ID3DXKeyframedAnimationSet' Oops.... Thanks Jack

Share this post


Link to post
m_pAnimSet->UnregisterAnimationset("CBSet1");
Error 1 error C2039: 'UnregisterAnimationset' : is not a member of 'ID3DXKeyframedAnimationSet'
Oops.... Thanks Jack

Share this post


Link to post
Share on other sites
The UnregisterAnimationSet method is not in the animation sets to begin with - it is a method of the animation controller.

EDIT: The keyframed animation set does have its own UnregisterAnimation method, but it merely removes animation data from the set itself. The controller's UnregisterAnimationSet is an unrelated method that takes in pointer to any interface that derives from the base animation set, and removes it from the animation system regardless of the final type of the set (as long as it derives from ID3DXAnimationSet).

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!