1.6.2 Settings for Perspective Transformation

In perspective transformation, the parameters that determine transformation function are also specified after calling sgfrm and before drawing graphics. The values of these parameters can be made effective by calling the scsprj routine, which makes the transformation function effective. The parameters for perspective transformation are independent from those of the 2-D and 3-D normalization transformations.

The main parameters are all handled by sgpget/sgpset, but the scpack routine for setting the parameters at once in also available, and this is normally used for setting the parameters.

To set the parameters for transformation function, the following coding is performed after sgfrm.


  NumRu::DCL.scseye(xeye3,yeye3,zeye3)

  NumRu::DCL.scsobj(xobj3,yobj3,zobj3)

  CALL scsprj

All other parameters are specified with sgpset as necessary.

To allocate a 2-D plane to a 3-D plane,


NumRu::DCL.scspln(ixax,iyax,sect) 

before scsprj. This will permit the graphics routines on the 2-D planes to be used on a plane in a 3-D space.