AutoClipPlaneHandler
This is an osgGA::GUIEventHandler that automatically adjusts the near and far clipping planes for a geocentric map.
When using geocentric maps, you can run into the problem of unsightly near-clipping when you get too close to the ground. This is a result of how the terrain engine culls tiles. The AutoClipPlaneHandler addresses this by monitoring the distance from your camera to the horizon, and automatically adjusting the far (and near) clip planes accordingly.
The AutoClipPlaneHandler is easy to install:
osgViewer::Viewer viewer;
...
viewer.addEventHandler( new AutoClipPlaneHandler() );
