home *** CD-ROM | disk | FTP | other *** search
/ Crawly Crypt Collection 2 / crawlyvol2.bin / graphics / ftpovscn / 1 / texture2.pov < prev    next >
Text File  |  1992-07-21  |  5KB  |  273 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 {DMFLightOak}
  67.       translate <Col1 Row1 Dist>
  68.      }
  69.     
  70.     object
  71.      {union{Stack}
  72.       texture {DMFDarkOak}
  73.       translate <Col2 Row1 Dist>
  74.      }
  75.     
  76.     object
  77.      {union{Stack}
  78.       texture {Yellow_Pine}
  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 {Rosewood}
  89.       translate <Col4 Row1 Dist>
  90.      }
  91.     
  92.     object
  93.      {union{Stack}
  94.       texture {Sandalwood}
  95.       translate <Col5 Row1 Dist>
  96.      }
  97.     
  98.     object
  99.      {union{Stack}
  100.       texture {Dull color Blue}
  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 {Shiny color Blue}
  112.       translate <Col7 Row1 Dist>
  113.      }
  114.     
  115.     object
  116.      {union{Stack}
  117.       texture {Phong_Dull color Blue}
  118.       translate <Col8 Row1 Dist>
  119.      }
  120.     
  121.     object
  122.      {union{Stack}
  123.       texture {Phong_Shiny color Blue}
  124.       translate <Col9 Row1 Dist>
  125.      }
  126.     bounded_by{box{<BC6 BR1b BD0> <BC9 BR1t BD1>}}
  127.    }
  128.   bounded_by{box{<BC1 BR1b BD0> <BC9 BR1t BD1>}}
  129.  }
  130.     
  131. composite
  132.  {
  133.   composite
  134.    {
  135.     object
  136.      {union{Stack}
  137.       texture {Glossy color Blue}
  138.       translate <Col1 Row2 Dist>
  139.      }
  140.     
  141.     object
  142.      {union{Stack}
  143.       texture {Phong_Glossy color Blue}
  144.       translate <Col2 Row2 Dist>
  145.      }
  146.     
  147.     object
  148.      {union{Stack}
  149.       texture {Luminous color Blue}
  150.       translate <Col3 Row2 Dist>
  151.      }
  152.     bounded_by{box{<BC1 BR2b BD0> <BC3 BR2t BD1>}}
  153.    }
  154.     
  155.   composite
  156.    {
  157.     object
  158.      {union{Stack}
  159.       texture {Mirror}
  160.       translate <Col4 Row2 Dist>
  161.      }
  162.     
  163.     object
  164.      {union{Stack}
  165.       texture {Glass}
  166.       translate <Col5 Row2 Dist>
  167.      }
  168.     
  169.     object
  170.      {union{Stack}
  171.       texture {Glass2}
  172.       translate <Col6 Row2 Dist>
  173.      }
  174.     bounded_by{box{<BC3 BR2b BD0> <BC6 BR2t BD1>}}
  175.    }
  176.     
  177.   composite
  178.    {
  179.     object
  180.      {union{Stack}
  181.       texture {Glass3}
  182.       translate <Col7 Row2 Dist>
  183.      }
  184.     
  185.     object
  186.      {union{Stack}
  187.       texture {Green_Glass}
  188.       translate <Col8 Row2 Dist>
  189.      }
  190.     
  191.     object
  192.      {union{Stack}
  193.       texture {Chrome_Texture}
  194.       translate <Col9 Row2 Dist>
  195.      }
  196.     bounded_by{box{<BC6 BR2b BD0> <BC9 BR2t BD1>}}
  197.    }
  198.   bounded_by{box{<BC1 BR2b BD0> <BC9 BR2t BD1>}}
  199.  }
  200.     
  201. composite
  202.  {
  203.   composite
  204.    {
  205.     object
  206.      {union{Stack}
  207.       texture {Metal}
  208.       translate <Col1 Row3 Dist>
  209.      }
  210.     
  211.     object
  212.      {union{Stack}
  213.       texture {Brass_Texture  }
  214.       translate <Col2 Row3 Dist>
  215.      }
  216.     
  217.     object
  218.      {union{Stack}
  219.       texture {Gold_Texture   }
  220.       translate <Col3 Row3 Dist>
  221.      }
  222.     bounded_by{box{<BC1 BR3b BD0> <BC3 BR3t BD1>}}
  223.    }
  224.     
  225.   composite
  226.    {
  227.     object
  228.      {union{Stack}
  229.       texture {Bronze_Texture }
  230.       translate <Col4 Row3 Dist>
  231.      }
  232.     
  233.     object
  234.      {union{Stack}
  235.       texture {Copper_Texture }
  236.       translate <Col5 Row3 Dist>
  237.      }
  238.     
  239.     object
  240.      {union{Stack}
  241.       texture {Silver_Texture }
  242.       translate <Col6 Row3 Dist>
  243.      }
  244.     bounded_by{box{<BC3 BR3b BD0> <BC6 BR3t BD1>}}
  245.    }
  246.     
  247.   composite
  248.    {
  249.     object
  250.      {union{Stack}
  251.       texture {Brass_Valley}
  252.       translate <Col7 Row3 Dist>
  253.      }
  254.     
  255.     object
  256.      {union{Stack}
  257.       texture {Rusty_Iron}
  258.       translate <Col8 Row3 Dist>
  259.      }
  260.     
  261.     object
  262.      {union{Stack}
  263.       texture {Rust }
  264.       translate <Col9 Row3 Dist>
  265.      }
  266.  
  267.     bounded_by{box{<BC6 BR3b BD0> <BC9 BR3t BD1>}}
  268.    }
  269.   bounded_by{box{<BC1 BR3b BD0> <BC9 BR3t BD1>}}
  270.  }
  271.     
  272. object{plane{<0 0 1> 1.1}texture{color White}}
  273.