• Advertisement
Sign in to follow this  

loading a x file

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

when loading a x file i dont have to set up materials and textures eaven if the x file has them?

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement