How to set Two viewport in OpenGL?

creater16
Unregistered
 
Post: #16
but i am going to use 2 projector, please help
Quote this message in a reply
Sage
Posts: 1,403
Joined: 2005.07
Post: #17
Well look at the code anyway, one projector shows the red bit one shows the green bit. Just ignore all the overlay stuff.

The way I would do it is to model the sitation on reality, you have two eyes seperated horizontally by a short distance, so use gluLookAt(right eye, reference point) for the left projecter and gluLookAt(left eye, reference point) for the right projecter.

You can just change the camera angle and redraw on the other side of the screen you wont need to create two viewports. You could though create two GLUT windows and have one on each screen of the projectors.

Sir, e^iπ + 1 = 0, hence God exists; reply!
Quote this message in a reply
creater16
Unregistered
 
Post: #18
nonono, I must use 2 projectors, a passive stereographics system
i am looking for codes for making 2 viewing screen on normal computer
Quote this message in a reply
Sage
Posts: 1,403
Joined: 2005.07
Post: #19
Quote:You could though create two GLUT windows and have one on each screen of the projectors
Did you try that?

Sir, e^iπ + 1 = 0, hence God exists; reply!
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Viewport aligned billboarding Zoldar256 1 3,001 Jul 12, 2003 04:03 PM
Last Post: Feanor