// LUCIANA RAMOS // RA: 7868 // EXERCICIO 03 // COMPUTAÇÃO GRAFICA // Last edited on 2001-05-27 16:17:38 by stolfi background{ color rgb < 1.00, 1.00, 0.00 > } light_source { < 12.00, 10.00, 15.00 > color rgb < 1.00, 1.00, 1.00 > } camera { location < -1.75, 2.75, 3.50 > right < -1.2, 0, 0> up < 0, 0.9, 0 > sky y look_at < 0.00, 0.00, 0.00 > } #declare raio = 2.000; #declare tinta_preto = texture { pigment { color rgb < 0.00, 0.00, 0.00 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare tinta_cinza_escuro = texture { pigment { color rgb < 0.50, 0.50, 0.50 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare tinta_cinza_claro = texture { pigment { color rgb < 0.80, 0.80, 0.80 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare tinta_bege = texture { pigment { color rgb < 0.75, 0.60, 0.50 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare tinta_B1 = texture { pigment { color rgb < 1.00, 0.00, 0.00 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare tinta_B2 = texture { pigment { color rgb < 0.00, 1.00, 0.00 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare tinta_B3 = texture { pigment { color rgb < 0.00, 0.00, 1.00 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare frente = cone { <1.5, 0, 0>, 0.50 // Center and radius of one end <2, 0, 0>, 0.0 // Center and radius of other end open // Removes end caps texture { tinta_preto } } #declare corpo = cylinder { < +1.00, +0.00, +0.00 >, < +1.50, +0.00, +0.00 >, 0.50 texture { tinta_preto } } #declare corpo1 = cylinder { < +0.00, +0.00, +0.00 >, < +0.50, +0.00, +0.00 >, 0.50 texture { tinta_preto } } #declare corpo2 = cylinder { < -0.50, +0.00, +0.00 >, < 0.00, +0.00, +0.00 >, 0.50 texture { tinta_cinza_escuro } } #declare corpo3 = cylinder { < -1.00, +0.00, +0.00 >, < -0.50, +0.00, +0.00 >, 0.50 texture { tinta_cinza_escuro } } #declare corpo_compl = cylinder { < -1.00, +0.00, +0.00 >, < +1.50, +0.00, +0.00 >, 0.50 texture { tinta_cinza_escuro } } #declare corpo_compl2 = cylinder { < -1.00, +0.00, +0.00 >, < +1.00, +0.00, +0.00 >, 0.50 texture { tinta_cinza_escuro } } #declare corpo_compl1 = cylinder { < 0.00, +0.00, +0.00 >, < -0.50, +0.0, +0.00 >, 0.50 texture { tinta_B1 } } #declare rabo = cylinder { < -0.50, +0.00, +0.00 >, < -2.00, +0.00, +0.00 >, 0.50 texture { tinta_bege } } #declare asa_frente = cylinder { < 4.0, -0.50, +0.00 >, < 4.0, -2.00, +0.00 >, 0.50 scale <0.2,1,1> } #declare asa_traseira = cylinder { < -6.50, -0.50, +0.00 >, < -6.50, -2.00, +0.00 >, 0.50 texture { tinta_cinza_claro } scale <0.2,1,1> } #declare x1 = cylinder { < +10.00, +0.00, +0.00 >, < -10.00, +0.00, +0.00 >, 0.01 texture { tinta_B1 } } #declare y1 = cylinder { < 0.00, +10.00, +0.00 >, < 0.00, -10.00, +0.00 >, 0.01 texture { tinta_B2 } } #declare z1 = cylinder { < +0.00, +0.00, +10.00 >, < +0.00, +0.00, -10.00 >, 0.01 texture { tinta_B3 } } // Aqui está a cena, finalmente: union { /* object {x1} object {y1} object {z1} */ object {frente texture { tinta_preto } } object {corpo} object {asa_frente} object {asa_frente translate < 0,1.5,0> } difference { object {corpo1} object {frente texture {tinta_cinza_escuro translate <-1.5,0,0>} } } // object {corpo1} object {corpo2} difference { object {corpo3} object {frente translate <-1.0,0,0> texture {tinta_cinza_claro} } } // object {corpo_compl} // object {corpo_compl1} // difference { // object {corpo_compl2 } // object {frente // texture {tinta_cinza_escuro} // translate <-1.5,0,0> // } // } object {asa_traseira} object {asa_traseira translate < 0,1.5,0> } object {rabo} }