Archived

This topic is now archived and is closed to further replies.

upside-down ortho

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

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.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
Well, i suppose that might work...but instead of using gluOrtho2D, i use glOrtho. So, if you know anything about that, it would help.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites