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

  1.     The color or pattern of colors for an object is defined by the pigment
  2.  statement.  A pigment statement is part of a texture specification.  However
  3.  it can be tedious to type 'texture{pigment{...}}' just to add a color to an
  4.  object.  Therefore you may attach a pigment directly to an object without
  5.  explicitly specifying that it as part of a texture.  For example:
  6.        this...                          can be shortened to this...
  7.           object {                         object {
  8.              My_Object                        My_Object
  9.              texture {                        pigment {
  10.                 pigment {                        color Purple
  11.                    color Purple               }
  12.                 }                          }
  13.              }
  14.           }
  15.  
  16.     The color you define is the way you want it to look if fully illuminated.
  17.  You pick the basic color inherent in the object and POV-Ray brightens or
  18.  darkens it depending on the lighting in the scene.  The parameter is called
  19.  'pigment' because we are defining the basic color the object actually IS
  20.  rather than how it LOOKS.
  21.  
  22.     The most complete form for defining a pigment is as follows:
  23.           pigment {
  24.              PIGMENT_IDENTIFIER
  25.              PATTERN_TYPE
  26.              PIGMENT_MODIFIERS
  27.              TRANSFORMATIONS...
  28.           }
  29.  
  30.     Each of the items in a pigment are optional but if they are present, they
  31.  should be in the order shown above to insure that the results are as expec-
  32.  ted.  Any items after the PIGMENT_IDENTIFIER modify or override settings gi-
  33.  ven in the IDENTIFIER.  If no identifier is specified then the items modify
  34.  the pigment values in the current default texture.  TRANSFORMATIONs are
  35.  translate, rotate and scale statements.  They apply only to the pigment and
  36.  not to other parts of the texture.  They should be specified last.
  37.  
  38.     The various PATTERN_TYPEs fall into roughly 4 categories.  Each category
  39.  is discussed below.  They are solid color, color list patterns, color mapped
  40.  patterns and image maps.
  41.