home *** CD-ROM | disk | FTP | other *** search
- // Persistence of Vision Raytracer
- // Sample file
-
- // Two rows of multi-colored pillars lead to a chrome hemisphere
- // reflecting a blinding sunrise.
- // - Drew Wells 1990
- // CIS 73767,1244
-
- #include "shapes.dat"
- #include "colors.dat"
- #include "textures.dat"
-
- // Camera
- view_point
- location <0.0 20.0 -100.0>
- direction <0.0 0.0 1.0>
- up <0.0 1.0 0.0>
- right <1.333333333 0.0 0.0>
- end_view_point
-
-
- // Ground
- object
- plane < 0.0 1.0 0.0 > -10. end_plane
- texture
- White_Marble
- scale <10.0 10.0 10.0>
- ambient 0.3
- diffuse 0.7
- end_texture
- color White
- end_object
-
- // Sky/Ceiling
- object
- quadric QSphere
- scale < 200.0 100.0 200.0 >
- end_quadric
- texture
- bozo
- turbulence 0.5
- colour_map { Sky Colors }
- [0.0 0.5 colour red 0.25 green 0.25 blue 0.5
- colour red 0.25 green 0.25 blue 0.5]
- [0.5 0.6 colour red 0.25 green 0.25 blue 0.5
- colour red 0.7 green 0.7 blue 0.7]
- [0.6 1.001 colour red 0.7 green 0.7 blue 0.7
- colour red 0.3 green 0.3 blue 0.3]
- end_colour_map
- scale <50.0 50.0 50.0>
- translate <200.0 400.0 100.0>
- ambient 0.6
- diffuse 0.7
- end_texture
- color White
- end_object
-
- // Mirrored sphere to reflect sun
- // Diffuse value controls aura effect
- object
- sphere < 0.0 0.0 110.0 > 40.0 end_sphere
- texture // Mirror
- color White
- ambient 0.0
- diffuse 0.3
- reflection 1.0
- brilliance 3.0
- specular 1.0
- roughness 0.01
- end_texture
- color White
- end_object
-
- // Two rows of pillars - Grouped two per object for easy manipulation
- object
- union
- quadric
- Cylinder_Y
- scale <6.0 1.0 3.0>
- translate <-60.0 0.0 0.0>
- end_quadric
- quadric
- Cylinder_Y
- scale <6.0 1.0 3.0>
- translate <60.0 0.0 0.0>
- end_quadric
- quadric
- Cylinder_Y
- scale <6.0 1.0 3.0>
- translate <-60.0 0.0 180.0>
- end_quadric
- quadric
- Cylinder_Y
- scale <6.0 1.0 3.0>
- translate <60.0 0.0 180.0>
- end_quadric
- quadric
- Cylinder_Y
- scale <6.0 1.0 3.0>
- translate <-60.0 0.0 60.0>
- end_quadric
- quadric
- Cylinder_Y
- scale <6.0 1.0 3.0>
- translate <60.0 0.0 60.0>
- end_quadric
- end_union
- texture
- Blue_Agate
- scale <10.0 10.0 10.0>
- ambient 0.2
- diffuse 0.7
- brilliance 3.0
- specular 1.0
- roughness 0.01
- end_texture
- color CBlue
- end_object
-
- object
- union
- quadric
- Cylinder_Y
- scale <6.0 1.0 3.0>
- translate <-60.0 0.0 30.0>
- end_quadric
- quadric
- Cylinder_Y
- scale <6.0 1.0 3.0>
- translate <60.0 0.0 30.0>
- end_quadric
- end_union
- texture
- gradient < 1.0 1.0 0.0 >
- colour_map
- [0.00 0.25 colour red 0.0 green 0.0 blue 1.0
- colour red 0.7 green 0.3 blue 0.0]
- [0.25 0.75 colour red 1.0 green 0.0 blue 1.0
- colour red 0.8 green 0.4 blue 1.0]
- [0.75 1.001 colour red 0.0 green 0.3 blue 0.8
- colour red 0.7 green 0.3 blue 0.0]
- end_colour_map
- scale <30.0 30.0 30.0>
- translate <30.0 -30.0 0.0>
- ambient 0.2
- diffuse 0.7
- brilliance 3.0
- specular 1.0
- roughness 0.01
- end_texture
- color White
- end_object
-
- object
- intersection
- union
- quadric
- Cylinder_Y
- scale <6.0 1.0 3.0>
- translate <-60.0 0.0 60.0>
- end_quadric
- quadric
- Cylinder_Y
- scale <6.0 1.0 3.0>
- translate <60.0 0.0 60.0>
- end_quadric
- end_union
- plane < 0.0 1.0 0.0 > 250.0 end_plane
- end_intersection
- texture
- Blue_Agate
- scale <10.0 10.0 10.0>
- specular 1.0
- roughness 0.01
- end_texture
- color CBlue
- end_object
-
- object
- intersection
- union
- quadric
- Cylinder_Y
- scale <6.0 1.0 3.0>
- translate <-60.0 0.0 90.0>
- end_quadric
- quadric
- Cylinder_Y
- scale <6.0 1.0 3.0>
- translate <60.0 0.0 90.0>
- end_quadric
- end_union
- plane < 0.0 1.0 0.0 > 250.0 end_plane
- end_intersection
- texture
- gradient < 1.0 1.0 0.0 >
- colour_map
- [0.00 0.25 colour red 0.0 green 0.8 blue 0.4
- colour red 0.2 green 0.3 blue 0.0]
- [0.25 0.75 colour red 0.0 green 0.0 blue 0.8
- colour red 0.1 green 0.6 blue 1.0]
- [0.75 1.001 colour red 0.0 green 0.3 blue 0.4
- colour red 0.8 green 0.8 blue 0.0]
- end_colour_map
- scale <30.0 30.0 30.0>
- translate <30.0 -30.0 0.0>
- ambient 0.2
- diffuse 0.7
- brilliance 3.0
- specular 1.0
- roughness 0.01
- end_texture
- color White
- end_object
-
- object
- intersection
- union
- quadric
- Cylinder_Y
- scale <6.0 1.0 3.0>
- translate <-60.0 0.0 120.0>
- end_quadric
- quadric
- Cylinder_Y
- scale <6.0 1.0 3.0>
- translate <60.0 0.0 120.0>
- end_quadric
- end_union
- plane < 0.0 1.0 0.0 > 250.0 end_plane
- end_intersection
- texture
- Blue_Agate
- scale <10.0 10.0 10.0>
- specular 1.0
- roughness 0.01
- end_texture
- color CBlue
- end_object
-
- object
- intersection
- union
- quadric
- Cylinder_Y
- scale <6.0 1.0 3.0>
- translate <-60.0 0.0 150.0>
- end_quadric
- quadric
- Cylinder_Y
- scale <6.0 1.0 3.0>
- translate <60.0 0.0 150.0>
- end_quadric
- end_union
- plane < 0.0 1.0 0.0 > 250.0 end_plane
- end_intersection
- texture
- gradient < 1.0 1.0 0.0 >
- colour_map
- [0.00 0.25 colour red 0.0 green 0.8 blue 0.4
- colour red 0.2 green 0.3 blue 0.0]
- [0.25 0.75 colour red 0.0 green 0.0 blue 0.8
- colour red 0.1 green 0.6 blue 1.0]
- [0.75 1.001 colour red 0.0 green 0.3 blue 0.4
- colour red 0.8 green 0.8 blue 0.0]
- end_colour_map
- scale <30.0 30.0 30.0>
- translate <30.0 -30.0 0.0>
- ambient 0.2
- diffuse 0.7
- brilliance 3.0
- specular 1.0
- roughness 0.01
- end_texture
- color White
- end_object
-
- // The Blinding Sun
- object
- sphere <0.0 0.0 0.0> 25.0 end_sphere
- translate < 0.0 50.0 -100.0 >
- texture
- colour White
- ambient 1.0
- diffuse 0.0
- end_texture
- light_source
- colour White
- end_object
-