Click or drag to resize
SoCameraSetBalanceAdjustment Method (Single, Boolean)

Note: This API is now obsolete.

Sets the stereo balance (the position of the zero parallax plane) and specifies whether the balance value is defined as a fraction of the camera near distance.

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 balance / balanceNearFrac fields instead.")]
public virtual void SetBalanceAdjustment(
	float adjustment,
	bool nearFrac
)

Parameters

adjustment
Type: SystemSingle
nearFrac
Type: SystemBoolean
Remarks

Note: Since the projection matrix always depends on the camera's near plane, in some cases it may be necessary to detect changes to the camera near plane and adjust by setting a new stereo balance value. Open Inventor will make these adjustments automatically if the nearFrac parameter is set to true. In this case the stereo balance value is defined as a fraction of the camera near distance.

Default balance is 1.0. The default can be set using the OIV_STEREO_BALANCE environment variable. Default nearFrac is false. The default can be set using the OIV_STEREO_BALANCE_NEAR_FRAC environment variable.

Caution note Caution

Obsolete since Open Inventor 9700. Use OIV.Inventor.Nodes.SoStereoCamera and balance / balanceNearFrac fields instead.

See Also