// Exemplo de arquivo de descricao de cena para POV-ray // Last edited on 2003-10-14 21:47:04 by stolfi // ====================================================================== // CÂMERA #declare ctr = < 0.00, -12.00, 0.00 >; #declare camdir = < 20, 10, 60 >; camera { location ctr + 0.65*camdir // Posição do observador. right -0.60*x // Largura RELATIVA da imagem. up 0.80*y // Altura RELATIVA da imagem. sky y // Qual direção é "para cima"? look_at ctr // 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 * < +70.0, +30.0, +50.0 > // Posição da lâmpada. color rgb 1.2 * < 1.00, 1.00, 1.00 > // Intensidade e corda luz. } light_source { 10 * < -20.0, +10.0, +50.0 > // Posição da lâmpada. color rgb 0.8 * < 1.00, 1.00, 1.00 > // Intensidade e corda luz. } // ====================================================================== // DESCRIÇÃO DA CENA background{ color rgb < 0.75, 0.80, 0.85 > } #declare raio = 2.000; #declare tinta_A = texture { pigment { color rgb < 0.10, 0.80, 1.00 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare tinta_B = texture { pigment { color rgb < 1.00, 0.80, 0.10 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare cabeca = sphere { < 0.00, 0.00, 0.00 >, 2.00 texture { tinta_A } } #declare aba_bone1 = cylinder { < 0.00, -1, 0.00 >, < 0.00, -1, 4.00>, 2.00 texture { tinta_A } } #declare aba_bone2 = cylinder { < 0.00, -1.50, -1.00 >, < 0.00, -1.50, 5.00>, 2.4 texture { tinta_A } } #declare pescoco = cylinder { < 0.00, -2.70, 0.00 >, < 0.00, -3.70, 0.00>, 0.8 texture { tinta_A } } #declare furo = cylinder { < -1.00, -2.00, -2.00 >, < +1.00, +2.00, +2.00 >, 1.50 texture { tinta_B } } #declare pino = cylinder { < -2.00, +2.00, -1.00 >, < +2.00, -2.00, +1.00 >, 0.75 texture { tinta_B } } #declare tronco = box { < -3.50, -4.00, 2.00 >, < 3.50, -11.00, -2.00 > texture { tinta_B } } #declare ombro_e = sphere { < -4.5, -4.50, 0.00 >, 1.7 texture { tinta_B } } #declare ombro_d = union { object {ombro_e scale<-1, 1, 1>}} #declare braco_e = union { cylinder {<-4.5, -4.5, 0 >, <-4.5, -10, 0>, 1.2 texture {tinta_B}} sphere { <-4.5, -10.5, 0>, 1.25 texture {tinta_B}} cone {<-4.5, -11, 0 >,1.25 <-4.5, -16, 0>, 0.8 open texture {tinta_B}} } #declare braco_d = union { object {braco_e scale<-1, 1, 1>}} #declare perna_e = union { cone {<-1.5, -15, 0 >,1.8 <-1.5, -20, 0>, 1.5 open texture {tinta_B}} sphere { <-1.5, -21, 0>, 1.3 texture {tinta_B}} cone {<-1.5, -21, 0 >,1.5 <-1.5, -27, 0>, 1 open texture {tinta_B}} } #declare tronco1 = intersection{ cone { <0, -4, 0>, 4 <0,-12, 0> 2.5 open} object {tronco}} #declare perna_d = union { object {perna_e scale<-1, 1, 1>}} #declare quadril = box { < -3.50, -15.00, 2.00 >, <3.5, -11.30, -2> texture { tinta_B } } // Aqui está a cena, finalmente: union { object { cabeca scale<1,1.3,1>} difference { object{aba_bone1} object{aba_bone2}} } object {pescoco} object {tronco1} object {ombro_e} object {braco_e} object {quadril} object {perna_e} object {braco_d} object {perna_d} object {ombro_d}