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

  1.     When light passes through a surface either into or out of a dense medium,
  2.  the path of the ray of light is bent.  Such bending is called refracyion.
  3.  Normally transparent or semi-transparent surfaces in POV-Ray do not refract
  4.  light.  Adding 'refraction 1.0' to the finish statement turns on refraction.
  5.  
  6.     NOTE: It is recommended that you only use 'refraction 0' or 'refraction
  7.  1'.  Values in between will darken the refracted light in ways that do not
  8.  correspond to any physical property.  Many POV-Ray scenes were created with
  9.  intermediate refraction values before this 'bug' was discovered so the 'fea-
  10.  ture' has been maintained.  A more appropriate way to reduce the brightness
  11.  of refracted light is to change the 'filter' value in the colors specified
  12.  in the pigment statement.  Also, 'refraction' does not cause the object to
  13.  be transparent.  Transparency is only occurs if there is a non-zero 'filter'
  14.  value in the color.
  15.  
  16.     The amount of bending or refracting of light depends upon the density of
  17.  the material.  Air, water, crystal, diamonds all have different density and
  18.  thus refract differently.  The 'index of refraction' or 'ior' value is used
  19.  by scientists to describe the relative density of substances.  The 'ior'
  20.  keyword is used in POV-Ray to specify the value.  For example:
  21.        texture {
  22.           pigment { White filter 0.9 }
  23.           finish {
  24.              refraction 1
  25.              ior 1.5
  26.           }
  27.        }
  28.  
  29.     The default ior value of 1.0 will give no refraction.  The index of re-
  30.  fraction for air is 1.0, water is 1.33, glass is 1.5, and diamond is 2.4.
  31.  The file IOR.INC predefines several useful values for ior.
  32.  
  33.     NOTE: If a texture has a filter component and no value for refraction
  34.  and ior are supplied, the renderer will simply transmit the ray through the
  35.  surface with no bending.  In layered textures, the refraction and ior key-
  36.  words MUST be in the last texture, otherwise they will not take effect.
  37.