Hello Florian,

Note the attached image. The first chair has no effect, the second chair has 
the outline effect, and the third chair has the scribe effect. As you can see 
with the middle chair, the legs seem to be working but then the seats polygon 
lines get exposed? May this be an issue due to using 2.8.3 ?

You need to enable the stencil buffer when you create your graphics context in order for the outline effect to work correctly. If this is not done you'll get the problem you have (sometimes internal polygons are shown, sometimes not, depending on order of drawing).

You should be able to use osg::DisplaySettings::instance()->setMinimumNumStencilBits(8); before creating your viewer/window/context to do this, or modify the traits you pass to createGraphicsContext() if you're creating it yourself.

Hope this helps,

J-S
--
______________________________________________________
Jean-Sebastien Guay    [email protected]
                               http://www.cm-labs.com/
                        http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to