// Exemplo de arquivo de descricao de cena para POV-ray // Last edited on 2003-10-23 10:28:11 by stolfi background{ color rgb < 0.00, 0.75, 0.85 > } light_source { < 500.00, 1500.00, 200.00 > color rgb 1.2 * < 1.00, 1.00, 1.00 > } light_source { < 200.00, 50.00, 500.00 > color rgb 1.0 * < 1.00, 1.00, 1.00 > } #declare ctr = < 0.00, 1.50, 0.00 >; #declare camangle=clock*clock*pi/2; camera { location 45 * < 0, sin(camangle), cos(camangle) > right -1.32*x up 0.99*y sky y look_at ctr } #declare preto = texture { pigment { color rgb < 0.1, 0.05, 0.0 > } finish { diffuse 0.9 specular 0.5 roughness 0.005 ambient 0.1 } } #declare bege = texture { pigment { color rgb < 1.0, 0.80, 0.70 > } finish { diffuse 0.9 specular 0.5 roughness 0.005 ambient 0.1 } } #declare vermelho = texture { pigment { color rgb < 1.0, 0.20, 0.20 > } finish { diffuse 0.9 specular 0.5 roughness 0.005 ambient 0.1 } } #declare cinza = texture { pigment { color rgb < 0.75, 0.75, 0.75 > } finish { diffuse 0.9 specular 0.5 roughness 0.005 ambient 0.1 } } #declare marrom = texture { pigment { color rgb < 0.5, 0.40, 0.0 > } finish { diffuse 0.9 specular 0.5 roughness 0.005 ambient 0.1 } } #declare chao1=<0.5,0.5,0>; #declare chao2=<0,0.5,0.5>; #declare altpista=4; #declare largpista=4; //plane {y, 0 // pigment { checker color chao1, color chao2, scale 5 } //} #declare pista = difference { cone { <0,0,0>,15 <0,altpista,0>,15+largpista } cone { <0,0.1,0>,15 <0,altpista+0.1,0>,15+largpista } texture { cinza } } #declare coxa = union { sphere { <0,0,0>,1 scale <8,5,5> texture { marrom } } cylinder { <8,0,0>, <16,0,0>, 1 texture { bege } } sphere { <17,0,0>, 1 texture { bege} } } #declare rodagrande = cylinder { <0,0,0>, <0,0,0.5>, 0.5 texture { preto } } #declare rodamenor = cylinder { <0,0,0>, <0,0,0.3>, 0.3 texture { preto } } #declare carro = union { difference { cone { <-2,0.1,0>,1, <2,0.1,0>,0 } box { <-2.1,0.1,-1.1> <2.1,-1,1.1> } texture { vermelho } } object {rodagrande translate <-1.6,0.5,1.1> scale <1,1,1>} object {rodagrande translate <-1.6,0.5,1.1> scale <1,1,-1>} object {rodamenor translate <1,0.3,0.5> scale <1,1,1>} object {rodamenor translate <1,0.3,0.5> scale <1,1,-1>} } #declare textocima = text { ttf "arial.ttf" "Quem tem fome" 0.15,0 pigment { color rgb <1,1,0> } no_shadow } #declare textobaixo = text { ttf "arial.ttf" "TEM PRESSA!" 0.15,0 pigment { color rgb <1,0,0> } no_shadow } #declare angcarro=360*clock*clock-90; #declare maxtilt=-15; #declare coxaangle=maxtilt*sin(pi*clock*6) * exp(-clock*2); object {pista} object {coxa translate <-5,5,0> rotate coxaangle*z} object {carro rotate <-45,0,0> translate y*altpista/2 translate z*(15+largpista/2) rotate y*angcarro } object {textocima scale <6,6,1> translate <-20,10,0>} object {textobaixo scale <6,6,1> translate <-20,10,5> rotate -90*x }