home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Raytrace & Morphing / SOS-RAYTRACE.ISO / programm / scripts / pov / pearls.pov < prev    next >
Encoding:
Text File  |  1993-05-03  |  3.6 KB  |  179 lines

  1. //  pearls in a jade trough by Loyd L Towe, CIS: 70614,1721
  2. //  30-Apr-1993
  3. #include "colors.inc"
  4. #include "textures.inc"
  5. #include "shapes.inc"
  6.  
  7. camera {
  8.  location  <-23 5 -7 >
  9.  direction <0.0 0.0 1 >
  10.  up        <0.0 1.0 0.0 >
  11.  right     <1.33 0.0 0.0 >
  12.  look_at   <0.0 0.0 0.0 >
  13. }
  14.  
  15. //jade trough
  16.  object {
  17.   difference {
  18.  intersection {
  19.   intersection {
  20.    quadric {Cylinder_Y}
  21.    plane {<0.0 1.0 0.0> -6  inverse}
  22.    plane {<0.0 1.0 0.0>  6 }
  23.   }
  24.    scale < 3.5  1  3.5 >
  25.    rotate <  90   0   90 >
  26.    translate <  0   0   0 >
  27.    scale <  1   1   1 >
  28.  }
  29.   quadric {Plane_XY 
  30.            rotate <  90   0   0 >
  31.            translate <  0   0   0 >
  32.            scale <  1   1   1 >
  33.   }
  34.  intersection {
  35.   intersection {
  36.    quadric {Cylinder_Y}
  37.    plane {<0.0 1.0 0.0> -7  inverse}
  38.    plane {<0.0 1.0 0.0>  7 }
  39.   }
  40.    scale < 3  1  3 >
  41.    rotate <  90   0   90 >
  42.    translate <  0   0   0 >
  43.    scale <  1   1   1 >
  44.  }
  45.  }
  46.  texture {Jade}
  47. }
  48.  
  49.  
  50. // shiny chrome sphere right (pearl)
  51. object {
  52.  sphere {<  0   0   3 > 3 }
  53.  texture {Chrome_Metal specular 1.0 roughness 0.001}
  54. }
  55. // shiny chrome sphere left (pearl)
  56. object {
  57.  sphere {<  0   0  -3 > 3 }
  58.  texture {Chrome_Metal specular 1.0 roughness 0.001}
  59. }
  60.  
  61. // jade pillar right
  62. object {
  63.  intersection {
  64.   intersection {
  65.    quadric {Cylinder_Y}
  66.    plane {<0.0 1.0 0.0> -1.75  inverse}
  67.    plane {<0.0 1.0 0.0>  1.75 }
  68.   }
  69.    scale < 1  1  1 >
  70.    rotate <  0   0   0 >
  71.    translate <  0  -5  -4.5 >
  72.    scale <  1   1   1 >
  73.  }
  74.  texture { Jade }
  75. }
  76. // jade pillar left
  77. object {
  78.  intersection {
  79.   intersection {
  80.    quadric {Cylinder_Y}
  81.    plane {<0.0 1.0 0.0> -1.75  inverse}
  82.    plane {<0.0 1.0 0.0>  1.75 }
  83.   }
  84.    scale < 1  1  1 >
  85.    rotate <  0   0   0 >
  86.    translate <  0  -5   4.5 >
  87.    scale <  1   1   1 >
  88.  }
  89.  texture { Jade }
  90. }
  91.  
  92. // gold plate
  93. object {
  94.  intersection{Cube
  95.             scale <  3.5   .125   6 >
  96.             rotate <  0   0   0 >
  97.             translate <  0  -6.9   0 >
  98.  }
  99.  texture {Gold_Metal specular 1.0 roughness 0.001}
  100. }
  101.  
  102. // sandalwood box with concave edges
  103.  object {
  104.   difference {
  105.  intersection{Cube
  106.             scale <  7.5   2.5   9.5 >
  107.             rotate <  0   0   0 >
  108.             translate <  0  -9.5   0 >
  109.  }
  110.  intersection {
  111.   intersection {
  112.    quadric {Cylinder_Y}
  113.    plane {<0.0 1.0 0.0> -9.55  inverse}
  114.    plane {<0.0 1.0 0.0>  9.55 }
  115.   }
  116.    scale < 1  1  1 >
  117.    rotate <  90   0   90 >
  118.    translate < -7.5  -7   0 >
  119.    scale <  1   1   1 >
  120.  }
  121.  intersection {
  122.   intersection {
  123.    quadric {Cylinder_Y}
  124.    plane {<0.0 1.0 0.0> -9.55  inverse}
  125.    plane {<0.0 1.0 0.0>  9.55 }
  126.   }
  127.    scale < 1  1  1 >
  128.    rotate <  90   0   90 >
  129.    translate <  7.5  -7   0 >
  130.    scale <  1   1   1 >
  131.  }
  132.  intersection {
  133.   intersection {
  134.    quadric {Cylinder_Y}
  135.    plane {<0.0 1.0 0.0> -7.55  inverse}
  136.    plane {<0.0 1.0 0.0>  7.55 }
  137.   }
  138.    scale < 1  1  1 >
  139.    rotate <  0   0   90 >
  140.    translate <  0  -7  -9.5 >
  141.    scale <  1   1   1 >
  142.  }
  143.  intersection {
  144.   intersection {
  145.    quadric {Cylinder_Y}
  146.    plane {<0.0 1.0 0.0> -7.55  inverse}
  147.    plane {<0.0 1.0 0.0>  7.55 }
  148.   }
  149.    scale < 1  1  1 >
  150.    rotate <  0   0   90 >
  151.    translate <  0  -7   9.5 >
  152.    scale <  1   1   1 >
  153.  }
  154.  }
  155.  texture {Sandalwood}
  156. }
  157.  
  158. // sky
  159. object { plane { <0 1 0> -12 } texture { color HuntersGreen } }
  160.  
  161. // floor
  162. object { plane { <0 1 0> 24 } texture { Bright_Blue_Sky scale <20 20 20>} }
  163.  
  164. // LIGHT SOURCE 1
  165. object {
  166.   light_source{<-14   22  -20  > color White
  167.   }
  168. }
  169. // LIGHT SOURCE 2
  170. object {
  171.   light_source{<-14  22 20  > color White
  172.   }
  173. }
  174. // LIGHT SOURCE 3
  175. object {
  176.   light_source{<-22  9 0  > color White
  177.   }
  178. }
  179.