home *** CD-ROM | disk | FTP | other *** search
- // pearls in a jade trough by Loyd L Towe, CIS: 70614,1721
- // 30-Apr-1993
- #include "colors.inc"
- #include "textures.inc"
- #include "shapes.inc"
-
- camera {
- location <-23 5 -7 >
- direction <0.0 0.0 1 >
- up <0.0 1.0 0.0 >
- right <1.33 0.0 0.0 >
- look_at <0.0 0.0 0.0 >
- }
-
- //jade trough
- object {
- difference {
- intersection {
- intersection {
- quadric {Cylinder_Y}
- plane {<0.0 1.0 0.0> -6 inverse}
- plane {<0.0 1.0 0.0> 6 }
- }
- scale < 3.5 1 3.5 >
- rotate < 90 0 90 >
- translate < 0 0 0 >
- scale < 1 1 1 >
- }
- quadric {Plane_XY
- rotate < 90 0 0 >
- translate < 0 0 0 >
- scale < 1 1 1 >
- }
- intersection {
- intersection {
- quadric {Cylinder_Y}
- plane {<0.0 1.0 0.0> -7 inverse}
- plane {<0.0 1.0 0.0> 7 }
- }
- scale < 3 1 3 >
- rotate < 90 0 90 >
- translate < 0 0 0 >
- scale < 1 1 1 >
- }
- }
- texture {Jade}
- }
-
-
- // shiny chrome sphere right (pearl)
- object {
- sphere {< 0 0 3 > 3 }
- texture {Chrome_Metal specular 1.0 roughness 0.001}
- }
- // shiny chrome sphere left (pearl)
- object {
- sphere {< 0 0 -3 > 3 }
- texture {Chrome_Metal specular 1.0 roughness 0.001}
- }
-
- // jade pillar right
- object {
- intersection {
- intersection {
- quadric {Cylinder_Y}
- plane {<0.0 1.0 0.0> -1.75 inverse}
- plane {<0.0 1.0 0.0> 1.75 }
- }
- scale < 1 1 1 >
- rotate < 0 0 0 >
- translate < 0 -5 -4.5 >
- scale < 1 1 1 >
- }
- texture { Jade }
- }
- // jade pillar left
- object {
- intersection {
- intersection {
- quadric {Cylinder_Y}
- plane {<0.0 1.0 0.0> -1.75 inverse}
- plane {<0.0 1.0 0.0> 1.75 }
- }
- scale < 1 1 1 >
- rotate < 0 0 0 >
- translate < 0 -5 4.5 >
- scale < 1 1 1 >
- }
- texture { Jade }
- }
-
- // gold plate
- object {
- intersection{Cube
- scale < 3.5 .125 6 >
- rotate < 0 0 0 >
- translate < 0 -6.9 0 >
- }
- texture {Gold_Metal specular 1.0 roughness 0.001}
- }
-
- // sandalwood box with concave edges
- object {
- difference {
- intersection{Cube
- scale < 7.5 2.5 9.5 >
- rotate < 0 0 0 >
- translate < 0 -9.5 0 >
- }
- intersection {
- intersection {
- quadric {Cylinder_Y}
- plane {<0.0 1.0 0.0> -9.55 inverse}
- plane {<0.0 1.0 0.0> 9.55 }
- }
- scale < 1 1 1 >
- rotate < 90 0 90 >
- translate < -7.5 -7 0 >
- scale < 1 1 1 >
- }
- intersection {
- intersection {
- quadric {Cylinder_Y}
- plane {<0.0 1.0 0.0> -9.55 inverse}
- plane {<0.0 1.0 0.0> 9.55 }
- }
- scale < 1 1 1 >
- rotate < 90 0 90 >
- translate < 7.5 -7 0 >
- scale < 1 1 1 >
- }
- intersection {
- intersection {
- quadric {Cylinder_Y}
- plane {<0.0 1.0 0.0> -7.55 inverse}
- plane {<0.0 1.0 0.0> 7.55 }
- }
- scale < 1 1 1 >
- rotate < 0 0 90 >
- translate < 0 -7 -9.5 >
- scale < 1 1 1 >
- }
- intersection {
- intersection {
- quadric {Cylinder_Y}
- plane {<0.0 1.0 0.0> -7.55 inverse}
- plane {<0.0 1.0 0.0> 7.55 }
- }
- scale < 1 1 1 >
- rotate < 0 0 90 >
- translate < 0 -7 9.5 >
- scale < 1 1 1 >
- }
- }
- texture {Sandalwood}
- }
-
- // sky
- object { plane { <0 1 0> -12 } texture { color HuntersGreen } }
-
- // floor
- object { plane { <0 1 0> 24 } texture { Bright_Blue_Sky scale <20 20 20>} }
-
- // LIGHT SOURCE 1
- object {
- light_source{<-14 22 -20 > color White
- }
- }
- // LIGHT SOURCE 2
- object {
- light_source{<-14 22 20 > color White
- }
- }
- // LIGHT SOURCE 3
- object {
- light_source{<-22 9 0 > color White
- }
- }
-