While we are on the topic of the Outline class, I'm experiencing something strange: My application crashes on exit with an "unknown exception" if an osgFX::Outline node is in the scenegraph, but it doesn't crash otherwise. I haven't been able to trace this, so I was wondering if anyone else had a similar experience. This is on Windows.

-Todd

On 9/8/2010 3:27 AM, Florian Kolbe wrote:
Salut Jean-Sébastien,

   thank you for your advice. I already had the line


Code:
osg::DisplaySettings::instance()->setMinimumNumStencilBits(1);



set as in osgoutline. Just to make sure, I disabled it to see that the line 
does not make any difference...

Then I noticed how osgViewer::View feeds the osg::GraphicsContext::Traits from 
various fields of osg::DisplaySettings, as for example in 
View::setUpViewOnSingleScreen(). Since I am using my own call to 
osg::GraphicsContext::createGraphicsContext() I was missing a line such as:


Code:
traits->stencil = ds->getMinimumNumStencilBits();



Problem solved!

Thank you!

Cheers,
Florian

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=31401#31401





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

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

Reply via email to