home *** CD-ROM | disk | FTP | other *** search
/ ANews 3 / AnewsCD3.iso / atari / GRAPHX / POV / 68030.060 / POV31G30 / POVRAY_3.1G / SCENES / ADVANCED / MIST.POV < prev    next >
Text File  |  1999-10-30  |  2KB  |  107 lines

  1. // Persistence Of Vision raytracer version 3.1 sample file.
  2.  
  3. global_settings {
  4.     assumed_gamma 1.0
  5.     number_of_waves 10
  6. }
  7.  
  8. #include "shapes.inc"
  9. #include "colors.inc"
  10. #include "textures.inc"
  11.  
  12. fog{
  13.     color Gray70
  14.     fog_type 2
  15.     fog_alt 0.35
  16.     fog_offset 0
  17.     distance 1.5
  18.     turbulence <.15, .15, .15>
  19.     omega 0.35
  20.     lambda 1.25
  21.     octaves 5
  22. }
  23.  
  24.  
  25. // Camera definition
  26. camera {
  27.   location <4, 1.5, -8>
  28.   direction <0, 0, 1>
  29.   up  <0, 1, 0>
  30.   right <1.3333, 0, 0>
  31.   look_at <-1,  1.5, 0>
  32. }
  33.  
  34. light_source { <30, 50, -50> color Gray90 }
  35. light_source { <-30, 50, -50> color Violet }
  36.  
  37. //Floor
  38. plane { y, 0
  39.     pigment{ color MidnightBlue }
  40.     normal { ripples 0.75 frequency 7 scale 1.5}
  41.     finish {
  42.         reflection 0.15
  43.         ambient 0.3
  44.     }
  45. }
  46.  
  47. // Sky
  48. sky_sphere { pigment {color MidnightBlue}}
  49.  
  50. #declare Brick_Texture = texture {
  51.     pigment {
  52.         brick Gray70, Wheat
  53.     }
  54.     normal {
  55.         brick 0.75
  56.     }
  57.     finish {
  58.         crand 0.003
  59.         diffuse 0.6 ambient 0.20
  60.     }
  61.     scale <0.1, 0.1, 0.05>
  62.     translate <0.25, 0.30, 0.25>
  63. }
  64.  
  65. #declare Span = difference {
  66.     object { UnitBox }
  67.     object { Disk_Z scale <0.85, 0.75, 1.5> } // cross-arches
  68.     object { Disk_X scale <1.15, 0.7, 0.7> }  // lengthwise arches
  69.     clipped_by { plane { -y,0 } }
  70. }
  71.  
  72. #declare Bridge = union {
  73.     object { Span }
  74.     object { Span translate -x*2}
  75.     object { Span translate  x*2}
  76.     object { Span translate -x*4}
  77.     object { Span translate  x*4}
  78.     object { Span translate -x*6}
  79.     object { Span translate  x*6}
  80.     object { Cube scale <12, 0.15, 1.005> translate y*1.2}
  81.     object { Cube scale <12, 0.05, 1.05> translate y*1.2}
  82.     scale <1,1,2>
  83. }
  84.  
  85. object {Bridge  scale <5.25,4,1>
  86.     texture { Brick_Texture }
  87.     rotate y*90
  88.     translate <-1, 0, 25>
  89. }
  90.  
  91. union {
  92.     difference {
  93.         union {
  94.             object { Disk_Y  scale <10, 23, 10> }
  95.             object { Disk_Y  scale <11, 1, 11> translate <0, 23, 0>}
  96.         }
  97.         object { Disk_Z scale <2.5, 10, 12> }
  98.     }
  99.     union {
  100.     box { <-100, 0, 10> <10, 28, 20> }
  101.     box { <-110, 28, 08> <10, 29, 22> }
  102.     }
  103.  
  104.     translate <0, 0, 45>
  105.     texture { Brick_Texture scale 2 }
  106. }
  107.