// Last edited on DATE TIME by USER // 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_fosca = texture{ pigment{ color rgb < 1.00, 0.80, 0.10 > } finish{ diffuse 0.9 ambient 0.1 } } #declare tx_espelho = texture{ pigment{ color rgb < 1.00, 0.85, 0.30 > } finish{ diffuse 0.2 reflection 0.7*< 1.00, 0.85, 0.30 > ambient 0.1 } } #declare tx_vidro = texture{ pigment{ color rgb < 0.85, 0.95, 1.00 > filter 0.70 } finish{ diffuse 0.03 reflection 0.25 ambient 0.02 specular 0.25 roughness 0.005 } } #declare tx_xadrez = texture{ pigment{ checker color rgb < 0.10, 0.32, 0.60 >, color rgb < 1.00, 0.97, 0.90 > } finish{ diffuse 0.9 ambient 0.1 } scale 2.0 } #declare chave = box{ <0,0,0> <.1,.2,.3> texture{ tx_plastico } } #declare chao = box{ <7,-7,-1.5>, <-7,+7,-1.4> texture{ tx_plastico} } #macro moldura(m,n) union{ difference{ box{ <-0.06,-.2*n,-.3*m> <0.06,.3*n,.3*m> texture{ tx_xadrez } } box{ <-0.06,-.18*n,-.27*m> <0.08,.27*n,.27*m> texture{ tx_plastico } } } } #end #macro bit(valor,def) union{ #if(def=0) object { chave rotate<0,135-90*valor,0>} #else object{ chave rotate<0,90,0>} #end } #end #declare roleta = seed(417); #macro fileira(n,valor,prob) #local i=0; #local numero = valor; #local p=.27*n-0.5; #local r=int(valor); #local f=valor-r; union{ #while (i } #local f=0; #else object{ bit(1-f,def) translate<0,p,0> } #end #local r=int(r/2); #local i = i+1; #local p=p-0.4; #end } #end #declare vetor = array[4]; #declare vetor[0] = (1-clock)*1+clock*9; #declare vetor[1] = (1-clock)*1+clock*7; #declare vetor[2] = (1-clock)*1+clock*5; #declare vetor[3] = (1-clock)*1+clock*3; #macro abaco(m,n,valor,prob) #local i=0; #local p=0.27*m-.3; union{ object{ moldura(m,n) } #while(i} #local i = i+1; #local p = p-0.5; #end } #end #include "eixos.inc" object{ abaco(4,5,vetor,.4) translate <0,-1,0> } object{ chao } #include "camlight.inc" #declare centro_cena = < 25*(1-clock), 0.00, 0.00 >; #declare raio_cena = 3.0; #declare dir_camera = < 0.2, 0.00, 0.00 >; #declare dist_camera = 10.0; #declare intens_luz = 1.00; camlight(centro_cena, raio_cena, dir_camera, dist_camera , z, intens_luz)