// Last edited on 2019-07-15 23:24:03 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 tx_vermelho = texture{ pigment{ color rgb < 0.80, 0.10, 0.10 > } finish{ diffuse 0.8 ambient 0.1 specular 0.5 roughness 0.005 } } #declare tx_pink = texture{ pigment{ color rgb < 0.98, 0.05, 0.75 > } finish{ diffuse 0.8 ambient 0.2 specular 0.5 roughness 0.005 } } #declare tx_orange = texture{ pigment{ color rgb < 0.98, 0.20, 0.20 > } finish{ diffuse 0.8 ambient 0.1 specular 0.5 roughness 0.05 } } #declare tx_verde = texture{ pigment{ color rgb < 0.20, 0.90, 0.10 > } finish{ diffuse 0.8 ambient 0.1 specular 0.5 roughness 0.005 } } #declare tx_fosca = texture{ pigment{ color rgb < 1.00, 0.80, 0.10 > } finish{ diffuse 0.9 ambient 0.1 } } #declare tx_xadrez = texture{ pigment{ checker color rgb < 0.00, 0.0, 0.00 >, color rgb < 1.00, 0.97, 0.90 > } finish{ diffuse 0.9 ambient 0.1 } scale 1.0 } #declare bola = union { sphere{ < 0,0,2 >, 1.50 texture{ tx_verde } } } #include "eixos.inc" #macro palito(r,n,p,q) union{ #declare xp=p.x; #declare xq=q.x; #while(xp } #declare xp = xp+1/n; #end #declare yp=p.y; #declare yq=q.y; #while(yp } #declare yp = yp+1/n; #end #declare zp=p.z; #declare zq=q.z; #while(zp } #declare zp =zp+1/n; #end } #end #macro roda(a,b,n,r) union{ #while (a } #declare a = a+1/n; #end } #end #declare r = 5; #declare a = <5,0,0>; #declare b = <15,0,0>; object{palito(0,10,a,b)} #declare c = <20,0,5>; #declare d = <20,0,15>; object{palito(0,10,c,d)} #declare e = <5,0,20>; #declare f = <15,0,20>; object{palito(0,10,e,f)} object{roda(0,3.14/2,100,5) translate <15,0,15>} object{roda(3.14/2,3.14,100,5) translate <15,0,5>} #include "camlight.inc" #declare centro_cena = < 10.00, 0.00, 12.00>; #declare raio_cena = 25.0; #declare dir_camera = < 14.00, 7.00, 4.00 >; #declare dist_camera = 50*raio_cena; #declare intens_luz = 1.20; camlight(centro_cena, raio_cena, dir_camera, dist_camera , z, intens_luz)