Sign in to follow this  
mrchrismnh

md3 file tex coordinates

Recommended Posts

mrchrismnh    82
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
benryves    1999
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

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