home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 16 / CD_ASCQ_16_0994.iso / news / 2555 / povhlp / rotate.hlp < prev    next >
Encoding:
Text File  |  1994-07-07  |  2.4 KB  |  49 lines

  1.     You may change the orientation of an object or texture pattern by adding
  2.  a 'rotate' parameter.  It consists of the keyword 'rotate' followed by a
  3.  vector.  The three terms of the vector specify the number of degrees to ro-
  4.  tate about each of the x, y, and z axes.
  5.  
  6.     NOTE: The order of the rotations does matter.  Rotations occur about the
  7.  x axis first, then the y axis, then the z axis.  If you are not sure if this
  8.  is what you want then you should use multiple rotation statements to get a
  9.  correct rotation.  You should only rotate on one axis at a time.  As in:
  10.        rotate <0, 30, 0>                // 30 degrees around Y axis
  11.        rotate <-20, 0, 0>               // -20 degrees around X axis
  12.        rotate <0, 0, 10>                // 10 degrees around Z axis
  13.  
  14.     Rotation is always performed relative to the axis.  Thus if an object is
  15.  some distance from the axis of rotation, its will not only rotate but it
  16.  will 'orbit' about the axis as though it was swinging around on an invisible
  17.  string.
  18.  
  19.     To work out the rotation directions, you must perform the famous 'Compu-
  20.  ter Graphics Aerobics' exercise.  Hold up your left hand.  Point your thumb
  21.  in the positive direction of the axis of rotation.  Your fingers will curl
  22.  in the positive direction of rotation.  Similarly if you point your thumb in
  23.  the negative direction of the axis your fingers will curl in the negative
  24.  direction of rotation.  This is the famous 'left-hand coordinate system'.
  25.  
  26.                     +Y
  27.                     |    +Z _
  28.                     |    /_| |_  _
  29.                     |   _| | | |/ \
  30.                     |  | | | | |  |
  31.                     | /| | | | |  V
  32.                     |/ | | | | |
  33.        -X ----------+--|-|-|-|-|------ +X
  34.                    /|  |        \____
  35.                   / |  |          ___|
  36.                  /  |  \         /
  37.                 /   |   |       /
  38.                    -Z    |
  39.                         -Y
  40.  
  41.     In this illustration, the left hand is curling around the X axis.  The
  42.  thumb points in the positive X direction and the fingers curl over in the
  43.   positive rotation direction.
  44.  
  45.     If you want to use a right hand system, as some CAD systems such as Auto-
  46.  CAD do, the 'right' vector in the camera specification needs to be changed.
  47.  See the detailed description of the camera.  In a right handed system you
  48.  use your right hand for the 'Aerobics'.
  49.