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

  1.     Ray tracing is known for the dramatic way it depicts reflection, refrac-
  2.  tion and lighting effects.  Much of our perception depends on the reflective
  3.  properties of an object.  Ray tracing can exploit this by playing tricks on
  4.  our perception to make us see complex details that aren't really there.
  5.  
  6.     Suppose you wanted a very bumpy surface on the object.  It would be very
  7.  difficult to mathematically model lots of bumps.  We can however simulate
  8.  the way bumps look by altering the way light reflects off of the surface.
  9.  Reflection calculations depend on a vector called a 'surface normal' vector.
  10.  This is a vector which points away from the surface and is perpendicular to
  11.  it.  By artificially modifying (or perturbing) this normal vector you can
  12.  simulate bumps.
  13.  
  14.     The 'normal {...}' statement is the part of a texture which defines the
  15.  pattern of normal perturbations to be applied to an object.  Like the pig-
  16.  ment statement, you can omit the surrounding texture block to save typing.
  17.  Do not forget however that there is a texture implied.  For example:
  18.        this...                        can be shortened to this...
  19.           object {                       object {
  20.              My_Object                      My_Object
  21.              texture {                      pigment {
  22.                 pigment {                      color Purple
  23.                    color Purple             }
  24.                 }                           normal { bumps 0.3 }
  25.                 normal { bumps 0.3 }     }
  26.              }
  27.           }
  28.  
  29.     NOTE: Attaching a normal pattern does not really modify the surface.  It
  30.  only affects the way light reflects or refracts at the surface so that it
  31.  looks bumpy.
  32.  
  33.     The most complete form for defining a normal is as follows:
  34.        normal {
  35.           NORMAL_IDENTIFIER
  36.           NORMAL_PATTERN_TYPE
  37.           NORMAL_MODIFIERS
  38.           TRANSFORMATIONS...
  39.        }
  40.  
  41.     Each of the items in a normal are optional but if they are present, they
  42.  should be in the order shown above to insure that the results are as expec-
  43.  ted.  Any items after the NORMAL_IDENTIFIER modify or override settings gi-
  44.  ven in the IDENTIFIER.  If no identifier is specified then the items modify
  45.  the normal values in the current default texture.  TRANSFORMATIONs are tran-
  46.  slate, rotate and scale statements.  They apply only to the normal and not
  47.  to other parts of the texture.  They should be specified last.
  48.