// MC930 - Laboratorio 4 (parte 2) // Martim Carbone - RA:002193 #include "colors.inc" light_source { <0, 6, 0> color rgb <1, 1, 1>} light_source { <0, 5, -25> color rgb <1, 1, 1>} background{ color rgb < 0.7,0.7, 0.9 > } #if(clock<=0.8) #declare cor_roda=Black; #else #declare cor_roda=White; #end #if(clock<=0.8) #declare t1 = clock/0.8; #declare pos_camera = ((1-t1)*<0,8,-30>)+(t1*<-3.5,-0.25,-3>); #else #declare pos_camera = <-3.5,-0.25,-3>; #declare t2 = (clock-0.8)/0.2; #end #declare texto = text { ttf "arial.ttf" "FOME ZERO" 0.15, 0 } #declare carro = difference { box { <4, 0, 2> <-4, 3, -2> } box { <-5,1.5, -3> <5, 6, 3> rotate 20*z } } #declare roda = cylinder { <0,0,0>, <0,0.2,0>,0.5 } #declare pilar = prism { cubic_spline 0, 7, 7, <-1,2>, <0, 0>, <1, 1.5>, <0, 1>, <-1, 1.5>, <0, 0>, <1.5,0> } #declare borda = // borda do prato torus { 0.55,0.05 texture{ pigment {White}} } #declare arco = difference{ lathe { cubic_spline 7, <4,4>, <5, 2>, <6, 3.5>, <5, 3>, <4, 3.5>, <5, 2>, <6.5, 2> } box { <-15, 15, 0>, <15,-15,-15> } } camera { location pos_camera look_at <-3.5, -0.25, -2.1> sky <0,1,0> } plane { <0, 1, 0>, -0.8 pigment { rgb <0.6,0.6,0.6> } } object{ carro texture{ pigment {Red}} } object{ roda rotate 90*x translate <3.5, -0.25, 2.1> texture{ pigment {Black}} } object{ roda rotate 90*x translate <-3.5, -0.25, 2.1> texture{ pigment {Black}} } object{ roda rotate 90*x translate <3.5, -0.25, -2.1> texture{ pigment {Black}} } object{ roda rotate 90*x translate <-3.5, -0.25, -2.1> texture {pigment {cor_roda}} } object{ pilar rotate 180*y translate <-5, -0.8,-12> texture{ pigment{Green} } } object{ pilar rotate 180*y translate <5, -0.8,-12> texture{ pigment{Orange} } } object { arco rotate -90*x translate <0, 6.2, -10> pigment {checker Black,White} } #if(clock>0.8) object{ borda rotate 90*x translate <-3.5, -0.25, -2.1> } object{ texto scale 0.1*t2 translate <-3.5-(0.25*t2), -0.25-(0.07*t2), -2.3> texture {pigment{ color Black}} } #end