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

  1.     When all else fails and none of the above normal pattern types meets your
  2.  needs, you can use a bump map to wrap a 2-D bitmapped bump pattern around
  3.  your 3-D objects.
  4.  
  5.     Instead of placing the color of the image on the shape like an image_map,
  6.  bump_map perturbs the surface normal based on the color of the image at that
  7.  point.  The result looks like the image has been embossed into the surface.
  8.  By default, bump_map uses the brightness of the actual color of the pixel.
  9.  Colors are converted to gray scale internally before calculating height.
  10.  Black is a low spot, white is a high spot.  The image's index values may be
  11.  used instead (see use_index) below.
  12.  
  13.     The syntax for bump_map is:
  14.        normal {
  15.           bump_map {
  16.              FILE_TYPE 'filename'
  17.              MODIFIERS...
  18.           }
  19.        }
  20.  where FILE_TYPE is one of the following keywords 'gif', 'tga', 'iff' or
  21.  'dump'.  This is followed by the name of the file in quotes.  Several op-
  22.  tional modifiers may follow the file specification.
  23.  
  24.     NOTE: Earlier versions of POV-Ray allowed some modifiers before the FILE
  25.  _TYPE but that syntax is being phased out in favor of the syntax described
  26.  here.
  27.  
  28.     Filenames specified in the bump_map statements will be searched for in
  29.  the home (current) directory first, and if not found, will then be searched
  30.  for in directories specified by any '-L' (library path) options active.
  31.  This would facilitate keeping all your bump maps files in a separate sub-
  32.  directory, and giving an '-L' option on the command line to where your li-
  33.  brary of bump maps are.
  34.  
  35.     By default, the bump is mapped onto the X-Y plane.  The bump is 'projec-
  36.  ted' onto the object as though there were a slide projector somewhere in the
  37.  -Z direction.  The bump exactly fills the square area from x,y coordinates
  38.  (0,0) to (1,1) regardless of the bump's original size in pixels.  If you
  39.  would like to change this default, you may translate, rotate or scale the
  40.  normal or texture to map it onto the object's surface as desired.
  41.  
  42.     If you would like to change this default orientation, you may translate,
  43.  rotate or scale the normal or texture to map it onto the object's surface
  44.  as desired.
  45.