home *** CD-ROM | disk | FTP | other *** search
/ Chestnut's Multimedia Mania / MM_MANIA.ISO / graphics / povscn20 / shadows.pov < prev    next >
Text File  |  1993-09-27  |  1KB  |  84 lines

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