Just a quick question here

Started by
1 comment, last by ji yan 21 years, 7 months ago
Can anyone pliz tell me if the directx 8.1 mesh techniques could be applied to other than just .X files? Can I load a md2 file and then stuff the info into a mesh? Thanks for help in advance!!
Advertisement
You can use the ID3DXMesh to contain any mesh data, from any source. To create an ID3DXMesh object, check out the D3DXCreateMesh and D3DXCreateMeshFVF functions. Basically, just create a mesh object, lock the vertex and index buffers, and load in the mesh data.


Jim Adams
home.att.net/~rpgbook
Author, Programming Role-Playing Games with DirectX
and Focus On: Advanced Animation with DirectX

quote:Original post by ji yan
Can anyone pliz tell me if the directx 8.1 mesh techniques could be applied to other than just .X files? Can I load a md2 file and then stuff the info into a mesh?

Thanks for help in advance!!


no you cant load other formats, just .X files.
you must parse the file yourself if it is not .X format.
md2 is simple quake models. Just load the frames. Animate with interpolation

This topic is closed to new replies.

Advertisement