// Last edited on DATE TIME by USER // Processed by remove-cam-lights background{ color rgb < 0.75, 0.80, 0.85 > } #declare tx_plastico = texture{ pigment{ color rgb < 0.10, 0.80, 1.00 > } finish{ diffuse 0.9 ambient 0.4 specular 0.5 roughness 0.505 } } #declare tx_fosca = texture{ pigment{ color rgb < 1.00, 0.80, 0.10 > } finish{ diffuse 0.8 ambient 0.4 } } #declare tx_farol = texture{ pigment{ color rgb < 1.00, 0.90, 0.10 > } finish{ diffuse 0.9 ambient 0.8 } } #declare tx_espelho = texture{ pigment{ color rgb < 1.00, 0.85, 0.30 > } finish{ diffuse 0.2 reflection 0.9*< 1.00, 0.85, 0.30 > ambient 0.1 } } #declare tx_vidro = texture{ pigment{ color rgb < 0.85, 0.95, 1.00 > filter 0.70 } finish{ diffuse 0.03 reflection 0.25 ambient 0.02 specular 0.25 roughness 0.005 } } #macro pe() box{<0.3,0,-0.2>,<-0.3,1.8,0.2> texture{tx_plastico}} #end #macro anteperna(b) union{ cylinder{<0,0,0.3>,<0,0,-2>,0.2 texture{tx_plastico}} object{pe() rotate b*x translate <0,0,-2>} } #end #macro perna(c,b) union{ cylinder{<0,0,0.3>,<0,0,-3>,0.2 texture{tx_plastico}} object{anteperna(b) rotate c*x translate <0,0,-3>} } #end #macro eixo(d,c,b) union{ cylinder{<-3,0,0>,<3,0,0>,0.3 texture{tx_plastico}} object{perna(c,b) rotate d*x translate <-3,0,0>} object{perna(c,b) rotate d*x translate <3,0,0>} } #end #declare body= union{ difference{ sphere{<0,0,0>,3 texture{tx_plastico}} box{<-4,-0.35,-5>,<4,0.35,0.35> texture{tx_plastico}} } sphere{<0,0,2.6>,0.8 texture{tx_farol} rotate<-30,0,35>} sphere{<0,0,2.6>,0.8 texture{tx_farol} rotate<-30,0,-35>} } #declare chao= box{<-10,-70,-0.1>,<10,70,0.02> pigment {checker color rgb<0.776,0.886,1>, color rgb<0.439,0.859,0.576>}} #declare bixo = union{ object{body} object{eixo(60+30*cos(4*2*pi*clock),-135+30*sin(4*2*pi*clock),30+30*cos(4*2*pi*clock))} rotate<-35,0,0> translate<0,0,abs(3*sin(2*2*pi*clock))> } union{ object{bixo} object{chao translate<0,-30*clock,-4>} } #include "camlight.inc" #declare centro_cena = < 00.00,0, 0.00 >; #declare raio_cena = 12.0; #declare dir_camera = < 0.01, 10.01,1.01 >; #declare dist_camera = 8.0; #declare intens_luz = 1.00; camlight(centro_cena, raio_cena, dir_camera, dist_camera , z, intens_luz)