Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Biberpelztrompete

Animation of .x files in DX7

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

Hey, i got D3D running and i know how to load a X-File. Via CreateDirectXFile() or so... im not sure I would like to know how to show the file on screen and how to call the different animations. thx

Share this post


Link to post
Share on other sites
Advertisement
if you look at the dx7 sdk samples, there are a whole lot of structs/classes declared for the types of data found in an x file; i think the animations are each located within different frames, perhaps changed by either the vertices themselves, or a frame transform matrix. however, d3d 7 lacks the capability to use bones to animate meshes, so i think you may be better off using d3d8.
basically, the samples load an xfile by taking the data from the buffer interface, and putting it into an array of vertices, then calling DrawIndexedPrimitive() to show them. i did this, and it was quite a painstaking task; d3d7 requires you to set up your own z buffer, and many other things which are done for you in d3d8.

Share this post


Link to post
Share on other sites

  • 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!