home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 4 / DATAFILE_PDCD4.iso / utilities / utilsp / povray / !POVscene / level2 / pov / lpops2 < prev    next >
Text File  |  1992-09-27  |  5KB  |  272 lines

  1. // Persistence Of Vision raytracer version 1.0 sample file.
  2.  
  3. // By Tom Price
  4.  
  5.  
  6.  
  7. #include "shapes"
  8. #include "colors"
  9. #include "textures"
  10.  
  11. camera {
  12.    location <0.0 35.0 -150.0>
  13.    up <0.0 1.0 0.0>
  14.    right <1.3333 0.0 0.0>
  15.    look_at <0.0 0.0 0.0>
  16. }
  17.  
  18. fog {
  19.    colour red 0.5 green 0.5 blue 0.5
  20.    1000.0
  21. }
  22.  
  23. /*The floor*/
  24. object {
  25.    plane { <0.0 1.0 0.0> -60.0 }
  26.    texture { 
  27.       0.05 
  28.       checker colour Brown colour LightGray
  29.       scale <40.0 40.0 40.0>
  30.       translate <-5.0 0.0 0.0>
  31.       ambient 0.2
  32.       diffuse 0.7
  33.       reflection 0.3
  34.       phong 1.0
  35.       phong_size 20.0
  36.    }
  37.    colour red 0.4 blue 0.4 green 0.4
  38. }
  39.  
  40. /*The Sky*/
  41. object {
  42.    sphere { <0.0 -40000.0 0.0> 50000.0 }
  43.    texture { 
  44.       0.05 
  45.       Bright_Blue_Sky
  46.       scale <6000.0 3000.0 3000.0>
  47.       rotate <0.0 -30.0 0.0>
  48.       ambient 0.7
  49.       diffuse 0.0
  50.    }
  51.    colour Blue
  52. }
  53.  
  54. composite {
  55.    object {
  56.       intersection {
  57.          sphere { <0.0 0.0 0.0> 40.0 }
  58.          quadric { Cylinder_Z scale <20.0 20.0 1.0> inverse }
  59.       }
  60.       texture {
  61.          0.05
  62.          ambient 0.1
  63.          diffuse 0.7
  64.          colour red 0.6 green 0.6 blue 0.0 
  65.          reflection 0.7
  66.          brilliance 6.0
  67.          specular 0.5
  68.       }
  69.    }
  70.  
  71.    composite {
  72.       object {
  73.          triangle {
  74.             <-1.0 0.0 -0.5773502>
  75.             < 1.0 0.0 -0.5773502>
  76.             < 0.0 0.0  1.1547005>
  77.          }
  78.          texture {
  79.             0.05
  80.             colour Gold
  81.             ambient 0.1
  82.             diffuse 0.7
  83.             reflection 0.4
  84.             brilliance 6.0
  85.             specular 0.5
  86.          }
  87.       }
  88.  
  89.       object {
  90.          triangle {
  91.             <-1.0 0.0 -0.5773502>
  92.             < 0.0 0.0  1.1547005>
  93.             < 0.0 1.6329931  0.0>
  94.          }
  95.          texture {
  96.             0.05
  97.             colour Gold
  98.             ambient 0.1
  99.             diffuse 0.7
  100.             reflection 0.4
  101.             brilliance 6.0
  102.             specular 0.5
  103.          }
  104.       }
  105.  
  106.       object {
  107.          triangle {
  108.             < 1.0 0.0 -0.5773502>
  109.             < 0.0 0.0  1.1547005>
  110.             < 0.0 1.6329931  0.0>
  111.          }
  112.          texture {
  113.             0.05
  114.             colour Gold
  115.             ambient 0.1
  116.             diffuse 0.7
  117.             reflection 0.4
  118.             brilliance 6.0
  119.             specular 0.5
  120.          }
  121.       }
  122.  
  123.       object {
  124.          triangle {
  125.             <-1.0 0.0 -0.5773502>
  126.             < 1.0 0.0 -0.5773502>
  127.             < 0.0 1.6329931  0.0>
  128.          }
  129.          texture {
  130.             0.05
  131.             colour red 0.5 green 0.4 blue 0.0
  132.             ambient 0.4
  133.             diffuse 0.6
  134.             reflection 0.2
  135.             brilliance 6.0
  136.          }
  137.       }
  138.  
  139.       translate <0.0 -0.4082886 0.0>
  140.       scale <15.0 15.0 15.0>
  141.       rotate <-45.0 -50.0 10.0>
  142.    }
  143.  
  144.    object {
  145.       intersection {
  146.          quadric { Cylinder_Y scale <7.0 1.0 7.0> }
  147.          plane { <0.0 1.0 0.0> -20.0 }
  148.       }
  149.       texture {
  150.          0.05
  151.          Pine_Wood
  152.          scale <10.0 100.0 10.0> 
  153.          ambient 0.1
  154.          diffuse 0.7
  155.          reflection 0.5
  156.          specular 0.5
  157.       }
  158.    }
  159.    translate <10.0 20.0 60.0>
  160. }
  161.  
  162. composite {
  163.    object {
  164.       sphere { <0.0 0.0 0.0> 20.0 }
  165.       texture {
  166.          Glass
  167.          0.05
  168.       }
  169.    }          
  170.  
  171.    object {
  172.       intersection {
  173.          quadric { Cylinder_Y scale <3.0 1.0 3.0> }
  174.          plane { <0.0 1.0 0.0> 0.0 }
  175.       }
  176.       texture {
  177.          0.05
  178.          Pine_Wood
  179.          scale <10.0 50.0 10.0>  
  180.          ambient 0.1
  181.          diffuse 0.7
  182.          reflection 0.5
  183.          specular 0.5
  184.       }
  185.    }
  186.    translate <-40.0 -5.0 -0.0>
  187. }
  188.  
  189. composite {
  190.    object {
  191.       sphere { <0.0 0.0 0.0> 15.0 }
  192.       texture {
  193.          0.05
  194.          colour red 0.0 green 0.6 blue 0.3 
  195.          ambient 0.1
  196.          diffuse 0.5
  197.          reflection 0.5
  198.          brilliance 3.0
  199.          specular 0.1
  200.       }
  201.    }
  202.  
  203.    object {
  204.       intersection {
  205.          quadric { Cylinder_Y scale <3.0 1.0 3.0> }
  206.          plane { <0.0 1.0 0.0> 0.0 }
  207.       }
  208.       texture {
  209.          0.05
  210.          Pine_Wood
  211.          scale <10.0 100.0 10.0> 
  212.          ambient 0.1
  213.          diffuse 0.7
  214.          reflection 0.5
  215.          specular 0.5
  216.       }
  217.    }
  218.    translate <50.0 10.0 -30>
  219. }
  220.  
  221. object {
  222.    sphere { <250.0 25.0 350.0> 30.0 }
  223.    texture {
  224.       Glass
  225.       0.05
  226.    }
  227. }      
  228.  
  229. composite {
  230.    object {
  231.       sphere { <0.0 0.0 0.0> 40.0 }
  232.       texture { 
  233.          /*         imagemap <1.0 -1.0 0.0> gif "city01.gif" once */
  234.          color Blue
  235.          scale <75.0 75.0 75.0>
  236.          translate <-127.5 -7.5 100.0> 
  237.          ambient 0.1
  238.          diffuse 0.5
  239.          colour red 0.5 green 0.5 blue 0.5
  240.          reflection 0.2
  241.          /*         refraction 0.4*/
  242.          /*         ior 1.2       */
  243.          phong 0.1
  244.          phong_size 10
  245.       }
  246.    }          
  247.  
  248.    object {
  249.       intersection {
  250.          quadric { Cylinder_Y scale <6.0 1.0 6.0> }
  251.          plane { <0.0 1.0 0.0> -20.0 }
  252.       }
  253.       texture {
  254.          0.05
  255.          Pine_Wood
  256.          scale <10.0 50.0 10.0>        
  257.          ambient 0.1
  258.          diffuse 0.7
  259.          reflection 0.5
  260.          specular 0.5
  261.       }
  262.    }
  263.    translate <-100.0 30.0 100.0>
  264. }
  265.  
  266. object {
  267.    light_source { <-100.0 100.0 -200.0>
  268.       colour White
  269.    }
  270. }
  271.  
  272.