// Arquivo para exemplificar exemplo de aplicação gráfica. #include "colors.inc" background{ color rgb < 1.00, 1.00, 1.00 > } camera { location < 3.00, 10.00, 6.00 > right < -1.20, 0.00, 0.00 > up < 0.00, 0.00, 0.90 > sky < 0.00, 0.00, 1.00 > look_at < 0.00, 0.00, 4.5 > } light_source { < 7.00, 10.00, 10.00 > color rgb < 1.00, 1.00, 1.00 > } #declare amarelo = texture { pigment { color rgb < 1.0, 1.0 0.00 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare azul = texture { pigment { color rgb < 0.0, 0.0 1.00 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare vermelho = texture { pigment { color rgb < 1.0, 0.0 0.00 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare verde = texture { pigment { color rgb < 0.00, 1.0, 0.00 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare preto = texture { pigment { color rgb < 0.00, 0.0, 0.00 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } cylinder { < 0.0, 0.0, 5.1>, < 0.0, 0.0, 6.4>, 0.8 texture {verde} } // box { <1, 1, 1.0>, < -1, -1, 3.5 > texture{ verde } } blob { threshold .65 sphere { < 0, 0, 5.5>, 1.4, 0.8 texture{ verde } } sphere { < 0, 0, 3.0>, 3.4, 0.8 texture{ verde } } // Braços cylinder { < 2.0, 0.0, 2.2>, < 1.0, 0.0, 3.5>, 0.5, 1 texture { verde} } cylinder { < -2.0, 0.0, 2.2>, < -1.0, 0.0, 3.5>, 0.5, 1 texture {verde} } cylinder { < 0.0, 0.0, 6.1>, < 0.0, 0.0, 1.5>, 2.0, 0.1 texture {verde} } cylinder { < 0.5, 0.0, 2.0>, < 0.5, 0.0, 1.0>, 0.5, 1 texture { verde } } cylinder { < -0.5, 0.0, 2.0>, < -0.5, 0.0, 1.0>, 0.5, 1 texture { verde} } finish { phong 1 } } // Dedos cylinder { < 2.4, 0.0, 2.0>, < 2.0, 0.0, 2.2>, 0.1 texture {preto} } cylinder { < -2.4, 0.0, 2.0>, < -2.0, 0.0, 2.2>, 0.1 texture {preto} } blob { threshold .65 // Boca sphere { < 0.1, 1.5, 5.5>, 0.3, 1 texture{ vermelho } } sphere { < -0.1, 1.5, 5.5>, 0.3, 1 texture{ vermelho } } finish { phong 1 } } //Olhos sphere { < 0.2, 1.5, 6.0>, 0.1 texture{ azul } } sphere { < -0.2, 1.5, 6.0>, 0.1 texture{ azul } } //Orelhas sphere { < 0.7, 0.0, 6.0>, 0.3 texture{ preto } } sphere { < -0.7, 0.0, 6.0>, 0.3 texture{ preto } } //Nariz sphere { < 0.0, 1.5, 5.8>, 0.1 texture{ amarelo } } //Bota box { <1.0, 1.0, 0.5>, < 0.2, -0.5, 1.0 > texture{ preto } } box { <-1.0, 1.0, 0.5>, < -0.2, -0.5, 1.0 > texture{ preto } } sphere { < 0.5, 0.9, 0.7>, 0.5 texture{ preto } } sphere { < -0.5, 0.9, 0.7>, 0.5 texture{ preto } }