[osg-users] Dividing a window into smaller areas

Robert Osfield robert.osfield at gmail.com
Thu Jul 14 01:51:50 PDT 2016

On 14 July 2016 at 09:38, Tony Vasile <minghia at gmail.com> 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.


More information about the osg-users mailing list