Jump to content
  • Advertisement
Sign in to follow this  
mrchrismnh

md3 file tex coordinates

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

I'm working on an MD3 loader and have hit a rough spot with the texturing. I was wondering if anyone could assist me with some information. Does it matter that my TGA loader has all the information loaded in 90 degrees rotated? Do I need to flip around the tcoord values? Right now I am assuming that I use the triangle indices to get the correct tcoord order, is that correct?

Share this post


Link to post
Share on other sites
Advertisement
Each triangle is made up of three vertex indices. The same vertex index is used to look up the position, normal and texture coordinate.

If your TGA loader does indeed load textures rotated through 90°, I'd personally fix that first - but depending on the direction of rotation, simply flipping u and v may indeed fix your problems.

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!