// Last edited on 2001-07-30 14:32:01 by stolfi #include "colors.inc" #include "metals.inc" #include "golds.inc" #include "stones1.inc" #include "textures.inc" background{ color rgb < 1.0, 1.0, 0.0 > } camera { location 0.8*< 25, 10, 45 > //visao geral right < 0.40, 0.00, 0.00> up < 0.00, 0.00, 0.30> sky < 0.00, 0.00, 1.00> look_at <0,0,4> } light_source { < 40, 50, 80> color White } #declare prata = T_Silver_3C #declare eixoX = cylinder { < -10, 0, 0 >, < 10, 0, 0 >, 0.1 pigment { Green } } #declare eixoY = cylinder { < 0,-10, 0 >, < 0, 10, 0 >, 0.1 pigment { Blue } } #declare eixoZ = cylinder { < 0, 0, -10 >, < 0, 0, 10>, 0.1 pigment { Red} } #declare piso = box { < -5.00, -5.00, -1.00 >, < 5.00, 5.00, 0.00 > texture { prata } } //plane{y, -10 pigment{checker color White color Blue}} //plane{x, -10 pigment{checker color White color Green}} //plane{z, -10 pigment{checker color White color Red}} #declare v1 = 1; #if ((clock > 0.6) & (clock <= 0.8)) #declare v1 = v1 + 1; #else #if (clock > 0.8) #declare v1 = v1 + 2; #end #end #declare homem = union{ cylinder { < 0, 0, 5 >, < 0, 0, 10>, 0.3*v1 pigment { Green} //Corpo } cylinder { < 0, 0, 5 >, < 0, 3, 0>, 0.3*v1 pigment { Green} //perna esq } cylinder { < 0, 0, 5 >, < 0, -3, 0>, 0.3*v1 pigment { Green} //perna dir } cylinder { < 0, -3, 7>, < 0, 3, 7>, 0.3*v1 pigment { Green} // ante bracos } cylinder { < 0, 3, 0>, < 2, 3, 0>, 0.3*v1 pigment { Green} //pe esq } cylinder { < 0, -3, 0>, < 2, -3, 0>, 0.3*v1 pigment { Green} //pe dir } cylinder { < 0, -3, 7>, < 0, -3, 9>, 0.3*v1 pigment { Green} //braco esq } cylinder { < 0, 3, 7>, < 0, 3, 9>, 0.3*v1 pigment { Green} //braco dir } sphere { <0, 0, 10> , 1 pigment {Green}} } #declare copo = cylinder { <0, 0, 0>, <0, 0, 3>, 0.6 pigment { Blue } } #declare topoz = 3 #declare topoy = 9 #if (clock < 0.2) object {copo translate < 0 , topoz, topoy > } #end #if ((clock >= 0.2) & (clock < 0.4)) object {copo rotate x*45 translate < 0 , topoz, topoy >} #end #if ((clock >= 0.4) & (clock < 0.6)) object {copo rotate x*90 translate < 0 , topoz, topoy >} #end //eixoX //eixoY //eixoZ // piso homem #if (clock < 0.2) text {ttf "arial.ttf", "Povvy", 0.15, .1 translate <-2,-1, 0> rotate x*90 rotate z*90 pigment {Blue} } #end #if ((clock >= 0.2) & (clock < 0.4)) text {ttf "arial.ttf", "Super", 0.15, .1 translate <-2,-1, 0> rotate x*90 rotate z*90 pigment {Blue} } #end #if ((clock >= 0.4) & (clock < 0.6)) text {ttf "arial.ttf", "Vitaminado", 0.15, 0 translate <-2,-1, 0> rotate x*90 rotate z*90 pigment {Blue} } #end #if (clock = 1.0) text {ttf "arial.ttf", "A Vitamina que faz a diferenca", 0.15, 0 translate <-6,-1, 0> rotate x*90 rotate z*90 pigment {Blue} } #end