#include "colors.inc" #include "woods.inc" // T_Wood1 - T_Wood35 #include "metals.inc" global_settings { assumed_gamma 1.5 max_trace_level 2 } // ---------------------------------------- sky_sphere { pigment { gradient y color_map { [0.0 rgb <0.6,0.7,1.0>] [0.7 rgb <0.0,0.1,0.8>] } } } light_source { 0 color rgb 2 area_light <4, 0, 0> <0, 0, 4> 4, 4 adaptive 0 jitter translate <0,10,-20> //mais perto } #declare prata = material { texture { pigment { White } finish { ambient 0.05 diffuse 0.05 reflection Silver metallic specular 0.5 roughness 0.001 } } } #declare prata_escura = material { texture { pigment { rgb 0.1 } finish { ambient 0.05 diffuse 0.05 reflection rgb 0.1 metallic specular 0.5 roughness 0.001 } } } #declare preto = material { texture { pigment { Black } finish { ambient 0.05 diffuse 0.05 specular 0.0 roughness 0.001 } } } #declare frase = union { text { ttf "arial.ttf" "A" 0.15, 0 translate <0, 2.5, 0> rotate <0, 0, - (360 * clock) - (0 * 360/20)> } text { ttf "arial.ttf" "J" 0.15, 0 translate <0, 2.5, 0> rotate <0, 0, - (360 * clock) - (1 * 360/20) > } text { ttf "arial.ttf" "U" 0.15, 0 translate <0, 2.5, 0> rotate <0, 0, - (360 * clock) - (2 * 360/20) > } text { ttf "arial.ttf" "D" 0.15, 0 translate <0, 2.5, 0> rotate <0, 0, - (360 * clock) - (3 * 360/20) > } text { ttf "arial.ttf" "E" 0.15, 0 translate <0, 2.5, 0> rotate <0, 0, - (360 * clock) - (4 * 360/20) > } text { ttf "arial.ttf" "O" 0.15, 0 translate <0, 2.5, 0> rotate <0, 0, - (360 * clock) - (6 * 360/20) > } text { ttf "arial.ttf" "F" 0.15, 0 translate <0, 2.5, 0> rotate <0, 0, - (360 * clock) - (8 * 360/20) > } text { ttf "arial.ttf" "O" 0.15, 0 translate <0, 2.5, 0> rotate <0, 0, - (360 * clock) - (9 * 360/20) > } text { ttf "arial.ttf" "M" 0.15, 0 translate <0, 2.5, 0> rotate <0, 0, - (360 * clock) - (10* 360/20) > } text { ttf "arial.ttf" "E" 0.15, 0 translate <0, 2.5, 0> rotate <0, 0, - (360 * clock) - (11* 360/20) > } text { ttf "arial.ttf" "Z" 0.15, 0 translate <0, 2.5, 0> rotate <0, 0, - (360 * clock) - (13* 360/20) > } text { ttf "arial.ttf" "E" 0.15, 0 translate <0, 2.5, 0> rotate <0, 0, - (360 * clock) - (14* 360/20) > } text { ttf "arial.ttf" "R" 0.15, 0 translate <0, 2.5, 0> rotate <0, 0, - (360 * clock) - (15* 360/20) > } text { ttf "arial.ttf" "O" 0.15, 0 translate <0, 2.5, 0> rotate <0, 0, - (360 * clock) - (16* 360/20) > } pigment { color White } } #declare roda = merge { cylinder { <0, 0, 0>, <0, 3, 0>, 4 material { preto } } cylinder { <0, -0.0000001, 0>, <0, 3.00000001, 0>, 2 pigment { color rgb 0.75 } } rotate <90, 0, 0> } #declare pneu = union { object { roda } object { frase translate <0, 0, -0.11> } } #declare corpo = prism { // <-7, 0, -4>, <7, 4, 4> linear_sweep linear_spline 0, 8, 12, <7, 0>, <7, 0.8>, <2, 1.2>, <-2, 1.8>, <-4.4, 1.8>, <-4.4, 3>, <-3, 3.5>, <-7, 4>, <-5, 3>, <-5, 1.8>, <-7, 1.8>, <-7, 0> pigment { color Yellow } rotate <-90, 0, 0> } #declare corpo_velho = difference { box { <-7, 0, -4>, <7, 4, 4> scale 2 } plane { y, 0 } pigment { color Yellow } } #declare carro = union { object { corpo scale <2, 2.5, 2> translate <0, 2, 8> } object { pneu translate <-7, 4, -11> } object { pneu scale <0.6, 0.6, 1> translate <7, 4*0.6, -11> } object { pneu rotate <0, 180, 0> translate <-7, 4, 11> } object { pneu rotate <0, 180, 0> scale <0.6, 0.6, 1> translate <7, 4*0.6, 11> } scale 0.5 } #declare carro_velho = union { object { corpo translate <0, 2, 0> } object { pneu translate <-7, 4, -10> } object { pneu scale <0.6, 0.6, 1> translate <7, 4*0.6, -10> } object { pneu translate <-7, 4, 10> } object { pneu scale <0.6, 0.6, 1> translate <7, 4*0.6, 10> } scale 0.5 } #if (clock < 0.5) text { ttf "arial.ttf" "Mais rapido que um F1..." 0.12, 0 pigment { color Red } scale 4 translate <-20, 13, 0> } object { carro translate <-20 + clock*80, 0, 0> } camera { location <0,10,-40> look_at <0,10,0> } #end #if (clock >= 0.5 & clock <= 0.6) text { ttf "arial.ttf" "Ajude o Programa" 0.12, 0 pigment { color Red } scale 4 translate <-16, 16, 0> } text { ttf "arial.ttf" "Fome Zero!" 0.12, 0 pigment { color Red } scale 4 translate <-10, 11.5, 0> } object { carro translate <-20 + clock*80, 0, 0> } camera { location <0,10,-40> look_at <0,10,0> } #end #if (clock > 0.6 & clock <= 0.8) text { ttf "arial.ttf" "Ajude o Programa" 0.12, 0 pigment { color Red } scale 4 translate <-16, 16, 0> } text { ttf "arial.ttf" "Fome Zero!" 0.12, 0 pigment { color Red } scale 4 translate <-10, 11.5, 0> } object { carro translate <20, 0, 0> } camera { location <16.5/0.2 * (clock-0.6),10 + ((-10)/0.25) * (clock-0.6), -40 + ((31)/0.2) * (clock-0.6)> look_at <16.5,2,0> } #end #if (clock > 0.8) text { ttf "arial.ttf" "Ajude o Programa" 0.12, 0 pigment { color Red } scale 4 translate <-16, 16, 0> } text { ttf "arial.ttf" "Fome Zero!" 0.12, 0 pigment { color Red } scale 4 translate <-10, 11.5, 0> } object { carro translate <20, 0, 0> } camera { location <16.5,2,-9> look_at <16.5,2,0> } #end plane { y, 0 pigment { color Gray } }