// MC930 - Laboratorio 4 // Martim Carbone - RA:002193 // Last edited on 2003-10-23 09:49:41 by stolfi #include "colors.inc" background{ color rgb < 1, 1, 1 > } #if(clock<0.6) #declare cor_roda=Black; #else #declare cor_roda=White; #end #if(clock<0.6) #declare t1 = (clock-0.0)/(0.6-0.0); #declare pos_camera = ((1-t1)*<0,-10,1.5>)+(t1*<3.5,-3,-0.25>); #else #declare pos_camera = <3.5,-3,-0.25>; #end #declare texto = text { ttf "arial.ttf" "FOME ZERO" 0.15, 0 } #declare carro = difference { box { <4, 2, 0> <-4, -2, 3> } box { <-5,-3, 1.5> <5, 3, 6> rotate 20*y } } #declare roda = cylinder { <0,0,0>, <0,0,0.2>,0.5 } // #declare pos_camera = <10,-10,10>; #declare ctr = <3.5, -2,-0.25 >; #declare vec_camera = pos_camera - ctr; camera { location ctr + 1.00*vec_camera right 1.60*x up 1.20*y look_at ctr sky z } light_source { ctr + 100*(vrotate(vec_camera, 30*z) + 0.5*z) color rgb 1.2*<1, 1, 1> } light_source { ctr + 100*(vrotate(vec_camera, -30*z) + 1.0*z) color rgb 0.6*<1, 1, 1> } object{ carro texture{ pigment { color rgb Red }} } object{ roda rotate 90*x translate <3.5, 2, -0.25> } object{ roda rotate 90*x translate <-3.5, 2, -0.25> } object{ roda rotate 90*x translate <3.5, -2, -0.25> texture{ pigment{cor_roda}} } object{ roda rotate 90*x translate <-3.5, -2, -0.25> } //#if(clock>=0.6) object{ texto translate <3.5, -2.3, -0.25> texture {pigment{ color <0.4,0.4,0.4>}} // scale <1,0.5,0.5> } //#end