HI Daniel, The CullVisitor's no matching is an odd one. Any chance it's an issue of virtual inheritance somewhere along the line. Do you try a dynamic_cast to CullVistor on the object deleted?
Robert. On 20 December 2012 08:27, Daniel Schmid <[email protected]>wrote: > Hi Robert > > Sounds like a good idea to use observers. I just did the following: > > - Derived my customized ViewDependentShadowMap class also from Observer. > - override the createViewDependentData method to add this-ptr to > CullVisitors observers > - implemented Observers objectDeleted method to remove the CullVisitors > map entry from _viewDependentDataMap. > > Now I noticed that the CullVisitors pointer that is passed into > objectDeleted method does not match any of the CullVisitors that are used > for culling, therefore the entry in the map is never found and never > deleted. > > This is strange... > > Next I try to store the pointer to the View object and add an observer > onto it. Maybe I have more luck... > > Cheers, > Daniel > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=51641#51641 > > > > > > _______________________________________________ > 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

