Sign in to follow this  
luridcortex

Q3 BSP: UV Flippage

Recommended Posts

It seems like some of the textures in quake 3 are mirrored on the y axis.. but some arent. Any know how to determine which textures need to be flipped?

Share this post


Link to post
Share on other sites
Quote:
Original post by luridcortex
It seems like some of the textures in quake 3 are mirrored on the y axis.. but some arent. Any know how to determine which textures need to be flipped?
IIRC, Q3's textures are flipped because the images aren't flipped before uploading them to OpenGL (you probably already know that most image formats are top-down while OpenGL textures are bottom-up). In my Q3 renderer I just apply 'v = 1-v' to the texcoords to correct this. This seems to produce consistently correct results, but maybe there are some textures that are upside-down that I haven't noticed...

Are you getting clearly inconsistent results, that is, with textures that have a clear 'up'? I'm not sure why some of your textures would be coming out right, and some not...

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