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

  1. // Persistence Of Vision raytracer version 1.0 sample file.
  2. // The TEXTUREn.POV files demonstrate all textures in TEXTURES.INC
  3.  
  4. #include "colors.inc"
  5. #include "shapes.inc"
  6. #include "textures.inc"
  7.  
  8. camera 
  9.  {location <0 5 -30>
  10.   direction <0 0  1.35>
  11.   up  <0 1 0>
  12.   right <1.33333 0 0>
  13.   look_at <0 5 0>
  14.  }
  15.  
  16. object {light_source {<0 0 -1000> color LightGray}}
  17.  
  18. object {light_source {<150 50 -200> color LightGray}}
  19.  
  20. #declare Stack =
  21.  union
  22.   {box{UnitBox}
  23.    intersection{Disk_Y translate <0 2 0>}
  24.    sphere{<0 4 0> 1}
  25.   }
  26.  
  27. #declare Dist = 0
  28.  
  29. #declare BD0  = -1.1
  30. #declare BD1  =  1.1
  31.  
  32.  
  33. #declare BR1t  = 15.6
  34. #declare BR1b  =  9.4
  35. #declare BR2t  =  8.6
  36. #declare BR2b  =  2.4
  37. #declare BR3t  =  1.6
  38. #declare BR3b  = -4.6
  39.  
  40. #declare Row1 = 10.5
  41. #declare Row2 = 3.5
  42. #declare Row3 = -3.5
  43.  
  44.  
  45. #declare BC1   = -13.2
  46. #declare BC3   = -4.5
  47. #declare BC6   =  4.5
  48. #declare BC9   =  13.2
  49.  
  50. #declare Col1  = -12
  51. #declare Col2  = -9 
  52. #declare Col3  = -6 
  53. #declare Col4  = -3 
  54. #declare Col5  = 0  
  55. #declare Col6  = 3  
  56. #declare Col7  = 6  
  57. #declare Col8  = 9  
  58. #declare Col9  = 12 
  59.  
  60. composite
  61.  {
  62.   composite
  63.    {
  64.     object
  65.      {union{Stack}
  66.       texture {Rust }
  67.       translate <Col1 Row1 Dist>
  68.      }
  69.     
  70.     object
  71.      {union{Stack}
  72.       texture {Candy_Cane}
  73.       translate <Col2 Row1 Dist>
  74.      }
  75.     
  76.     object
  77.      {union{Stack}
  78.       texture {Peel}
  79.       translate <Col3 Row1 Dist>
  80.      }
  81.     bounded_by{box{<BC1 BR1b BD0> <BC3 BR1t BD1>}}
  82.    }
  83.     
  84.   composite
  85.    {
  86.     object
  87.      {union{Stack}
  88.       texture {Y_Gradient}
  89.       translate <Col4 Row1 Dist>
  90.      }
  91.     
  92.     object
  93.      {union{Stack}
  94.       texture {X_Gradient}
  95.       translate <Col5 Row1 Dist>
  96.      }
  97.     
  98.     object
  99.      {union{Stack}
  100.       texture {Water}
  101.       translate <Col6 Row1 Dist>
  102.      }
  103.     bounded_by{box{<BC3 BR1b BD0> <BC6 BR1t BD1>}}
  104.    }
  105.     
  106.  
  107.   composite
  108.    {
  109.     object
  110.      {union{Stack}
  111.       texture {Cork}
  112.       translate <Col7 Row1 Dist>
  113.      }
  114.     
  115. /*
  116.     object
  117.      {union{Stack}
  118.       texture {Phong_Dull color Blue}
  119.       translate <Col8 Row1 Dist>
  120.      }
  121.     
  122.     object
  123.      {union{Stack}
  124.       texture {Phong_Shiny color Blue}
  125.       translate <Col9 Row1 Dist>
  126.      }
  127. */
  128.     bounded_by{box{<BC6 BR1b BD0> <BC9 BR1t BD1>}}
  129.    }
  130.   bounded_by{box{<BC1 BR1b BD0> <BC9 BR1t BD1>}}
  131.  }
  132. /*    
  133. composite
  134.  {
  135.   composite
  136.    {
  137.     object
  138.      {union{Stack}
  139.       texture {Glossy color Blue}
  140.       translate <Col1 Row2 Dist>
  141.      }
  142.     
  143.     object
  144.      {union{Stack}
  145.       texture {Phong_Glossy color Blue}
  146.       translate <Col2 Row2 Dist>
  147.      }
  148.     
  149.     object
  150.      {union{Stack}
  151.       texture {Luminous color Blue}
  152.       translate <Col3 Row2 Dist>
  153.      }
  154.     bounded_by{box{<BC1 BR2b BD0> <BC3 BR2t BD1>}}
  155.    }
  156.     
  157.   composite
  158.    {
  159.     object
  160.      {union{Stack}
  161.       texture {Mirror}
  162.       translate <Col4 Row2 Dist>
  163.      }
  164.     
  165.     object
  166.      {union{Stack}
  167.       texture {Glass}
  168.       translate <Col5 Row2 Dist>
  169.      }
  170.     
  171.     object
  172.      {union{Stack}
  173.       texture {Glass2}
  174.       translate <Col6 Row2 Dist>
  175.      }
  176.     bounded_by{box{<BC3 BR2b BD0> <BC6 BR2t BD1>}}
  177.    }
  178.     
  179.   composite
  180.    {
  181.     object
  182.      {union{Stack}
  183.       texture {Glass3}
  184.       translate <Col7 Row2 Dist>
  185.      }
  186.     
  187.     object
  188.      {union{Stack}
  189.       texture {Green_Glass}
  190.       translate <Col8 Row2 Dist>
  191.      }
  192.     
  193.     object
  194.      {union{Stack}
  195.       texture {Chrome_Texture}
  196.       translate <Col9 Row2 Dist>
  197.      }
  198.     bounded_by{box{<BC6 BR2b BD0> <BC9 BR2t BD1>}}
  199.    }
  200.   bounded_by{box{<BC1 BR2b BD0> <BC9 BR2t BD1>}}
  201.  }
  202.     
  203. composite
  204.  {
  205.   composite
  206.    {
  207.     object
  208.      {union{Stack}
  209.       texture {Metal}
  210.       translate <Col1 Row3 Dist>
  211.      }
  212.     
  213.     object
  214.      {union{Stack}
  215.       texture {Brass_Texture  }
  216.       translate <Col2 Row3 Dist>
  217.      }
  218.     
  219.     object
  220.      {union{Stack}
  221.       texture {Gold_Texture   }
  222.       translate <Col3 Row3 Dist>
  223.      }
  224.     bounded_by{box{<BC1 BR3b BD0> <BC3 BR3t BD1>}}
  225.    }
  226.     
  227.   composite
  228.    {
  229.     object
  230.      {union{Stack}
  231.       texture {Bronze_Texture }
  232.       translate <Col4 Row3 Dist>
  233.      }
  234.     
  235.     object
  236.      {union{Stack}
  237.       texture {Copper_Texture }
  238.       translate <Col5 Row3 Dist>
  239.      }
  240.     
  241.     object
  242.      {union{Stack}
  243.       texture {Silver_Texture }
  244.       translate <Col6 Row3 Dist>
  245.      }
  246.     bounded_by{box{<BC3 BR3b BD0> <BC6 BR3t BD1>}}
  247.    }
  248.     
  249.   composite
  250.    {
  251.     object
  252.      {union{Stack}
  253.       texture {Brass_Valley}
  254.       translate <Col7 Row3 Dist>
  255.      }
  256.     
  257.     object
  258.      {union{Stack}
  259.       texture {Rusty_Iron}
  260.       translate <Col8 Row3 Dist>
  261.      }
  262.     
  263.     object
  264.      {union{Stack}
  265.       translate <Col9 Row3 Dist>
  266.      }
  267.  
  268.     bounded_by{box{<BC6 BR3b BD0> <BC9 BR3t BD1>}}
  269.    }
  270.   bounded_by{box{<BC1 BR3b BD0> <BC9 BR3t BD1>}}
  271.  }
  272. */    
  273. object{plane{<0 0 1> 1.1}texture{color White}}
  274.