[osg-users] corrupted rendering

Robert Osfield robert.osfield at gmail.com
Wed Dec 21 01:30:50 PST 2016


Hi Laurens,

On 21 December 2016 at 08:45, Voerman, L. <l.voerman at rug.nl> wrote:
> I created a pull request for the master branch (link).

Thanks for the fix.  I've reviewed it and decided that it would be
more in keeping with how osgViewer::View's master Camera() sets it's
StateSet::setGlobalStateSet() to do the same with the StatsHandler, so
I've added a:

    _camera->getOrCreateStateSet()->setGlobalDefaults();

To the StatsHandler constructor.  I've checked this into git master,
3.4 and 3.2 branches.

I have tested this with Riccardo's modified osgviewer.cpp and it works
properly once this fix is applied.

Thanks to both of you for your help homing and fixing this long standing bug.

Robert.



More information about the osg-users mailing list