Jump to content
  • Advertisement
Sign in to follow this  

How to add texture info to .x file?

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

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
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!