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

  1. // Persistence Of Vision raytracer version 2.0 sample file.
  2.  
  3. // By Tom Price
  4.  
  5. #include "shapes.inc"
  6. #include "colors.inc"
  7. #include "textures.inc"
  8.  
  9. camera {
  10.    location <0.0, 0.0, -100.0>
  11.    up <0.0, 1.0, 0.0>
  12.    right <4/3, 0.0, 0.0>
  13.    look_at <0.0, 11.547005, 0.0>
  14. }
  15.  
  16. /*The Kaleidoscope Tube*/
  17. union {
  18.    union {
  19.       union {
  20.          triangle {
  21.             <0.0,  1.1547005, -100.0>
  22.             <0.0,  1.1547005,  0.0>
  23.             <-1.0, -0.5773502, 0.0>
  24.          }
  25.  
  26.          triangle {
  27.             <0.0,  1.1547005, -100.0>
  28.             <-1.0, -0.5773502, -100.0>
  29.             <-1.0, -0.5773502, 0.0>
  30.          }
  31.  
  32.          texture {
  33.             pigment { White }
  34.             finish {
  35.                crand 0.05
  36.                ambient 0.1
  37.                diffuse 0.7
  38.                reflection 1.0
  39.             }
  40.          }
  41.       }
  42.  
  43.       union {
  44.          triangle {
  45.             <-0.001, 1.1547005, -100.0>
  46.             <-0.001, 1.1547005,  0.0>
  47.             <1.0, -0.5773502,  0.0>
  48.          }
  49.  
  50.          triangle {
  51.             <-0.001, 1.1547005, -100.0>
  52.             <1.0, -0.5773502, -100.0>
  53.             <1.0, -0.5773502, 0.0>
  54.          }
  55.  
  56.          texture {
  57.             pigment { White }
  58.             finish {
  59.                crand 0.05
  60.                ambient 0.1
  61.                diffuse 0.7
  62.                reflection 1.0
  63.             }
  64.          }
  65.       }
  66.  
  67.       union {
  68.          triangle {
  69.             <-1.0, -0.5773502, -100.0>
  70.             <1.0,  -0.5773502, -100.0>
  71.             <-1.0, -0.5773502, 0.0>
  72.          }
  73.  
  74.          triangle {
  75.             <1.0, -0.5773502, -100.0>
  76.             <-1.0, -0.5773502, 0.0>
  77.             <1.0, -0.5773502, 0.0>
  78.          }
  79.  
  80.          texture {
  81.             pigment { Bright_Blue_Sky }
  82.             finish {
  83.                crand 0.05
  84.                ambient 0.5
  85.                diffuse 0.5
  86.             }
  87.          }
  88.       }
  89.  
  90.       triangle {
  91.          <-1.0, -0.5773502, 0.0>
  92.          <1.0, -0.5773502, 0.0>
  93.          <0.0,  1.1547005,  0.0>
  94.  
  95.          texture {
  96.             pigment { colour red 0.5 green 0.5 blue 0.5 filter 0.3 }
  97.             finish {
  98.                crand 0.1
  99.                ambient 0.3
  100.                diffuse 0.7
  101.             }
  102.          }
  103.       }
  104.  
  105.       scale <10.0, 10.0, 1.0>
  106.    }
  107.  
  108.    sphere {
  109.       <-3.5, -3.0, -45.0>, 3.0
  110.  
  111.       texture {
  112.          pigment { Red filter 0.8 }
  113.          finish {
  114.             crand 0.05
  115.             ambient 0.1
  116.             diffuse 0.7
  117.             reflection 0.2 
  118.             refraction 1.0
  119.             ior 1.2
  120.             brilliance 3.0
  121.          }
  122.       }
  123.    }
  124.  
  125.    sphere {
  126.       <4.0, -3.0, -40.0>, 2.5
  127.  
  128.       texture {
  129.          pigment { Green filter 0.8 }
  130.          finish {
  131.             crand 0.05
  132.             ambient 0.1
  133.             diffuse 0.7
  134.             reflection 0.2 
  135.             refraction 1.0
  136.             ior 1.2
  137.             brilliance 3.0
  138.          }
  139.       }
  140.    }
  141.  
  142.    sphere {
  143.       <0.0, 4.0, -30.0>, 2.0
  144.       texture {
  145.          pigment { Magenta filter 0.8 }
  146.          finish {
  147.             crand 0.05
  148.             ambient 0.1
  149.             diffuse 0.7
  150.             reflection 0.2 
  151.             refraction 1.0
  152.             ior 1.2
  153.             brilliance 3.0
  154.          }
  155.       }
  156.    }
  157.  
  158.    sphere {
  159.       <0.0, -2.0, -20.0>, 2.0
  160.  
  161.       texture {
  162.          pigment { Yellow filter 0.8 }
  163.          finish {
  164.             crand 0.05
  165.             ambient 0.1
  166.             diffuse 0.7
  167.             reflection 0.2 
  168.             refraction 1.0
  169.             ior 1.2
  170.             brilliance 3.0
  171.          }
  172.       }
  173.    }
  174.  
  175.    sphere {
  176.       <2.0, -4.0, -70.0>, 2.0
  177.       texture {
  178.          pigment { Cyan filter 0.8 }
  179.          finish {
  180.             crand 0.05
  181.             ambient 0.1
  182.             diffuse 0.7
  183.             reflection 0.2 
  184.             refraction 1.0
  185.             ior 1.2
  186.             brilliance 3.0
  187.          }
  188.       }
  189.    }
  190.  
  191.    triangle {
  192.       <-1.0, -8.0, -50.0>
  193.       < 0.0,  1.0, -50.0>
  194.       < 2.0, -3.0, -50.0>
  195.  
  196.       texture {
  197.          pigment { colour red 0.8 green 0.5 blue 0.3 filter 0.9 }
  198.          finish {
  199.             crand 0.05
  200.             ambient 0.3
  201.             diffuse 0.7
  202.          }
  203.       }
  204.    }
  205.  
  206.    triangle {
  207.       <1.0, 7.0, -5.0>
  208.       < -4.0,  -1.0, -5.0>
  209.       < 3.0, 1.0, -5.0>
  210.  
  211.       texture {
  212.          pigment { colour red 0.2 green 0.9 blue 0.5 filter 0.9 }
  213.          finish {
  214.             crand 0.05
  215.             ambient 0.3
  216.             diffuse 0.7
  217.          }
  218.       }
  219.    }
  220.  
  221.    triangle {
  222.       <-8.0, -5.0, -80.0>
  223.       < -4.0,  -1.0, -80.0>
  224.       < 0.0, -4.0, -80.0>
  225.  
  226.       texture {
  227.          pigment { colour red 0.7 green 0.7 blue 0.3 filter 1.0 }
  228.          finish {
  229.             crand 0.05
  230.             ambient 0.3
  231.             diffuse 0.7
  232.             refraction 0.9
  233.             ior 1.0
  234.          }
  235.       }
  236.    }
  237.  
  238.    union {
  239.       triangle {
  240.          <0.0, 0.0, 0.0>
  241.          <0.0, 1.0, 0.0>
  242.          <1.0, 0.0, 0.0>
  243.       }
  244.  
  245.       triangle {
  246.          <1.0, 0.0, 0.0>
  247.          <0.0, 1.0, 0.0>
  248.          <1.0, 1.0, 0.0>
  249.       }
  250.  
  251.       rotate <20.0, 45.0, -10.0>
  252.       translate <-0.6, -0.5, -65.0>
  253.       scale <10.0, 10.0, 1.0>
  254.  
  255.       texture {
  256.          // Subsitute your own image here instead of sunset.ham
  257.          //    image_map { <1.0 -1.0 0.0> iff "sunset.ham" once 
  258.          //    interpolate 2.0
  259.          //    }
  260.          pigment {
  261.             Black
  262.             rotate <20.0, 45.0, -10.0>
  263.             translate <-0.6, -0.5, -65.0>
  264.             scale <9.0, 9.0, 1.0>
  265.          }
  266.          finish {
  267.             ambient 0.5
  268.             diffuse 0.3  
  269.             refraction 0.25
  270.             ior 1.0
  271.          }
  272.       }
  273.    }
  274. }
  275.  
  276. light_source { <0.0, 0.0, 20.0> colour White }
  277.