Away3D includes a number of classes that can be used to change the way the scene is viewed and how the camera interacts with the scene.
The lens classes ZoomFocusLens
, PerspectiveLens
, SphericalLens
, and OrthogonalLens
can be used to provide a traditional view of a scene, a wide-angled view, or a view in which objects don't diminish in size as their distance to the camera increases.
The HoverCamera3D
, SpringCam
, and TargetCamera3D
classes provide a convenient way to track moving 3D objects, and also to view them from a variety of different angles.
We also looked at the various properties of a camera, like fov
, zoom
, and focus
, which can be modified to increase or restrict the view of the scene that a camera has.
In the next chapter, we will take a look at how the mouse can be used to interact with the scene, which also provides an example where it is necessary to use the PerspectiveLens
class.