home *** CD-ROM | disk | FTP | other *** search
/ Crawly Crypt Collection 2 / crawlyvol2.bin / graphics / ftpovscn / 4 / domino.pov < prev    next >
Text File  |  1994-04-07  |  5KB  |  248 lines

  1. // Persistence of Vision Raytracer 2.0
  2. // Image by George Ganoe
  3.  
  4. #include "colors.inc"           // Standard colors library
  5. #include "shapes.inc"           // Commonly used object shapes
  6. #include "textures.inc"         // LOTS of neat textures.  Lots of NEW textures.
  7. #include "stones.inc"
  8.  
  9. camera {
  10.    location  <-2.10, 3.0, -4.0>
  11.    direction <0.0,  0.0,  2.7>
  12.    up        <0.0,  1.0,  0>
  13.    right     <4/3,  0.0,  0>
  14.    look_at   <2.0,    0,   0.8>}
  15.  
  16. light_source {<-100, 100,  -200> color White}
  17. light_source {<100, 100,  -200> color Gray50}
  18.  
  19. #declare DomCutout = box { <-0.45, -0.45, -0.02>, <0.45, 0.45, 0.02> }
  20. #declare DomDivide = box { <-0.45, -0.015, -0.01>, <0.45, 0.015, 0.01> }
  21. #declare DomBox = union {
  22.    box { <-0.5, -0.94, -0.125>, <0.5, 0.94, 0.125> }
  23.    box { <-0.44, -1.0, -0.125>, <0.44, 1.0, 0.125> }
  24.    cylinder { <-0.44, 0.94, -0.125>, <-0.44, 0.94,  0.125>, 0.06 }
  25.    cylinder { <-0.44, -0.94, -0.125>, <-0.44, -0.94,  0.125>, 0.06 }
  26.    cylinder { <0.44, 0.94, -0.125>, <0.44, 0.94,  0.125>, 0.06 }
  27.    cylinder { <0.44, -0.94, -0.125>, <0.44, -0.94,  0.125>, 0.06 }
  28. }
  29.  
  30. #declare DomRout = union {
  31.    object {
  32.       DomDivide
  33.       translate <0, 0, -0.125>
  34.    }
  35.    object {
  36.       DomCutout
  37.       translate <0, 0.5, -0.125>
  38.    }
  39.    object {
  40.       DomCutout
  41.       translate <0, -0.5, -0.125>
  42.    }
  43. }
  44.  
  45. #declare DomBlank = difference
  46. {
  47.    object { DomBox }
  48.    object { DomRout }
  49.    texture {
  50.       pigment { Gray10 }
  51.       normal{ bumps 0.2 scale 0.01 }
  52.       finish { Shiny }
  53.    }
  54.    bounded_by { box { <-0.501, -1.01, -0.126>, <0.501, 1.01, 0.126> } }
  55. }
  56.  
  57. #declare Dom2Sph = union {
  58.    sphere { <-0.27, -0.27, 0>, 0.08 }
  59.    sphere { < 0.27,  0.27, 0>, 0.08 }
  60. }
  61.  
  62. #declare Dom2Dip = union {
  63.    sphere { <-0.27, -0.27, -0.1833>, 0.2 }
  64.    sphere { < 0.27,  0.27, -0.1833>, 0.2 }
  65. }
  66.  
  67. #declare Dom2Dot = difference {
  68.    object { Dom2Sph }
  69.    object { Dom2Dip }
  70.    texture {
  71.       pigment { Gray85 }
  72.       finish { Shiny }
  73.    }
  74. }
  75.  
  76. #declare Dom3Sph = union {
  77.    sphere { < 0,     0,    0>, 0.08 }
  78.    sphere { <-0.27, -0.27, 0>, 0.08 }
  79.    sphere { < 0.27,  0.27, 0>, 0.08 }
  80. }
  81.  
  82. #declare Dom3Dip = union {
  83.    sphere { < 0,     0,    -0.1833>, 0.2 }
  84.    sphere { <-0.27, -0.27, -0.1833>, 0.2 }
  85.    sphere { < 0.27,  0.27, -0.1833>, 0.2 }
  86. }
  87.  
  88. #declare Dom3Dot = difference {
  89.    object { Dom3Sph }
  90.    object { Dom3Dip }
  91.    texture {
  92.       pigment { Gray85 }
  93.       finish { Shiny }
  94.    }
  95. }
  96.  
  97. #declare Dom7Sph = union {
  98.    sphere { < 0,     0,    0>, 0.08 }
  99.    sphere { <-0.27,  0.27, 0>, 0.08 }
  100.    sphere { <-0.27,  0,    0>, 0.08 }
  101.    sphere { <-0.27, -0.27, 0>, 0.08 }
  102.    sphere { < 0.27,  0.27, 0>, 0.08 }
  103.    sphere { < 0.27,  0,    0>, 0.08 }
  104.    sphere { < 0.27, -0.27, 0>, 0.08 }
  105. }
  106.  
  107. #declare Dom7Dip = union {
  108.    sphere { < 0,     0,    -0.1833>, 0.2 }
  109.    sphere { <-0.27,  0.27, -0.1833>, 0.2 }
  110.    sphere { <-0.27,  0,    -0.1833>, 0.2 }
  111.    sphere { <-0.27, -0.27, -0.1833>, 0.2 }
  112.    sphere { < 0.27,  0.27, -0.1833>, 0.2 }
  113.    sphere { < 0.27,  0,    -0.1833>, 0.2 }
  114.    sphere { < 0.27, -0.27, -0.1833>, 0.2 }
  115. }
  116.  
  117. #declare Dom7Dot = difference {
  118.    object { Dom7Sph }
  119.    object { Dom7Dip }
  120.    texture {
  121.       pigment { Gray85 }
  122.       finish { Shiny }
  123.    }
  124. }
  125.  
  126. object {
  127.    union {
  128.       difference {
  129.          object { DomBlank }
  130.          union {
  131.             object {
  132.                Dom7Sph
  133.                translate <0, 0.5, -0.105>
  134.             }
  135.             object {
  136.                Dom3Sph
  137.                translate <0, -0.5, -0.105>
  138.             }
  139.          }
  140.       }
  141.       union {
  142.          object {
  143.             Dom7Dot
  144.             translate <0, 0.5, -0.105>
  145.          }
  146.          object {
  147.             Dom3Dot
  148.             translate <0, -0.5, -0.105>
  149.          }
  150.       }
  151.    }
  152.    translate < 2.5, 0, 0.0 >
  153. }
  154.  
  155. object {
  156.    DomBlank
  157.    translate < 2.50, 0, 0.0 >
  158.    rotate -25*y
  159. }
  160.  
  161. object {
  162.    union {
  163.       difference {
  164.          object { DomBlank }
  165.          union {
  166.             object {
  167.                Dom2Sph
  168.                translate <0, 0.5, -0.105>
  169.             }
  170.             object {
  171.                Dom3Sph
  172.                translate <0, -0.5, -0.105>
  173.             }
  174.          }
  175.       }
  176.       union {
  177.          object {
  178.             Dom2Dot
  179.             translate <0, 0.5, -0.105>
  180.          }
  181.          object {
  182.             Dom3Dot
  183.             translate <0, -0.5, -0.105>
  184.          }
  185.       }
  186.    }
  187.    translate < 2.50, 0, 0.0 >
  188.    rotate -50*y
  189. }
  190.  
  191. object {
  192.    DomBlank
  193.    translate < 2.50, 0, 0.0 >
  194.    rotate -75*y
  195. }
  196.  
  197. /*
  198. object {
  199.    DomBlank
  200.    translate < 2.50, 0, 0.0 >
  201.    rotate -100*y
  202. }
  203.  
  204. object {
  205.    DomBlank
  206.    translate < 2.50, 0, 0.0 >
  207.    rotate -125*y
  208. }
  209.  
  210. object {
  211.    DomBlank
  212.    translate < 2.50, 0, 0.0 >
  213.    rotate -150*y
  214. }
  215.  
  216. object {
  217.    DomBlank
  218.    translate < 2.50, 0, 0.0 >
  219.    rotate -175*y
  220. }
  221. */
  222.  
  223. plane { y, -1.001 
  224. /*
  225.    texture {
  226.       pigment { Aquamarine }
  227.       finish { Dull }
  228.    }
  229. */
  230.    texture {
  231.       Stone1
  232.       pigment {
  233.          octaves 3
  234.          rotate 90*z
  235.       }
  236.       finish { reflection 0.05 }
  237.    }
  238. }
  239.  
  240. sphere { <0, 0, 0>, 1000
  241.    texture {
  242.       pigment { White }
  243.       finish { Luminous }
  244.    }
  245. }
  246.  
  247. // end of file
  248.