//#include "colors.inc" // Exemplo de arquivo de descricao de cena para POV-ray // Last edited on 2001-05-19 19:30:01 by stolfi background{ color rgb < 0.30,0.70, 0.90 > } light_source { < 40.00, 45.00, 80.00 > color rgb < 1.00, 1.00, 1.00 > } camera { location < 40.00, 40.0, 40.00 > right < -1.20, 0.00, 0.00 > up < 0.00, 0.00, 1.0 > sky < 0.00, 0.00, 0.00 > look_at < 5.0, 5.00, 10.0 > } #declare preto = texture { pigment { color rgb < 0, 0, 0 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare branco = texture { pigment { color rgb < 1.0, 1.0, 1.0 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare vermelho = texture { pigment { color rgb < 1.00, 0.00, 0.00 > } finish { diffuse 1.5 specular 0.5 roughness 0.05 ambient 0.1 } } #declare amarelo = texture { pigment { color rgb <1.0, 1.0, 0.0>} finish {diffuse 2.5 specular 1.00 roughness 0.050 ambient 0.0} } #declare azul = texture {pigment {color rgb <0.0, 0.2, 1.0> } finish {diffuse 1.0 specular 1.0 roughness 0.050 ambient 0.1} } #declare verde = texture {pigment {color rgb <0.0, 1.0, 0.1>} finish {diffuse 0.75 specular 1.0 roughness 0.050 ambient 0.1} } #declare verde2 = texture {pigment {color rgb <0.0, 1.0, 0.3>} finish {diffuse 0.75 specular 1.0 roughness 0.050 ambient 0.1} } #declare rosto = sphere { <5,5,10>, 4 scale <1,1,1> texture {verde} // pigment { Verde transmit .75} } #declare cornea = sphere { <5, 2.0, 7.0>, 2 texture {vermelho} } #declare olho = cylinder { <5.0,2.0,7.0>, <5.0,3.0,7.0> 0.55 texture {branco} } #declare boca1 = sphere {<5,2,11>, 1.0 texture {preto}} #declare boca2 = sphere {<5,4,11>, 1.1 texture {preto} } #declare cone2 = cone { <8.5, 5.0, 5.0>, 0.5 <8.0, 5.0, 10.0>,2.0 texture {verde}} #declare cone1 = cone { < 1.50, 5.0, 5.00 >, 0.5 < 1.00 , 5.0, 10.00 >, 2.0 texture { verde } } #declare cilindro1 = cylinder { < 2.00, 0.0, 3.00 >, < 2.000, 4.00, 3.00 >, 0.75 texture { vermelho } } // Aqui está a cena, finalmente: blob { threshold 0.75 // rosto sphere { <5,5,10>, 5, 1 texture {verde} } // olho cylinder { <5.0,5.0,7.0>, <5.0,3.0,7.0> 0.25, -1 texture {branco} } } //difference { object {boca1} object {boca2}} union { object {rosto} //object{ olho} object {cone1} object {cone2} object {cornea} difference { object {boca1} object {boca2}} }