// Last edited on 2003-05-31 15:08:46 by stolfi

#include "colors.inc"

#declare imgname = "wainer.gif";

background{Gray75}
#declare ctr = <0,0,0>;
camera {
  location ctr + 0.40 * <0,5,-20>
  right 1.0*x  up 0.50*y  sky y
  look_at ctr
}
light_source { < 10, 30, -10> color 1.2*White }
light_source { <-10, 20, -10> color 0.6*White }
light_source { <  3,  2, -10> color 0.6*White }

#declare cabeca =
  blob {
    threshold .65

    sphere { <0,-.6,0>, 2, 1 }                        // Cabeca
    cylinder{<0,-.6,0>, <0, +.4,0>, 1, 1}
    sphere { <0,+.4,0>, 1, 1 }

    cylinder{<0,-.3,-1.1>, <0,-.15,-0.9>, .2, 1}      // Nariz
    sphere { <0,-.3,-1.1>, .25, 1 }

    sphere { <-.8,-.30,0>, .25, 1 }                 // Orelhas
    sphere { <-.8,-.15,0>, .25, 1 } 
    sphere { <+.8,-.30,0>, .25, 1 }
    sphere { <+.8,-.15,0>, .25, 1 }
 
    finish { phong 1 }

    pigment {image_map {gif imgname} scale <4, 4, 4> translate <-1.9,-2.4,-2> }
  }

object { cabeca }
object { cabeca rotate +53*y translate -2.5*x }
object { cabeca rotate -53*y translate +2.5*x }