home *** CD-ROM | disk | FTP | other *** search
- // Persistence of Vision Raytracer
- // Imagemap test file by Aaron a. Collins
- // No, it's an interpolation test by CdW!
-
- #include "shapes.dat"
- #include "colors.dat"
- #include "textures.dat"
-
- #declare Bilinear = 2.0
- #declare Norm_Dist = 4.0
-
- view_point
- location <0.0 50.0 -140.0>
- direction <0.0 0.0 11.0>
- up <0.0 1.0 0.0>
- right <1.33333 0.0 0.0>
- look_at <10.0 15.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
- imagemap gif "rough.gif"
- use_colour
- interpolate Bilinear
- end_map
- scale < 20.0 20.0 20.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.6
- specular 0.6
- reflection 0.6
- 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 red 0.7 green 0.7 blue 0.7
- 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 red 0.5 green 0.5 blue 0.5
- ambient 1.0
- diffuse 0.0
- end_texture
- light_source
- colour White
- end_object
-
- object
- sphere <0.0 0.0 0.0> 280.0 end_sphere
- end_object
- */