Hi Robert, I thought if you had one scene with multiple-views one should use the Viewer-class...
Had some issues setting up with composite-viewer, but I''ll try again. I'll let you know how I succeed. Kind regards Patrik On Tue, Apr 29, 2014 at 2:45 PM, Robert Osfield <[email protected]>wrote: > 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 >
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

