O'Reilly logo

3D Programming for Windows® by Charles Petzold

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required