home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 13 Bitmap / 13-Bitmap.zip / povscn.zip / scenes / level1 / sunset1.pov < prev    next >
Text File  |  1993-09-28  |  1KB  |  56 lines

  1. // Persistence Of Vision raytracer version 2.0 sample file.
  2.  
  3. // By David Buck
  4.  
  5. // This is the "classic" sunset scene by David k. Buck.  I'm resurrecting it
  6. // because I always thought it looked very realistic...  - Aaron a. Collins
  7.  
  8. #include "colors.inc"
  9.  
  10. camera {
  11.    location <0, 100, 200>
  12.    direction <0, 0, -1>
  13.    up <0, 1, 0>
  14.    right <4/3, 0, 0>
  15. }
  16.  
  17. /* Define the ocean surface */
  18. plane { y, -10.0
  19.    normal {
  20.       waves 0.06
  21.       frequency 5000.0
  22.       scale 1000
  23.    }
  24.    finish { reflection 1.0 }
  25.    pigment { color red 1.0 green 0.3 }
  26. }
  27.  
  28. /* Put a floor underneath to catch any errant waves from the ripples */
  29. plane { y, -11.0
  30.    pigment { color red 1.0 green 0.3 }
  31.    finish { ambient 1.0  diffuse 0.0  crand 0.05 }
  32. }
  33.  
  34. /* Now draw the sky, a distant rear wall */
  35. plane { z, -200.0
  36.    pigment { colour red 1.0 green 0.3 }
  37.    finish { ambient 0.3 diffuse 0.7 crand 0.05 }
  38. }
  39.  
  40. /* Now to cast some light on the subject */
  41. light_source {
  42.    <0, 0, 0> colour red 1 green 1 blue 1
  43.  
  44.    looks_like {
  45.       sphere {
  46.          <0, 0, 0>, 20.0
  47.          texture {
  48.              pigment { colour red 1.0 green 0.6 filter 0.35 }
  49.              finish { ambient 1.0 diffuse 0.0 }
  50.          }
  51.       }
  52.    }
  53.  
  54.    translate <0.0, 30.0, -160.0>
  55. }
  56.