Chapter 5. Cameras
In the previous chapters, we have only touched upon the use of cameras. In this chapter, we will see what cameras in 3D are and what they can do. Obviously, there is nothing like a real, physical camera in Papervision3D and it doesn't even have a visual representation on the 2D screen. The camera merely represents a virtual point from which we view the scene and the objects present in it.
The chapter will cover the following:
The camera as a
DisplayObject3DCamera settings
Camera types
Setting a camera target
First, let's briefly examine how the camera and its classes are implemented in the Papervision3D library.
Cameras inherit from DisplayObject3D
Not only primitives inherit their properties and methods from DisplayObject3D, but also the CameraObject3D class, which is the super class of Camera3D. To sum up, Camera3D inherits from CameraObject3D, which inherits from DisplayObject3D.
So what does this mean? Because each camera inherits the x, y, and z properties from DisplayObject3D...