Hi Brian & all,

On 20/5/09 11:27 PM, Brian Stewart wrote:
I am trying to implement a mechanism by which selected objects in my scene are
highlighted. Searching the forum I found a reference to the Outline effect (an
implementation of osgFX::Effect)  on Ulrich Hertlein's web site
(http://www.sandbox.de/osg/), and I have attempted to integrate it into our app 
-
however, most of the time, whenever the object which is outlined first comes 
into view,
the app crashes in osg::NodeCallback::traverse, because the _nestedCallback 
member is
corrupted. This is on Windows Vista-64, running OSG 2.6.1 built with Visual 
Studio
2008, in Debug mode. We are running OSG multithreaded, and all my code setting 
up the
effect is called from osg::NodeCallback::operator() on the render thread. The 
general
flow is as follows:

Sorry for being quiet for a while, I was out in the big room for a few days ;-)

I seem to remember there was an issue with the code and multiple viewers and I thought I had put a big XXX comment somewhere (but I didn't find it). If I remember correctly it had something to do with the EnableStencil callback that I used to enable stencil clear.

It calls node->setCullCallback(0) unconditionally, so maybe if there's something nested that breaks?

(Just a quick thought, the code is bloody five years old :-)

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

Reply via email to