// Trabalho 09 de MC930 // Last edited on 2003-05-31 15:13:11 by stolfi // 20-05-2003 // Está na cara // // Amandio Sena // RA 007998 // #declare imgname = "ariadne.png"; #include "colors.inc" #declare ctr = <0, 0, 0>; camera { location ctr + 0.9 * < 0, 3, -15> right 1.0*x up 0.50*y sky y look_at ctr } light_source { 100*<-8, 7, -10> color 1.2*White } light_source { 100*<+9, 5, -10> color 0.8*White } light_source { 100*<+1, 2, -10> color 0.4*White } #include "golds.inc" #include "textures.inc" #include "shapes.inc" #include "glass.inc" #include "metals.inc" #include "woods.inc" background{Gray80} #declare cabeca = blob { threshold .65 sphere { <1.2,-.2, 0.1>, .75, 1 } sphere { <-1.2,-.2, 0.1>, .75, 1 } // bochechas sphere { <-.65,.54,-.4>,.4, 1 } // olho esquerdo sphere { <.65,.54,-.4>,.4, 1 } // olho direito sphere { <0,.2,-.5>,.35, 1 scale <0,1.3,1.3>} // nariz sphere { <0,-.7,-.4>,.5, 1 scale x*2} // boca sphere { <0,0,1>,4, 1 }// pigment {Red} } //cabeça finish { phong 1 } scale y*1.2 pigment { image_map {png imgname} translate <.46,.485,0> scale 6.4 rotate <38,10,0>} } plane { y, 0 pigment { checker color 0.5*White+0.5*Red, color 0.5*White+0.5*Green scale 10 } translate -10*y } #declare oculos = union { //torus torus { .45, .02 // major and minor radius rotate -90*x // so we can see it from the top translate <-.75,0.65,-.8> pigment { Green } } torus { .45, .02 // major and minor radius rotate -90*x // so we can see it from the top translate <.75,0.65,-.8> pigment { Green } } //alças cylinder { <0,0,-.7>, <0,0,1>, .04 rotate <0,-25,0> translate <-1.5,.65,0> pigment { Green } } cylinder { <0,0,-.7>, <0,0,1>, .04 rotate <0,25,0> translate <1.5,.65,0> pigment { Green } } //nariz cylinder { <-.3,0,0>, <.3,0,0>, .03 translate <0,.75,-.8> pigment { Green } } } #declare cena = union{ object { cabeca } object { oculos } } object { cena } object { cena rotate +53*y translate -5*x } object { cena rotate -53*y translate +5*x }