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

