[osg-users] Dividing a window into smaller areas

Robert Osfield robert.osfield at gmail.com
Wed Jul 6 01:48:39 PDT 2016


Hi Tony,

Is there a reason why you just don't use the multiple Camera's, one
for each viewport, this is the standard way of doing things in the
OSG.  If the different viewports make up the same basic view then
you'd use a single osgViewer::View or (Viewer) with multiple slave
osg::Camera that draw the individual viewports, or if they are
separate views then you'd using multiple osgViewer::View within a
osgVIewer::CompositeViewer.

With this capability built right in to the core osgViewer library
there is no need to play games trying to move viewports around.

Robert.

On 6 July 2016 at 09:44, Tony Vasile <minghia at gmail.com> wrote:
> I'm porting a Performer application to OpenSceneGraph and it is drawing the simulated view into a series of smaller regions on the screen. The way the application works is that it starts at the first position set the viewport to the desired position draws the piece of the panorama moves to the next region and updates the viewport to this new piece of the window and draws that section.
>
> Basically I have window that is big enough to hold 3 rows of 16 regions which represents a 360 degree panorama, i.e the 360 degrees is divided into 48 panes.
>
> When I move the viewport around the window the panes are jumbled and aren't in the  correct order. Does the method of updating the window make sense in OpenSceneGraph? I have looked at the locations of the panes and the numbers are correct for  where the pane is supposed to be located but when I look at the image it is just not what is expected. And suggestions?
>
> ------------------------
> Tony V
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=68017#68017
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



More information about the osg-users mailing list