Jump to content
  • Advertisement
Sign in to follow this  
Don_Xenon

Loading blender x file meshes in DirectX 9

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

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

Share this post


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

Share this post


Link to post
Share on other sites
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? :/

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!