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