// Arquivo para exemplificar exemplo de aplicação gráfica. // Last edited on 2001-05-27 12:26:50 by stolfi #include "colors.inc" background{ color rgb < 1.00, 1.00, 1.00 > } camera { location < 9.00, 9.00, 9.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, 0.0 > } 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 marrom = texture { pigment { color rgb < 1, 1, 0.7 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare preto = texture { pigment { color rgb < 0.0, 0.0, 0.0 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare remo_asa = union{ cylinder{<0,0,0>, <0,3.5,0>, 0.3} cylinder{<0,3.5,0>, <0,5,0>, 1.0} scale<2,0,0> texture{marrom} } #declare cabine_olhos = difference{ difference{sphere{<7.0,0.0,0.0>, 0.5 texture{amarelo}} cylinder{<7.0,0.0,0.0>, <7.0, 0.0, -0.5>, 0.5 texture{azul}} } cylinder{<7.0,0.0,0.0>, <-5.5, 0.0, 0.0>, 0.5 texture{azul}} } #declare corpo_aviao = union{sphere{<5.0,0.0,0.0>, 1.5 texture{azul}} sphere{<0.0,0.0,0.0>, 2 scale<2.5,0,0> texture{azul}} sphere{<0.0,0.0,0.0>, 0.8 scale<0,0,2.5> translate<-2.5,0,2>texture{azul}} } // box { <0.0, 0.0, 0.0>, < 9.0, 0.0, 0.1 > texture{ preto } } // box { <0.0, 0.0, 0.0>, < 0.0, 9.0, 0.1 > texture{ preto } } // box { <0.0, 0.0, 0.0>, < 0.1, 0.0, 9.0 > texture{ preto } } object { union{object {cabine_olhos texture {amarelo} scale <0, 1.5, 1.2> translate<-0.8,0,0>} object {cabine_olhos texture {amarelo} scale <1.0, 1.5, 1.2> translate<-0.8,0,0>} object {corpo_aviao} object {remo_asa translate<1.0, 2.0, 0.0>} object {remo_asa rotate 180*x translate<1.0, -2.0, 0.0>} object {cabine_olhos texture {amarelo} scale<0.6, 0.6, 1.0> rotate 90*z translate<-1.5, -2.5, 0.8>} object {cabine_olhos texture {amarelo} scale<0.6, 0.6, 1.0> rotate 90*z translate<0.0, -2.7, 0.8>} object {cabine_olhos texture {amarelo} scale<0.6, 0.6, 1.0> rotate 90*z translate<1.0, -2.7, 0.8>} object {cabine_olhos texture {amarelo} scale<0.6, 0.6, 1.0> rotate 90*z translate<2.0, -2.7, 0.8>} object {cabine_olhos texture {amarelo} scale<0.6, 0.6, 1.0> rotate -90*z translate<0.0, 2.7, 0.8>} object {cabine_olhos texture {amarelo} scale<0.6, 0.6, 1.0> rotate -90*z translate<1.0, 2.7, 0.8>} object {cabine_olhos texture {amarelo} scale<0.6, 0.6, 1.0> rotate -90*z translate<2.0, 2.7, 0.8>} } } //object{cabine_olhos}