background{ color rgb < 0.75, 0.80, 0.85 > } #include "eixos.inc" #declare tx_plastico = texture{ pigment{ color rgb < 0.1, 1, 1 > } finish{ diffuse 0.8 ambient 0.1 specular 0.5 roughness 0.005 } } #declare tx_xadrez = texture{ pigment{ checker color rgb < 1, 1, 1 >, color rgb < 0, 0, 0 > } finish{ diffuse 0.9 ambient 0.1 } scale 2.0 } #declare chao = box{ <-20,-20,-1>, <+20,+20,0> } #declare caixa = box{ <0,0,0>, <2.0,3,2.0> } #declare base = cone { <1, 1.5, 2>, 1.0 // , center & radius of one end <1, 1.5, 3>, 0.5 // , center & radius of the other end } #declare pescoco = cylinder { <1, 1.5, 3>, <1, 1.5, 3.5>, 0.2 // center of one end, center of other end, radius open // remove end caps } #declare cabeca = sphere { <1, 1.5, 4>, 0.6 // , radius } #declare nariz = sphere { <2, 1.5, 4>, 0.2 // , radius } #declare gola = cone { <1, 1.5, 3>, 0.65 // , center & radius of one end <1, 1.5, 3.2>, 0.25 // , center & radius of the other end } #declare chapeu = cone { <1, 1.5, 4.3>, 0.6 // , center & radius of one end <1, 1.5, 4.6>, 0.2// , center & radius of the other end } #declare orelha = cylinder { <1, 0.75, 4>, <1, 2.25, 4>, 0.15 // center of one end, center of other end, radius } #declare buraco1 = cylinder { <0, 0, 2>, <2, 0, 2>, 0.5// center of one end, center of other end, radius open // remove end caps } #declare buraco2 = cylinder { <0, 3, 2>, <2, 3, 2>, 0.5// center of one end, center of other end, radius open // remove end caps } union{ object{ chao translate < 0,0,-5 > texture{ tx_xadrez } } difference{ object{ caixa texture{ tx_plastico }} object{ buraco1 texture{ tx_plastico }} object{ buraco2 texture{ tx_plastico }} } object{ base texture{ tx_plastico }} object{ pescoco texture{ tx_plastico}} object{ cabeca texture{ tx_plastico}} object{ nariz texture{ tx_plastico}} object{ gola texture{ tx_plastico}} object{ chapeu texture{ tx_plastico}} object{ orelha texture{ tx_plastico}} } #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 = 5*raio_cena; #declare intens_luz = 1.20; camlight(centro_cena, raio_cena, dir_camera, dist_camera , z, intens_luz)