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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.