Jump to content
  • Advertisement

Archived

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

ph4ntasyph34r

upside-down ortho

This topic is 6104 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
Advertisement
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
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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!