// Exercício de criação de cena - POV-Ray
// Criado em 19 de Maio de 2001 - Alan Keler Baldo - ra007850

#include "colors.inc"
#include "finish.inc"
#include "woods.inc"

//cor de fundo
background{ color rgb < 0.7, 0.7 , 1.0 > }


//fontes de luz
light_source {
  < 0.00, 6.50, 4.00 >
  color rgb < 0.0, 1.0, 0.0 >
  spotlight
  radius 10
  falloff 15
  tightness 10
  point_at <0.0,0.0,3.0>
}
light_source {
  < 0.00, 6.50, 2.00 >
  color rgb < 0.0, 1.0, 0.0 >
  spotlight
  radius 10
  falloff 15
  tightness 10
  point_at <0.0,0.0,1.0>
}
light_source {
  < 0.00, 6.50, 6.00 >
  color rgb < 1.0, 1.0, 1.0 >
  spotlight
  radius 20
  falloff 15
  tightness 10
  point_at <0.0,0.0,5.8>
}

camera {
  location  <  -4.00, 10.00, 4.0 >
  right     < -1.00, 0.00, 0.00 >
  up        <  0.00, 0.00, 0.90 >
  sky       <  0.00, 0.00, 1.00 >
  look_at   <  0.00, 0.00, 4.00 >
}

#declare verde = T_Wood7

#declare vermelho =
  texture {
    pigment { color rgb < 1.0, 0.2, 0.2 > }
    finish { diffuse 0.7 specular 0.6 roughness 0.005 ambient 0.1 }
  }
#declare amarelo =
  texture {
    pigment { color rgb < 1.0, 1.0, 0.2 > }
    finish { diffuse 0.7 specular 0.6 roughness 0.005 ambient 0.1 }
  }

#declare azul =
  texture {
    pigment { color rgb < 0.2, 0.2, 1.0 > }
    finish { diffuse 0.7 specular 0.6 roughness 0.005 ambient 0.1 }
  }


//------------------------------------------------------------

union {
   //rosto
	blob {
		threshold 0.2
		cylinder {<0.0,0.0,+4.9>,<0.0,0.0,+5.7>, 0.9, +1.0 texture {amarelo}}
		sphere {<0.0,0.0,+5.7> , 0.9, +1.0 texture {amarelo}}
	}
	//captador eletromagnetico direito
	object {
		cylinder {
			<0.4,0.0,6.2>,<0.7,0.0,6.9>, 0.1 texture {vermelho}
		}
	}
	object {
		sphere {
			<0.7,0.0,6.9> ,0.2 texture {vermelho}
		}
	}
	//captador eletromagnetico esquerdo
	object {
		cylinder {
			<-0.4,0.0,6.2>,<-0.7,0.0,6.9>, 0.1 texture {vermelho}
		}
	}
	object {
		sphere {
			<-0.7,0.0,6.9> ,0.2 texture {vermelho}
		}
	}
	//captador eletromecanico direito
	object {
		cone {
			<0.3,0.0,5.4>,0.0  <1.6,0.0,5.4>,0.25 open texture {vermelho}
		}
	}
	//captador eletromecanico esquerdo
	object {
		cone {
			<-0.3,0.0,5.4>,0.0  <-1.6,0.0,5.4>,0.25 open texture {vermelho}
		}
	}
	//captadores eletromoleculares
	object {
		cone {
			<0.0,0.8,4.9>,0.0  <0.0,1.1,4.9>,0.2 open texture {vermelho}
		}
	}
	object {
		torus {
			0.08 , 0.2 translate <0.0,0.8,5.5> pigment {rgb <0.0,1.0,0.0>}
		}
	}
}

//corpo
union {
object {
	sphere {<0.0,0.0,4.3> 0.4 texture {azul}}
}
object {
	blob {
		threshold 0.2
		sphere {< 0.0,0.0,2.0> 1.6, +1.0 texture {verde} scale <1.35,1.0,1.35>}
		sphere {<+1.0,0.0,0.4> 0.8, +1.0 texture {verde}}
		sphere {< 0.0,0.0,0.5> 1.0, +1.0 texture {verde} scale <1.0,0.9,1.0>}
		sphere {<-1.0,0.0,0.4> 0.8, +1.0 texture {verde}}
	}
}
}

/*	
//------------ ROSTO ORIGINAL -----------------//
	object {
		cylinder {
			<0.0,0.0,+4.5>,<0.0,0.0,+5.7>, 0.8 texture {amarelo}
		}
	}
	object {
		sphere {
			<0.0,0.0,+5.7> , 0.8 texture {amarelo}
		}
	}
*/