• Advertisement

Archived

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

multipleview

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

Advertisement
Hi,

e.g., if I have robot arm, I would like to see the robot motion from back and from above in the same time... so I will be have two ogl screen looking for the same scene with user input interactions with its related robot motion, but from diferent point of view in my 2 screen display.

Thnx, Thomas

Share this post


Link to post
Share on other sites
To do that, use glViewport() calls.
Like this:

  
glViewport(0, 0, 160, 120); //Use a 160x120 rectangle for first view

//Now draw your first camera''s view here

glViewport(160, 0, 320, 120); //Use a 160x120 rectangle just to the right of the first

//Now draw the second, and flip your back buffer (if you''re using one).

Share this post


Link to post
Share on other sites

  • Advertisement