Jump to content
  • Advertisement
Sign in to follow this  
kslam

.X file animation question

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

Hi, I want to inquiry that how can I create several animations set (such as run, jump, attack) in one single MS3D file and convert to one .x file in order for me to use the directx9 (SetTrackAnimationSet, GetAnimationSet) to switch the animation set ? Is it the Milkshape3d can convert to .X file which can contain more than one animation ? If not, is it directx9 can support md3 file or other format which directx9 can support(all the animation in a single .x file) and how to make it ? Thank you Kslam

Share this post


Link to post
Share on other sites
Advertisement
If you can create several single animation x-files, I've written a utility that will combine the animations (and let you name them) into a single x-file.

I don't have full instructions on my site yet, but if you download the utility (SMD2X) from

http://veazie.org/Tutorials/SMD2X/smd2x_whatyoullneed.html

you can do the following:

1. Run SMD2X.
2. Load an x-file.
3. Set the "Primary Reference" from the x-file. It's a menu item.
4. Add the animation from that x-file to the list of animations. Also a menu item.
5. Load another x-file.
-- you don't need to set the reference since that was done in step 3.
6. Add the animation from that x-file to the list of animations.
7. Repeat steps 5 & 6 for all the animations you want to add.
8. Export an animated x-file with all the animations in the list in one file.

Share this post


Link to post
Share on other sites
When I load .X file, there is an error : Invalid file "expected 'frame' token. found //

The .x file is running properly in DirectX viewer.

Share this post


Link to post
Share on other sites
Ah. The converter doesn't like comment lines. I'll fix that.

EDIT:
// (double-slash) and # comments are now recognized.

Sorry about that.

If you want, download the SMD2X.zip again and give it a try.


[Edited by - Buckeye on June 2, 2008 10:42:24 AM]

Share this post


Link to post
Share on other sites
another new error come out.
How about you give me your email, I send this .x file to you ?

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!