Skip to main content
gamedev.net
🔒 Locked

Flipping UV's

Started by ChaseRLewis Mar 26, 2011 at 4:58 AM 2 replies 3.8k views
Original Post
ChaseRLewis
ChaseRLewis
Tried to google it.

Wrote some functions for a project to use Uv's referenced from the bottom left, however, when I started a new project for some reason they are being referenced from top left. I know there is a function that sets where UV's reference stuff but I couldn't find it in google. Any help would be appreciated.
Bow_vernon
Bow_vernon
So you want to flip uv vertically?
You can use

tc.v = 1.0 - tc.v;
karwosts
karwosts
uv (0,0) is the lower left of the texture in OpenGL. If you say its getting it from the top left, you're probably loading the texture upside down.
[size=2]My Projects:
[size=2]Portfolio Map for Android - Free Visual Portfolio Tracker
[size=2]Electron Flux for Android - Free Puzzle/Logic Game
ChaseRLewis
ChaseRLewis

uv (0,0) is the lower left of the texture in OpenGL. If you say its getting it from the top left, you're probably loading the texture upside down.


Ah that makes sense I did switch the api I used to load the textures. Thanks, completely forgot.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.