// Last edited on 2007-06-28 09:28:13 by stolfi
// Processed by remove-cam-lights

global_settings { max_trace_level 12 }

background { color rgb < 0.90, 0.95, 1.00 > }
  
#declare tinta_xadrez = 
  texture {
    pigment { checker color rgb < 0.40, 0.40, 0.40 >, color rgb <1.0,1.0,1.0> }
    finish { ambient 0.6 diffuse 0.4 }
    scale 1.5
  }

plane { z, -2  texture { tinta_xadrez } } 

#declare osso = 
  texture {
    pigment { color rgb < 1, 1, 1 > }
    finish {  ambient 0.3 diffuse 0.7 }
  }

#declare ouro = 
  texture {
    pigment { color rgb < 0.64, 0.51, 0.05 > }
    finish { diffuse 0.37 ambient 0.20 reflection 0.43 specular 0.5 roughness 0.005 }
  }

#declare esmeralda = 
  texture {
    pigment { color rgb < 0.05 1 0.1 > filter 0.70 }
    finish { ambient 0.05 diffuse 0.05 reflection 0.10 specular 0.3 roughness 0.005 }
  } 

#declare rubi = 
  texture {
    pigment { color rgb < 1.00, 0.05, 0.05 >  filter 0.70 }
    finish { ambient 0.05 diffuse 0.05 reflection 0.10 specular 0.3 roughness 0.005 }  
  } 

#declare base = 
union {
 difference { 
   difference {
     sphere { <0,0,0> 3 }  
     sphere { <0,0,0> 2.7 }
   }
   box { <-3,-3,-0.5>, <3,3,-3> }
 }
 cylinder { < 0, 0, 2.8>, < 0, 0, 12 >, 1 }
 difference { 
   difference {
     sphere { <0,0,12> 5 }  
   sphere { <3.3,5.2,12> 1.7 }
   sphere { <5.2,3.3,12> 1.7 }   
   cone { <3.4,3.4,9.8>, 0.65 <3.4,3.4,11.7>, 0  }
   }
   box { <-8,-8, 9.5>, <8,8,0> } 
 }
 
}

#declare pedra = box { <-0.3,-0.3,-0.5> <0.3,0.3, 0.5> }

#declare pedraOlho =
union {
 object { pedra }
 object { pedra rotate 45*z }
}

# declare argola = torus { 1.4, 0.3 rotate 90*x texture {ouro} }
object { pedraOlho texture {rubi} scale 1.4 translate <2.1,3.7,12> }
object { pedraOlho texture {esmeralda} scale 1.4 translate <3.7,2.1,12> }
object { base texture {osso} }
object { argola translate 4*z }
object { argola translate 4.5*z }
object { argola translate 5*z }

// Original camera parameters:
// #local cam_ctr = <0.00,0.00,8.00>
// #local cam_vec = (<25.00,5.00,15.00>-<0.00,0.00,8.00>)
// #local cam_sky = z

#include "camlight.inc"
camlight(<0.00,0.00,8.50>,<7,10,5>,30.0,z,1.0)