home *** CD-ROM | disk | FTP | other *** search
- // Persistence of Vision Raytracer
- // Sample file
- // By Dan Farmer
- // Minneapolis, MN
-
- // skyvase.dat
- // Vase made with Hyperboloid and sphere, sitting on a hexagonal
- // marble column. Take note of the color and surface characteristics
- // of the gold band around the vase. It seems to be a successful
- // combination for gold or brass.
-
-
-
- #include "shapes.dat"
- #include "colors.dat"
- #include "textures.dat"
-
- #declare DMF_Hyperboloid = quadric { Like Hyperboloid_Y, but more curvy }
- <1.0 -1.0 1.0>
- <0.0 0.0 0.0>
- <0.0 0.0 0.0>
- -0.5
- end_quadric
-
- view_point
- location <0.0 28.0 -200.0>
- direction <0.0 0.0 2.0>
- up <0.0 1.0 0.0>
- right <1.33333 0.0 0.0>
- look_at <0.0 -12.0 0.0>
- end_view_point
-
- { Light behind viewer postion (pseudo-ambient light) }
- object
- sphere <0.0 0.0 0.0> 2.0 end_sphere
- translate <100.0 500.0 -500.0>
- texture
- colour White
- ambient 1.0
- diffuse 0.0
- end_texture
- light_source
- colour White
- end_object
-
- composite
- object
- union
- intersection
- plane <0 1 0> 0.7 end_plane
- quadric DMF_Hyperboloid scale <0.75 1.25 0.75> end_quadric
- quadric DMF_Hyperboloid scale <0.70 1.25 0.70> inverse end_quadric
- plane <0.0 1.0 0.0> -1.0 inverse end_plane
- end_intersection
- quadric QSphere scale <1.6 0.75 1.6 > translate <0 -1.15 0> end_quadric
- end_union
- scale <20 25 20>
- texture
- Bright_Blue_Sky
- 0.05
- turbulence 0.85
- scale <10.0 10.0 10.0>
- ambient 0.3
- diffuse 0.7
- specular 0.75
- roughness 0.05
- reflection 0.45
- end_texture
- color CGreen
- end_object
- object { Gold ridge around sphere portion of vase}
- quadric QSphere
- scale <1.6 0.75 1.6 >
- translate <0 -7.0 0>
- scale <20.5 4.0 20.5 >
- end_quadric
- texture
- Metal
- 0.05
- color OldGold
- end_texture
- color OldGold
- end_object
- bounded_by
- intersection
- Y_Disk
- translate <0.0 -0.5 0.0>
- scale <34 100 34>
- end_intersection
- end_bound
- end_composite
-
- object { Stand for the vase }
- intersection Hexagon
- rotate <0.0 0.0 -90.0> { Stand it on end (vertical)}
- rotate<0.0 -45.0 0.0> { Turn it to a pleasing angle }
- scale<40 25 40>
- translate<0 -70 0>
- end_intersection
- texture
- Sapphire_Agate
- scale <10.0 10.0 10.0>
- ambient 0.3
- diffuse 0.7
- reflection 0.85
- end_texture
- color red 1.0 {Color is only for debugging w/o texture}
- end_object
-
- object {Left wall}
- plane <0 0 1> 50 end_plane
- rotate <0 -45 0>
- texture
- color Gray
- ambient 0.3
- diffuse 0.7
- reflection 0.5
- end_texture
- color Gray
- end_object
-
- object {Right wall}
- plane <0 0 1> 50 end_plane
- rotate <0 45 0>
- texture
- color Gray
- ambient 0.3
- diffuse 0.7
- reflection 0.5
- end_texture
- color Gray
- end_object
-