home *** CD-ROM | disk | FTP | other *** search
- // Persistence of Vision Raytracer
- // Imagemap test file by Aaron a. Collins
- // No, it's a gougemap test by Aaron Collins!
-
- #include "shapes.dat"
- #include "colors.dat"
- #include "textures.dat"
-
- view_point
- location <0.0 20.0 -120.0>
- direction <0.0 0.0 1.5>
- up <0.0 1.0 0.0>
- right <1.33333 0.0 0.0>
- look_at <0.0 20.0 0.0>
- end_view_point
-
- object
- sphere <0.0 25.0 0.0> 50.0 end_sphere
- texture { x-y oriented bitmap image }
- color CBlue
- gougemap <1.0 -1.0 0.0> gif "gouge.gif"
- gougesize 1.0
- end_map
- scale < 30.0 30.0 30.0 > { scaled and translated so only }
- translate < 35.0 -19.0 0.0 > { 1 instance of the map appears. }
- ambient 0.2
- diffuse 0.7
- // specular 0.6
- 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 10.0 -130.0>
-
- texture
- colour White
- ambient 1.0
- diffuse 0.0
- end_texture
- light_source
- colour White
- end_object
-
- }
-