The Orthographic Projection

The alternative to PerspectiveCamera is OrthographicCamera. (There's also a MatrixCamera, but it requires you to define your own pair of 4x4 matrices that define the projection, and that's a rather advanced topic awaiting us in Chapter 7.) PerspectiveCamera and OrthographicCamera both derive from ProjectionCamera, which defines the Position, LookDirection, UpDirection, NearPlaneDistance, and FarPlaneDistance properties. PerspectiveCamera defines only one public property itself, FieldOfView. OrthographicCamera also defines a single public property, Width, and gives it a default setting of 2.

The OrthographicCamera effectively defines a projection plane, the center of which is located at the Position property. The projection ...

Get 3D Programming for Windows® now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.