home *** CD-ROM | disk | FTP | other *** search
/ Crawly Crypt Collection 1 / crawlyvol1.bin / tt / raysh402 / guide.tex / node33_mn.html < prev    next >
Text File  |  1992-02-09  |  1KB  |  42 lines

  1.  
  2. <H1><A ID="SECTION00900000000000000000">
  3. Texturing</A>
  4. </H1>
  5.  
  6. <P>
  7. Textures are used to modify the appearance of an object through the
  8. use of procedural functions.  A texture may modify any surface characteristic,
  9. such as diffuse color, reflectivity, or transparency, or it may 
  10. modify the surface normal (``bump mapping'') in order to give the
  11. appearance of a rough surface.
  12.  
  13. <P>
  14. Any number of textures may be associated with an object.  If more than
  15. one texture is specified, they are applied in the order given.  This allows
  16. one to compose texturing functions and create, for example
  17. a tiled marble ground plane using the <#661#><EM>checker</EM><#661#> and <#662#><EM>marble</EM><#662#>
  18. textures.
  19.  
  20. <P>
  21. Textures are associated with objects by following the object specification
  22. by a number of lines of the form:
  23.  
  24. <P>
  25. <DIV class="CENTER">
  26. <#664#><TT>texture</TT><#664#> <#665#><EM>name</EM><#665#> ;SPMlt;<#666#><EM>Texturing Arguments</EM><#666#>;SPMgt; [<#667#><EM>Transformations</EM><#667#>]
  27.  
  28. </DIV>
  29.  
  30. <P>
  31. Transformations may be applied to the texture in order to, for example,
  32. shrink or grow feature size, change the orientation of features, and
  33. change the position of features.
  34.  
  35. <P>
  36. Several of the texturing functions take the name of a colormap as an
  37. argument.  A colormap is 256-line ASCII file, with each line containing
  38. three space-separated values ranging from 0 to 255.  Each line gives
  39. the red, green, and blue values for a single entry in the colormap.
  40.  
  41. <P>
  42.