View Full Version : picture in picture
10-31-2004, 05:49 AM
how can i make a picture in picture window??
10-31-2004, 08:30 AM
Easy, use the following function :
Seriously, can you reformulate you question in a more specific way ?
If you need simple GL tutorials, check NeHe (http://nehe.gamedev.net/lesson.asp?index=01)
10-31-2004, 12:40 PM
i want to show another angle of my scene, if you see nehe's contest of lotr 2, take a look at mirko teran 's demo, the stairs scene, thats what i want.
10-31-2004, 01:20 PM
I see now.
Basically, there is first a fullscreen rendering of the scene, then a second rendering (before swapbuffers and clear), with a different glViewport(x,y,dx,dy) (and glScissor too !) to restrict to a small portion of the screen.
Download the code of the lotr demo, have a look at Lotr_SceneStairs.h, methods DrawSceneStairs() and RenderStairsCam2().
10-31-2004, 07:41 PM
ok, thanks, btw i was checking nehe's tutorial for multiple viewports, is that it ??
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.