Click or drag to resize
SoCameraSetStereoAbsoluteAdjustments Method

Note: This API is now obsolete.

Specifies if stereo adjustments are absolute.

Namespace: OIV.Inventor.Nodes
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 10.12.3.0 (10.12.3.0)
Syntax
[EditorBrowsableAttribute(EditorBrowsableState.Never)]
[ObsoleteAttribute("Obsolete since Open Inventor 9700. Use SoStereoCamera and absoluteAdjustments field instead.")]
public virtual void SetStereoAbsoluteAdjustments(
	bool absolute
)

Parameters

absolute
Type: SystemBoolean
Remarks

false by default.

The default 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 absolute mode is true, stereo offset and balance are used as shown in the following pseudo-code for the right eye view:

StereoCameraOffset = getStereoAdjustment();
FrustumAsymmetry   = getBalanceAdjustment();

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

When absolute mode is false, stereo offset and balance are used as shown in the following pseudo-code 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.

Not virtual pure for compatiblity reasons.

Caution note Caution

Obsolete since Open Inventor 9700. Use OIV.Inventor.Nodes.SoStereoCamera and absoluteAdjustments field instead.

See Also