Commit 2db28457 by Sebastian Eichelbaum

Fixing camera clipping plane issue temporarily for the…

Fixing camera clipping plane issue temporarily for the IllustrativeConnectivityVisualization toolbox by Andre Reichenbach. This needs a proper fix.
parent 73c4219c
...@@ -44,8 +44,8 @@ WGECamera::WGECamera( int width, int height, ProjectionMode projectionMode ) ...@@ -44,8 +44,8 @@ WGECamera::WGECamera( int width, int height, ProjectionMode projectionMode )
// near-far computation is done using the bounding volumes // near-far computation is done using the bounding volumes
setComputeNearFarMode( setComputeNearFarMode(
osg::CullSettings::COMPUTE_NEAR_FAR_USING_BOUNDING_VOLUMES // osg::CullSettings::COMPUTE_NEAR_FAR_USING_BOUNDING_VOLUMES
// osg::CullSettings::DO_NOT_COMPUTE_NEAR_FAR osg::CullSettings::DO_NOT_COMPUTE_NEAR_FAR
// osg::CullSettings::COMPUTE_NEAR_FAR_USING_PRIMITIVES // osg::CullSettings::COMPUTE_NEAR_FAR_USING_PRIMITIVES
); );
reset(); reset();
...@@ -64,8 +64,8 @@ WGECamera::WGECamera() ...@@ -64,8 +64,8 @@ WGECamera::WGECamera()
// near-far computation is done using the bounding volumes // near-far computation is done using the bounding volumes
setComputeNearFarMode( setComputeNearFarMode(
osg::CullSettings::COMPUTE_NEAR_FAR_USING_BOUNDING_VOLUMES // osg::CullSettings::COMPUTE_NEAR_FAR_USING_BOUNDING_VOLUMES
// osg::CullSettings::DO_NOT_COMPUTE_NEAR_FAR osg::CullSettings::DO_NOT_COMPUTE_NEAR_FAR
// osg::CullSettings::COMPUTE_NEAR_FAR_USING_PRIMITIVES // osg::CullSettings::COMPUTE_NEAR_FAR_USING_PRIMITIVES
); );
} }
...@@ -91,7 +91,7 @@ void WGECamera::reset() ...@@ -91,7 +91,7 @@ void WGECamera::reset()
{ {
case ORTHOGRAPHIC: case ORTHOGRAPHIC:
setProjectionMatrixAsOrtho( -120.0 * getViewport()->aspectRatio(), 120.0 * getViewport()->aspectRatio(), setProjectionMatrixAsOrtho( -120.0 * getViewport()->aspectRatio(), 120.0 * getViewport()->aspectRatio(),
-120.0, 120.0, -1000.0, +1000.0 ); -120.0, 120.0, -1000.0, +20000.0 );
setProjectionResizePolicy( HORIZONTAL ); setProjectionResizePolicy( HORIZONTAL );
break; break;
case PERSPECTIVE: case PERSPECTIVE:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment