loading a x file

Started by
1 comment, last by greytone 18 years, 5 months ago
when loading a x file i dont have to set up materials and textures eaven if the x file has them?
Advertisement
The x file contains information only. You need to load in all the triangles (the mesh) and all the textures and materials, etc yourself. You must them apply them. Different tools offer varying degrees of support for automating this process, but the simple answer is that you still have to load and apply everything - the x file is just a convenient container for you to load from.
If your using directx, you can use D3DXLoadMeshFromX to load all the triangle and material information in. The texture information is the only information you need to load, D3DXLoadMeshFromX will provide you with a list of texture files to load. This is covered in the 3d section of my tutorials if you are interested.
Visit My Beginner DirectX Tutorials - www.experimentsingameprogramming.com

This topic is closed to new replies.

Advertisement