#include "colors.inc" #declare ctr = < 0.00, 0.00, 0.00 >; #declare camDir = < 0, 16.00, 0.00 >; camera { location ctr + 1.00 * camDir right -0.60*x up 0.45*y sky z look_at ctr } background{ color rgb < 0, 0, 0.95 > } light_source { < 0.00, 30.00, 0.00 > color rgb < 1.00, 1.00, 1.00 > } //EIXOS #declare eixoX = cylinder{ <3, 0, 0 > <-3, 0 ,0 > 0.1 texture { pigment { color Red filter 1}} } #declare eixoY = cylinder{ <0, 3, 0 > <0, -3 ,0 > 0.1 texture { pigment { color Blue filter 1} } } //OBJETOS #declare esfera= sphere{ <0,0,0> , 2 texture{ pigment {color Yellow} } } #declare antiesfera= box{<2,2,2> <-2,-2,-2> translate<0,0,-2> } #declare olho= sphere {<0,0,0> .3 texture { pigment {color Red} } } #declare base= object {difference{ object{esfera} object{antiesfera} } } #declare comecomeI= object{ base rotate 180*y } #declare comecomeS= union{ object { base } object { olho translate<-.5,1.8,1>} } #declare apaga= box{<6,2,2> <0,-2,-2> #if (clock<.8) translate<(1-clock)*6+(clock)*-6,0,0> #else translate<-3,0,0> #end } #declare frase= text{ ttf "arial.ttf" "Fome-la 1!" 0.15, 0 rotate 90*x rotate 180*z translate <2,0,0> } #declare fraseII= union{ text{ ttf "arial.ttf" "Corrida pela" 0.15, 0 rotate 90*x rotate 180*z translate <2.5,0,0> } text{ ttf "arial.ttf" "barriga cheia" 0.15, 0 rotate 90*x rotate 180*z translate <2.5,0,-8> } } //CENA union { difference{ object { frase } object { apaga } } union{ object {comecomeI rotate y*-45*(abs(sin(5*pi*clock))) } object {comecomeS rotate y*45*(abs(sin(5*pi*clock))) } translate <(1-clock)*6+(clock)*-6,0,0> } #if (clock>0.9) object {fraseII scale 0.9*<1,1,1> translate <0,0,3>} #end }