gwaldron/osgearth — pull request #461 by rolandhill (2014-02-06 00:43:28+00:00)
Title: Modify OverlayDecorator for use with cameras that go under ground.

Glenn,
This addresses issue #431, znear > zfar from OverlayDecorator when the camera is underground. Basically, it looks like OverlayDecorator::cullTerrainAndCalculateRTTParams has been written assuming that the osgEarth Manipulator is being used, ie above ground and camera vertical. The attached extends this to allow for the camera to be in any orientation.
I had to comment out the call to optimizeProjectionMatrix(). This function is marked as experimental and states that it assumes no roll in the camera, plus, I don't really understand what it does very well. Results still look good without it.
Cheers,
Roland