// Exemplo de arquivo de descricao de cena para POV-ray // Last edited on 2009-03-09 18:44:03 by stolfi // ====================================================================== // C�MERA camera{ location 1.4* < 18.00, 7.00, 3.50 > // Posi��o do observador. right -1.00*x // Largura RELATIVA da imagem. up 0.75*y // Altura RELATIVA da imagem. sky z // Qual dire��o � "para cima"? look_at < 0.00, 0.00, 2.00 > // Para onde a c�mera est� apontando. } // Nota: os par�metros "right" e "up" devem ter a mesma propor��o // que os par�metros ${WIDTH} e ${HEIGHT} no Makefile. // ====================================================================== // FONTES DE LUZ light_source{ 10 * < +50.0, +30.0, +50.0 > // Posi��o da l�mpada. color rgb 1.0 * < 1.00, 1.00, 1.00 > // Intensidade e corda luz. } light_source{ 10 * < +50.0, -10.0, +10.0 > // Posi��o da l�mpada. color rgb 0.5 * < 1.00, 1.00, 1.00 > // Intensidade e corda luz. } // ====================================================================== // EIXOS DE COORDENADAS #macro eixo(ponta,cor,nome) union{ sphere{ <0,0,0>, 0.02 } cylinder{ <0,0,0>, 0.91*ponta, 0.02 } cone{ 0.90*ponta, 0.06, ponta, 0.00 } texture{ pigment{ color rgb cor } finish{ ambient 0.5 diffuse 0.5 } } } #end #macro eixos(tamanho) union{ object{ eixo( , <1.0,0.2,0.2>, "X") } object{ eixo( <0,tamanho,0>, <0.0,0.8,0.0>, "Y") } object{ eixo( <0,0,tamanho>, <0.3,0.3,1.0>, "Z") }' } #end // ====================================================================== // CORES E TEXTURAS background{ color rgb < 0.75, 0.80, 0.85 > } #declare tx_azul = texture{ pigment{ color rgb < 0.10, 0.80, 1.00 > } finish{ diffuse 0.8 ambient 0.1 specular 0.5 roughness 0.005 } } #declare tx_branco = texture{ pigment{ color rgb < 1.0, 1.0, 1.0 > } finish{ diffuse 0.8 ambient 0.1 specular 0.5 roughness 0.005 } } #declare tx_amarelo = texture{ pigment{ color rgb < 1.00, 0.80, 0.10 > } finish{ diffuse 0.9 ambient 0.1 } } #declare tx_espelho = texture{ pigment{ color rgb < 1.00, 0.90, 0.70 > } finish{ diffuse 0.1 reflection 0.8*< 1.00, 0.90, 0.70 > ambient 0.1 } } #declare tx_vidro = texture{ pigment{ color rgb < 0.97, 0.98, 1.00 > filter 0.70 } finish{ diffuse 0.03 reflection 0.25 ambient 0.02 specular 0.25 roughness 0.005 } } #declare tx_laranja = texture{ pigment{ color rgb < 1.0, 0.70 , 0.25 > filter 0.70 } finish{ diffuse 0.03 reflection 0.25 ambient 0.02 specular 0.25 roughness 0.005 } } #declare tx_preto = texture{ pigment{ color rgb < 0.1, 0.1, 0.1 > filter 0.70 } finish{ diffuse 0.03 reflection 0.25 ambient 0.02 specular 0.25 roughness 0.005 } } // ====================================================================== // DESCRI��O DA CENA #declare raio = 3.300; // Partes da cena: // Last edited on 2009-10-09 08:59:07 by stolfi #include "retalho.inc" //#include "nuvens.inc" #declare cor1 = tx_branco #declare cor2 = tx_azul #declare cor3 = tx_laranja //Face #declare P1 = < 0.0, 0.0, 0.0 >; //Olhos #declare P2 = < 2.15, -0.7, 0.8 >; #declare P3 = < 2.05, 1.0, 0.8 >; //Nariz #declare P4 = < 2.35, 0.0, 0.0 >; //Boca #declare P5 = < 2.0, -0.5, -1.0 >; #declare P6 = < 2.0, 0.5, -1.0 >; //Orelhas #declare P7 = < 2.5, -3.5, 3.0 >; #declare P8 = < 2.5, 3.5, 3.0 >; #declare M1 = < 0.0, 0.0, 0.0 >; // esfera 1 #declare M2 = < 0.0, 3.0, 0.0 >; // esfera 2 #declare M3 = < 0.0, 7.0, 0.0 >; // esfera 3 #declare M4 = < 0.0, 14.5, 0.0 >; // esfera 4 #declare M5 = < 0.0, 14.5, 0.0 >; // esfera 5 #macro mamao_ou_anao ( F ) blob { //Anao sphere { P1, 4.5 , F*(1.0) texture { cor2 } } // principal sphere { P2, 0.2 , F*(2.0) texture { cor3 } } // olho direito sphere { P3, 0.2 , F*(2.0) texture { cor3 } } // olho esquerdo sphere { P4, 0.15, F*(1.5) texture { cor1 } } // Nariz cylinder { P5, P6 0.5, F*(1.0) texture { cor1 } } // Boca //sphere { P7, 1.5, -2.0 texture { cor3 } } // Orelha direita //sphere { P8, 1.5, -2.0 texture { cor3 } } // Orelha esquerda // Mamao sphere { M1, 1.5, (1-F)*1.0 texture { cor3 } } sphere { M2, 4.5, (1-F)*2.0 texture { cor3 } } cylinder { M1, M2, 5.5, (1-F)*1.0 texture { cor3 } } sphere { M3, 1.5, (1-F)*1.0 texture { cor3 } } cylinder { M2, M3, 4.5, (1-F)*1.0 texture { cor3 } } sphere { M4, 3.0, (1-F)*-0.5 texture { cor3 } } cylinder { M3, M4, 3.5, (1-F)*1.0 texture { cor3 } } sphere { M5, 1.5, (1-F)*-0.2 texture { cor3 } } threshold 0.5 } #end mamao_ou_anao (clock)