Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ sphrotmatrix(3L) — IRIX 6.5.3f

Media Vault

Software Library

Restoration Projects

Artifacts Sought



SPHROTMATRIX(3L)                                              SPHROTMATRIX(3L)



NAME
     sphrotmatrix - orient spheres

C SPECIFICATION
     #include <gl/sphere.h>

     void sphrotmatrix(mat)
     Matrix mat;

PARAMETERS
     mat    the rotation matrix to specify the orientation of the sphere



DESCRIPTION
     sphrotmatrix specifies the rotation matrix sphdraw uses for displaying
     spheres with a fixed orientation when the sphere attribute, SPHORIENT,
     is TRUE.  The orientation of the sphere is applied by the Sphere Library
     before any scaling for radius or translation to the location sent to
     sphdraw.  The matrix provided must be a pure rotation matrix  or the
     results will be unpredictable. When SPHORIENT is TRUE, the Sphere
     Library assumes uniform scaling; the effects of nonuniform scaling are
     undefined.

SEE ALSO
     libsphere, sphmode, sphobj, sphdraw, sphgnpolys, sphfree

NOTE
     sphrotmatrix can be used to reduce lighting effects when rotating objects
     that contain spheres.  It can also be used on a VGX, in combination with
     the accumulation buffer, to antialias spheres. For performance, when
     SPHORIENT is TRUE, use the SPHHEMI attribute to draw only the front-
     facing half of the sphere.






















                                                                        Page 1



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