// Last edited on 2003-05-31 16:10:44 by stolfi //Universidade Estadual de Campinas //Instituto de Computação //Aluno: Ricardo Capitanio Martins da Silva //RA: 992386 Disciplina: MC930A //Professor: Stolfi //Trabalho Prático 09 #include "colors.inc" #include "textures.inc" #declare ctr = <0,0,0>; camera { location ctr + 0.6 * < 0, 0, 6 > right -1.0*x up 0.5*y sky y look_at ctr } light_source { 50*< -15.00, 10.00, 15.00 > color 1.2*White } light_source { 50*< +15.00, 7.00, 15.00 > color 0.8*White } light_source { 50*< +3.00, 2.00, 15.00 > color 0.4*White } background{ Gray80 } // Eixos de coordenadas #declare eixoX = cylinder { < -3, 0, 0 >, < 3, 0, 0 >, 0.01 texture {pigment{Red}} } #declare eixoY = cylinder { < 0,-3, 0 >, < 0, 3, 0 >, 0.01 texture { pigment{Blue} } } #declare eixoZ = cylinder { < 0, 0, -3 >, < 0, 0, 3 >, 0.01 texture {pigment{Green}} } #declare lataria= blob { threshold 0.2 //face sphere { < 0, 0, 0>, 0.5, 1 scale<1.2, 1.5, 0>} //orelhas sphere { < -0.4, 0.05, 0>, 0.15, 1 scale<1.1, 1.6, 0>} sphere { <0.35, -0.00, 0>, 0.2, 0.8 scale<1.1, 1.1, 0>} //nariz sphere { < 0, 0, 0.35>, 0.1, 0.8 scale<1, 2.0, 1>} sphere { < 0, -0.10, 0.35>, 0.08, 0.8 scale<1.9, 1.1, 0>} //olhos sphere { <0.2, 0.085, 0.3>, 0.1, 1} sphere { <-0.19, 0.10, 0.3>, 0.09, 1} } #declare cena = union { object{ lataria pigment {image_map {gif "loko.gif"} scale<1.5,1.5,1.5> translate<-.75, -.6, 0>} // pigment{White} } } // somente para mostrar os eixos cartesianos //eixoX // eixo X (Red) //eixoY // eixo Y (Blue) //eixoZ // eixo Z (Green) object { cena } object { cena rotate -53*y translate -1.2*x } object { cena rotate +53*y translate +1.2*x }