home *** CD-ROM | disk | FTP | other *** search
- // Persistence of Vision Raytracer
- // Sample file
- // By Alexander Enzmann
-
- { sample quartic data file written by Alexander Enzmann }
-
- #include "shapes.dat"
- #include "colors.dat"
- #include "textures.dat"
-
- composite
- { Lemniscate of Gerono }
- object
- quartic
- < 1.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 -1.0
- 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
- 0.0 0.0 0.0 0.0 0.0 1.0 0.0 0.0 0.0 0.0
- 0.0 0.0 1.0 0.0 0.0 >
- end_quartic
- bounded_by
- sphere <0 0 0> 2.01 end_sphere
- end_bound
- texture
- color CRed
- phong 1.0
- phongsize 10
- ambient 0.2
- diffuse 0.8
- end_texture
- rotate <0 0 45>
- end_object
-
- { Lemniscate of Gerono }
- object
- quartic
- < 1.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 -1.0
- 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
- 0.0 0.0 0.0 0.0 0.0 1.0 0.0 0.0 0.0 0.0
- 0.0 0.0 1.0 0.0 0.0 >
- end_quartic
- bounded_by
- sphere <0 0 0> 2.01 end_sphere
- end_bound
- texture
- color CBlue
- phong 1.0
- phongsize 10
- ambient 0.2
- diffuse 0.8
- end_texture
- rotate <0 0 -45>
- end_object
-
- scale <4 4 4>
- rotate <30 0 20>
- translate <0 0 5>
-
- end_composite
-
- view_point
- location <0.0 0.0 -10.0>
- right <1.0 0.0 0.0>
- up <0.0 1.0 0.0>
- direction <0.0 0.0 1.0>
- end_view_point
-
- object
- sphere <0 0 0 > 1 end_sphere
- translate <200 30 -30>
- texture
- colour White
- ambient 1.0
- diffuse 0.0
- end_texture
- light_source
- colour White
- end_object
-
- object
- sphere <0 0 0> 1 end_sphere
- translate <-200 30 -300>
- texture
- colour White
- ambient 1.0
- diffuse 0.0
- end_texture
- light_source
- colour White
- end_object
-
- { Put down floor }
- object
- plane <0.0 1.0 0.0> -30.0 end_plane
- texture
- White_Marble
- scale <30 30 30>
- ambient 0.3
- diffuse 0.7
- end_texture
- rotate <5 0 0>
- end_object
-