Hi, I am relatively new to OSG so please take that into account when reading my question below....
We have a large visual database, extents are basically the entire country of Italy. Due to some z-buffer issues with the terrain we have been reading and studying lots of z-buffer data, etc..and have determined that we would like to try using the osgViewer DepthPartition for some testing. We can get the depthpartition created successfully and it seems to work fairly well. The problem is that we have a PostDrawCallback that we are trying to have do some stuff for us and the callback is never being called. I feel that is due to us most likely passing in the Master camera instead of the proper slave camera that was created in the DepthPartition call. My question is how do I get/find the correct camera to use in our call for: osg::Camera* camera = NULL; double zNear=1.0, zMid=50.0, zFar=100000.0; osg::ref_ptr<osgViewer::DepthPartitionSettings> dps = new osgViewer::DepthPartitionSettings; dps->_mode = osgViewer::DepthPartitionSettings::FIXED_RANGE; dps->_zNear = zNear; ps->_zMid = zMid; dps->_zFar = zFar; viewer = new osgViewer::Viewer; viewer->setUpDepthPartition(dps.get()); camera = viewer->getCamera(); camera->setPostDrawCallback(Callback); does not seem to work as expected in this case. We get a valid camera, just not apparently the correct camera as the callBack is not called. Removal of the setUpDepthPartition call and our callBack is called as expected. Thank you! Cheers, Curtis ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=51862#51862 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

