User's Manual
csCamera
99
csCamera
csCamera is an abstract base class from which all other cameras are derived. csCamera
defines the viewing volume. The viewing volume is bounded by the camera’s origin and
orientation, the far clip plane, and an aspect ratio. The aspect ratio is defined as the
image’s width divided by its height, as shown in Figure 9-2.
Figure 9-2 Aspect Ratio
The distances to the near and far clip planes are in the Z dimension in camera space. The
viewing frustum can be transformed into world space using the position and orientation
methods in csCamera.
Normally, the aspect ratio of the image matches that of the window. If the aspect ratio
does not match that of the window, the image is distorted: it is either expanded or
contracted along one or both axes, as shown in Figure 9-3.
w
Aspect Ratio =
h
Near clip plane
Far clip plane
w
h
Frustum
Viewing volume