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
- plane <0.0 1.0 0.0> -60.0 end_plane
- texture
- 0.01
- Pine_Wood
- scale <4.0 1.0 2.0>
- rotate <0.0 45.0 0.0>
- ambient 0.3
- diffuse 0.7
- { reflection 0.4 }
- brilliance 3.0
- end_texture
- end_object
-
- object
- quadric Cylinder_X end_quadric
- scale <5.0 5.0 5.0>
- translate <0.0 -60.0 120.0>
- rotate <0.0 -40.0 0.0>
- texture
- 0.01
- colour Brown
- ambient 0.3
- diffuse 0.7
- reflection 0.4
- end_texture
- end_object
-
- object
- quadric Cylinder_X end_quadric
- scale <5.0 5.0 5.0>
- translate <0.0 -60.0 120.0>
- rotate <0.0 40.0 0.0>
- texture
- 0.01
- colour Brown
- ambient 0.3
- diffuse 0.7
- { reflection 0.4 }
- end_texture
- end_object
-
- object
- plane <0.0 0.0 1.0> -240.0 end_plane
- texture
- 0.01
- colour Gray
- ambient 0.2
- diffuse 0.7
- { reflection 0.75 }
- brilliance 3.0
- end_texture
- end_object
-
- object
- plane <0.0 0.0 1.0> 120.0 end_plane
- rotate <0.0 -40.0 0.0>
- texture
- 0.01
- colour Gray
- ambient 0.2
- diffuse 0.7
- reflection 0.75
- brilliance 3.0
- end_texture
- end_object
-
- object
- plane <0.0 0.0 1.0> 120.0 end_plane
- rotate <0.0 40.0 0.0>
- texture
- 0.01
- colour Gray
- ambient 0.2
- diffuse 0.7
- reflection 0.75
- brilliance 3.0
- end_texture
- end_object
-
- object
- sphere <0.0 32.659862 0.0> 20.0 end_sphere
-
- texture colour Clear end_texture
- texture
- 0.01
- colour White alpha 0.90
- ambient 0.7
- diffuse 0.3
- reflection 0.5
- refraction 1.0
- ior 1.5
- 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 colour Clear end_texture
- texture
- 0.01
- colour CRed alpha 0.90
- ambient 0.7
- diffuse 0.3
- reflection 0.5
- refraction 1.0
- ior 1.5
- 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 colour Clear end_texture
- texture
- 0.01
- colour CGreen alpha 0.90
- ambient 0.7
- diffuse 0.3
- reflection 0.5
- refraction 1.0
- ior 1.5
- 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 colour Clear end_texture
- texture
- 0.01
- colour CBlue alpha 0.90
- ambient 0.7
- diffuse 0.3
- reflection 0.5
- refraction 1.0
- ior 1.5
- 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 colour Clear end_texture
- texture
- 0.01
- colour Cyan alpha 0.90
- ambient 0.7
- diffuse 0.3
- reflection 0.5
- refraction 1.0
- ior 1.5
- 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 colour Clear end_texture
- texture
- 0.01
- colour Magenta alpha 0.90
- ambient 0.7
- diffuse 0.3
- reflection 0.5
- refraction 1.0
- ior 1.5
- 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 colour Clear end_texture
- texture
- 0.01
- colour Yellow alpha 0.90
- ambient 0.7
- diffuse 0.3
- reflection 0.5
- refraction 1.0
- ior 1.5
- 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 colour Clear end_texture
- texture
- 0.01
- colour DimGray alpha 0.90
- ambient 0.7
- diffuse 0.3
- reflection 0.5
- refraction 1.0
- ior 1.5
- 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 colour Clear end_texture
- texture
- 0.01
- colour Turquoise alpha 0.90
- ambient 0.7
- diffuse 0.3
- reflection 0.5
- refraction 1.0
- ior 1.5
- 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 colour Clear end_texture
- texture
- 0.01
- colour Tan alpha 0.90
- ambient 0.7
- diffuse 0.3
- reflection 0.5
- refraction 1.0
- ior 1.5
- brilliance 5.0
- end_texture
- end_object
-
- object
- sphere <0.0 0.0 0.0> 2.0 end_sphere
- texture
- colour White
- ambient 1.0
- diffuse 0.0
- end_texture
- light_source
- colour White
- end_object
-