// Last edited on 2019-07-15 23:31:33 by stolfilocal // Processed by remove-cam-lights background{ color rgb < 0.75, 0.80, 0.85 > } #declare tx_plastico = texture{ pigment{ color rgb < 0.10, 0.80, 1.00 > } finish{ diffuse 0.8 ambient 0.1 specular 0.5 roughness 0.005 } } #declare RAIO = 1; #declare BOLAS = 200; #declare esfera = sphere { <0,0,0>, RAIO texture {tx_plastico}}; #macro makeRound(diametro) #union{ #declare i = 0; #while(i; object { esfera translate centro texture{tx_plastico} } #else #if((i>=BOLAS) & (i; object { esfera translate centro texture{tx_plastico} } #else #declare centro = <-0.5*diametro+diametro*(cos(((-4*3.1415/3)+(3.1415)*(i/BOLAS-1)))), 3*sin(2*3.1415*i/BOLAS), diametro*(sin(((-4*3.1415/3)+(3.1415)*(i/BOLAS-1))))>; object { esfera translate centro texture{tx_plastico} } #end #end #declare i = i+1; #end } #end object { makeRound(10) } #include "camlight.inc" #declare centro_cena = < 0.00, 0.00, 0.00 >; #declare raio_cena = 23; #declare dir_camera = < 0.00, 1.00, 0.50 >; #declare dist_camera = 10*raio_cena; #declare intens_luz = 1.20; camlight(centro_cena, raio_cena, dir_camera, dist_camera , z, intens_luz)