// André Luiz Gomide Papa - ra002793 // Braço da Lei - 09/11/2004 // ====================================================================== // CÂMERA camera { location < 35, 35, 20 > // Posição do observador. right -1.00*x // Largura RELATIVA da imagem. up 0.5*y // Altura RELATIVA da imagem. sky z // Qual direção é "para cima"? look_at < 0.00, 0.00, 0.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.2 * < 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.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 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_A1 = texture { pigment { color rgb < 0.5, 0.5, 5 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare tinta_B = texture { pigment { color rgb < 1, 0.8, 0 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare tinta_C = texture { pigment { color rgb < 2, 0.5, 0.5 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare tinta_D = texture { pigment { color rgb < 0.5, 1, 0.5 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare alfa = -15; #declare beta = -30; #declare gama = -15; #declare teta1 = -30; #declare teta2 = 30; #declare tt = clock; #declare dedo1 = cylinder{<-0.3,0,0>,<2.7,0,0>,0.3 texture{tinta_A}} #declare dedo2 = cylinder{<-0.3,0,0>,<2.7,0,0>,0.3 texture{tinta_A}} #declare mao = union{ box{<-0.3,-1,-0.5>,<1.7,1,0.5> texture{tinta_B}} object{dedo1 rotate teta1*y*tt translate <2,-0.7,0>} object{dedo2 rotate teta2*y*tt translate <2,0.7,0>} } #declare antebraco = union{ cylinder{<-0.3,0,0>,<7.7,0,0>,1 texture{tinta_C}} object{mao rotate gama*y*tt translate <8,0,0>} } #declare braco = union{ cone{<-0.3,0,0>,2,<8.7,0,0>,1 texture{tinta_D}} object{antebraco rotate beta*y*tt translate <9,0,0>} } object{braco rotate alfa*y*tt} plane {z,0 texture{ pigment{ checker <0.5,0.2,0.1>, <0.3,0.3,0.3>} finish{ambient 0.2 diffuse 0.5} scale 2 } translate <0,0,-4> }