home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Raytrace & Morphing / SOS-RAYTRACE.ISO / programm / scripts / pov / watertap.pov < prev   
Encoding:
Text File  |  1993-07-03  |  4.4 KB  |  281 lines

  1.  
  2. #include "colors.inc"
  3. #include "textures.inc"
  4. #include "shapes.inc"
  5.  
  6. #declare gold2 = 
  7. texture {  
  8.         0.02  
  9.         ambient 0.3 
  10.         diffuse 0.5 
  11.         colour red 0.64 green 0.51 blue 0.05
  12.         reflection 0.6 
  13.         brilliance 8 
  14.         specular 0.5 
  15. }
  16.  
  17. #declare mytext= texture {gold2}
  18.  
  19.  
  20.  /* Unterteil */
  21.  
  22.  object {
  23. union {
  24. intersection {
  25. Disk_Y
  26. scale < 3.000 1.000 3.000 >
  27. }
  28. intersection {
  29. Disk_Y
  30. scale < 2.750 0.250 2.750 >
  31. translate < 0 1.250 0 >
  32. }
  33. intersection {
  34. Disk_Y
  35. scale < 2.750 0.250 2.750 >
  36. translate < 0 -1.250 0 >
  37. }
  38. quartic {
  39. < 1 0 0 0 2 0 0 2 0
  40. -13.000 0 0 0 0 0 0 0 0 
  41. 0 0 1 0 0 2 0 12.000 0 
  42. 0 0 0 1 0 -13.000 0 36.000 > 
  43. translate < 0 1.000 0 >}
  44. quartic {
  45. < 1 0 0 0 2 0 0 2 0
  46. -13.000 0 0 0 0 0 0 0 0 
  47. 0 0 1 0 0 2 0 12.000 0 
  48. 0 0 0 1 0 -13.000 0 36.000 > 
  49. translate < 0 -1.000 0 >
  50. }}
  51. bounded_by {sphere {<0 0 0> 7 }}
  52. translate < -4 -0.4 0> 
  53. texture {
  54.     mytext }
  55. no_shadow  
  56.  
  57.  
  58.  
  59. object {        /* Krümmung */
  60. intersection {
  61.    quartic {
  62.       < 1.0 0.0 0.0 0.0 2.0
  63.         0.0 0.0 2.0 0.0 -44.5000
  64.         0.0 0.0 0.0 0.0 0.0
  65.         0.0 0.0 0.0 0.0 0.0
  66.         1.0 0.0 0.0 2.0 0.0
  67.         19.5000 0.0 0.0 0.0 0.0
  68.         1.0 0.0 -44.5000 0.0 95.0625>
  69.       rotate <0 0 -90>
  70.     }
  71.  
  72.     plane {<0 0 1 > 0 }
  73.     plane {<0 1 0 > -0 } }
  74.     bounded_by {sphere {<0 0 0> 10 }}
  75.      
  76.    rotate <-180.000000 270.000000 0>
  77. texture {
  78.     mytext }
  79. no_shadow  
  80.  
  81.  
  82.  
  83. object {
  84. intersection {
  85. Disk_Y
  86. scale <1 3 1>
  87. translate < 7 7  0> }
  88. texture {
  89.     mytext }
  90. no_shadow  
  91.  
  92. }
  93. object {
  94. intersection {
  95. Disk_X
  96. scale <9 2.5 2.5>
  97. translate < 9 4 0> }
  98. texture {
  99.     mytext }
  100. no_shadow  
  101. }
  102.   
  103.    /* Wandabschluss */
  104. object {
  105.     union {
  106. intersection {
  107. Disk_Y
  108. scale < 5.000 0.500 5.000 >
  109. }
  110. intersection {
  111. Disk_Y
  112. scale < 4.750 0.250 4.750 >
  113. translate < 0 0.750 0 >
  114. }
  115. intersection {
  116. Disk_Y
  117. scale < 4.750 0.250 4.750 >
  118. translate < 0 -0.750 0 >
  119. }
  120. quartic {
  121. < 1 0 0 0 2 0 0 2 0
  122. -41.000 0 0 0 0 0 0 0 0 
  123. 0 0 1 0 0 2 0 40.000 0 
  124. 0 0 0 1 0 -41.000 0 400.000 >
  125. translate < 0 0.500 0 >}
  126. quartic {
  127. < 1 0 0 0 2 0 0 2 0
  128. -41.000 0 0 0 0 0 0 0 0 
  129. 0 0 1 0 0 2 0 40.000 0 
  130. 0 0 0 1 0 -41.000 0 400.000 > }
  131. translate < 0 -0.500 0 >
  132. bounded_by { sphere {< 0 0 0 > 10.000 } }
  133. rotate < 0 0 90>
  134. translate < 18 4 0> 
  135. texture {
  136.     mytext }
  137. no_shadow  
  138.  
  139.  
  140.  
  141.  
  142.  
  143.  
  144. object {
  145. quadric {
  146. Ellipsoid
  147. scale <5 3.5 3.5>
  148. translate <7 4 0>}
  149. texture {
  150.     mytext }
  151. no_shadow  
  152. }    
  153.   
  154. camera {
  155.    location <-8.0000000 15.000000 -28.000000>
  156.    look_at <4 0 0>
  157.    up <0.000000 1.000000 0.000000>
  158.    right <1.333333 0.000000 0.000000>
  159.  }
  160.  
  161.  
  162. object {
  163.    light_source { <-10.0  15.0  -50.0>
  164.       colour White
  165.    }
  166. /* 
  167. object {
  168.    light_source { <-100.0  230.0  -300.0>
  169.       colour White
  170.    }
  171.   */
  172. object {
  173.    light_source { <-30.0  50.0  -50.0>
  174.       colour White
  175.    }
  176. }
  177.  
  178.  
  179.     
  180.  
  181.  
  182. object  { // wand
  183. intersection {
  184. Cube
  185. scale <0.001 12500.000 10000.000>
  186. translate <18.000 0.000 0.000>  }
  187. texture {
  188. checker color White color Gray60 scale <10 10 10> reflection 0.1
  189.  }
  190. }
  191.  
  192. object  { // wand
  193. intersection {
  194. Cube
  195. scale <10000.001 12500.000 0.001>
  196. translate <0.000 0.000 100.000>  }
  197. texture {
  198. checker color White color Gray90 scale <10 10 10> reflection 0.1
  199.  }
  200. }
  201.  
  202.  
  203.  
  204.  
  205.  
  206. object {
  207.    quartic {
  208.       < 1.0 0.0 0.0 0.0 2.0
  209.         0.0 0.0 2.0 0.0 -72.5000
  210.         0.0 0.0 0.0 0.0 0.0
  211.         0.0 0.0 0.0 0.0 0.0
  212.         1.0 0.0 0.0 2.0 0.0
  213.         71.5000 0.0 0.0 0.0 0.0
  214.         1.0 0.0 -72.5000 0.0 1278.0625>
  215.       rotate <0 0 -90>
  216.     }
  217.    bounded_by { quadric { 
  218.            <1.0 1.0 1.0>
  219.            <0.0 0.0 0.0>
  220.            <0.0 0.0 0.0>
  221.            -43.559998
  222.        }
  223.     } 
  224.    rotate <0 0 90.000000>
  225.    rotate <0.000000 -90.000000 0>
  226.    texture {
  227.     mytext}
  228.     no_shadow 
  229.     translate < 7 10  0>
  230.  }
  231.  
  232.  
  233. object {
  234. intersection {
  235. Disk_X
  236. scale <6 0.5 0.5>
  237. rotate <0 45 0>
  238. translate < 7 10 0> }
  239.    texture {
  240.     mytext }
  241.     no_shadow 
  242. }
  243.  
  244.  
  245. object {
  246. intersection {
  247. Disk_Z
  248. scale <0.5 0.5 6>
  249. rotate <0 45 0>
  250. translate < 7 10 0> }
  251.    texture {
  252.     mytext }
  253.     no_shadow 
  254. }
  255.   
  256.   
  257.  
  258. #include "shapesq.inc"
  259.  
  260. object {
  261.    quartic { Piriform sturm }
  262.    rotate <0 0 -90>
  263.    translate <-1 -1.5 0>
  264.    scale <2 3 2>
  265.    bounded_by {sphere { < -1 -1.5 0 > 6 }} 
  266.    texture {
  267.       color SteelBlue
  268.       phong 1.0
  269.       phong_size 20
  270.       ambient 0.2
  271.       diffuse 0.8
  272.    }
  273. }
  274.  
  275.