Skip to main content
GameDev.net gamedev.net
🔒 Locked

Multiple views like VRML/XJ3D

Started by vzoro Apr 26, 2012 at 2:39 PM 5 replies 1.4k views
Original Post
vzoro
vzoro
Hello,

is it possible to have multiple cameras and you can select one of them on the viewport, without splitting?

Thanks you.
haegarr
haegarr
What does "without splitting" mean?

For sure, you can use the projection matrix, glViewport and glScissor to render what distinct "cameras" see into a single OpenGL view.
vzoro
vzoro
It means to have not a window splitted each one with a camera, but i want select one of them on the viewport.
dpadam450
dpadam450
Still doesn't make sense. Type a more in depth explanation because your translator is not translating properly. You can have as many cameras as you want (its just swapping out matrices at run time).
NBA2K, Madden, Maneater, Killing Floor, Sims 
SimonForsman
SimonForsman

It means to have not a window splitted each one with a camera, but i want select one of them on the viewport.


There are no cameras in OpenGL, you can create as many of your own camera objects as you want and use them in any way you want.
[size="1"]I don't suffer from insanity, I'm enjoying every minute of it.
The voices in my head may not be real, but they have some good ideas!
vzoro
vzoro
YES.... dpadam450 ... I need to swap two cameras ... at run time...
dpadam450
dpadam450
if(camera1)
{
glMultMatrixf(Camera1Matrix);
}
if(camera2)
{
glMultMatrixf(Camera2Matrix);
}

//Draw the object
glRotatef().....objects rotation
glTranslatef().....objects translation
glScalef()............objects scale
NBA2K, Madden, Maneater, Killing Floor, Sims 

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.