Click or drag to resize
SoWinViewerSetStereoViewing Method

Turns stereo viewing on/off on the viewer (default off).

Namespace: OIV.Inventor.Win.Viewers
Assembly: OIV.Inventor.Win (in OIV.Inventor.Win.dll) Version: 2024.2.2.0 (10.16.2.0)
Syntax
public void SetStereoViewing(
	bool onOrOff
)

Parameters

onOrOff
Type: SystemBoolean
Remarks

To insure backward compatibility with older Open Inventor versions, and specifically with the old stereo model, this method still applies to stereo. Like the current stereo model, the old model makes use of an offset to represent the eye separation. However, instead of adapting the view volume, the cameras were rotated toward the default point of focus, creating the stereo viewing angle.

If no type of stereo (from the current stereo model) is set on the viewer and OIV.Inventor.Win.Viewers.SoWinViewer.SetStereoViewing(System.Boolean) is called, then the old stereo model is in effect. Note that setStereoViewing is the method that actually sets OpenGL in stereo mode. If the old stereo model is in effect, then the offset passed to OIV.Inventor.Win.Viewers.SoWinViewer.SetStereoOffset(System.Single) is no longer a factor but the actual value used to separate the cameras. In that case, the default value for the offset is 3.

When in stereo mode, which may not work on all machines, the scene is rendered twice (in the left and right buffers) with an offset between the two views to simulate stereo viewing. Stereo glasses may be needed to see the effect. Old style stereo viewing is only possible with a graphics board that has support for stereo.

See OIV.Inventor.Components.Stereo.SoStereoViewer for information on the current stereo model.

See Also