Sign in to follow this  

.X file animation question

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

This topic is 3480 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this