// Exemplo de arquivo de descricao de cena para POV-ray // Last edited on 2000-09-21 09:50:30 by stolfi background{ color rgb < 0.00, 0.03, 0.15 > } light_source { // < 10.00, 50.00, 10.00 > < 10.00, 50.00, -20.00 > color rgb < 1.00, 1.00, 1.00 > } camera { location < 6.00,8.00,-12.00 > // right < 2.40, 0.00, 0.00 > // up < 0.00, 0.00, 1.80 > // sky < 0.00, 0.00, 1.00 > look_at < 3.00, 3.00, 3.00 > } //#declare raio = 2.000; #declare tinta_A = texture { pigment { color rgb < 0.10, 0.80, 1.00 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare tinta_B = texture { pigment { color rgb < 1.00, 0.80, 0.10 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } //#declare bola = // sphere { // < 0.00, 0.00, 0.00 >, 2.00 // texture { tinta_A } // } //#declare furo = // cylinder { // < -2.00, -2.00, -2.00 >, // < +2.00, +2.00, +2.00 >, // 0.50 // texture { tinta_B } // } #declare box1 = box { <0,0,4> <8,5,8> pigment {color rgb <1,1,1>} } #declare box2 = box { <0,0,0> <2,3,4> pigment {color rgb <0.60,1,0.40>} } #declare cil = cylinder { <6,0,6> <6,6,6> 1 pigment {color rgb <0,0,0>} } #declare prisma = prism { conic_sweep // linear_spline 0, // sweep the following shape from here ... 1, // ... up through here 5, // the number of points making up the shape ... <2,0>, <2,4>, <0,4>, <0,0>, <2,0> //<4,4>,<-4,4>,<-4,-4>,<4,-4>,<4,4> rotate <180, 0, 0> scale <1, 1, 1> translate <0,4,4> pigment {color rgb <1,1,0.3>} } // Aqui está a cena, finalmente: // object { bola } // object { furo } object {box1} object {box2} object {cil} object {prisma}