home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #7 / amigamamagazinepolishissue1998.iso / varia / povray3 / povray3_fpu / pov3demo / surfaces / colamb1.pov < prev    next >
Text File  |  1997-12-12  |  1KB  |  71 lines

  1. // Persistence Of Vision raytracer version 3.0 sample file.
  2. // Colored ambient example
  3.  
  4. #version 3.0
  5. global_settings { assumed_gamma 2.2 }
  6.  
  7. #include "colors.inc"
  8.  
  9.  camera {
  10.    location <0.5, 1.8, -4>
  11.    right 4/3*x
  12.    up y
  13.    look_at <0, 1.5, 0>
  14.    angle 70
  15.  }
  16.  
  17.  #default { finish { ambient 0.2 specular 0.5 roughness 0.005 } }
  18.  
  19.  box { <-5, 0, -5>, <5, 3, 5>
  20.    pigment { color White }
  21.  }
  22.  
  23.  polygon {
  24.    4, <0, 0>, <1, 0>, <1, 1>, <0, 1>
  25.    scale <6, 2.5, 1>
  26.    translate <-3, 0.25, 4.999>
  27.    finish { 
  28.      ambient rgb <0.1, 0.1, 0.4> 
  29.      diffuse 0 phong 1 phong_size 100
  30.      reflection 0.95 }
  31.    pigment { color White }
  32.  }
  33.  
  34.  // LEFT SIDE
  35.  /* Spheres without ambient color (standard). */
  36.  sphere { <-1, 0.5, 0>, 0.4
  37.    finish { ambient 0.2 }
  38.    pigment { White }
  39.  }
  40.  
  41.  sphere { <-1, 1.5, 0>, 0.4
  42.    finish { ambient 0.2 }
  43.    pigment { White }
  44.  }
  45.  
  46.  sphere { <-1, 2.5, 0>, 0.4
  47.    finish { ambient 0.2 }
  48.    pigment { White }
  49.  }
  50.  
  51.  // RIGHT SIDE
  52.  /* Spheres with ambient color. */
  53.  sphere { <1, 0.5, 0>, 0.4
  54.    finish { ambient rgb <0.2, 0.4, 0.0> }
  55.    pigment { White }
  56.  }
  57.  
  58.  sphere { <1, 1.5, 0>, 0.4
  59.    finish { ambient rgb <0.3, 0.3, 0.0> }
  60.    pigment { White }
  61.  }
  62.  
  63.  sphere { <1, 2.5, 0>, 0.4
  64.    finish { ambient rgb <0.4, 0.2, 0.0> }
  65.    pigment { White }
  66.  }
  67.  
  68.  light_source { <0, 2.9, 0> color Gray30 }
  69.  light_source { < 4, 2.9, -4> color Yellow }
  70.  
  71.