Jump to content
  • Advertisement
Sign in to follow this  
ITECoder

Utility For Renaming An Animation Assigned To An X File

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

Are there any tool’s in the DirectX 9 / 10 SDK that will enable you to open an .X file with an animation assigned to it, to rename the name of the animation ?. The MeshViewer.exe cannot do this !, ( You cannot rename animation’s for .X file’s, but only add animation’s to an existing .X file ) as of DirectX 9.0c. My .max to .x file translator only output’s one animation name. I need to rename the name of the animation assigned to the .X file to a more suitable name like “Run”, “Attack”, “Die”, for my Game Engine. Every single .X file export has the same animation name “AnimationSet0”, this will not work in the Game Engine. Can any one recommend any other software that can open .X file’s with animation’s to rename the animation assigned to the .X file ? .

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Can any one recommend any other software that can open .X file’s with animation’s to rename the animation assigned to the .X file ?

Notepad.

If it's not in text format, save it in text format and edit it in any ASCII editor. Look for "AnimationSet {" and change it to "AnimationSet Attack {"
(or as desired)

Share this post


Link to post
Share on other sites
If you feel brave enough, you could always try to write your own tool.

Simply load the model, clone every animation set using D3DXCreateKeyframedAnimationSet/D3DXCreateCompressedAnimationSet and specify the new name.

Then create a new animation controller from the old one ( ID3DXAnimationController::CloneAnimationController ) and register each new set on the new controller ( ID3DXAnimationController::RegisterAnimationSet ).

Shouldn't be too hard and gives you full control.

Hope this helps!

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!