// Last edited on 2004-03-13 16:55:36 by stolfi // Aluna : Carina Marques Silva ra001427 #include "colors.inc" #include "metals.inc" #include "golds.inc" #include "stones1.inc" #include "textures.inc" #declare Fin = finish { phong 0.9 metallic 1 } // ====================================================================== #declare ctr = < 0.00, 0.00, 0.00 >; #declare camDir = < 10.0, 0.00, 2.00 >; camera { location ctr + 1.00*camDir right -1.00*x up 0.75*y sky z look_at ctr } // ====================================================================== // FONTES DE LUZ light_source { < -10.0, -15.0, +30.0 > // Posição da lâmpada. color rgb 1.2 * < 1.00, 1.00, 1.00 > // Intensidade e corda luz. } light_source { 10 * < +50.0, -10.0, +10.0 > // Posição da lâmpada. color rgb 0.9 * < 1.00, 1.00, 1.00 > // Intensidade e corda luz. } background { color rgb <0.5 , 0.5, 0.7> } // ====================================================================== // DESCRIÇÃO DA CENA #declare tx_cristal = texture { finish { ambient 0.1 diffuse 0.1 reflection 0.25 specular 1 roughness 0.001 } pigment {color Yellow filter 1} } # declare tx_espelho = texture { pigment { color Green } finish{ ambient 0.05 diffuse 0.05 reflection color Green specular 0.2 roughness 0.05 } } #declare eixos = union { sphere { < 0.00, 0.00, 0.00 > 0.10 pigment { color White} } sphere { < 1.00, 0.00, 0.00 > 0.10 pigment { color Red} } sphere { < 0.00, 1.00, 0.00 > 0.10 pigment { color Green} } sphere { < 0.00, 0.00, 1.00 > 0.10 pigment { color Blue} } } /* ==================objetos ================== */ #declare portao = lathe { linear_spline 8, <0,0>, <1,1>, <2,1>, <2,3>, <2,3.5>, <0,3.5>,<0.5,1>,<1,-2> pigment {checker color rgb<0,0,0> ,color rgb<1,1,1> } finish { ambient .3 phong .75 } } #declare barra = prism { linear_spline 0, // sweep the following shape from here ... 1, // ... up through here 5, // the number of points making up the shape ... <2,2>, <-2,2>, <-2,-2>, <2,-2>,<2,2> pigment {gradient y scale .1} } #declare texto1 = text { ttf "ariblk.ttf" "CHEGADA" 0.30 ,0 scale 1.2 } #declare roda = difference{ cylinder { <0,0,0> <0.3,0,0> 0.1 texture {tx_cristal} pigment {color Gray filter 0.2 } } sphere { <0,0,0> 0.2 pigment {color Gray filter 0.2} } } #declare caixa = box { <1,1.12,0.7> <0,0,0> texture {tx_cristal} pigment {color Red filter 0.2 } } #declare carro = union{ object {caixa} object {roda translate <0,0,0.2> } object {roda translate <1,0,0.2> } object {roda translate <1,1,0.2> } object {roda translate <0,1,0.2> } scale 4 } #declare fundo = plane { z,-2 pigment { color Green } finish { phong 0.3 } } box{ <-20, 1 , 0.8> <20, -1 , 0.5 > pigment {color Gray } } #declare vai =((1-clock)*(5)) + clock*-5; #declare faixa = box { <0,0,0> <2,2,2> pigment {color Red} } #if (clock < 1) object {texto1 pigment {color rgb< 0.3 + clock/2 , clock/3 + 0.1, clock*0.7> } rotate <90,0,90> translate <0,vai,0> } /* #else #if (clock < 0.7) #else #if (clock < 1) #end #end */ #end union{ object { eixos } object { fundo } object {barra } object {portao scale 0.3 rotate -90*x translate <2,1.5,2> } object {portao scale 0.3 rotate -90*x translate <2,-1.5,2>} object {faixa translate <3,0,3> scale 2} }