// Exemplo de arquivo de descricao de cena para POV-ray // Last edited on 2001-05-14 01:38:18 by stolfi background{ color rgb < 0.00, 0.03, 0.15 > } light_source { < 4.00, 10.00, 50.00 > color rgb < 1.00, 1.00, 1.00 > } camera { location < 14.00, 4.00, 9.00 > right < -1.00, 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.00 > } #declare raio = 2.000; #declare tinta_A = texture { pigment { color rgb < 1.00, 0.00, 0.00 > } finish { diffuse 0.9 specular 0.7 roughness 0.005 ambient 0.8 reflection .75 metallic} } #declare tinta_B = texture { pigment { color rgb < 0.00, 0.00, 1.00 > } finish { diffuse 0.4 specular 0.0 roughness 0.005 ambient 0.8 reflection .75 metallic} } #declare tinta_C = texture { pigment {color rgb <0.0,1.0,0.00 > } finish { diffuse 2.00 specular 0.0 roughness 0.00 ambient 0.048 metallic} } #declare bola = sphere { < 0.00, 0.00, 0.00 >, 2.30 texture { tinta_B } } //#declare furo1 = // cylinder { // < -2.00, -2.00, -2.00 >, // < +2.00, +2.00, +2.00 >, // 0.75 // texture { tinta_B } // } #declare caixa1 = box { < -1.00,-1.00,-1.00 >, < +1.00,+1.00,+1.00 > texture { tinta_A } } #declare caixa2 = box { < -1.75,-1.75,-1.75>, < +1.75,+1.75,+1.75> texture { tinta_A } } #declare cone1 = cone { <0.00,-2.50,0.00>,2.30 <0.00,-10.00,0.00>,0.00 open texture { tinta_C } } //#declare furo2 = // cylinder { // < -2.00, -2.00, +2.00 >, // < +2.00, +2.00, -2.00 >, // 0.75 // texture { tinta_B } // } // Aqui está a cena, finalmente: //difference { // object { bola } // union { // object { furo1 } // object { furo2 } // } //} union { difference { object {caixa2} object {bola} } object {caixa1} object {cone1} }