// Exercício número 6 - Aula de 23/06/2001 // Anderson Supriano - RA 7852 background{ color rgb < 0.5, 0.5, 0.5 > } #declare chao = texture { pigment{ color rgb < 1.0, 1.0, 1.0 > } finish { diffuse 0.5 specular 0.5 roughness 0.05 ambient 0.7 } } #declare amarelo = texture { pigment{ color rgb < 1.0, 1.0, 0.1 > } finish { diffuse 0.5 specular 0.05 roughness 0.005 ambient 0.2 } } camera { location < 0, 6, 2 > // right <-0.60, 0.00, 0.00> up <0.00, 0.00, 0.80> sky <0.00, 0.00, 1.00> look_at < 0, -0.5, 1 > } light_source { < -1, 10, 6 > color rgb < 1.0, 1.0, 1.0 > } #declare rotulo = text { ttf "arial.ttf" "Povvy" 0.05, 0 rotate <90, 0, 180> translate <1.3, 1.51, 1.5> } #declare caixa = union { box { <-1.5, 1.5, 0>, <1.5, 1.0, 2.5> texture {amarelo} } object {rotulo} } #declare legenda = union { text { ttf "arial.ttf" "Povvy" 0.05, 0 rotate <90, 0, 180> translate <-2, 0, 5> } text { ttf "arial.ttf" "Super" 0.05, 0 rotate <90, 0, 180> translate <-2, 0, 4> } text { ttf "arial.ttf" "Vitaminado" 0.05, 0 rotate <90, 0, 180> translate <-2, 0, 3> } text { ttf "arial.ttf" "Nova" 0.05, 0 rotate <90, 0, 180> translate <-2, 0, 2> } text { ttf "arial.ttf" "Embalagem" 0.05, 0 rotate <90, 0, 180> translate <-2, 0, 1> } scale 0.55 pigment {rgb <1, 0, 0> } } union { plane { <0,0,1>, 0 texture {chao} } plane { <0, -50, 0>, 0 texture {chao} } object {caixa scale 0.3+0.7*clock translate <-3.0+4*clock, 0, 0> } #if (clock = 1) object {legenda} #end }