User`s guide

10 Functions — Alphabetical List
10-120
Examples
Define and Apply Stereoscopic Vision Settings
Create a virtual world.
w = vrworld('octavia_scene');
open(w);
c = vr.canvas(w);
Specify stereoscopic vision settings.
s3d = vr.utils.stereo3d.ANAGLYPH_RED_CYAN;
s3d.CameraOffset = 0.05;
s3d.CameraAngle = pi/128;
Modify the red component of filter for the left camera.
s3d.LeftCameraFilter(1:3) = s3d.LeftCameraFilter(1:3)...
+ [0.1 -0.05 -0.05];
Apply stereoscopic vision settings of vr.utils.stereo3d object s3d to vr.canvas
object c.
set(c,'Stereo3D',s3d);
“View a Virtual World in Stereoscopic Vision”
See Also
vr.canvas class | vrfigure class
Introduced in R2015a