// Last edited on 2013-11-04 20:47:55 by stolfilocal // Processed by remove-cam-lights #include "textures.inc" 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 vermelho = texture{ pigment{ color rgb < 1, 0.0, 0.0 >} } #declare verde = texture{ pigment{ color rgb < 0.0, 1, 0.0 >} } #declare azul = texture{ pigment{ color rgb < 0.0, 0.0, 1 >} } #declare raio = 1.000; #declare botao = cylinder{ < 3.8, 5.8, 1.00 >, < 3.8, 5.8, 1.10 >, 0.1*raio texture{ tx_fosca } } #declare botao2 = box { <4,6,1> <3.6,5.6,1.1> texture {vermelho} } #declare painel = box {<0,0,0> <4,6,1> texture {Silver_Metal} } #declare monitor = box {<0.2,0.2,1> <2,3,1.05> texture {azul} } #macro botaozes(n,m,k) //botoes quadrados //botoes redondos // n=tamanho do console, m = posicao y no console, k = estilo de botao union{ #declare i=0; #while(i<n) #if (k=1) object {botao2 translate (-i)*(0.5*y) translate (-m)*x #if (mod(i,3*m)=0 ) texture{vermelho} #else texture{verde} #end #if (k=1 & mod(i,2)=0 ) texture {azul} translate -z*0.08 #end } #else object {botao translate (-i)*(0.5*y) translate (-m)*x #if (mod(i,3*m)=0 ) texture{vermelho} #end #if (k=1 & mod(i,2)=0 ) texture {azul} #end } #end #declare i = i+1; #end } #end #include "eixos.inc" //object { eixos (3.00)} object {painel} object {monitor} botaozes (10,0,1) botaozes (12,0.5,0) botaozes (11,1,0) botaozes (15,1.5,1) botaozes (5,2.5,0) botaozes (4,3,1) botaozes (8,3.5,1) #include "camlight.inc" #declare centro_cena = < 2.00, 3.00, 0.50 >; #declare raio_cena = 6.0; #declare dir_camera = < 14.00, -3.00, 14.00 >; #declare dist_camera = 16.0; #declare intens_luz = 1.00; camlight(centro_cena, raio_cena, dir_camera, dist_camera , z, intens_luz)