void SetFarClippingDistance( float Distance );


DistanceSpecifies the distance from the eye point to the far clipping plane. This value can be DEFAULT_CLIPPING, in this case the FitAllInfo (if provided) is used to set the clipping distance during scene navigation (in UpdateViewProjection method). If FitAllInfo is not set, the default far clipping distance is returned.


The SetFarClippingDistance specifies the far clipping plane distance from the eye point. See the OpenGLís glOrtho and glFrustrum function references for more information about near and far clipping planes.

By setting clipping discances manually using SetNearClippingDistance and SetFarClippigDistance functions ClassGL no longer computes the clipping distances automatically using scene boundary information passed by the SetFitAllInfo function. Therefore if you move around your scene you might need to call the SetNearClippingDistance and SetFarSlippingDistance functions while rendering each frame.

If far clipping distance or near clipping distance is set to DEFAULT_CLIPPING then ClassGL computes near and far clipping distances automatically using information passed by the SetFitAllInfo function. If eye-point is not pointing to the scene then ClassGL computes far clipping plane distance as your-scene-radius divided by the FarClipDistanceRatio ClassGL-parameter. If eye is looking at the scene then ClassGL computes the far clipping plane distance is calculated as distance to your scene center plus scene radius.

Important: You must also set the near clipping distance using SetNearClippingDistance function to value other than DEFAULT_CLIPPING in order to make the SetFarClippingDistance work.

See Also

SetNearClippingDistance, GetNearClippingDistance, GetFarClippingDistance, OnCreate, OnSize, SetFitAllInfo