Animation of .x files in DX7

Started by
0 comments, last by Biberpelztrompete 22 years, 2 months ago
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
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.

This topic is closed to new replies.

Advertisement