home *** CD-ROM | disk | FTP | other *** search
/ Inside Multimedia 1995 December / IMM1295.ISO / share / grafik / povhelp / layered.hlp < prev    next >
Text File  |  1994-07-06  |  2KB  |  51 lines

  1.     It is possible to create a variety of special effects using layered tex-
  2.  tures.  A layered texture is one where several textures that are partially
  3.  transparent are laid one on top of the other to create a more complex tex-
  4.  ture.  The different texture layers show through the transparent portions to
  5.  create the appearance of one texture that is a combination of several textu-
  6.  res.
  7.  
  8.     You create layered textures by listing two or more textures one right af-
  9.  ter the other.  The last texture listed will be the top layer, the first one
  10.  listed will be the bottom layer.  All textures in a layered texture other
  11.  than the bottom layer should have some transparency.  For example:
  12.        object {
  13.           My_Object
  14.           texture { T1 }        // the bottom layer
  15.           texture { T2 }        // a semi-transparent layer
  16.           texture { T3 }        // the top semi-transparent layer
  17.        }
  18.  
  19.     In this example T2 shows only where T3 is transparent and T1 shows only
  20.  where T2 and T3 are transparent.
  21.  
  22.     The color of underlying layers is filtered by upper layers but the re-
  23.  sults do not look exactly like a series of transparent surfaces.  If you had
  24.  a stack of surfaces with the textures applied to each, the light would be
  25.  filtered twice: once on the way in as the lower layers are illuminated by
  26.  filtered light and once on the way out.  Layered textures do not filter the
  27.  illumination on the way in.  Other parts of the lighting calculations work
  28.  differently as well.  The result look great and allow for fantastic looking
  29.  textures but they are simply different from multiple surfaces.  See STONES
  30.  .INC in the standard include files for some magnificent layered textures.
  31.  
  32.     NOTE: Layered textures must use the "texture{...}" wrapped around any
  33.  pigment, normal or finish statements.  Do not use multiple pigment, normal
  34.  or finish statements without putting them inside the texture statement.
  35.  
  36.     Layered textures may be declared.  For example:
  37.        #declare Layered_Examp =
  38.           texture { T1 }
  39.           texture { T2 }
  40.           texture { T3 }
  41.  
  42.     Then invoke it as follows:
  43.        object {
  44.           My_Object
  45.           texture {
  46.              Layer_Examp
  47.              // Any pigment, normal or finish here
  48.              // modifies the bottom layer only.
  49.           }
  50.        }
  51.