// Ivan Francisco Coutinho Costa // Last edited on 2003-05-31 15:08:09 by stolfi // RA 001833 // MC930 - TP 9 - face humana // Data 20/05/2003 #include "colors.inc" #declare imgname = "face2.gif"; #declare ctr = <0,-1.5,0>; camera { location ctr + 1.1* <0, 5, -10> right 1.0*x up 0.50*y sky y look_at ctr } light_source { <-10, 12, -10> color 1.2*White } light_source { <+10, 7, -10> color 0.8*White } light_source { <+3, 3, -10> color 0.4*White } plane { y, -8 pigment { color Gray } } plane { -z, -8 pigment { color Gray } } #declare cabeca_humana = blob { threshold .65 sphere { <0.0, 0.0, 0.0>, .8, 1 } sphere { <0.0, -0.4, -0.1>, .4, 1 } sphere { <0.0, -0.6, -0.1> , .6, 1 } sphere { <0.0, -0.8, 0.0> , .4, 1 } // finish { phong 2 } } #declare cabeca_humana2= sphere {<0,0,0>, 1 pigment { Blue } } #declare cabeca_humana1 = difference { object {cabeca_humana2} sphere { <0,0,0.1>, 1 } } #declare esc=1; #declare e=1; #declare cabeca_com_face= object { cabeca_humana pigment {image_map { gif imgname once } scale translate <-0.5,-0.8,0> } scale } // a cena #declare cena = object { cabeca_com_face scale <4,4,4> } // object { cabeca_humana2 } object { cena } object { cena rotate +53*y translate -3*x } object { cena rotate -53*y translate +3*x }