home *** CD-ROM | disk | FTP | other *** search
- // Persistence Of Vision raytracer version 3.0 sample file.
- // File by Dieter Bayer.
- //
- // This scene shows the effect of solid vs. hollow objects.
- //
- // The left sphere is solid, i.e. it's not filled with fog.
- // The right sphere is hollow, i.e. it's filled with fog.
- //
- // The left sphere doesn't attenuate light passing through it.
- // Thus the background seen through it and its shadow is lighter
- // than for the right sphere.
- //
- // The right sphere attenuates light in the same way like fog does
- // because it is filled with fog. Thus the background seen through
- // it and its shadow is darker.
- //
-
- #version 3.0
- global_settings { assumed_gamma 2.2 }
-
- #include "colors.inc"
-
- camera {
- location <0, 20, -100>
- }
-
- //
- // Standard fog
- //
-
- fog {
- colour rgb<0.5, 0.5, 0.5>
- distance 80
- }
-
- //
- // Put down the beloved famous raytrace green/yellow checkered floor
- //
-
- plane { y, -10
- pigment {
- checker colour Yellow colour Green
- scale 20
- }
- finish {
- ambient 0.2
- diffuse 0.8
- }
- hollow
- }
-
- //
- // Use beloved famous raytrace green/yellow checkered wall
- //
-
- plane { z, 50
- pigment {
- checker colour Yellow colour Green
- scale 20
- }
- finish {
- ambient 0.2
- diffuse 0.8
- }
- hollow
- }
-
- //
- // Solid, translucent sphere
- //
-
- sphere { <-26, 20, 0>, 25
- pigment { rgbt<1, 1, 1, 0.8> }
- finish {
- ambient 0.0
- diffuse 0.0
- phong 1.0
- phong_size 200
- refraction 1
- ior 1.05
- }
- hollow no
- }
-
- //
- // Hollow, translucent sphere
- //
-
- sphere { <26, 20, 0>, 25
- pigment { rgbt<1, 1, 1, 0.8> }
- finish {
- ambient 0.0
- diffuse 0.0
- phong 1.0
- phong_size 200
- refraction 1
- ior 1.05
- }
- hollow yes
- }
-
- //
- // Due to the atmospheric attenuation and the large distance to
- // the light source it has to be very bright.
- //
-
- light_source {
- <500, 600, -200>
- colour 40000 * White
- atmospheric_attenuation on
- }
-
-