home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 4 / DATAFILE_PDCD4.iso / utilities / utilsp / povray / !POVscene / level1 / pov / bumpmap < prev    next >
Text File  |  1992-09-27  |  953b  |  50 lines

  1. // Persistence Of Vision raytracer version 1.0 sample file.
  2.  
  3. // Bumpmap test file by Drew Wells
  4. // NOTE: Calls for "bumpmap", but any GIF will work.
  5.  
  6. #include "colors"
  7.  
  8. camera {
  9.    location <0.0  20.0  -120.0>
  10.    direction <0.0 0.0  1.0>
  11.    up  <0.0  1.0  0.0>
  12.    right <1.33333 0.0 0.0>
  13.    look_at <0.0 20.0 0.0>
  14. }
  15.  
  16. object {
  17.    sphere { <0.0  0.0  0.0>  50.0 }
  18.  
  19.    texture {    
  20.       color Blue 
  21.       bump_map { <1.0 -1.0 0.0> gif "<POVgif$Dir>.bumpmap"
  22.          bump_size 5.0
  23.          interpolate 2.0
  24.       }
  25.       scale < 100.0 100.0 100.0 >        /* scaled and translated so only */
  26.       translate < 50.0 -50.0 0.0 >       /* 1 instance of the map appears. */
  27.       ambient 0.2
  28.       diffuse 0.7
  29.       specular 0.6
  30.    }
  31.    translate <0.0 25.0 0.0>
  32. }
  33.  
  34. object {
  35.    plane { <0.0 1.0 0.0> -10.0 }
  36.  
  37.    texture {
  38.       color Gold
  39.       ambient 0.1
  40.       diffuse 0.5
  41.    }
  42. }
  43.  
  44. object {
  45.    light_source { <100.0  120.0  -130.0>
  46.       colour White
  47.    }
  48. }
  49.  
  50.