Hi Patrick, I'm rather confused about what you are trying to achieve with the various Cameras.
If you have multiple views then logically you should be using multiple View(s) and a CompositeViewer that contains them rather than a Viewer which is written around providing a single View. You can manage multiple views using slave Cameras within a single View(er) but it's just far more awkward to manage than using the correct class for the job - CompositeViewer. Robert. On 29 April 2014 13:35, Patrik Andersson <[email protected]> wrote: > Hi, > > I have created a class which shall display two views of the same scene based > on osgViewer::Viewer. > > The two views are rendered by two HUD cameras with a corresponding RTT > camera. The first RTT-camera is set to be the master-camera in the Viewer, > and the rest of the cameras are added as slaves. > > The second viewport is displayed correctly but the first one seem to be > locked in origo. I have tried to investigate the viewmatrix of the > master-camera but from its value it shall be on another position. > > The master-camera is assigned a projection-matrix and view-matrix before it > is set to the viewer (setCamera). I also assign a camera-manipulator to > control its behaivor. If I remove the assigned CameraManipulator, the > master-camera falls outside the world. > > How should I setup the above system approperiate? > > Kind regards > Patrik > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

