Click or drag to resize
SbViewVolumeStereoAbsoluteAdjustments Property
Specifies that stereo adjustments are absolute. false by default.

Namespace: OIV.Inventor
Assembly: OIV.Inventor.SbLinear (in OIV.Inventor.SbLinear.dll) Version: 2024.1.1.Release.7989217834dd2b99155f267b6c8c70f9feacdedd
Syntax
public bool StereoAbsoluteAdjustments { get; set; }

Property Value

Type: Boolean
true if stereo adjustments are absolute, false otherwise.
Remarks

Stereo offset is the distance of each eye from the camera position. The right eye is moved plus offset and the left eye is moved minus offset.

Stereo balance sets the position (distance from the eye) of the zero parallax plane.

The non-absolute mode allows the stereo settings to be valid over a range of different view volume settings. If you chose absolute mode, you are responsible for modifying the stereo settings (if necessary) when the view volume changes.

When sets to true, stereo offset and balance are used as follows for the right eye view:

StereoCameraOffset = StereoAdjustment;
FrustumAsymmetry   = BalanceAdjustment;

glTranslated (-StereoCameraOffset, 0, 0);
glFrustum (FrustumLeft + FrustumAsymmetry, FrustumRight + FrustumAsymmetry, 
           FrustumBottom, FrustumTop, NearClipDistance, FarClipDistance);
The left eye view is symmetric.

When sets to false, stereo offset and balance are used as follows for the right eye view:

Xrange is right minus left (i.e., first two arguments of glFrustum) and multiply that difference by the ratio of the distance to the desired plane of zero parallax to the near clipping plane distance.

StereoCameraOffset   = Xrange * 0.035 * getStereoAdjustment();
FrustumAsymmetry     = -StereoCameraOffset * getBalanceAdjustment();
ZeroParallaxDistance = (NearClipDistance + FarClipDistance)/0.5;

FrustumAsymmetry *= NearClipDistance / ZeroParallaxDistance;

glTranslated (-StereoCameraOffset, 0, 0);
glFrustum (FrustumLeft + FrustumAsymmetry, FrustumRight + FrustumAsymmetry, 
           FrustumBottom, FrustumTop, NearClipDistance, FarClipDistance);
The left eye view is symmetric.
See Also