// Sexto exercicio de MP004 // Last edited on 2001-07-30 09:22:28 by stolfi // Last edited on 2001-06-23 16:09:00 by Marcus Macedo background{ color rgb < 0.8, 0.8, 0.8 > } light_source { < 18.00, -10.00, 8.00 > color rgb 1.1*< 1.00, 1.00, 1.00 > } camera { location < 7.70, 0.00, 1.20 > right < -1.20, 0.00, 0.00 > up < 0.00, 0.00, 0.90 > sky < 0.00, 0.00, 1.00 > look_at < 0.00, -0.10, 1.60 > } #declare vermelho = rgb < 1.00, 0.40, 0.30 > #declare amarelo = < 1.00, 0.80, 0.00 > #declare produto = cylinder { < 0, 0, 0 >, < 0, 0, 3.0 >, 1.0 texture{ pigment { rgb amarelo } } } #if (clock < 0.8) #declare texto = text { ttf "arial.ttf" "Provvy Super Vitaminado" 0.1, 0 texture{ pigment { vermelho } } scale ((0.7-0.2)*clock + 0.2) rotate 90*z rotate 90*y rotate (70*(1-clock/0.8))*x translate < 1.1, -3.0, (2.3-1.3)*(1-clock/0.8) + 1.3 > } #else #declare texto = text { ttf "arial.ttf" "Provvy Super Vitaminado" 0.1, 0 texture{ pigment { vermelho } } scale ((0.7-0.2)*clock + 0.2) rotate 90*z rotate 90*y translate < 1.1, -(3.0 + (4-3)*(clock-0.8)/(1-0.8)), 1.3 > } #end #declare chao = plane { z, 0 pigment { color rgb < 0.00, 0.80, 0.90 > } } // Aqui está a cena, finalmente: object { chao } object { produto } object { texto }