home *** CD-ROM | disk | FTP | other *** search
/ ANews 3 / AnewsCD3.iso / atari / GRAPHX / POV / 68030.060 / POV31G30 / POVRAY_3.1G / SCENES / TEXTURES / SURFACES / BUMPMAP.POV < prev    next >
Text File  |  1999-10-30  |  844b  |  40 lines

  1. // Persistence Of Vision raytracer version 3.1 sample file.
  2. // Bump map example
  3. // File by Drew Wells
  4. // NOTE: Calls for "bumpmap_.png", but any 320x200 gif will work.
  5.  
  6. global_settings { assumed_gamma 2.2 }
  7.  
  8. #include "colors.inc"
  9.  
  10. camera {
  11.    location  <0, 0, -120>
  12.    direction <0, 0,  1.5>
  13.    up        <0, 1,  0>
  14.    right   <4/3, 0,  0>
  15.    look_at   <0, 0,  0>
  16. }
  17.  
  18. sphere { <0, 0, 0>, 25
  19.    pigment {Blue}
  20.  
  21.    normal {
  22.       bump_map {
  23.          png "bumpmap_.png"
  24.          bump_size 5
  25.          interpolate 2
  26.          once
  27.       }
  28.       scale 50              /* scaled and translated into position  */
  29.       translate <-25, -25, 0>
  30.    }
  31.    finish {ambient 0.2 diffuse 0.7 specular 0.6}
  32. }
  33.  
  34. plane { y, -25
  35.    pigment {Gold}
  36.    finish {ambient 0.1 diffuse 0.5}
  37. }
  38.  
  39. light_source {<100,120,-130> colour White}
  40.