// Aluna : Carina Marques Silva ra001427 // Last edited on 2003-10-23 00:53:24 by stolfi // ====================================================================== // CÂMERA #declare ctr = < 0.00, 0.00, -4.00 >; #declare camdir = < 11.00, 11.00, 1.00 >; camera { location ctr + 1.80*camdir right 1.00*x up 0.75*y sky z // Qual direção é "para cima"? look_at ctr } // ====================================================================== // FONTES DE LUZ light_source { 100 * < 20.0, 50.0, 10.0 > // Posição da lâmpada. color rgb 1.2 * < 1.00, 1.00, 1.00 > // Intensidade e corda luz. } light_source { 100 * < 50.0, 20.0, 30.0 > // Posição da lâmpada. color rgb 0.6 * < 1.00, 1.00, 1.00 > // Intensidade e corda luz. } background { color rgb <0.5 , 0.5, 0.7> } #include "colors.inc" #include "metals.inc" #include "golds.inc" #include "stones1.inc" #include "textures.inc" #declare Fin = finish { phong 0.9 metallic 1 } // ====================================================================== // 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 texto1 = text { ttf "ariblk.ttf" "A FORMULA 1 DO PT E " 0.30 ,0 scale 1.2 } #declare texto2 = text { ttf "ariblk.ttf" "FOME 0" 0.30 ,0 scale 1.2 } #declare texto3 = text { ttf "ariblk.ttf" "Com rubinho pé de chinelo" 0.30 ,0 scale 1.2 } #declare roda = cylinder { <0,0,0> <0.3,0,0> 0.1 texture {tx_cristal} 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 = union { plane { z,-2 pigment { color Aquamarine } finish { metallic 0.3 } } plane { x, -20 pigment { checker Black , White} texture {tx_cristal } finish { metallic 0.3 } } } #declare cilindroX = cylinder { < -3, 0, 0 >, < 3, 0, 0 >, 0.01 pigment { color Red } } #declare cilindroY = cylinder { < 0,-3, 0 >, < 0, 3, 0 >, 0.01 pigment { color Black } } #declare cilindroZ = cylinder { < 0, 0, -3 >, < 0, 0, 3 >, 0.01 pigment { color Green} } #declare vai =((1-clock)*(-5)) + clock*5; # if (clock < 0.4) object {texto1 pigment {color rgb< clock,clock,clock> } rotate 90*x translate <0,vai,0> } #end #if (clock > 0.4 & clock < 0.8) object {texto2 pigment {color rgb<1- clock,1-clock,1-clock> } rotate 90*y translate <0,0,vai> } #end # if (clock > 0.8) union { object {texto3 pigment {color rgb< clock,clock,clock> } rotate 90*y translate <0,vai,0> } object { carro rotate 360*clock*z } } #end