[osg-users] Force redraw of PagedLOD nodes

Robert Osfield robert.osfield at gmail.com
Mon Aug 1 07:33:28 PDT 2016

Hi Simone,

The DatabasePager is likely a distractation to the issue, whatever,
the final solution you'll need it will almost certainly not require
redrawing the scene from different viewports. What you should be doing
is impossible to say given the details.

Could you explain at a higher level how you are changing the colour of
the nodes and why this requires a redraw.


On 1 August 2016 at 14:49, Simone Rapposelli
<simone.rapposelli at gmail.com> wrote:
> Hi,
> I am trying to force the redraw of PagedLOD nodes.
> My need is to change the color of these nodes when the user push a button, but the only way I get it is to use the following hack:
> 1) set new position far from the current, using viewer->getCameraManipulator()->setHomePosition...
> 2) execute viewer->frame() to update the viewer
> 3) set the original position viewer->getCameraManipulator()->setHomePosition
> It seems like the DatabasePager keeps a cache (or something similar) that I don't know if and how to clear, in order to redraw the scene.
> I don't think my method is the right way, moreover sometimes (but I don't know why...) the view is not refreshed. Sorry for my possible confusion, but can you please give me some hints?
> Cheers,
> Simone
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=68235#68235
> _______________________________________________
> 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