// arquivo de descricao de cena para POV-ray // Laboratório 1 - MC930 - 1S/2003 // Last edited on 2003-05-31 15:56:31 by stolfi // Marcelo Bello RA 992119 #declare imgname = "figura.png"; #declare ctr = <0,0,0>; camera { location ctr + 1.55 * < 0, 2, -10 > right 1.0*x up 0.5*y sky y look_at ctr } light_source { 100*< -5, 2, -5 > color rgb 1.2*<1,1,1> } light_source { 100*< +5, 2, -5 > color rgb 0.8*<1,1,1> } light_source { 100*< -1, -1, -5 > color rgb 0.4*<1,1,1> } background{ color <0.7,0.7,0.7> } #declare chapeu = difference { lathe { cubic_spline 6, < 0, 2.5 >, < 1, 2.5 >, < 2, 1 >, < 2.1, 1 >, < 2.1, 0.6 >, < 0, 0.6 > } cone { < 0.18, 0.24, 5.0 >, 0.6, <0.18, 0.24, -5.0>, 0.6 scale < 1.5, 1.0, 1.0 >} } #declare rosto = lathe { cubic_spline 9, < 0.0, 1.6 >, < 1.4, 1.6 >, < 1.4, 0.6 >, < 1.3, 0.0 >, < 1.2, -0.9 >, < 1.0, -0.95 >, < 0.9, -1.1 >, < 0.6, -1.3 >, < 0.0, -1.6 > } #declare cabeca = union { object { chapeu scale < 0.2, 0.2, 0.2 > translate < 0.5, 0.5, 0.0 > } object { rosto scale < 0.2, 0.2, 0.2 > translate < 0.5, 0.5, 0.0 > } pigment { image_map { png imgname } } } #declare cena = object { cabeca translate < -0.5, -0.5, 0.0 > scale < 5.0, 5.0, 5.0 >} object { cena } object { cena rotate +53*y translate -5*x } object { cena rotate -53*y translate +5*x }