#include "colors.inc" #include "woods.inc" // T_Wood1 - T_Wood35 #include "metals.inc" #include "skies.inc" #declare terminou = false; global_settings { assumed_gamma 1.5 max_trace_level 2 } // ---------------------------------------- sky_sphere { S_Cloud1 } light_source { 0 color rgb 2 area_light <4, 0, 0> <0, 0, 4> 4, 4 adaptive 0 jitter translate <0,100,-200> //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 ouro = material { texture { pigment { BrightGold } finish { ambient .1 diffuse .1 specular 1 roughness .001 metallic reflection { .9 metallic } } } } #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_pneu = 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_pneu 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 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 garfo = prism { linear_sweep linear_spline 0, 1, 13, <1, 0>, <1, 10>, <6, 10.5>, <5, 16>, <4, 11>, <1, 11>, <0, 16>, //uma metade <-1, 11>, <-4, 11>, <-5, 16>, <-6, 10.5>, <-1, 10>, <-1, 0> //outra metade material { prata } } #declare taca = lathe { linear_spline 7 <3.0, 0.0>, <1.0, 0.2>, <0.5, 0.4>, <0.5, 8.0>, <1.0, 10.0>, <3.0, 12.0>, <4.0, 16.0> material { ouro } } #declare faca = prism { linear_sweep linear_spline 0, 1, 6, <10, 0> , <10, 1>, <-3, 1.5>, <-3, 2>, <-8, 3>, <-10, 0> material { prata_escura } } #if (clock < 0.5) text { ttf "arial.ttf" "Mais rapido que um F1..." 0.12, 0 pigment { color Red } scale 4 translate <-20, 23, 0> } object { carro translate <-20 + clock*80, 0, 0> } camera { location <20,10,-40> //location <-50, 10, 0> 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, 26, 0> } text { ttf "arial.ttf" "Fome Zero!" 0.12, 0 pigment { color Red } scale 4 translate <-10, 21.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, 26, 0> } text { ttf "arial.ttf" "Fome Zero!" 0.12, 0 pigment { color Red } scale 4 translate <-10, 21.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, 26, 0> } text { ttf "arial.ttf" "Fome Zero!" 0.12, 0 pigment { color Red } scale 4 translate <-10, 21.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 } } object { garfo rotate <-90, -90, 0> translate <0, 0, -10> } object { taca translate <0, 0, 10> } object { faca rotate <-90, -90, 0> translate <0, 16, 0> } //tarmac box { <-100000, -0.000001, -10>, <100000, 0.000001, 10> pigment { color rgb 0.1 } }