// Last edited on 2003-12-14 20:11:14 by stolfi
#include "colors.inc"

// Exemplo de arquivo de descricao de cena para POV-ray

// ======================================================================

#declare ctr = < 0.00, 0.00, 0.00 >;
#declare camDir = <0, 0,3>;

camera {
  location   ctr + 3.50*camDir
  right      -1.6*x
  up         1.6*y
  sky        y
  look_at    ctr
}
 

// ======================================================================
// FONTES DE LUZ

light_source {
  10 * < 10,-10,18 >            // Posição da lâmpada.
  color rgb 1.2 * < 1.00, 1.00, 1.00 >   // Intensidade e corda luz.
} 

light_source{
 10 * <10,10 ,10> 
color rgb 1.2 * < 1.00, 1.00, 1.00 >
}

light_source{
 10 * <-10,10 ,18> 
color rgb 1.2 * < 1.00, 1.00, 1.00 >
}

// ======================================================================
// DESCRIÇÃO DA CENA 

background{ color rgb < 0.75, 0.80, 0.85 > }


  
//#declare cabeca=
//sphere {
//    < 0.00, 0.00, 0.00 >, 3
//pigment {color Blue filter 1.3}
//interior {ior 1.8} 
//}

#declare cor_cristal= color Gray60;

#declare tex_transparente=
  texture{
    finish{
      ambient 0.1 diffuse 0.1
      reflection 0.25
      specular 1 roughness 0.001
    }
  pigment {color cor_cristal filter 1}
}




#declare cor_metalico= color Gray60;

#declare tex_metalico=
texture{
  pigment { rgb cor_metalico}
  finish {
          ambient 0.05 diffuse 0.05
          reflection cor_metalico
          specular 0.20 roughness 0.05
    }
  }

#declare tex_ouro=
texture{
  pigment { color BrightGold}
  finish {
          ambient 0.05 diffuse 0.05
          reflection BrightGold
          specular 0.20 roughness 0.05
    }
  }

  
#declare aro=
difference{ cylinder {<0,0,0.1>, <0,0,-0.1>, 4}
            cylinder {<0,0,0.3>, <0,0,-0.3>,3.5}
texture {tex_ouro}}


#declare ele=
union{ 
   cylinder{ <0.1,0,0>,<1.3,0,0>,0.4}
   cylinder{ <0,0,0>,<0,2,0>, 0.3}
   sphere {<0.0,0,0>,0.3}
 texture {tex_metalico}
}

#declare i= 
union{
 cylinder {<0,0,0>,<0,2,0>,0.5}
}



#declare ve=
difference{
 difference{

  difference{
   cone{<0,0,0>,0 <0,2,0>,1}  
   cone{<0,0.5,0>,0 <0,2.5,0>,1  }
  }
 box{<-1.2,0,1.5> <1.2,2.5,0.2>}
}
 box{<-1.2,0,-1.5> <1.2,2.5,-0.2>}
texture{tex_transparente}
interior {ior 0.9}
}




object {aro scale <2,1,1>}
object{ele translate <-3,-1,0> scale<1.5,1.5,1.5>}

object{i rotate z*30 translate <0.5,-1,0> scale <1.5,1.5,1.5> 
pigment {checker color White color Violet scale 2}
finish {ambient 1 diffuse 0.7}}

object{ ve rotate y*(-10)translate <2.5,-1.2,0> scale<1.5,1.5,1.5>}