// Last edited on 2003-04-12 22:39:05 by stolfi // José Renato Paulon // Exercicio 6 #include "colors.inc" #include "textures.inc" #include "stones.inc" #include "finish.inc" #declare fastclock = clock*4; #declare fastclock2 = (clock-0.2)*2; #declare fastclock3 = (clock-0.4)*2; #declare fastclock4 = (clock-0.8)*2; #declare translacao = (-1*(125*fastclock)); #declare translacao2 = (-1*(125*fastclock2)); #declare translacao3 = (-1*(125*fastclock3)); #declare translacao4 = (-1*(125*fastclock4)); background{Black} camera { location <20,45,-185> right 1.2*x up 0.9*y sky <0,1,0> look_at <10,-35,90> } light_source {50*<30,30,30> color 1.2*White} light_source {50*<30,30,-30> color 1.2*White} light_source {50*<10,3,-10> color 0.5*White} //sky_sphere{ // pigment {Blue_Sky} //} #declare Gold = texture { pigment { BrightGold } finish { ambient .1 diffuse .8 reflection .2 specular 1 metallic } } #declare cor_metal = <0,1,1>; #declare tx_metal= texture{ pigment{ rgb cor_metal} finish{ ambient 0.05 diffuse 0.05 reflection cor_metal specular 0.20 roughness 0.05 } } #declare anel = torus {50,7 texture {Gold}} #declare texto = text { ttf "timrom.ttf" "O Senhor dos Toroides" 0.25,0 pigment{White}} #declare texto2 = text { ttf "timrom.ttf" "Em Breve nos Cinemas" 0.25,0 pigment{White}} // A animação object { anel rotate x*-20*fastclock } #if (clock <= 0.2) object {texto scale <30*fastclock,30*fastclock,30*fastclock> translate } #end #if (clock >= 0.2 & clock <= 0.4 ) object {texto scale <(30*.4)-(30*fastclock2),(30*.4)-(30*fastclock2),(30*.2)-(30*fastclock2)> rotate x*-45*fastclock2 translate } #end #if (clock >= 0.4 & clock <= 0.8 ) object {texto2 scale <30*fastclock3,30*fastclock3,30*fastclock3> translate } #end #if (clock >= 0.8 & clock <= 1 ) object {texto scale <(30*.4)-(30*fastclock4),(30*.4)-(30*fastclock4),(30*.4)-(30*fastclock4)> rotate x*-45*fastclock4 translate } #end