// Arquivo para exemplificar exemplo de aplicação gráfica. // Last edited on 2001-05-27 15:42:53 by stolfi #include "colors.inc" background{ color rgb < 0.60, 0.80, 0.8 > } camera { location < 5.00, 5.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, 2.5 > } light_source { < 7.00, 5.00, 7.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.3, 0.3 1.00 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare marron = texture { pigment { color rgb < 1.0, 1.0 0.5 > } 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 } } #declare corpo = cylinder { < 0.0, 3.0, 2.5>, < 0.0, -3.0, 2.5>, 0.5 texture { azul } } #declare bico = sphere { <0.0, 2.0, 2.5>, 0.5 texture { azul } } #declare bico2 = sphere { <0.0, 3.6, 2.5>, 0.2 texture { preto } } #declare asa1 = box { <0.2, 0.0, 5.0>, < -0.2,0.0, 3.0 > texture{ azul } } #declare asa = union{ box { <0.0, 0.0, 0.0>, < 0.4, 0.2, 2.5> texture{ azul } } difference { cylinder { <0.0, 0.0, 1.7>, <0.0,0.2,1.7> 0.3 texture { preto } } cylinder { <0.0, 0.0, 1.7>, <0.0,0.2,1.7> 0.2 texture { azul } } } } #declare remo = union{ cylinder { <0.0, 0.0, 0.0>, <0.0, 0.0, -2.0> 0.1 texture{ marron } } box { <0.2, 0.0, -2.0>, < -0.2, 0.0, -2.5 > texture{ marron } } } #declare rabo = sphere{ <0.0, 0.0, 0.0>, 0.3 texture{ azul } } #declare janela = box{ <0.0, 0.0, 0.0>, <0.1, 0.4, 0.2> texture{ preto } } // box { <-9.0, 0.0, 0.0>, < 9.0, 0.0, 0.03 > texture{ azul } } // box { <0.0, -9.0, 0.0>, < 0.0, 9.0, 0.03 > texture{ verde } } // box { <0.0, 0.0, -9.0>, < 0.03, 0.0, 9.0 > texture{ amarelo } } object { union { object { corpo } object { bico scale <0, 1.5, 0> } object { bico2 } object { asa rotate 90*y rotate -45*z translate <0.0, 0.0, 3> } object { asa rotate -90*y rotate 45*z translate <0.0, 0.0, 3> } object { remo rotate -35*y translate <0.0, 2.0, 2.7> } object { remo rotate 35*y translate <0.0, 2.0, 2.7> } object { rabo scale <0, 0, 2.5> translate <0.0, -3.0, 3.0> } object { janela translate<0.5, -1.0, 2.8> } object { janela translate<0.5, 0.2, 2.8> } object { janela translate<0.5, 1.4, 2.8> } object { janela translate<0.5, 2.6, 2.8> } } }