upside-down ortho

Started by
5 comments, last by ph4ntasyph34r 22 years, 3 months ago
Everytime I use the Ortho view, it''s upside down. such as, the point (0,0) is in the opposite of where it should be. Any suggestions to the problem would be helpful.
/* This is a comment *//* Abuse it */
Advertisement
Flip your monitor right side up
:D
XanGame ProgrammerVolition Inc.
What do you mean upside down?
0,0 is normally at the bottom left (which is logical)
gluOrtho2D (0, w, 0, h);
if u want it at the top left simply use
gluOrtho2D (0, w, h, 0);

http://uk.geocities.com/sloppyturds/gotterdammerung.html
Well, i suppose that might work...but instead of using gluOrtho2D, i use glOrtho. So, if you know anything about that, it would help.
/* This is a comment *//* Abuse it */
glOrtho and gluOrtho do the same thing - the only difference if that gluOrtho set the near and far clip planes to -1 and 1. glOrtho you have to explicitly state the values.

But, I suspect your texture coordinates are wrong - not the screen coordinates.

Give us some more information first.
Allot of images are stored upside down too.

This topic is closed to new replies.

Advertisement