Advertisement

windowed camera

Started by February 12, 2003 09:10 PM
1 comment, last by Ifman1 22 years ago
I want to create a camera affect like the one in the old gold box games, or bard''s tale games, where the 3D view is in a smaller window on the main screen. Does anyone know how to do this in OpenGL without having a second smaller window? For example: have the screen set to a resolution of 800x600 and the 3D window only taking up about a 200x200 chunk of the screen. thanx ifman1
Beware the Doom-Bunnies!!! They come from the stars!!
glViewport(200,100,width/2+100,height/2+100); // Reset The Current Viewport


change your viewport settings around (the above works for a 800x600 window, dunno what resolution you have though).

glViewport(x,y,width,height);

where x is the left side, y is the bottom, and width and height are the width and height of the viewport

this creates the effect that I think you''re looking for....

bloodright.150m.com //For the latest on all of the IVGDA projects!
Advertisement
cool, thanks
Beware the Doom-Bunnies!!! They come from the stars!!

This topic is closed to new replies.

Advertisement