home *** CD-ROM | disk | FTP | other *** search
/ Mega A/V / mega_av.zip / mega_av / GRAPHUTL / POVSCN.ZIP / LEVEL2.ZIP / LPOPS1.POV < prev    next >
Text File  |  1992-07-03  |  4KB  |  216 lines

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