next up previous contents index
Next: Satellite Example Scene Up: Viewing the Scene: The Previous: Components of a Camera

Routines for Creating a Camera

There are three different routines for creating a camera:

  object new_camera(OpticsModel *anOptics, RayTracer *anEngine,
                    PictureSampler *aSampler, Storage *aStorage,
                    PostProcessor *aProcess);
 

The new_camera routine requires all of the components of the camera to be specified.

  object create_default_camera(int antialiasing, 
                               double field_of_view);
 

The create_default_camera routine creates a PictureSampler of type Antialiaser. It requires the level of antialising. It uses the PinholeOptics Optics Model and requires the field of view. It sets the aspect ratio to 1. It uses the StandardRayTracer, ColourStorage and no Postprocessing.

  object create_default_camera(int x_size, int y_size, 
              int antialiasing, double field_of_view);

This version of create_default_camera allows the picture size to be specified. If the picture size is also defined in the key file this routine will override the keyfile.



Sophie Day
Fri Feb 20 15:47:19 NZDT 1998