home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #7 / amigamamagazinepolishissue1998.iso / varia / povray3 / povray3_060 / pov3demo / other / adctest.pov next >
Text File  |  1997-12-12  |  1KB  |  69 lines

  1.  // at resolution 160x100 -a
  2.  // using the following constants:
  3.  //    Reflect = 0.5
  4.  //    Filter = 0.5
  5.  //    IOR = 1.45
  6.  //    Refract = 1
  7.  //
  8.  // # Rays Saved : 166033 (total traced = 525525)
  9.  // Max Level Traced: 9 (of 100 max)
  10.  
  11. #version 3.0
  12. global_settings {
  13.     assumed_gamma 2.2
  14.     max_trace_level 100     // much higher than it needs
  15. //    adc_bailout 0.003      // generally  best to not fiddle with this
  16.     adc_bailout 0.5
  17. }
  18.  
  19.  #include "colors.inc"
  20.  #include "textures.inc"
  21.  #include "shapes.inc"
  22.  background { color Blue }
  23.  
  24.  camera {
  25.    location <0, 12, -24>
  26.    direction <0, 0, 1>
  27.    right <1.3333, 0, 0>
  28.    up y
  29.    look_at <0, 0, 0>
  30.  }
  31.  
  32.  light_source { <15, 20,  -100> color White }
  33.  background { color Gray50 }
  34.  plane { y, 0
  35.      pigment { checker color Yellow color Green }
  36.      finish {
  37.          reflection 0.15
  38.      }
  39.  }
  40.  
  41.  #declare Reflect = 0.5
  42.  #declare Filter = 0.5
  43.  #declare IOR = 1.45
  44.  #declare Refract = 1
  45.  
  46.  object { Cube scale <0.25, 7, 12>
  47.      pigment { Blue filter Filter }
  48.      finish {
  49.          reflection Reflect
  50.          ior IOR
  51.          refraction Refract
  52.          diffuse 1
  53.      }
  54.      rotate  y*30
  55.      translate -x*4
  56.  }
  57.  
  58.  object { Cube scale <0.25, 7, 12>
  59.      pigment { Red  filter Filter }
  60.      finish {
  61.          reflection Reflect
  62.          ior IOR
  63.          refraction Refract
  64.          diffuse 1
  65.      }
  66.      rotate -y*30
  67.      translate  x*4
  68.  }
  69.