// Last edited on DATE TIME by USER // Processed by remove-cam-lights background{ color rgb < 0.75, 0.74, 0.51 > } #declare tx_camara = texture{ pigment{ color rgb < 0, 0, 0> } } #declare tx_tunel = 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 camara = box{ < 0, 0, 0>, < +2,+2,+2> texture{ tx_camara } } #declare tunel = cylinder{ < -0.00, +0.00, -0.00 >, < +2.00, -2.00, +1.00 >, 0.75 texture{ tx_tunel } } #declare chao = box{ <-20,-20,-1>, <+20,+20,0> } #declare centro = array[10]; #declare aleatorio = seed(700); #macro vetorCamaras(tam_vetor) #declare i = 0; #declare j = 0; #declare pos_inicial = array[tam_vetor]; #declare pos_final = array[tam_vetor]; union{ #while(i < tam_vetor) #declare p_x = rand(aleatorio); #declare p_y = rand(aleatorio); #declare p_z = rand(aleatorio); #declare pos_inicial[i] = < p_x, p_y, p_z >; #declare pos_final[i] = < 3*rand(aleatorio), 3*rand(aleatorio), 2*rand(aleatorio) >; box { pos_inicial[i], pos_final[i] texture {tx_camara} } #declare i = i + 1; #end } #end #include "eixos.inc" object { vetorCamaras(10) } #include "camlight.inc" #declare centro_cena = < 0.00, 0.00, 1.00 >; #declare raio_cena = 6.0; #declare dir_camera = < 14.00, 7.00, 4.00 >; #declare dist_camera = 5*raio_cena; #declare intens_luz = 1.20; camlight(centro_cena, raio_cena, dir_camera, dist_camera , z, intens_luz)