Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

perspective(3)  —  Unix Programmer’s Manual

NAME

perspective - define a perspective projection transformation

SYNOPSIS

C
perspective(fovy, aspect, near, far)
Angle fovy;
float aspect;
Coord near, far;

FORTRAN
subroutine perspe(fovy, aspect, near, far)
integer∗2 fovy
real aspect, near, far

Pascal
procedure perspective(fovy: Angle; aspect: real; near, far: Coord);

DESCRIPTION

 
Perspective defines a projection transformation by indicating the field-of-view angle, fovy, in the y direction of the eye coordinate system, the aspect ratio which determines the field of view in the x direction, and the distance to the near and far clipping planes in the z direction.  The aspect ratio is given as a ratio of x to y.  In general, the aspect ratio given in the perspective command should match the aspect ratio of the associated viewport.  For example, aspect=2 means the viewer sees twice as far in x as in y.  If the viewport is twice as wide as it is tall, the image will be displayed without distortion.  The arguments near and far are distances from the viewer to the near and far clipping planes, and these are always positive. 

Perspective loads a matrix onto the transformation stack, overwriting whatever was there. 

SEE ALSO

ortho, window

Silicon Graphics  —  R1c

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026