//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" background{ color rgb < 1.00, 1.00, 1.00 > } camera { angle 15 location 1*<0,0,10> right <+1.20, 0.00, 0.00> up <0.00, 0.00, 0.90> sky <0.00, 1.00, 0.00> look_at <0,0,0> } light_source { <0, 0, 10> color 1.4*White } //light_source { <5, -5, -10> color 1*White } //light_source { <5, 5, 10> color 1*White } light_source { <0,10, 0> color White} // 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} } union { object{lataria pigment {image_map {gif "loko.gif"} scale<1.5,1.5,1.5> translate<-.75, -.6, 0>}} //object{lataria pigment{Green}} //plane { -z, 0 // pigment {image_map {gif "loko.gif"} scale<2,0,0>}} // somente para mostrar os eixos cartesianos //eixoX // eixo X (Red) //eixoY // eixo Y (Blue) //eixoZ // eixo Z (Green) }