Vizard 7 » Command Index » Vizard objects » window » <window>.stereo
7.6

<window>.stereo

Set stereo mode

<window>.stereo(  
mode  
)  
mode
Can be a combination of one of the following stereo modes and any of the following display modes:

Stereo Modes

viz.STEREO_HORZ

Left/Right eyes are rendered side by side

viz.STEREO_VERT

Left eye is rendered on top of the right eye.

viz.STEREO_RIGHT

Only render the right eye

viz.STEREO_LEFT

Only render the left eye

viz.ANAGLYPHIC

Anaglyphic stereo (i.e Red and blue 3d glasses)

viz.QUAD_BUFFER

Use OpenGL Quad Buffering. This flag must also be specified when viz.go() is called. You need a graphics card that supports quad buffering.

viz.INTERLACE_VERT

Vertical Interlace. Each eye is rendered on every other vertical line.

viz.INTERLACE_HORZ

Horizontal Interlace. Each eye is rendered on every other horizontal line.

viz.CHECKERBOARD

Checkerboard Interlace. Each eye is rendered on every other pixel.

viz.STEREO_3DTV_SIDE_BY_SIDE

This flag is an alias for (viz.STEREO_HORZ | viz.HALF_RESOLUTION).

viz.STEREO_3DTV_TOP_AND_BOTTOM

This flag is an alias for (viz.STEREO_VERT | viz.HALF_RESOLUTION).



Display Modes

viz.HMD

Specifies that the user is wearing a Head Mounted Display. When used in conjunction with a stereo mode, this will cause both eyes to use symmetric view frustums.

viz.HALF_RESOLUTION

Used in conjunction with either of the split stereo modes (viz.STEREO_HORZ/viz.STEREO_VERT). This flag specifies that each eye will contain half the resolution of the overall display, which will be used when automatically computing the aspect ratio. This is typically used with HDMI based stereo displays (e.g. 3D TVs), where each eye is stretched to fill the entire display.

Remarks

This command will set the stereo mode of the window. To use quad buffered stereo, you must specify the viz.QUAD_BUFFER flag when you call viz.go().

Return Value

None

Example

#Start vizard with vertical split stereo
viz.go(viz.STEREO_HORZ)

#Change stereo to Anaglyphic
viz.MainWindow.stereo(viz.ANAGLYPHIC)

See also

<window>.fusionDistance
<window>.ipd
<window>.screenDistance
<window>.stereoOverlap