// Last edited on 2004-03-13 21:08:56 by stolfi #declare ctr = < 0.00, 0.00, 0.00 >; #declare camDir = < 20.00, 0.00, 0.00 >; camera { location ctr + 1.00*camDir right -0.60*x up 0.45*y sky z look_at ctr } #include "colors.inc" background{ color rgb<0,0,0> } // ====================================================================== // FONTES DE LUZ light_source { 10 * < +50.0, +30.0, +50.0 > // Posição da lâmpada. color rgb 1.2 * < 1.00, 1.00, 1.00 > // Intensidade e corda luz. } light_source { 10 * < +50.0, -10.0, +10.0 > // Posição da lâmpada. color rgb 0.8 * < 1.00, 1.00, 1.00 > // Intensidade e corda luz. } // ====================================================================== //eixos #declare eixox = cylinder { < -5.00, 0.00, 0.00 >, < 5.00, 0.00, 0.00 >, 0.05 pigment { color Black } } #declare eixoy = cylinder { < 00, -5.00, 0.00 >, < 00, 5.00, 0.00 >, 0.05 pigment { color Black } } #declare eixoz = cylinder { < 0.0, 00, -5.00 >, < 0.0, 00, 5.00 >, 0.05 pigment { color Black } } #declare a=(clock)/(0.5); #declare b=(clock)/(0.4); #declare w=(clock-0.4)/(0.6-0.4); #declare i=(clock-0.6)/(1-0.6); #if(clock<=0.4) #declare r=(1-b)*(-10); #declare rc=0; #else #if(clock<0.6) #declare r=0; #declare rc=0; #else #declare r=i*9.5; #declare rc=r; #end #end #if(clock<=0.4) #declare c=0; #else #declare c=0.1; #end #if(clock<=0.4) #declare g=0; #else #if(clock>0.6) #declare g=1; #else #declare g=w; #end #end #if(clock<0.5) #declare k=(1-a)*(-10)+a*(-3.5); #else #if(clock<0.6) #declare k=-3.5; #else #declare k=-3.5+r; #end #end #declare zero = torus { 0.5,0.1 texture{pigment {checker color Red color Yellow}} rotate z*90 rotate (rc/0.6)*x*(-180/3.14) translate <0,0,0.3> translate <0,r,0> } #declare ponte = cylinder { <0,0,0> <0,0,1> c texture{pigment {color Red}} rotate g*90*x translate <0,0,0.2> translate <0,rc,0> } #declare fome = text{ ttf "arial.ttf" "FOME" 0.15,0 rotate x*90 rotate z*90 translate <0,k,0> texture{pigment {color Red}} } #declare mensagem = text{ ttf "arial.ttf" "De Rubinho a Senna" 0.15,0 rotate x*90 rotate z*90 translate <0,-6,5> texture{pigment {color rgb<1*clock,1*clock,1*clock>}} } #declare mensagem2 = text{ ttf "arial.ttf" "Em 4 anos" 0.15,0 rotate x*90 rotate z*90 translate <0,0,-3> texture{pigment {color clock*Gray}} } #declare mensagem3 = text{ ttf "arial.ttf" "SEM FOME" 0.15,0 rotate x*90 rotate z*90 translate <0,-20*(1-clock)+clock*(-4),0> texture{pigment {color clock*Gray}} } // Aqui está a cena, finalmente: union { object{eixox} object{eixoy} object{eixoz} object{fome} object{zero} object{ponte} object{mensagem} object{mensagem2} object{mensagem3} }