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

  1. // Persistence Of Vision raytracer version 2.0 sample file.
  2.  
  3. // By Tom Price
  4.  
  5.  
  6. #include "shapes.inc"
  7. #include "colors.inc"
  8. #include "textures.inc"
  9.  
  10. camera {
  11.    location <0.0, 35.0, -150.0>
  12.    up <0.0, 1.0, 0.0>
  13.    right <4/3, 0.0, 0.0>
  14.    look_at <0.0, 0.0, 0.0>
  15. }
  16.  
  17. /*The floor*/
  18. plane { y, -60.0
  19.    pigment {
  20.       checker colour Brown colour LightGray
  21.       quick_colour red 0.4 blue 0.4 green 0.4
  22.       scale 40.0
  23.    }
  24.    finish {
  25.       crand 0.05 
  26.       ambient 0.1
  27.       diffuse 0.7
  28.       reflection 0.4
  29.       phong 1.0
  30.       phong_size 20.0
  31.    }
  32. }
  33.  
  34. /*The Sky*/
  35. sphere { <0.0, -40000.0, 0.0>, 50000.0
  36.    pigment {
  37.       Bright_Blue_Sky
  38.       quick_colour Blue
  39.       scale <8000.0, 3000.0, 3000.0>
  40.    }
  41.    finish {
  42.       crand 0.05 
  43.       ambient 0.7
  44.       diffuse 0.0
  45.    }
  46. }
  47.  
  48. union {
  49.    intersection {
  50.       sphere { <0, 0, 0>, 40 }
  51.       object { Cylinder_Z scale <20, 20, 1> inverse }
  52.  
  53.       pigment { colour red 0.6 green 0.6 blue 0.0 }
  54.       finish {
  55.          crand 0.05
  56.          ambient 0.1
  57.          diffuse 0.7
  58.          reflection 0.7
  59.          brilliance 6.0
  60.          specular 0.5
  61.       }
  62.    }
  63.  
  64.    union {
  65.       triangle {
  66.          <-1.0, 0.0, -0.5773502>
  67.          < 1.0, 0.0, -0.5773502>
  68.          < 0.0, 0.0,  1.1547005>
  69.  
  70.          pigment { Gold }
  71.          finish {
  72.             crand 0.05
  73.             ambient 0.1
  74.             diffuse 0.7
  75.             reflection 0.4
  76.             brilliance 6.0
  77.          }
  78.       }
  79.  
  80.       triangle {
  81.          <-1.0, 0.0, -0.5773502>
  82.          < 0.0, 0.0,  1.1547005>
  83.          < 0.0, 1.6329931,  0.0>
  84.  
  85.          pigment { Gold }
  86.          finish {
  87.             crand 0.05
  88.             ambient 0.1
  89.             diffuse 0.7
  90.             reflection 0.4
  91.             brilliance 6.0
  92.          }
  93.       }
  94.  
  95.       triangle {
  96.          <1.0, 0.0, -0.5773502>
  97.          <0.0, 0.0,  1.1547005>
  98.          <0.0, 1.6329931,  0.0>
  99.  
  100.          pigment { Gold }
  101.          finish {
  102.             crand 0.05
  103.             ambient 0.1
  104.             diffuse 0.7
  105.             reflection 0.4
  106.             brilliance 6.0
  107.          }
  108.       }
  109.  
  110.       triangle {
  111.          <-1.0, 0.0, -0.5773502>
  112.          < 1.0, 0.0, -0.5773502>
  113.          < 0.0, 1.6329931,  0.0>
  114.  
  115.          pigment { colour red 0.5 green 0.4 blue 0.0 }
  116.          finish {
  117.             crand 0.05
  118.             ambient 0.4
  119.             diffuse 0.6
  120.             reflection 0.2
  121.             brilliance 6.0
  122.          }
  123.       }
  124.  
  125.       translate -0.4082886*y
  126.       scale 15
  127.       rotate <-45.0, -50.0, 10.0>
  128.    }
  129.  
  130.    intersection {
  131.       object { Cylinder_Y scale <7.0, 1.0, 7.0> }
  132.       plane { y, -20.0 }
  133.  
  134.       pigment {
  135.          Pine_Wood
  136.          scale <10.0, 100.0, 10.0>
  137.       }
  138.       finish {
  139.          crand 0.05
  140.          ambient 0.1
  141.          diffuse 0.7
  142.          reflection 0.5
  143.          specular 0.5
  144.       }
  145.    }
  146.  
  147.    translate <10.0, 20.0, 60.0>
  148. }
  149.  
  150. union {
  151.    sphere { <0.0, 0.0, 0.0>, 20.0
  152.       texture {
  153.          Glass
  154.          finish { crand 0.05 }
  155.       }
  156.    }          
  157.  
  158.    intersection {
  159.       object { Cylinder_Y scale <3.0, 1.0, 3.0> }
  160.       plane { y, 0.0 }
  161.  
  162.       pigment {
  163.          Pine_Wood
  164.          scale <10.0, 50.0, 10.0>
  165.       }
  166.       finish {
  167.          crand 0.05
  168.          ambient 0.1
  169.          diffuse 0.7
  170.          reflection 0.5
  171.          specular 0.5
  172.       }
  173.    }
  174.  
  175.    translate <-40.0, 15.0, -10.0>
  176. }
  177.  
  178. union {
  179.    sphere { <0.0, 0.0, 0.0>, 15.0
  180.       pigment { colour red 0.0 green 0.6 blue 0.3 }
  181.       finish {
  182.          crand 0.05
  183.          ambient 0.1
  184.          diffuse 0.5
  185.          reflection 0.5
  186.          brilliance 3.0
  187.          specular 0.1
  188.       }
  189.    }
  190.  
  191.    intersection {
  192.       object { Cylinder_Y scale <3.0, 1.0, 3.0> }
  193.       plane { y, 0.0 }
  194.  
  195.       pigment {
  196.          Pine_Wood
  197.          scale <10.0, 100.0, 10.0>
  198.       }
  199.       finish {
  200.          crand 0.05
  201.          ambient 0.1
  202.          diffuse 0.7
  203.          reflection 0.5
  204.          specular 0.5
  205.       }
  206.    }
  207.  
  208.    translate <50.0, 10.0, -30>
  209. }
  210.  
  211. light_source { <-100.0, 100.0, -200.0> colour White }
  212.  
  213.