overview | basic concepts | gops | gprims | animation | rendering | math | index

geometric operations


blocking constructs | transformations | cameras | attributes | light sources

Cameras

The camera gop specifies a world-to-camera-space transformation. Camera transformations are special in that they do not affect the transformation matrix in the current graphics state. However, cameras are transformed by the transformation matrix in the current graphics state - this allows cameras to be components of hierarchical models.

(camera name type paramlist)

name is a string and should specify a unique, logical name for the camera (from other cameras in the world). This name is used to refer to the camera for rendering.

There are two standard, predefined camera types: "perspective" and "orthographic." Parameter list variables for the two camera types are shown in the tables below:

"perspective" camera parameter list options
nametypedefaultdescription
fromvec3#<0 0 1>position
tovec3#<0 0 0>center of interest
tiltreal0tilt (in degrees)
fovreal90field of view (in degrees)

"orthographic" camera parameter list options
nametypedefaultdescription
fromvec3#<0 0 1>position
tovec3#<0 0 0>center of interest
tiltreal0tilt (in degrees)


AL: The Animation Language is Copyright © 1995,1996, Stephen F. May

Last updated: 11/20/95 / Steve May ( smay@cgrg.ohio-state.edu )
Any comments or suggestions appreciated.