The camera in Papervision3D represents a virtual point from which we view our scene. Because the Camera3D
class inherits from DisplayObject3D
, cameras have properties such as x, y
, and z
, and you can rotate them just like any other do3D.
The frustum is the 3D region that is rendered. Because it is cut off by the near and the far plane, which are imaginary planes perpendicular to the camera, the frustum is shaped like a truncated pyramid.
Zoom, focus, and field of view should be set while keeping in mind that they are inter-related. Focus is the equivalent of the near
property and is defined by the distance from the camera to the near plane. Field of view is the vertical angle defined by the height of the viewport and the focus. The distance of the far plane to the camera can be set with the far
property.
Papervision3D offers four types of camera—target, free, debug, and spring. The first two are the most commonly used types. The target camera is looking at a target, whereas the free...