Commit 2db28457 authored by Sebastian Eichelbaum's avatar 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 )
// near-far computation is done using the bounding volumes
setComputeNearFarMode(
osg::CullSettings::COMPUTE_NEAR_FAR_USING_BOUNDING_VOLUMES
// osg::CullSettings::DO_NOT_COMPUTE_NEAR_FAR
// osg::CullSettings::COMPUTE_NEAR_FAR_USING_BOUNDING_VOLUMES
osg::CullSettings::DO_NOT_COMPUTE_NEAR_FAR
// osg::CullSettings::COMPUTE_NEAR_FAR_USING_PRIMITIVES
);
reset();
......@@ -64,8 +64,8 @@ WGECamera::WGECamera()
// near-far computation is done using the bounding volumes
setComputeNearFarMode(
osg::CullSettings::COMPUTE_NEAR_FAR_USING_BOUNDING_VOLUMES
// osg::CullSettings::DO_NOT_COMPUTE_NEAR_FAR
// osg::CullSettings::COMPUTE_NEAR_FAR_USING_BOUNDING_VOLUMES
osg::CullSettings::DO_NOT_COMPUTE_NEAR_FAR
// osg::CullSettings::COMPUTE_NEAR_FAR_USING_PRIMITIVES
);
}
......@@ -91,7 +91,7 @@ void WGECamera::reset()
{
case ORTHOGRAPHIC:
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 );
break;
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