// Last edited on DATE TIME by USER // Processed by remove-cam-lights background{ color rgb < 0.75, 0.80, 0.85 > } #declare raio = 2.000; #declare tinta_A = texture { pigment { color rgb < 0.10, 0.80, 1.00 > } finish { diffuse 0.8 specular 0.2 roughness 0.005 ambient 0.1 } } #declare tinta_B = texture { pigment { color rgb < 1.00, 0.80, 0.10 > } finish { diffuse 0.8 specular 0.2 roughness 0.005 ambient 0.1 } } #declare eixox= cylinder{ <0,0,0> <100,0,0> 0.2 } #declare eixoy= cylinder{ <0,0,0> <0,100,0> 0.2 } #declare eixoz= cylinder{ <0,0,0> <0,0,100> 0.2 } #declare eixo= union{ object{eixox} object{eixoy} object{eixoz} } #declare vagao = box{ <0,0,0> <5,7,3> texture {tinta_B} } #declare janela = box { < -0.50, 0.50, 1.50> < 5.50, 2.00, 2.50> texture { tinta_A } } #declare fileira_janela = union{ #declare i=0; #while (i<6) object { janela translate <0, i, 0> } #declare i = i + 2.25; #end } #declare vag= union{ object{vagao} object{fileira_janela} } #declare tt=clock; #if(tt<0.20) #declare posicao=1100*tt*tt; #else #if (tt<0.80) #declare posicao=-44+440*tt; #else #declare posicao=360-1300*(1-tt)*(1-tt); #end #end #declare trem = union{ #declare i=0; #while (i<4) object {vag translate <24.75,-3.00,1.35> rotate 17*i*z } #declare i=i+1; #end } #declare estacao= box{ <-5,-5,0> <0,0,5> translate <24.75,-3.00,1.35> rotate 17*z*4 } union{ object{eixo} object{trem rotate posicao*z} object{estacao} } #include "camlight.inc" camlight(<0,0,0>,<40.00,40.00,80.00>,1.00,z,1.0)