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

  1. // Persistence Of Vision raytracer version 3.0 sample file.
  2. // File by Various and Sundry
  3. // Revision Note:
  4. // Reworked both the declared wood texture (turb and colormap) and
  5. // the application of it on the floor plane.
  6. // Note that wood doesn't really look like much until you get around
  7. // 640x480.  Anti-aliasing helps even more to bring out the detail.  -dmf
  8.  
  9. #version 3.0
  10. global_settings { assumed_gamma 1.0 }
  11.  
  12. #include "shapes.inc"
  13. #include "colors.inc"
  14. #include "textures.inc"
  15.  
  16. // a light tan wood with brown rings
  17. #declare New_Tan_Wood = pigment {
  18.    wood
  19.    turbulence 0.03
  20.    colour_map {
  21.       [0.0 0.4  colour red 0.6 green 0.45 blue 0.25
  22.                 colour red 0.65 green 0.45 blue 0.25]
  23.       [0.4 1.01 colour red 0.6 green 0.4 blue 0.2
  24.                 colour red 0.25 green 0.15 blue 0.05]
  25.    }
  26. }
  27.  
  28. camera {
  29.    location <0, 25, -40>
  30.    up  y
  31.    right x*4/3
  32.    direction z
  33.    look_at 0
  34. }
  35.  
  36. // A bowl
  37. intersection {
  38.    sphere { <0.0, 0.0, 0.0>, 1.0 }
  39.    sphere { <0.0, 0.0, 0.0>  0.9 inverse }
  40.    plane { y, 0.5 }
  41.    scale 20.0
  42.    pigment { Black }
  43.    normal {
  44.         wrinkles 0.5
  45.         scale 2
  46.    }
  47.    finish {
  48.       reflection 0.6
  49.    }
  50. }
  51.  
  52.  
  53. // Water
  54. union {
  55.    disc { 0, y, 17.2 translate y*9.14
  56.       pigment { Blue }
  57.       finish {
  58.          reflection 0.6
  59.       }
  60.    }
  61.    disc { 0, y, 17.2 translate y*9.15
  62.       pigment { White filter 0.95}
  63.       normal {
  64.          ripples 0.5
  65.          frequency 100.0
  66.          scale 100.0
  67.       }
  68.       finish {
  69.          reflection 0.3
  70.          refraction 0.6
  71.          ior 1.2
  72.       }
  73.    }
  74. }
  75.  
  76. // Wood floor
  77. plane { y, -20.0
  78.    pigment {                  // seems to reduce "moire" effect on the grain
  79.       New_Tan_Wood            // Think of a log, facing you...
  80.       scale <2, 2, 1>         // z is infinite, so 1 is ok...
  81.       rotate <0, 90, 0>       // turn the "log" to the x axis
  82.       rotate <0.0, 0.0, 10.0> // tilt the log just a little bit
  83.       translate <0, -4, 0>    // lift it to where the rings are larger
  84.       rotate <5, 0, 0>        // tip it again, this time on x axis
  85.       warp { repeat z*50 offset <0.1, 0.1, 0.1> flip y }
  86.  
  87.    }
  88.  
  89.    finish {
  90.       crand 0.015
  91.       ambient 0.15
  92.       diffuse 0.35
  93.    }
  94. }
  95.  
  96. // Back wall
  97.  plane { z, 100.0
  98.     pigment {
  99.        Red_Marble
  100.        scale 100.0
  101.     }
  102.     finish {
  103.       ambient 0.15
  104.       diffuse 0.15
  105.    }
  106. }
  107.  
  108. // A sky to reflect in the water
  109. plane { y, 150.0
  110.    pigment { colour red 0.5 green 0.5 blue 1.0 }
  111.    finish {
  112.       ambient 1
  113.    }
  114. }
  115.  
  116. // Light source
  117. light_source { <100.0, 120.0, -130.0> colour White }
  118.