home *** CD-ROM | disk | FTP | other *** search
- // Persistence of Vision Raytracer
- // Sample file
- // By Aaron A. Collins
- // Rose in a Glass Ball imagemap test file by Aaron a. Collins
-
- #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
-
- object
- sphere <0.0 25.0 0.0> 40.0 end_sphere
-
- texture { x-y oriented bitmap image }
- imagemap <1.0 -1.0 0.0> gif "rough.gif"
- interpolate 2.0
- end_map
- scale < 75.0 75.0 75.0 > { scaled and translated so only }
- translate < 35.0 -19.0 0.0 > { 1 instance of the map appears. }
- ambient 0.3
- diffuse 0.7
- phong 0.75
- end_texture
-
- end_object
-
- object
- plane <0.0 1.0 0.0> -10.0 end_plane
-
- texture
- color Gold
- ambient 0.1
- diffuse 0.5
- { reflection 1.0 }
- end_texture
- end_object
-
- object
- sphere <0.0 0.0 0.0> 2.0 end_sphere
- translate <100.0 120.0 -130.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> 2.0 end_sphere
- translate <-100.0 100.0 -130.0>
-
- texture
- colour White
- ambient 1.0
- diffuse 0.0
- end_texture
- light_source
- colour White
- end_object
-