home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / GRAPHICS / MISC / PVDAT.ZIP / SUNSET1.DAT < prev    next >
Encoding:
Text File  |  1991-09-07  |  1.5 KB  |  73 lines

  1. // Persistence of Vision Raytracer
  2. // Sample file
  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.  
  9. #include "shapes.dat"
  10. #include "colors.dat"
  11. #include "textures.dat"
  12.  
  13. view_point
  14.    location <0.0  100.0  200.0>
  15.    direction <0.0  0.0  -1.0>
  16.    up <0.0  1.0  0.0>
  17.    right <1.333333 0.0 0.0>
  18. end_view_point
  19.  
  20. { Define the ocean surface }
  21. object
  22.    plane <0.0 1.0 0.0> -10.0 end_plane
  23.  
  24.    texture
  25.       waves 0.06
  26.       frequency 5000.0
  27.       scale <1000.0 1000.0 1000.0>
  28.       reflection 1.0
  29.    end_texture
  30.    colour red 1.0 green 0.3
  31. end_object
  32.  
  33. { Put a floor underneath to catch any errant waves from the ripples }
  34. object
  35.    plane <0.0 1.0 0.0> -11.0 end_plane
  36.  
  37.    texture
  38.       0.05
  39.       colour red 1.0 green 0.3
  40.       ambient 1.0
  41.       diffuse 0.0
  42.    end_texture
  43.    colour red 1.0 green 0.3
  44. end_object
  45.  
  46. { Now draw the sky, a distant rear wall }
  47. object
  48.    plane <0.0 0.0 1.0> -200.0 end_plane
  49.  
  50.    texture
  51.       0.05
  52.       colour red 1.0 green 0.3
  53.       ambient 0.3
  54.       diffuse 0.7
  55.    end_texture
  56.    colour red 1.0 green 0.3
  57. end_object
  58.  
  59. { Now to cast some light on the subject }
  60. object
  61.    sphere <0.0 0.0 0.0> 20.0 end_sphere
  62.    translate <0.0  30.0  -160.0>
  63.  
  64.    texture
  65.      colour red 1.0 green 0.6
  66.      ambient 1.0
  67.      diffuse 0.0
  68.    end_texture
  69.  
  70.    light_source
  71.    colour red 1.0 green 0.6
  72. end_object
  73.