Loading blender x file meshes in DirectX 9

Started by
1 comment, last by Don_Xenon 12 years, 5 months ago
Like the title suggests, I'm currently trying to load meshes in D3D 9. I decided to go with the archaic .x file and Blender ( just because it's open-source) but they don't quite add up. Even the untextured mesh has weird lighting as seen in the attachment. Needless to say, that affects the UV mapping.

As long as I don't have to give up on Blender, I'm open to any suggestion.

[size="1"]PS, sorry if I posted in the wrong section. :D
Advertisement
Im sorry, but what is your question? It looks to me like you have succeded with loading your mesh :cool:

About your "weird lighting", it should NOT have anything to do with your file loader nor have anything to do with uv mapping. It might be caused by the meshs normals (open the file in Blender and make them smooth), or maybe your lighting calculations aren't correct.

I'd start with opening the file in Blender :). Good luck
Thanks, looks like it was a matter of recalculating normals and lighting after all. :D

So I decided to try some UV mapping and that generated its own problem. This is the textured mesh, but this is the mesh DXViewer opens up. What am I doing wrong now? :/

This topic is closed to new replies.

Advertisement