#### Archived

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

# Ortho mode

This topic is 5672 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

How do I switch out of ortho mode back to (perspective?) mode. Can I do this in the middle of rendering a scene? Thanks.

##### Share on other sites
I don''t have the code at hand, but I recall seeing it in a GameTutorials.com tut on Masking. It''s quite simple. And yes, you can do it in the middle of rendering a scene.

##### Share on other sites
how do u mean in the middle of rendering?

if u mean just switching to ortho to do some overlay type stuff then switching back for the scene render then all u have to do is this:

  glMatrixMode(GL_PERSPECTIVE);glPushMatrix();glOrtho(.......);render overlay crap...glPopMatrix();back to scene render

sorry if this is wrong but i''m a total noob

1. 1
2. 2
JoeJ
20
3. 3
4. 4
frob
12
5. 5

• 13
• 19
• 13
• 20
• 13
• ### Forum Statistics

• Total Topics
632194
• Total Posts
3004692

×