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

  1.  
  2. <H1><A ID="SECTION00450000000000000000">
  3. The Ray Tree</A>
  4. </H1>
  5.  
  6. <P>
  7. When ray tracing a scene, reflected or transmitted rays may strike
  8. other reflective or transparent objects.  Further reflected or
  9. transmitted rays will be spawned, and so on.  Taken together, such
  10. a family of rays is termed the <#202#><EM>ray tree</EM><#202#>.  Care must be taken
  11. to control the depth of this tree:  If it is allowed to grow too deeply,
  12. one may spend a great deal of time computing rays that contribute little
  13. to the final picture; if it is not allowed to grow far enough, this
  14. premature tree pruning may be evident in the image.
  15.  
  16. <P>
  17. <#203#><#1791#><EM>Rayshade</EM><#1791#><#203#> provides two complementary methods for controlling the depth
  18. of the ray tree.  One method sets an absolute maximum for the tree.  The
  19. other allows one to adaptively prune a tree as it grows so that ``unimportant''
  20. rays are not spawned.
  21.  
  22. <P>
  23. <DL>
  24. <DT><STRONG><#4635#><#4635#></STRONG></DT>
  25. <DD><#1194#><TT>maxdepth</TT><#1194#> <#1195#><EM>level</EM><#1195#> 
  26. <BR>    Do not spawn rays deeper than those at the given <#207#><EM>level</EM><#207#>.
  27. </DD>
  28. </DL>Rays from the eye are of depth zero.  The default value for
  29. <#209#><EM>level</EM><#209#> is 15.
  30. This depth may also be set from the command line through the <#210#><TT>-D</TT><#210#> option.
  31.  
  32. <P>
  33. <DL>
  34. <DT><STRONG><#4636#><#4636#></STRONG></DT>
  35. <DD><#1198#><TT>cutoff</TT><#1198#> <#1199#><EM>threshold</EM><#1199#> 
  36. <BR>    Do not spawn rays whose contribution to the final color of
  37.     the eye ray is less than <#214#><EM>threshold</EM><#214#> for each color channel.
  38.     Threshold may be given as a single floating-point value,
  39.     or as a red-green-blue triple.
  40. </DD>
  41. </DL>The default value is 0.002.  This threshold may also be set from
  42. the command line through the <#216#><TT>-T</TT><#216#> option.
  43.