Hi I believe this caused by small features culling (which is culling away objects which cover less space on screen than some pixel threshold). With compute near far enabled - when camera far enough objects on earth surface gets culled away, and as there are no objects on earth surface get's rendered, far plane calculated is just to close for earth to be visible. To check if this causing problems try to set culling mode to myCam->setCullingMode(myCam->getCullingMode() & (~osg::CullSettings::SMALL_FEATURE_CULLING));
You can incorporate some logic into bounds computation to return valid bound when camera is far from earth surface, or disable small feature culling (or just reduce it's threshold) Cheers. 06.10.2012, 09:16, "Preet" <[email protected]>: > On Sat, Oct 6, 2012 at 1:02 AM, Preet <[email protected]> wrote: > >> Sergey's suggestion (invalidating the geometry's bounds with a custom >> compute bounds callback) sort of worked, but led into another issue. >> If I zoom out far enough, the Earth surface geometry disappears. >> Specifically, if the camera is pointing at the center of the Earth, >> the Earth geometry disappears when the camera eye is further than >> ~5.13E6m from the surface of the Earth. Changing the near and far >> planes don't have any effect here. >> >> However, if I disable culling I don't have this problem (but disabling >> culling kills the framerate): >> myCam->setCullingMode(osg::CullSettings::DO_NOT_COMPUTE_NEAR_FAR); > > Sorry, typo above, I meant to write: > myCam->setCullingMode(osg::CullSettings::NO_CULLING); > >> So right now I'm: >> >> * Setting the near and far plane manually >> (myCam->setComputeNearFarMode is set to DO_NOT_COMPUTE) whenever the >> camera is updated to ensure my desired view volume is correct >> * Setting the Earth surface geometry compute bounds callback to disabled >> >> And that works fine up until I move the camera out far enough as I >> described previously. Something happens at that causes the geometry to >> disappear unless I disable culling altogether. >> >> Preet > > _______________________________________________ > 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

