home *** CD-ROM | disk | FTP | other *** search
/ Crawly Crypt Collection 2 / crawlyvol2.bin / graphics / ftpovscn / 3 / kscope.pov < prev    next >
Text File  |  1992-07-21  |  5KB  |  254 lines

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