Class

MDLStereoscopicCamera

A point of view for rendering a stereoscopic display of a 3D scene.

Declaration

@interface MDLStereoscopicCamera : MDLCamera

Overview

This class provides properties related to rendering the scene from two slightly different perspectives to simulate binocular vision. For general and optical properties of a camera, see the superclass MDLCamera.

Topics

Modeling Stereoscopic Imaging

interPupillaryDistance

The distance, in millimeters, between the stereoscopic camera’s two viewpoints.

overlap

The amount, as a fraction of image width, by which the images from the camera’s two viewpoints overlap.

leftVergence

The angle, in degrees, at which the camera’s left viewpoint faces toward a central focal point.

rightVergence

The angle, in degrees, at which the camera’s right viewpoint faces toward a central focal point.

Generating View and Projection Matrices

leftViewMatrix

The transformation matrix that determines the position and orientation of the camera’s left viewpoint relative to a scene.

leftProjectionMatrix

The transformation matrix that determines the extent of a scene visible to the camera’s left viewpoint.

rightViewMatrix

The transformation matrix that determines the position and orientation of the camera’s right viewpoint relative to a scene.

rightProjectionMatrix

The transformation matrix that determines the extent of a scene visible to the camera’s right viewpoint.

Relationships

Inherits From

See Also

Cameras

MDLCamera

A point of view for rendering a 3D scene, along with a set of parameters describing an intended appearance for rendering.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software