home *** CD-ROM | disk | FTP | other *** search
- // Persistence of Vision Raytracer
- // Sample file
- // By Anon.
-
- #include "shapes.dat"
- #include "colors.dat"
- #include "textures.dat"
-
- 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.33333 0.0 0.0>
- end_view_point
-
- fog
- colour red 0.2 green 0.2 blue 0.2
- 200.0
- end_fog
-
- { Put down the beloved famous raytrace green/yellow checkered floor }
- object
- plane <0.0 1.0 0.0> -10.0 end_plane
- texture
- checker colour Yellow colour CGreen
- ambient 0.2
- diffuse 0.8
- scale < 20.0 20.0 20.0 >
- end_texture
- colour Yellow
- end_object
-
- object
- sphere <0.0 25.0 0.0> 40.0 end_sphere
-
- texture
- ambient 0.2
- diffuse 0.6
- colour CRed
- scale <10.0 10.0 10.0>
- rotate <-90.0 0.0 0.0>
- phong 1.0
- phongsize 20
- end_texture
- colour CRed
- end_object
-
- object
- sphere <-100.0 150.0 200.0> 20.0 end_sphere
- texture
- colour Magenta
- ambient 0.2
- diffuse 0.6
- phong 1.0
- phongsize 20
- end_texture
- colour Magenta
- end_object
-
- object
- sphere <100.0 25.0 100.0> 30.0 end_sphere
-
- texture
- colour CRed
- ambient 0.2
- diffuse 0.6
- phong 1.0
- phongsize 20
- end_texture
- colour CRed
- end_object
-
- object
- sphere <0.0 0.0 0.0> 2.0 end_sphere
- translate <100.0 120.0 40.0>
- texture
- colour White
- ambient 1.0
- diffuse 0.0
- end_texture
- light_source
- colour White
- end_object
-