#include "colors.inc" // Exemplo de arquivo de descricao de cena para POV-ray // Last edited on 2001-07-31 00:19:10 by stolfi background{ color rgb < 0.30,0.70, 0.90 > } light_source { < 350, -800, 210> color rgb 1.4*< 1.00, 0.5, 0.50 > } camera { location < 35.00, -85.00, 20> right <-0.80,0.00, 0.00> up <0.0, 0.0, 0.60> sky <0.00, 0.00, 1.00> look_at <20.00, 10.0, 5.00> } sky_sphere { pigment { gradient y color_map { [0.000 0.002 color rgb <1-clock, 0.2, clock> color rgb <1.0, 0.2, 0.0>] [0.002 0.200 color rgb <0.8, 0.1, clock> color rgb <0.2, 0.2, 0.3>] } scale 2 translate -1 } pigment { bozo turbulence 0.55 octaves 6 omega 0.65 lambda 2 color_map { [0.0 0.1 color rgb <0.85, 0.85, 0.85> color rgb <1-(0.75-clock), 0.75, 0.75>] [0.1 0.5 color rgb <0.75, 1-(0.75-clock), 0.75> color rgbt <1, 1, 1, 0.75>] [0.5 1.0 color rgbt <1, 1, 0.75, 1-clock> color rgbt <1, 1, 1-clock, 1>] } scale <0.2, 0.5, 0.2> } rotate -135*x } #declare preto = texture { pigment { color rgb < 0, 0, 0 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare branco = texture { pigment { color rgb < 1.0, 1.0, 0.9 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare vermelho = texture { pigment { color rgb < 1.00, 0.00, 0.00 > } finish { diffuse 1.5 specular 0.5 roughness 0.05 ambient 0.1 } } #declare verde = texture {pigment {color rgb <0.0, 1.0, 0.1>} finish {diffuse 0.75 specular 1.0 roughness 0.050 ambient 0.1} } #declare verde2 = texture {pigment {color rgb <0.0+clock, 1.0, clock>} finish {diffuse 0.75 specular 1.0 roughness 0.050 ambient 0.1} } #declare tx_cristal = texture { finish { ambient 0.1 diffuse 0.1 reflection 0.25 specular 1 roughness 0.001} pigment {color filter 1 White} } // Aqui está a cena, finalmente: #declare cilindro1 = cylinder { <-5.0,12.0,-14.0>, <15.0,12.0,-14>, 1.50 texture { verde } } #declare bola = sphere { <0, 0.0, 0.0>, 1.5 texture {verde2} } #declare caixa = box { <12, 12, 28>, <-2, -2, 5> texture {branco}} #declare caixa2 = box { <12, -8, -5>, < -2, 17, 5> texture {branco}} #declare t1 = text { ttf "arial.ttf", "Caixa de leite COMUM !!!", 2.0, 0} #declare t2 = text { ttf "arial.ttf", "Troque pelos nossos carrinhos de leite!!!", 2,0} #declare t3 = text {ttf "arial.ttf", "Facil de Montar" ,2.0, 0 } #declare t4 = text {ttf "arial.ttf", " Varias opcoes de montagem",2.0, 0} #declare t5 = text {ttf "arial.ttf", " Facil transposte ", 2.0, 0} #declare final = text {ttf "arial.ttf", "FIM",2.0,0 } #if (clock <= 0.10) object {t1 rotate 90*x scale 4 translate < 12,30,5> } #end #if ((clock <= 0.20 & clock > 0.10)) object {t2 rotate 90*x scale 4 translate < 5,30,10> } #end #if ((clock <= 0.50) & (clock > 0.20)) object {t3 rotate 90*x scale 4 translate < 5,30,10>} #end #if ((clock <= 0.80) & (clock > 0.50)) object {t4 rotate 90*x scale 4 translate < 5,30,10> } #end #if ((clock <= 0.90) & (clock > 0.80)) object {t5 rotate 90*x scale 4 translate < 5,30,10> } #end #if (clock >= 0.15 ) object {cilindro1 translate <0,-14,0>} #end #if (clock >= 0.20) object {torus {2.5, 1.45 texture{preto} rotate 90*z translate <15.0,-2.0,-14> }} object {torus {2.5, 1.45 rotate 90*z texture {preto} translate <-5.0,-2.0,-14> } } #end #if (clock >=0.30) object {torus {2.5, 1.45 texture{preto} rotate 90*z translate <15.0,12.0,-14> }} #end #if (clock >=0.35) object {torus {2.5, 1.45 rotate 90*z texture {preto} translate <-5.0,12.0,-14> } } object {cilindro1} #end #if (clock <0.10) object {caixa translate <0,0,-1>} #end #if (clock <0.20 & clock >=0.10) object{caixa rotate (40+clock)*x translate <0,0,-1>} #end #if ((clock >= 0.20) & (clock < 0.35)) object {caixa2} #end #if ((clock <= 0.50) & (clock >=0.35)) object{caixa2 translate <0,0, clock*-12>} #end #if (clock > 0.50) object{caixa2 translate <0,0, -6>} #end //#if (clock >0.80) //object {caixa2 translate <0,clock*1.8,-1>} //#end #if (clock <= 0.90) object {bola scale clock*2.5 translate <10, 1, 6*(1-clock)+6*(clock)>} #end #if (clock > 0.90) object {final rotate 90*x scale 5 translate <5, 30, 10>} #end