// Exemplo de arquivo de descricao de cena para POV-ray // Last edited on 2000-09-21 20:06:05 by stolfi #include "colors.inc" #include "textures.inc" #include "shapes.inc" background{ White} light_source { <30.00, 30.00, 30.00 >White } camera { location < 30.00, 30.00, 30.00 > sky < 0,0,1> look_at < 0, 0 ,0> //angle 30 } #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 furo1 = cylinder { < -2.00, -2.00, -2.00 >, < +2.00, +2.00, +2.00 >, 0.75 texture { tinta_B } } #declare furo2 = cylinder { < -2.00, -2.00, +2.00 >, < +2.00, +2.00, -2.00 >, 0.75 texture { tinta_B } } #declare j=1; #declare i=1; #declare quant=1; #declare g=seed(pi); #declare h=2; union{ #while (j<5) #while (i<20) #if (rand(g)<0.75) box{<0,0,1+i>, texture{tinta_A} } //box{<-1,1,i>, //texture{tinta_B} //} #end #declare i=i+1; #declare j=j+1; #end #end } // Aqui está a cena, finalmente: //difference { // object { bola } // union { // object { furo1 } // object { furo2 }