home *** CD-ROM | disk | FTP | other *** search
/ ANews 3 / AnewsCD3.iso / atari / GRAPHX / POV / 68030.060 / POV31G30 / POVRAY_3.1G / SCENES / INTERIOR / MEDIA / MEDIA1.POV < prev    next >
Text File  |  1999-10-30  |  1KB  |  95 lines

  1. // Persistence Of Vision raytracer version 3.1 sample file.
  2. //
  3. // Participating media environment with spotlights.
  4. //
  5.  
  6. //
  7. // The camera.
  8. //
  9.  
  10. camera {
  11.   location <10, 6, -20>
  12.   right <4/3, 0, 0>
  13.   up <0, 1, 0>
  14.   direction <0, 0, 1.5>
  15.   look_at <0, 4, 0>
  16. }
  17.  
  18. //
  19. // Add media. 
  20. //
  21.  
  22. media {
  23.   intervals 10
  24.   scattering { 1, rgb 0.03}
  25.   samples 1, 10         
  26.   confidence 0.9999
  27.   variance 1/1000
  28.   ratio 0.9
  29. }
  30.  
  31. //
  32. // Light source not interacting with the atmosphere. 
  33. //
  34.  
  35. light_source { <0, 15, 0> color rgb 0.7
  36.   media_interaction off 
  37.   shadowless 
  38. }
  39.  
  40. //
  41. // Spotlights pointing at balls. 
  42. //
  43.  
  44. #declare Intensity = 2;
  45.  
  46. light_source { 
  47.   <-10, 15, -5> color rgb<1, .3, .3> * Intensity
  48.   spotlight
  49.   point_at <0, 5, 0>
  50.   radius 10
  51.   falloff 15
  52.   tightness 1
  53.   media_attenuation on
  54. }
  55.  
  56. light_source { 
  57.   <0, 15, -5> color rgb<.3, 1, .3> * Intensity
  58.   spotlight
  59.   point_at <0, 5, 0>
  60.   radius 10
  61.   falloff 15
  62.   tightness 1
  63.   media_attenuation on
  64. }
  65.  
  66. light_source { 
  67.   <10, 15, -5> color rgb<.3, .3, 1> * Intensity
  68.   spotlight
  69.   point_at <0, 5, 0>
  70.   radius 10
  71.   falloff 15
  72.   tightness 1
  73.   media_attenuation on
  74. }
  75.  
  76. //
  77. // Room. 
  78. //
  79.  
  80. box { <-20, 0, -20>, <20, 20, 20>
  81.   pigment { rgb 1 }
  82.   finish { ambient 0.2 diffuse 0.5 }
  83.   hollow
  84. }
  85.  
  86. //
  87. // Ball. 
  88. //
  89.  
  90. sphere { <0, 5, 0>, 1
  91.   pigment { rgb 1 }
  92.   finish { ambient 0.3 diffuse 0.7 phong 1 }
  93. }
  94.  
  95.