Sign in to follow this  
ryt

loading a x file

Recommended Posts

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this