Re: [osg-users] Dividing a window into smaller areas

2016-07-14 Thread Robert Osfield
On 14 July 2016 at 09:38, Tony Vasile  wrote:
> Basically we are representing a panorama of 48 panels. We have a requirement 
> to render one of the panels and then send the pixels over an ethernet 
> connections.

When you say "representing", you mean you have a physical power wall
that you are driving.  Why is etherenet involved?  Are you using a
cluster of PCs?

Knowing the actual set up is important here if you want useful advice.

> I have got the moving around working but it appears that when glClear happens 
> it happens after each viewport is rendered, so there is a lot flickering. Is 
> there a way to set a clear mask so that the clearing only happens at the end 
> of the processing?

The OSG calls glClear prior to rendering not after.  Go look at the
code in src/osgUtil/RenderingStage.cpp.

The osg::Camera has a setClearMask() method which allows you to
toggling on/off different parts of clear (which is done by RenderStage
PRIOR to rendering the the Camera's scene graph).

As to what is happening in your case I have no clue.  It sounds like
you have enough odd things happening due to your particular setup
there is no way as third party we can guess at what is going on.

Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Dividing a window into smaller areas

2016-07-14 Thread Tony Vasile
Basically we are representing a panorama of 48 panels. We have a requirement to 
render one of the panels and then send the pixels over an ethernet connections.

I have got the moving around working but it appears that when glClear happens 
it happens after each viewport is rendered, so there is a lot flickering. Is 
there a way to set a clear mask so that the clearing only happens at the end of 
the processing?


Tony V

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=68129#68129





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Dividing a window into smaller areas

2016-07-06 Thread Robert Osfield
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  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@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] Dividing a window into smaller areas

2016-07-06 Thread Tony Vasile
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@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org