PDA

View Full Version : picture in picture



zukko
10-31-2004, 06:49 AM
how can i make a picture in picture window??

ZbuffeR
10-31-2004, 09:30 AM
Easy, use the following function :

glMakePicture(&pictureWindow); ;)

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)

zukko
10-31-2004, 01: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.

ZbuffeR
10-31-2004, 02: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().

zukko
10-31-2004, 08:41 PM
ok, thanks, btw i was checking nehe's tutorial for multiple viewports, is that it ??