home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 May / PCWorld_2000-05_cd.bin / Software / TemaCD / povray / povwin3.exe / %MAINDIR% / scenes / lights / shadows.pov < prev    next >
Encoding:
Text File  |  2000-04-06  |  1.4 KB  |  89 lines

  1. // Persistence Of Vision raytracer version 3.1 sample file.
  2. // Area_light example
  3. // File by Steve Anger
  4.  
  5. global_settings { assumed_gamma 2.2 }
  6.  
  7. #include "colors.inc"
  8. #include "shapes.inc"
  9. #include "textures.inc"
  10.  
  11. camera {
  12.    location <0, 45, -45>
  13.    direction <0, 0, 1.5>
  14.    look_at <0, 0, 0>
  15. }
  16.  
  17. light_source {
  18.    <-10, 20, -10> color White
  19.  
  20.    area_light <4, 0, 0>, <0, 0, 4>, 9, 9
  21.    adaptive 1
  22.    jitter
  23.  
  24.    // Show what the light source looks like
  25.    looks_like {
  26.       box {
  27.          <-2, 0, -2>, <2, 0.5, 2>
  28.          pigment { White } finish { Luminous }
  29.       }
  30.    }
  31. }
  32.  
  33. // Floor
  34. plane { y, 0
  35.    pigment { Tan }
  36.    finish {
  37.       crand 0.015
  38.       ambient 0.12
  39.       diffuse 0.8
  40.    }
  41. }
  42.  
  43.  
  44. // A few simple objects to cast some fuzzy shadows
  45.  
  46. sphere {
  47.    <0, 7, 0>, 7
  48.  
  49.    pigment { Red }
  50.    finish {
  51.       ambient 0.1
  52.       diffuse 0.7
  53.       phong 1
  54.       phong_size 80
  55.    }
  56. }
  57.  
  58. box {
  59.    <-3, -3, -3>, <3, 3, 3>
  60.  
  61.    pigment { Gold filter 0.92 }
  62.    finish {
  63.       ambient 0.1
  64.       diffuse 0.7
  65.       phong 1
  66.       phong_size 50
  67.    }
  68.    interior{
  69.       ior 1.3
  70.    }
  71.  
  72.    rotate -40*y
  73.    translate <-6, 3, -14>
  74. }
  75.  
  76. cylinder {
  77.    <0, -4, 0>, <0, 4, 0>, 2.5
  78.  
  79.    translate <-17, 4, -8>
  80. // texture { Copper_Metal } - AAC reflection making this look wierd...
  81.    pigment { Copper }
  82.    finish {
  83.         ambient 0.1
  84.         diffuse 0.7
  85.         phong 1
  86.         phong_size 60
  87.     }
  88. }
  89.