home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / mac / developm / source / povsrc.sit / MISC / SOMBRERO.POV < prev    next >
Encoding:
Text File  |  1992-04-17  |  940 b   |  53 lines

  1. // Persistence of Vision Raytracer
  2. // Height field sample
  3. // by Alexander Enzmann
  4.  
  5. #include "colors.inc"
  6. #include "textures.inc"
  7.  
  8. camera {
  9.    location <0.0  150.0  -250.0>
  10.    direction <0 0 2.0>
  11.    up        <0 1 0>
  12.    right     <1.33 0 0>
  13.    look_at   <0 0 50>
  14.    }
  15.  
  16. // Define the sombrero shape based on a Targa height field
  17. object {
  18.    height_field { tga "hfsomb.tga" }
  19.    texture {
  20.       White_Marble 
  21.       ambient 0.15
  22.       diffuse 0.7
  23.       phong 1.0
  24.       }
  25.    translate <-.5 -.5 -.5> // Center it on the origin
  26.    scale <160 100 160> // Scale it to old size
  27.    rotate <-15 0 0>
  28.    }
  29.  
  30. /*object {
  31.    plane { <0.0  1.0  0.0> -60.0 }
  32.    texture {
  33.       colour red 1
  34.       ambient 0.2
  35.       diffuse 0.1
  36.       }
  37.    }*/
  38.  
  39. // Shed some lights
  40. object {
  41.    light_source {
  42.       <-450 250 -40>
  43.       color red 0.7 green 0.7 blue 0.7
  44.       }
  45.    }
  46.  
  47. object {
  48.    light_source {
  49.       <0 250 0>
  50.       color red 0.7 green 0.7 blue 0.7
  51.       }
  52.    }
  53.