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

  1.     Vectors are used not only as a notation for a point in space but are used
  2.  in the transformations scale, rotate, and translate.  Scale sizes a texture
  3.  or object.  Translate moves a texture or object.  And rotate turns a texture
  4.  or object.
  5.  
  6.     When an object is transformed, all textures attached to the object at
  7.  that time are transformed as well.  This means that if you have a translate,
  8.  rotate, or scale in an object BEFORE a texture, the texture will not be
  9.  transformed.  If the scale, translate, or rotate is AFTER the texture then
  10.  the texture will be transformed with the object.  If the transformation is
  11.  INSIDE the 'texture { }' statement then ONLY THE TEXTURE is affected.  The
  12.  shape remains the same.  For example:
  13.        sphere {
  14.           <0, 0, 0>, 1
  15.           texture { White_Marble }      // Identifier from TEXTURES.INC
  16.           scale 3                       // Affects both shape and texture
  17.        }
  18.        sphere {
  19.           <0, 0, 0>, 1
  20.           scale 3                       // Affects the shape only
  21.           texture { White_Marble }
  22.        }
  23.        sphere {
  24.           <0, 0, 0>, 1
  25.           texture {
  26.              White_Marble
  27.              scale 3                    // Affects the texture only
  28.           }
  29.        }
  30.  
  31.     Transformations may also be independently applied to pigment patterns and
  32.  surface normal (bump) patterns.
  33.  
  34.     NOTE: Scaling a normal pattern affects only the width and spacing.  It
  35.  does not affect the height or depth.  For example:
  36.        box {
  37.           <0, 0, 0>, <1, 1, 1>
  38.           texture {
  39.              pigment {
  40.                 checker color Red color White
  41.                 scale 0.25           // Affects only the color pattern
  42.              }
  43.              normal {
  44.                 bumps 0.3            // Specifies apparent height of bumps
  45.                 scale 0.2            // Scales diameter and space between
  46.              }                       // bumps; no effect on height nor color
  47.              rotate y*45             // Affects the entire texture
  48.           }                          // but not the object
  49.        }
  50.  
  51.     Because rotations are always relative to the axis and scaling is relative
  52.  to the origin, you will generally want to create an object at the origin and
  53.  scale and rotate it first.  Then you may translate it into its proper posi-
  54.  tion.  It is a common mistake to carefully position an object and then to
  55.  decide to rotate it.  Because a rotation of an object causes it to orbit the
  56.  axis, the position of the object may change so much that it orbits out of
  57.   the field of view of the camera!
  58.  
  59.     Similarly scaling after translation also moves an object unexpectedly.
  60.  If you scale after you translate, the scale will multiply the translate
  61.  amount.  For example:
  62.        translate <5, 6, 7>
  63.        scale 4
  64.  will translate to 20, 24, 28 instead of 5, 6, 7.  Be careful when transfor-
  65.  ming to get the order correct for your purposes.
  66.