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

  1. // Persistence Of Vision raytracer version 3.1 sample file.
  2. //
  3. // This scene shows the effect of a partially transparent image
  4. // map inside a participating medium.
  5. //
  6.  
  7. //
  8. // The camera.
  9. //
  10.  
  11. camera {
  12.   location <0, 3, -10>
  13.   look_at <0, -0.5, 0>
  14.   angle 10
  15. }
  16.  
  17. //
  18. // Add media. 
  19. //
  20.  
  21. media {
  22.   intervals 40          
  23.   scattering { 1, rgb 0.1}
  24.   samples 1, 10
  25.   confidence 0.9999
  26.   variance 1/1000
  27.   ratio 0.8
  28. }
  29.  
  30. //
  31. // A shadowless light source that does not interact with the atmosphere.
  32. //
  33.  
  34. light_source { <100, 100, -100> color rgb 0.3 
  35.   media_interaction off 
  36.   shadowless 
  37. }
  38.  
  39. //
  40. // A spotlight pointing at the image map.
  41. //
  42.  
  43. light_source {
  44.   <0, 5, 0> 
  45.   color rgb 4
  46.   spotlight 
  47.   point_at <0, 0, 0>
  48.   falloff 10
  49.   radius 8
  50.   media_interaction on
  51. }
  52.  
  53. //
  54. // The partially translucent image map.
  55. //
  56.  
  57. polygon {
  58.   5, <-1, -1, 0>, <1, -1, 0>, <1, 1, 0>, <-1, 1, 0>, <-1, -1, 0>
  59.   pigment { 
  60.     image_map { 
  61.       png "test.png" 
  62.       once 
  63.       transmit 5, 1 
  64.     } 
  65.     translate <-0.5, -0.5, 0> 
  66.   }
  67.   scale 2
  68.   rotate 90*x
  69.   hollow
  70. }
  71.  
  72. //
  73. // The ground. 
  74. //
  75.  
  76. plane { y, -1 pigment { color rgb 1 } hollow }
  77.  
  78.