vr.utils.stereo3d class
Superclasses:
Stereoscopic vision settings forvr.canvas
andvr.figure
objects
描述
Tip
Use thevr.utils.stereo3d
class for advanced tuning of stereoscopic viewer and canvas properties. You can select and use basic stereoscopic settings from the Viewer menu.
Specifies these stereoscopic vision properties:
Active, anaglyph, or no stereoscopic vision
Camera offset
Camera angle
Color filter for the left and right cameras
Horizontal image translation (HIT)
Use avr.utils.stereo3d
object to set theStereo3D
,Stereo3DCameraOffset
, andStereo3DHIT
stereoscopic vision properties ofvrfigure
andvr.canvas
objects. Specifying avr.utils.stereo3d
object to set onevrfigure
andvr.canvas
property also sets the other stereoscopic vision properties. Using avr.utils.stereo3d
对象还指定了颜色过滤器for the left and right cameras. You cannot set camera color filters directly using thevrfigure/set
method orvr.canvas
properties.
Construction
disables stereoscopic vision.stereoVision
= vr.utils.stereo3d.OFF
enables active stereoscopic vision.stereoVision
= vr.utils.stereo3d.ACTIVE
enables red-cyan anaglyph stereoscopic vision.stereoVision
= vr.utils.stereo3d.ANAGLYPH
enables red-cyan anaglyph stereoscopic vision.stereoVision
= vr.utils.stereo3d.RED_CYAN
enables green-magenta anaglyph stereoscopic vision.stereoVision
= vr.utils.stereo3d.ANAGLYPH_GREEN_MAGENTA
enables red-green anaglyph stereoscopic vision.stereoVision
= vr.utils.stereo3d.ANAGLYPH_RED_GREEN
enables red-blue anaglyph stereoscopic vision.stereoVision
= vr.utils.stereo3d.ANAGLYPH_RED_BLUE
enables yellow-blue anaglyph stereoscopic vision.stereoVision
= vr.utils.stereo3d.ANAGLYPH_YELLOW_BLUE