home *** CD-ROM | disk | FTP | other *** search
- // Persistence of Vision Raytracer
- // Sample file
- // By Tom Price
-
- #include "shapes.dat"
- #include "colors.dat"
- #include "textures.dat"
-
- view_point
- location <0.0 30.0 -200.0>
- direction <0.0 -0.2 1.0>
- up <0.0 1.0 0.0>
- right <1.333 0.0 0.0>
- end_view_point
-
- object
- intersection
- plane <0.0 0.0 1.0> 1.0 end_plane
- plane <0.0 0.0 1.0> -1.0 inverse end_plane
- plane <0.0 1.0 0.0> -60.0 end_plane
- end_intersection
-
- scale <1.0 1.0 200.0>
-
- texture
- 0.01
- Apocalypse
- scale <50.0 10.0 20.0>
- rotate <0.0 30.0 0.0>
- ambient 0.3
- diffuse 0.7
- reflection 0.3
- brilliance 3.0
- end_texture
- end_object
-
- object
- intersection
- sphere <0.0 0.0 0.0> 10000.0 end_sphere
- sphere <0.0 0.0 0.0> 9999.0 inverse end_sphere
- end_intersection
-
- translate <0.0 -9500.0 0.0>
-
- texture
- 0.05
- Bright_Blue_Sky
- scale <400.0 50.0 800.0>
- rotate <0.0 -45.0 0.0>
- ambient 0.3
- diffuse 0.5
- end_texture
- end_object
-
- object
- sphere <0.0 32.659862 0.0> 20.0 end_sphere
-
- texture
- 0.01
- colour White
- ambient 0.11
- diffuse 0.22
- reflection 0.7
- brilliance 5.0
- end_texture
- end_object
-
- object
- sphere <0.0 0.0 -23.09401> 20.0 end_sphere
-
- rotate <0.0 -15.0 0.0>
- texture
- 0.01
- colour CRed
- ambient 0.11
- diffuse 0.22
- reflection 0.7
- brilliance 5.0
- end_texture
- end_object
-
- object
- sphere <0.0 0.0 -23.09401> 20.0 end_sphere
-
- rotate <0.0 -135.0 0.0>
- texture
- 0.01
- colour CGreen
- ambient 0.11
- diffuse 0.22
- reflection 0.7
- brilliance 5.0
- end_texture
- end_object
-
- object
- sphere <0.0 0.0 -23.09401> 20.0 end_sphere
-
- rotate <0.0 105.0 0.0>
- texture
- 0.01
- colour CBlue
- ambient 0.11
- diffuse 0.22
- reflection 0.7
- brilliance 5.0
- end_texture
- end_object
-
- object
- sphere <0.0 -32.659862 -23.09401> 20.0 end_sphere
-
- rotate <0.0 -75.0 0.0>
- texture
- 0.01
- colour Cyan
- ambient 0.11
- diffuse 0.22
- reflection 0.7
- brilliance 5.0
- end_texture
- end_object
-
- object
- sphere <0.0 -32.659862 -23.09401> 20.0 end_sphere
-
- rotate <0.0 -195.0 0.0>
- texture
- 0.01
- colour Magenta
- ambient 0.11
- diffuse 0.22
- reflection 0.7
- brilliance 5.0
- end_texture
- end_object
-
- object
- sphere <0.0 -32.659862 -23.09401> 20.0 end_sphere
-
- rotate <0.0 45.0 0.0>
- texture
- 0.01
- colour Yellow
- ambient 0.11
- diffuse 0.22
- reflection 0.7
- brilliance 5.0
- end_texture
- end_object
-
- object
- sphere <0.0 -32.659862 -46.18802> 20.0 end_sphere
-
- rotate <0.0 -15.0 0.0>
- texture
- 0.01
- colour DimGray
- ambient 0.11
- diffuse 0.22
- reflection 0.7
- brilliance 5.0
- end_texture
- end_object
-
- object
- sphere <0.0 -32.659862 -46.18802> 20.0 end_sphere
-
- rotate <0.0 -135.0 0.0>
- texture
- 0.01
- colour Turquoise
- ambient 0.11
- diffuse 0.22
- reflection 0.7
- brilliance 5.0
- end_texture
- end_object
-
- object
- sphere <0.0 -32.659862 -46.18802> 20.0 end_sphere
-
- rotate <0.0 105.0 0.0>
- texture
- 0.01
- colour Tan
- ambient 0.11
- diffuse 0.22
- reflection 0.7
- brilliance 5.0
- end_texture
- end_object
-
- object
- sphere <0.0 0.0 0.0> 75.0 end_sphere
- translate <0.0 9800.0 0.0>
- rotate <-5.0 0.0 2.0>
- translate <0.0 -11000.0 0.0>
- texture
- colour Orange
- ambient 1.0
- diffuse 0.0
- end_texture
- light_source
- colour Orange
- end_object
-
- object
- sphere <0.0 0.0 0.0> 20.0 end_sphere
- translate <60.0 160.0 -200.0>
- texture
- colour White
- ambient 1.0
- diffuse 0.0
- end_texture
- light_source
- colour White
- end_object
-
- object
- sphere <0.0 0.0 0.0> 20.0 end_sphere
- translate <-60.0 160.0 -200.0>
- texture
- colour White
- ambient 1.0
- diffuse 0.0
- end_texture
- light_source
- colour White
- end_object
-