Jump to content
  • Advertisement
Sign in to follow this  
vzoro

Multiple views like VRML/XJ3D

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

Hello,

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

Thanks you.

Share this post


Link to post
Share on other sites
Advertisement
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.

Share this post


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

Share this post


Link to post
Share on other sites
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).

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites
if(camera1)
{
glMultMatrixf(Camera1Matrix);
}
if(camera2)
{
glMultMatrixf(Camera2Matrix);
}

//Draw the object
glRotatef().....objects rotation
glTranslatef().....objects translation
glScalef()............objects scale

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!