Jump to content
  • Advertisement


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


gluOrtho2d question.

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

So I want to make this game, its mostly a 3d game on a strictly 2d plane. Would I use gluOrtho2d to set up my viewport? Is this how NeHe did his joust 3d game? (actually that is exactly the same t ype of look I want for my game is how he did the joust 3d stuff) any ideas if NeHe will release that joust 3d source code? Any help is appreciated. Thanks. Shane p.s. I know its sorta a general question, sorry, its just i know where i want to go with it but i need to know how to start it, and it seems that most the tuts (aside from GridLines) are not close to what I need. Thanks

Share this post

Link to post
Share on other sites
well, you''ll first want to set to viewport with glViewport(). then you can use gluOrtho2D or glOrtho. will do the same thing, only in gluOrtho2D the minz and maxz are by default set to -1 and 1. beyond that you just use it like this:

glOrtho is like this:

Never underestimante the power of stupid people in large groups.

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!