Sign in to follow this  

How to add texture info to .x file?

Recommended Posts

Hi all, I just created some simple meshes using Blender (2.45 for Windows Vista) and exported them to the .x format. First I did not add any texture in blender. So, when I used the meshes and SetTexture, it didn't get mapped properly. The texture size is a power of 2, btw. Then I tried adding a texture in blender and then exporting the mesh to .x. Still I did not get the MeshTextureCoords object in the .x file. The textures are not predefined. I have to accept the texture file as a parameter in my application. I have worked with u,v coords of texture while using an explicit VertexBuffer. This is the first time I'm using with a mesh. How do I map the textures to the mesh? Thanks in advance, Saranya

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