HI Aurelien,

On 1 July 2013 22:06, Aurelien Albert <[email protected]> wrote:
> Just an idea : is there any management of global default values which can 
> interfer with statesets management ?

You are on the right lines.  osgUtil::SceneView which is ancient but
still used within osgViewer::Renderer to set up the rendering back end
has been calling StateSet::clear() and then
StateSet::setGlobalDefaults() on the Camera's StateSet, which is what
causes the the osg::Program we have been attaching to disappear.

I'm currently adding new options in the SceneView::setDefaults() to
allow us to selectively control whether to clear and set the defaults.
 I still have to decide how best to set the defaults to provide the
original close to the original behaviour - I have to be careful as I
could easily break something.  For the purposes of the StatsHandler
all we essentially need to do is prevent the clear() of the Camera's
StateSet.

Robert.
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to