home *** CD-ROM | disk | FTP | other *** search
/ Ray Tracing Box / RAY_CD.mdf / raytrace / _pov_dat / barbell / barbell.pov < prev   
Text File  |  1993-05-18  |  5KB  |  170 lines

  1. //Barbell created by Vic. 
  2. //I've only been doing this for a month so I'm not advanced
  3. //like all the rest of the CSERVE guys but I'm drinking milk...
  4. //Oh yeah, I had lots of help from MORAY. Thanks guys.
  5.  
  6.  
  7. #include "colors.inc"
  8. #include "textures.inc"
  9. #include "shapes.inc"
  10.  
  11.  
  12.  
  13. camera {  //  Camera eye
  14.   location  <-34.701 38.701 14.324>
  15.   direction <0.0  0.0  2.5458>
  16.   sky       <0.0  0.0  1.0>  // Use right handed-system!
  17.   up        <0.0  0.0  1.0>  // Where Z is up
  18.   right     <1.3333  0.0  0.0>
  19.   look_at   <0.000 0.000 0.000>
  20. }
  21.  
  22. // *******  L I G H T S *******
  23. object {   // Light source beam
  24.   light_source {
  25.     <-4.926 -0.093 5.204>
  26.     color  red 1.000 green 1.000 blue 1.000
  27.   }
  28. }
  29.  
  30.  
  31. // *******  T E X T U R E S  *******
  32. // ********  O B J E C T S *******
  33. #declare bar = intersection {
  34.   quadric { Cylinder_Z texture { Silver_Texture } }
  35.   plane { <0 0 -1> 0 texture { Silver_Texture } }
  36.   plane { <0 0 +1> 1 texture { Silver_Texture } }
  37.   scale <0.721190 0.557631 12.152414>
  38.   rotate <-89.930344 -0.000000 -0.000000>
  39.   translate <-0.092937 -5.855019 0.092937>
  40. }
  41.  
  42. #declare bell2 = intersection {
  43.   quadric { Cylinder_Z texture { Chrome_Texture } }
  44.   plane { <0 0 -1> 0 texture { Chrome_Texture } }
  45.   plane { <0 0 +1> 1 texture { Chrome_Texture } }
  46.   scale <3.509293 3.531607 1.000000>
  47.   rotate <-89.879631 -0.000000 -0.000000>
  48.   translate <0.000000 -5.277914 0.000172>
  49. }
  50.  
  51. #declare bell3 = intersection {
  52.   quadric { Cylinder_Z texture { Chrome_Texture } }
  53.   plane { <0 0 -1> 0 texture { Chrome_Texture } }
  54.   plane { <0 0 +1> 1 texture { Chrome_Texture } }
  55.   scale <3.509293 3.531607 1.000000>
  56.   rotate <-89.879631 -0.000000 -0.000000>
  57.   translate <0.000000 4.972550 0.000172>
  58. }
  59.  
  60. object {
  61.   union {
  62.     intersection { bar }
  63.     intersection { bell2 }
  64.     intersection { bell3 }
  65.   }
  66.   rotate <-0.000000 -0.000000 -0.005086>
  67.   translate <-0.278810 0.278810 0.000000>
  68. }
  69.  
  70. #declare bar4 = intersection {
  71.   quadric { Cylinder_Z texture { Silver_Texture } }
  72.   plane { <0 0 -1> 0 texture { Silver_Texture } }
  73.   plane { <0 0 +1> 1 texture { Silver_Texture } }
  74.   scale <0.721190 0.557631 12.152414>
  75.   rotate <-89.930344 -0.000000 -0.000000>
  76.   translate <-0.092937 -5.855019 0.092937>
  77. }
  78.  
  79. #declare bell10 = intersection {
  80.   quadric { Cylinder_Z texture { Chrome_Texture } }
  81.   plane { <0 0 -1> 0 texture { Chrome_Texture } }
  82.   plane { <0 0 +1> 1 texture { Chrome_Texture } }
  83.   scale <3.509293 3.531607 1.000000>
  84.   rotate <-89.879631 -0.000000 -0.000000>
  85.   translate <0.000000 -5.277914 0.000172>
  86. }
  87.  
  88. #declare bell11 = intersection {
  89.   quadric { Cylinder_Z texture { Chrome_Texture } }
  90.   plane { <0 0 -1> 0 texture { Chrome_Texture } }
  91.   plane { <0 0 +1> 1 texture { Chrome_Texture } }
  92.   scale <3.509293 3.531607 1.000000>
  93.   rotate <-89.879631 -0.000000 -0.000000>
  94.   translate <0.000000 4.972550 0.000172>
  95. }
  96.  
  97. object {
  98.   union {
  99.     intersection { bar4 }
  100.     intersection { bell10 }
  101.     intersection { bell11 }
  102.   }
  103.   scale <0.396169 0.278820 0.371757>
  104.   rotate <-0.000000 -0.000000 -89.025894>
  105.   translate <-9.851301 0.092937 -2.137546>
  106. }
  107.  
  108. object {   // mat
  109.   box { UnitBox 
  110.     texture { Yellow_Pine }
  111.   }
  112.   scale <22.633480 24.679214 0.092947>
  113.   translate <0.000000 0.000000 -3.717472>
  114. }
  115.  
  116. #declare bar3 = intersection {
  117.   quadric { Cylinder_Z texture { Silver_Texture } }
  118.   plane { <0 0 -1> 0 texture { Silver_Texture } }
  119.   plane { <0 0 +1> 1 texture { Silver_Texture } }
  120.   scale <0.721190 0.557631 12.152414>
  121.   rotate <-89.930344 -0.000000 -0.000000>
  122.   translate <-0.092937 -5.855019 0.092937>
  123. }
  124.  
  125. #declare bell8 = intersection {
  126.   quadric { Cylinder_Z texture { Chrome_Texture } }
  127.   plane { <0 0 -1> 0 texture { Chrome_Texture } }
  128.   plane { <0 0 +1> 1 texture { Chrome_Texture } }
  129.   scale <3.509293 3.531607 1.000000>
  130.   rotate <-89.879631 -0.000000 -0.000000>
  131.   translate <0.000000 -5.277914 0.000172>
  132. }
  133.  
  134. #declare bell9 = intersection {
  135.   quadric { Cylinder_Z texture { Chrome_Texture } }
  136.   plane { <0 0 -1> 0 texture { Chrome_Texture } }
  137.   plane { <0 0 +1> 1 texture { Chrome_Texture } }
  138.   scale <3.509293 3.531607 1.000000>
  139.   rotate <-89.879631 -0.000000 -0.000000>
  140.   translate <0.000000 4.972550 0.000172>
  141. }
  142.  
  143. object {
  144.   union {
  145.     intersection { bar3 }
  146.     intersection { bell8 }
  147.     intersection { bell9 }
  148.   }
  149.   scale <0.396169 0.278820 0.371757>
  150.   rotate <-0.000000 -0.000000 -90.347862>
  151.   translate <-9.386617 -4.832714 -2.137546>
  152. }
  153.  
  154. object {   // wall
  155.   box { UnitBox 
  156.     texture { White_Marble }
  157.   }
  158.   scale <15.520467 0.185884 6.762083>
  159.   translate <0.464512 -17.657993 2.973978>
  160. }
  161.  
  162. object {   // wall2
  163.   box { UnitBox 
  164.     texture { White_Marble }
  165.   }
  166.   scale <0.000010 16.706308 7.784390>
  167.   translate <15.009380 -0.741943 4.182501>
  168. }
  169.  
  170.