// Arthur Eduardo Skaetta Alvarez, RA 116180 // MC930 - Laboratório 1 // ====================================================================== // CORES E TEXTURAS background{ color rgb < 0.75, 0.80, 0.85 > } #declare tx_olho = texture{ pigment{ color rgb < 1, 0, 0 > } finish{ diffuse 0.8 ambient 0.1 specular 0.5 roughness 0.2 } } #declare tx_perna = texture{ pigment{ color rgb < 0.9, 0.9, 0.9 > } finish{ diffuse 0.8 ambient 0.1 specular 0.5 roughness 0.2 } } #declare tx_corpo = texture{ pigment{ color rgb < 0.6,0.4,0.5 > } finish{ diffuse 0.8 ambient 0.1 specular 0.5 roughness 0.2 } } #declare tx_calda = texture{ pigment{ color rgb < 1.00, 0.5, 0.10 > } finish{ diffuse 0.9 ambient 0.1 } } #declare tx_plastico = texture{ pigment{ color rgb < 0.10, 0.80, 1.00 > } finish{ diffuse 0.8 ambient 0.1 specular 0.5 roughness 0.2 } } #declare tx_xadrez = texture{ pigment{ checker color rgb < 0.10, 0.32, 0.60 >, color rgb < 1.00, 1.00, 0.90 > } finish{ diffuse 0.9 ambient 0.1 } scale 2.0 } // ====================================================================== // DESCRIÇÃO DA CENA #declare raio = 2.000; // Partes da cena: #declare cabeca = sphere{ <0,0,0>, 0.5 texture {tx_plastico} } #declare chao = box{ <-20,-20,-1>, <+20,+20,0> texture {tx_plastico} } #declare corpo = box {<-1.8, 3, 0>, <0.8,-2, 1.5> texture{tx_corpo}} #declare perna1 = cylinder{<-2,2.7,0>, <-2,2.7,-1.7>, 0.25 texture {tx_perna}} #declare perna2 = cylinder{<0.5,2.8,0>, <0.5,2.8,-1.7>, 0.25 texture {tx_perna}} #declare perna3 = cylinder{<-2,-1.7,0>, <-2,-1.7,-1.7>, 0.25 texture {tx_perna}} #declare perna4 = cylinder{<0.5,-1.7,0>, <0.5,-1.7,-1.7>, 0.25 texture {tx_perna}} #declare cabeca1 = sphere{ <-0.3,2.8,3>, 0.65 texture {tx_plastico} } #declare cabeca2 = sphere{ <-0.3,1.3,3>, 0.65 texture {tx_plastico} } #declare pescoco1 = cylinder {<-0.3,2.8,1.5>, <-0.3,2.8,3.3>, 0.25 texture {tx_perna}} #declare pescoco2 = cylinder {<-0.3,1.3,1.5>, <-0.3,1.3,3.3>, 0.25 texture {tx_perna}} #declare calda = cone {<0.0, -2, 0.7>, 0.25, <0.0, -4, 0.7>, 0.1 texture {tx_calda}} #declare olho1 = sphere{<0.26,2.7, 3.2>, 0.1 texture {tx_olho}} #declare olho2 = sphere{<0.24,3.0, 3.2>, 0.1 texture {tx_olho}} #declare olho3 = sphere{<0.26,1.2, 3.2>, 0.1 texture {tx_olho}} #declare olho4 = sphere{<0.24,1.5, 3.2>, 0.1 texture {tx_olho}} #include "eixos.inc" // Aqui está a cena, finalmente: union{ object{ eixos(3.00) } object{ chao translate < 0,0,-5 > texture{ tx_xadrez } } object {corpo} object {perna1} object {perna2} object {perna3} object {perna4} object {cabeca1} object {cabeca2} object {pescoco1} object {pescoco2} object {calda} object {olho1} object {olho2} object {olho3} object {olho4} } #include "camlight.inc" #declare centro_cena = < 0.00, 0.00, 1.00 >; #declare raio_cena = 6.0; #declare dir_camera = < 14.00, 7.00, 4.00 >; #declare dist_camera = 16.0; #declare intens_luz = 1.00; camlight(centro_cena, raio_cena, dir_camera, dist_camera , z, intens_luz)