Archived

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

Krusty95

.x file loading with directx 8

Recommended Posts

I''m new to using directx 8. I used directx 6 before I got directx 8( 137 MB at 2 KB a sec. = long download time). I have directx set up and I can use vertex buffers and all that, but I don''t know how to load an X file and display it. I looked at the documentation, but it''s kind of confusing. So could somebody please show me how to do this? Krusty95

Share this post


Link to post
Share on other sites
I know there''s lots of people that know how to do this, so could someone that knows how, pleeeeeeeeeeaaaaaase show me how?

Share this post


Link to post
Share on other sites
If you''re only interested in displaying a standard, non-skinned mesh, then look up ID3DXMesh and D3DXLoadMeshFromX. Under the SDK samples directory, you''ll find a tutorials directory - go into the mesh (tutorial 6) sub-directory to find an easy sample on loading and displaying a mesh.

If, on the other hand, you are looking for something on skinned meshes, then there are quite a few posts on how to start working with them. Soon, GameDev will post a few articles from me that demonstrates how to work with .X files. If you have the patience, please please read through the DX SDK skinned mesh example, concentrating only on the software based skin mesh. Cut out all other code (including animation at this point) until you understand how to load and display a single skinned mesh.


Jim


Share this post


Link to post
Share on other sites