home *** CD-ROM | disk | FTP | other *** search
/ Ray Tracing Box / RAY_CD.mdf / raytrace / hfg / list04.pov < prev    next >
Text File  |  1994-01-11  |  1KB  |  59 lines

  1. // list04.pov
  2. // Persistence of Vision Raytracer
  3.  
  4. // Demonstration von Heightfields
  5. // hfwaves.tga mu▀ im Directory vorliegen
  6. // Listing 4 erzeugt Bild 7
  7.  
  8. #include "shapes.inc"
  9. #include "colors.inc"
  10. #include "textures.inc"
  11.  
  12. #declare hf_scale = <5.5, 2.0, 7.0> 
  13.  
  14. camera {
  15.    location <-1.0, 1.0, -7.0>
  16.    direction <0.0, 0.0, 1.0>
  17.    up <0.0, 1.0, 0.0>
  18.    right <1.333333, 0.0, 0.0>
  19.    look_at <-1.5, 1.0, 1.0>
  20.   }
  21.  
  22. /* Wellental aus Sandelholz, poliert */
  23.  
  24. object {
  25.    intersection {
  26.      height_field { tga "bild06.tga" }
  27.      box { <  0,   0,   0>,
  28.            <1.0, 1.0, 1.0>
  29.          pigment {Brown}
  30.          }
  31.      texture { Sandalwood }
  32.      finish { phong 0.7 }
  33.    }
  34.    scale hf_scale
  35.    translate <-2.75, 0.0, -1.5>
  36.    rotate <0, 310, 0>
  37.    rotate <-30, 0, 0>
  38.  }
  39.  
  40. /* Kork-Fu▀boden 
  41.  
  42. plane { <0.0, 1.0, 0.0>, 0.0
  43.    texture { Cork }
  44.    rotate <0, 310, 0>
  45.    rotate <-30, 0, 0>
  46. }
  47. */
  48. /* Lichtquelle */
  49.  
  50. object {
  51.    light_source { <-4.0, 0.0, -8> 
  52.      color White  }
  53.  }
  54.  
  55. object {
  56.    light_source { <2.5, 2.5, -8> 
  57.      color White  }
  58.  }
  59.