home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #7 / amigamamagazinepolishissue1998.iso / varia / povray3 / povray3_fpu / povscn / level2 / arches.pov next >
Text File  |  1997-12-12  |  2KB  |  98 lines

  1. // Persistence Of Vision raytracer version 3.0 sample file.
  2. // By Dan Farmer
  3. // Parabolic arches on the water.  Is this the St. Louis McDonalds?
  4. // Enhanced for POV-Ray 3.0
  5.  
  6. #version 3.0
  7. global_settings { assumed_gamma 2.2 }
  8.  
  9. #include "colors.inc"
  10. #include "shapes.inc"
  11. #include "textures.inc"
  12. #include "metals.inc"
  13. #include "skies.inc"
  14.  
  15. camera {
  16.    location <60.0, 0.0, -135.0>
  17.    direction <0.0, 0.0, 2.0>
  18.    up  <0.0, 1.0, 0.0>
  19.    right <4/3, 0.0, 0.0>
  20.    look_at <0.0, 0.0, 0.0>
  21. }
  22.  
  23. // Light
  24. light_source {<200.0, 200.0, -150.0> colour red 1 green .5 }
  25.  
  26. #declare New_Sky = sky_sphere { S_Cloud2 }
  27. #declare Old_Sky =
  28. sky_sphere {
  29.    pigment {
  30.       gradient y
  31.       colour_map {
  32.          [0.0 0.8  colour red 0.5 green 0.1 blue 0.7
  33.                    colour red 0.1 green 0.1 blue 0.9]
  34.          [0.8 1.0  colour red 0.1 green 0.1 blue 0.9
  35.                    colour red 0.1 green 0.1 blue 0.9]
  36.       }
  37.    }
  38.    pigment {
  39.       bozo
  40.       turbulence 0.7
  41.       colour_map {
  42.          [0.0 0.6  colour red 1.0 green 1.0 blue 1.0 filter 1.0
  43.                    colour red 1.0 green 1.0 blue 1.0 filter 1.0]
  44.          [0.6 0.8  colour red 1.0 green 1.0 blue 1.0 filter 1.0
  45.                    colour red 1.0 green 1.0 blue 1.0]
  46.          [0.8 1.001 colour red 1.0 green 1.0 blue 1.0
  47.                     colour red 0.8 green 0.8 blue 0.8]
  48.       }
  49.       scale <0.5, 0.2, 0.2>
  50.    }
  51. }
  52.  
  53. sky_sphere { New_Sky }                      // changed by dmf '95
  54.  
  55. // Define the ocean surface
  56. plane { y, -10.0
  57.    texture {
  58.       T_Chrome_2D
  59.       normal {
  60.          waves 0.05
  61.          frequency 5000.0
  62.          scale 3000.0
  63.       }
  64.    }
  65. }
  66.  
  67.  
  68. // Create the arches using CSG difference between two "squashed" paraboloids
  69. difference {
  70.    object { Paraboloid_Y
  71.       scale <20.0, 20.0, 5.0>
  72.       rotate 180*x
  73.       texture { T_Chrome_3C }
  74.    }
  75.    object { Paraboloid_Y
  76.       scale <18.0, 20.0, 18.0>
  77.       rotate 180*x
  78.       translate -2*y
  79.       texture { T_Copper_3C }
  80.    }
  81.    translate <0.0, 30.0, -25.0>
  82. }
  83.  
  84. difference {
  85.    object { Paraboloid_Y
  86.       scale <20.0, 20.0, 5.0>
  87.       rotate 180*x
  88.       texture { T_Chrome_3C }
  89.    }
  90.    object { Paraboloid_Y
  91.       scale <18.0, 20.0, 18.0>
  92.       rotate 180*x
  93.       translate -2*y
  94.       texture { T_Copper_3C }
  95.    }
  96.    translate <0.0, 30.0, 50.0>
  97. }
  98.