#include "colors.inc"

background{ color rgb Gray }


light_source {
  < -4.00, 8.00, 5.00 >
  color rgb < 1.00, 1.00, 1.00 >
} 

light_source {
  < 4.00, 8.00, 5.00 >
  color rgb < 1.00, 1.00, 1.00 >
} 


camera {
//  location  < -5.00, 6.00, 2.00 >
//  location  <  0.00, 0.00, 6.0 >   //de cima
  location  <  0.00,  10.00, 0.00 >   //de frente
//  location  <  6.00, 0.00, 0.00 >   // de lado

  right     <  1.00, 0.00, 0.00 >
  up        <  0.00, 0.00, 1.00 >
  sky       <  0.00, 0.00, 1.00 >
  look_at   <  0.00, 0.00, 0.00 >

} 

//TEXTURAS E CORES
#declare cor_cristal = <0,0,.8>;

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


#declare cor_espelho =  rgb .7*<1,1,1>;
#declare tx_espelho =
  texture{
  pigment { rgb cor_espelho }
  finish {
    ambient 0.05 diffuse 0.05
    reflection cor_espelho
    specular 0.20 roughness 0.05
   }
 }


//EIXOS

#declare eixoX =
cylinder{
	 <3, 0, 0 >
	 <-3, 0 ,0 >
	0.1
texture {
pigment { color Red filter 1}}
}

#declare eixoY =
cylinder{
	 <0, 3, 0 >
	 <0, -3 ,0 >
	0.1
texture {
pigment { color Blue filter 1}
}
}


//OBJETOS
#declare base=
 box {
    < 1.00, .5, 0.00 >,
    < -1, -.5, .5 >
  }

#declare ele=
union{
  object{
	difference{
	 object{
		base
	 }
	 object{
		base
		scale <1,0,0>*1.6
		rotate 50*y
		translate <.25,0,.9>
	 }
	}
  }
  object{
	difference{
	 object{
		base
		scale <1,0,0>*1.6
		rotate 50*y
		translate <.25,0,.9>
	 }
	 object{
		base
		scale<0,1,0>*1.2
		translate<1,0,-.5>
	 }
	 object{
		base
		scale<0,1,0>*1.2
		translate<0,0,2.1>
	 }

	}
 }
 translate<2,0,0>
}


#declare i=
  object{
	base
	rotate y*90
	scale <0,0,1>*1.05
	translate <-0.25,0,1.05>
  }

#declare ve=
 object{
	ele
	scale<-1,1,1>
 }


#declare letras=
object{
 union{
	object{
		ele
	}
	object{
		i
	}
	object{
		ve
	}
 }
 texture { tx_cristal }
}


#declare fundo=
  box {
    <  4, .1, 4>,
    < -4, -.1,-2 >
	texture{tx_espelho}
  }


#declare frase=
text{
	ttf "arial.ttf"
	"Laboratorio de"
	0.15, 0
	rotate 90*x
	rotate 180*z
}
#declare fraseII=
text{
	ttf "arial.ttf"
	"Informacao Visual"
	0.15, 0
	rotate 90*x
	rotate 180*z
}


//CENA

union{
 object{
	letras
 }
 object{
	fundo
 } 
 object { plane {y,-2}
          pigment {checker color White, color Gray    }
 }

// object { plane {z,-5.5}
//          pigment {checker color White, color Gray    }
// }

 
 object{
	frase	
	scale<1,1,1>*.5
	translate<0,.1,-1.3>
 }
 object{
	fraseII
	scale<1,1,1>*.5
	translate<0,.1,-1.8>
 }


}