// Last edited on 2007-07-23 07:55:34 by stolfi
// Processed by remove-cam-lights

global_settings { max_trace_level 12 }

background { color rgb < 0.90, 0.95, 1.00 > }

#declare ouro = 
  texture {
    pigment { color rgb < 1.00, 0.70, 0.00 > }
    finish { diffuse 0.3 specular 0.3 roughness 0.05 ambient 0.2 reflection 0.1 }
  }

#declare rubi = 
 texture {
  pigment { color rgb < 1.00, 0.0, 0.0 > filter 1.0 }
  }

#declare pedra_azul = 
 texture {
  pigment { color rgb < 0.0, 0.0, 1.00 > filter 1.0 }
  }

#declare pedra_verde = 
 texture {
  pigment { color rgb < 0.0, 1.0, 0.0 > filter 1.0 }
  }

#declare esfera = 
  sphere {
 <0,0,0>,20
 texture {ouro}
}

#declare buraco = 
  sphere {
 <0,0,0>,19.7
 texture {ouro}
} 
#declare corte =
  box {
    < 30, -30, 0>,<-30, 30, 30>
    texture { ouro }
  }

#declare caveira = 
  cylinder {
    <20,0,6>,<19.7,0,6>,5
 texture {ouro}
}

#declare olho =
   cylinder {
    <21,0,5>,<18.7,0,5>,0.8
 texture {ouro}
}

#declare pedra_quadrada_vermelha = 
 box {
 < 0.5,-0.5,-0.5>,<-0.5,0.5,0.5>
 texture { rubi}
 interior {ior 1.5}
}

#declare pedra_quadrada_azul = 
 box {
 < 0.5,-0.5,-0.5>,<-0.5,0.5,0.5>
 texture { pedra_azul}
 interior {ior 1.5}
}
#declare pedra_quadrada_verde = 
 box {
 < 0.5,-1.5,-1.5>,<-0.5,1.5,1.5>
 texture { pedra_verde}
 interior {ior 1.5}
}
#declare pedra_esferica_azul = 
  sphere {
 <0,0,0>,1
 texture {pedra_azul}
} 

#declare pedra_esferica_verde = 
  sphere {
 <0,0,0>,1
 texture {pedra_verde}
}  

#declare tinta_xadrez = 
  texture {
    pigment { checker color rgb < 1.00, 1.00, 1.00 >, color rgb < 0.30, 0.50, 1.00 > }
    finish { ambient 0.6 diffuse 0.4 }
    scale 4.0
  }

 union { 

  plane {z,0
  translate -5*z
  texture { tinta_xadrez }
  }
 
  difference { 

  object {esfera}
  object {corte
   translate <0,0,3>
  }
  object {corte
   translate <0,0,-33>
  }
  object {buraco}
  }
  difference { 
   object {caveira}
   object {olho
   translate <0,-2,2>
   }
   object {olho
   translate <0,2,2>
   }
  }

  object {pedra_esferica_azul
  translate <10.15,-17.45,0>
  }
  object {pedra_quadrada_vermelha
  rotate -30*z
  translate <17.45,-10.15,0>
  }

  object {pedra_esferica_verde
  translate <17.15,10.15,0>
  }
  object {pedra_quadrada_azul
  rotate 60*z
  translate <10.15,17.45,0>
  }
  object {pedra_quadrada_verde
  translate <20,0,4>
  }
 }

// Original camera parameters:
// #local cam_ctr = <0,0,0>
// #local cam_vec = <30.00,00.00,10.00>
// #local cam_sky = z

#include "camlight.inc"
camlight(<0,0,0>,<10,5,5>,65.0,z,1.0)