home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #7 / amigamamagazinepolishissue1998.iso / varia / povray3 / povray3_fpu / pov3demo / atmos / hollow1.pov < prev    next >
Text File  |  1997-12-12  |  2KB  |  113 lines

  1. // Persistence Of Vision raytracer version 3.0 sample file.
  2. // File by Dieter Bayer.
  3. //
  4. // This scene shows the effect of solid vs. hollow objects.
  5. //
  6. // The left sphere is solid, i.e. it's not filled with fog.
  7. // The right sphere is hollow, i.e. it's filled with fog.
  8. //
  9. // The left sphere doesn't attenuate light passing through it.
  10. // Thus the background seen through it and its shadow is lighter
  11. // than for the right sphere.
  12. //
  13. // The right sphere attenuates light in the same way like fog does
  14. // because it is filled with fog. Thus the background seen through
  15. // it and its shadow is darker.
  16. //
  17.  
  18. #version 3.0
  19. global_settings { assumed_gamma 2.2 }
  20.  
  21. #include "colors.inc"
  22.  
  23. camera {
  24.   location <0, 20, -100>
  25. }
  26.  
  27. //
  28. // Standard fog
  29. //
  30.  
  31. fog {
  32.   colour rgb<0.5, 0.5, 0.5>
  33.   distance 80
  34. }
  35.  
  36. //
  37. // Put down the beloved famous raytrace green/yellow checkered floor
  38. //
  39.  
  40. plane { y, -10
  41.    pigment {
  42.       checker colour Yellow colour Green
  43.       scale 20
  44.    }
  45.    finish {
  46.       ambient 0.2
  47.       diffuse 0.8
  48.    }
  49.    hollow
  50. }
  51.  
  52. //
  53. // Use beloved famous raytrace green/yellow checkered wall
  54. //
  55.  
  56. plane { z, 50
  57.    pigment {
  58.       checker colour Yellow colour Green
  59.       scale 20
  60.    }
  61.    finish {
  62.       ambient 0.2
  63.       diffuse 0.8
  64.    }
  65.    hollow
  66. }
  67.  
  68. //
  69. // Solid, translucent sphere
  70. //
  71.  
  72. sphere { <-26, 20, 0>, 25
  73.   pigment { rgbt<1, 1, 1, 0.8> }
  74.   finish {
  75.     ambient 0.0
  76.     diffuse 0.0
  77.     phong 1.0
  78.     phong_size 200
  79.     refraction 1
  80.     ior 1.05
  81.   }
  82.   hollow no
  83. }
  84.  
  85. //
  86. // Hollow, translucent sphere
  87. //
  88.  
  89. sphere { <26, 20, 0>, 25
  90.   pigment { rgbt<1, 1, 1, 0.8> }
  91.   finish {
  92.     ambient 0.0
  93.     diffuse 0.0
  94.     phong 1.0
  95.     phong_size 200
  96.     refraction 1
  97.     ior 1.05
  98.   }
  99.   hollow yes
  100. }
  101.  
  102. //
  103. // Due to the atmospheric attenuation and the large distance to
  104. // the light source it has to be very bright.
  105. //
  106.  
  107. light_source {
  108.   <500, 600, -200> 
  109.   colour 40000 * White
  110.   atmospheric_attenuation on
  111. }
  112.  
  113.