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

  1.     POV-Ray creates a default texture when it begins processing.  You may
  2.  change those defaults as described below.  Every time you specify a 'texture
  3.  {...}' statement, POV-Ray creates a copy of the default texture.  Anything
  4.  items you put in the texture statement override the default settings.  If
  5.  you attach a pigment, normal or finish to an object without any texture sta-
  6.  te ment then POV-Ray checks to see if a texture has already been attached.
  7.  If it has a texture then the pigment, normal or finish will modify that ex-
  8.  isting texture.  If no texture has yet been attached to the object then the
  9.  default texture is copied and the pigment, normal or finish will modify that
  10.  texture.
  11.  
  12.     You may change the default texture, pigment, normal or finish using the
  13.  language directive '#default {...}' as follows:
  14.        #default {
  15.           texture {
  16.              pigment {...}
  17.              normal  {...}
  18.              finish  {...}
  19.           }
  20.        }
  21.  or you may change just part of it like this:
  22.     #default {
  23.        pigment {...}
  24.     }
  25.  
  26.     This still changes the pigment of the default texture.  At any time,
  27.  there is only one default texture made from the default pigment, normal and
  28.  finish.  The example above does not make a separate default for pigments
  29.  alone.
  30.  
  31.     NOTE: Special textures tiles and material_map may not be used as
  32.  defaults.
  33.  
  34.     You may change the defaults several times throughout a scene as you wish.
  35.  Subsequent #default statements begin with the defaults that were in effect
  36.  at the time.  If you wish to reset to the original POV-Ray defaults then you
  37.  should first save them as follows at top of file:
  38.        #declare Original_Default = texture { }
  39.  later after changing defaults you may restore it with...
  40.        #default { texture { Original_Default } }
  41.  
  42.     If you do not specify a texture for an object then the default texture is
  43.  attached when the object appears in the scene.  It is not attached when an
  44.  object is declared.  For example:
  45.        #declare My_Object=
  46.           sphere { <0, 0, 0>, 1}       // Default not applied
  47.           object { My_Object }         // Default added here
  48.  
  49.     You may force a default texture to be added by using an empty texture
  50.  statement as follows:
  51.        #declare My_Thing=
  52.           sphere {
  53.              <0, 0, 0>, 1
  54.              texture { }       // Default texture applied
  55.           }
  56.