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

  1.  
  2. <H1><A ID="SECTION00620000000000000000">
  3. Shadows</A>
  4. </H1>
  5.  
  6. <P>
  7. In order to determine the color of a point on the surface
  8. of any object, it is necessary
  9. to determine if that point is in shadow with respect to each
  10. defined light source.  If the point is totally in shadow with respect to
  11. a light source, then the light source makes no contribution to the
  12. point's final color.
  13.  
  14. <P>
  15. This shadowing determination is made by tracing rays from the point
  16. of intersection to each light source.  These ``shadow feeler'' rays
  17. can add substantially to the overall rendering time.  This is especially
  18. true if extended or area light sources are used.  If at any point you
  19. wish to disable shadow determination on a global scale, there is
  20. a command-line option (<#335#><TT>-n</TT><#335#>) that allows you to do so.  It is also
  21. possible
  22. to disable the casting of shadows onto given objects through the use
  23. of the <#336#><TT>noshadow</TT><#336#> keyword in surface descriptions.  In addition,
  24. the <#337#><TT>noshadow</TT><#337#> keyword may be given following the definition
  25. of a light source, causing the light source to cast no shadows onto
  26. any surface.
  27.  
  28. <P>
  29. Determining if a point is in shadow with respect to a light source
  30. is relatively simple if all the objects in a scene are opaque.  In
  31. this case, one simply traces a ray from the point to the light source.
  32. If the ray hits an object before it reaches the light source, then
  33. the point is in shadow.
  34.  
  35. <P>
  36. Shadow determination
  37. becomes more complicated if there are one or more objects with
  38. non-zero transparency between the point and the light source.
  39. Transparent objects may not completely block the light from a source,
  40. but merely attenuate it. In such cases, it is necessary to compute the
  41. amount of attenuation at each intersection and to continue
  42. the shadow ray until it either reaches the light source or until
  43. the light is completely attenuated.
  44.  
  45. <P>
  46. By default, <#338#><#1841#><EM>rayshade</EM><#1841#><#338#> computes shadow attenuation by assuming
  47. that the index of refraction of the transparent object is the
  48. same as that of the medium through which the ray is traveling.
  49. To disable
  50. partial shadowing due to transparent objects, the <#339#><TT>shadowtransp</TT><#339#>
  51. keyword should be given somewhere in the input file.
  52.  
  53. <P>
  54. <DL>
  55. <DT><STRONG><#4712#><#4712#></STRONG></DT>
  56. <DD><#1274#><TT>shadowtransp</TT><#1274#>  
  57. <BR>    The intensity of light striking a point is <#343#><EM>not</EM><#343#> affected by
  58.     intervening transparent objects.
  59. </DD>
  60. </DL>If you enclose an object behind a transparent surface, and you wish
  61. the inner object to be illuminated, you must not use the <#345#><TT>shadowtransp</TT><#345#>
  62. keyword or the <#346#><TT>-o</TT><#346#> option.
  63.