home *** CD-ROM | disk | FTP | other *** search
/ Crawly Crypt Collection 2 / crawlyvol2.bin / graphics / ftpovscn / 1 / sunset1.pov < prev    next >
Text File  |  1992-07-21  |  1KB  |  70 lines

  1. // Persistence Of Vision raytracer version 1.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.0  100.0  200.0>
  12.    direction <0.0  0.0  -1.0>
  13.    up <0.0  1.0  0.0>
  14.    right <1.333333 0.0 0.0>
  15. }
  16.  
  17. /* Define the ocean surface */
  18. object {
  19.    plane { <0.0 1.0 0.0> -10.0 }
  20.  
  21.    texture {
  22.       waves 0.06
  23.       frequency 5000.0
  24.       scale <1000.0 1000.0 1000.0>
  25.       reflection 1.0
  26.    }
  27.    colour red 1.0 green 0.3
  28. }
  29.  
  30. /* Put a floor underneath to catch any errant waves from the ripples */
  31. object {
  32.    plane { <0.0 1.0 0.0> -11.0 }
  33.  
  34.    texture {
  35.       0.05
  36.       colour red 1.0 green 0.3
  37.       ambient 1.0
  38.       diffuse 0.0
  39.    }
  40.    colour red 1.0 green 0.3
  41. }
  42.  
  43. /* Now draw the sky, a distant rear wall */
  44. object {
  45.    plane { <0.0 0.0 1.0> -200.0 }
  46.  
  47.    texture {
  48.       0.05
  49.       colour red 1.0 green 0.3
  50.       ambient 0.3
  51.       diffuse 0.7
  52.    }
  53.    colour red 1.0 green 0.3
  54. }
  55.  
  56. /* Now to cast some light on the subject */
  57. object {
  58.    union {
  59.       sphere { <0 0 0> 20.0
  60.          texture {
  61.             colour red 1.0 green 0.6 alpha 0.35
  62.             ambient 1.0
  63.             diffuse 0.0
  64.          }
  65.       }
  66.       light_source { <0 0 0> colour red 1.0 green 1  blue 1}
  67.    }
  68.    translate <0.0  30.0  -160.0>
  69. }
  70.