// Exercicio 2 // Last edited on 2001-05-26 15:35:34 by stolfi background{ color rgb < 1.00, 1.00, 0.8 > } //light_source { <10, 20, -10> color White } light_source { < 4.00, 10.00, 50.00 > color rgb < 1.00, 1.00, 1.00 > } camera { location < 10.00, 10.00, 10.00 > right < -1.20, 0.00, 0.00 > up < 0.00, 0.00, 0.90 > sky < 0.00, 0.00, 1.00 > look_at < 0.00, 0.00, 0.00 > } blob { threshold .3 // Corpo do Marciano sphere { <0.0,0.0,0.0>, 2.2, 1 scale<1.2,1.2,1> translate<0,0,0.8> texture{pigment {color rgb < 0.00, 1.00, 1.00> } } } sphere { <0.0,0.0,0.0>, 2, 1 scale<2,2,2> translate<0,0,-4> pigment {color rgb < 0.00, 1.00, 0.00> } } // Antenas cylinder { <-0.50, 0.5, 2>, <-0.5, 1.5, 4>, 0.2, 1 pigment {color rgb < 0.00, 1.00, 0.00>}} cylinder { <0.5, -0.5, 2.0>, <0.5, -1.5, 3.3>, 0.2, 1 pigment {color rgb < 0.00, 1.00, 0.00>}} // Bolinhas das Antenas sphere { <0,0,0>, 0.5, 1 translate <-0.5,1.5,4.0> pigment {color rgb < 0.00, 1.00, 0.00>} } sphere { <0,0,0>, 0.5, 1 translate <1.3,-0.7,4.0> pigment {color rgb < 0.00, 1.00, 0.00>} } // Olhos, nariz e boca sphere { <0,0,0> 0.2, 1 scale <0,0,1> translate <0 , 0.6, 1.7> pigment {color rgb < 1.00, 0.00, 0.00>} } sphere { <0,0,0>, 0.2, 1 scale <0,0,1.5> translate <0,-0.6, 1.2> pigment {color rgb < 1.00, 0.00, 0.00>} } sphere { <0,0,0>, 0.3, 1 scale<0,0,1> translate <0,0,0.9> pigment {color rgb < 1.00, 0.00, 0.00>} } sphere { <0,0,0>, 0.4, 1 scale<1,1,1.5> translate <0,0,0> pigment {color rgb < 1.00, 0.00, 0.00>} } // Pés sphere { <0,0,0>, 1, 1 scale<1,1,4.0> translate <0,6.5,-2.7> rotate -45*x pigment {color rgb < 0.00, 1.00, 0.00>} } sphere { <0,0,0>, 1, 1 scale<1,1.5,8.0> translate <0,6.5,-11> rotate -45*x pigment {color rgb < 0.00, 1.00, 0.00>} } finish { phong 1 } }