Hi Aurelien,

> 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.

I've now made the required changes to SceneView and now it no longer
automatically overrides the Camera's StateSet settings.  This makes it
possible to set the Camera's StateSet just how you want it, including
applying osg::Program.  I have confirmed this by apply the red frag
shader as suggested by yourself.

I now wonder if some reports on osg-users about problems applying
using Camera might be down to this bug in the way SceneView was
override the Camera's StateSet on setup.  If one applied the settings
prior to applying the Camera::Renderer one would loose the StateSet
and Camera::ClearColor settings. If one applies after the Renderer is
setup it will have worked.

These changes are now checked in to svn/trunk.  Could you test them
out with your overriding of the StatsHandler's Camera's StateSet?

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

Reply via email to