// Last edited on 2003-12-14 20:26:32 by stolfi // LAB-10 -- 11/Nov/2003 #declare ctr = < 0.00, 0.00, 0.00 >; #declare camDir = < 15.00, 0.00, 0.0 >; camera { location ctr + 1.00*camDir right -0.80*x up 0.80*z sky z look_at ctr } // ====================================================================== // FONTES DE LUZ // ====================================================================== light_source { 10 * < +50.0, +30.0, +50.0 > // Posição da lâmpada. color rgb 1.2 * < 1.00, 1.00, 1.00 > // Intensidade e corda luz. } light_source { 1 * < 1.0, -2.0, +2.5 > // Posição da lâmpada. color rgb 1.0 * < 1.00, 1.00, 1.00 > // Intensidade e corda luz. } light_source { 1 * < -3.0, +2.0, -1.0 > // Posição da lâmpada. color rgb 10 * < 1.00, 1.00, 1.00 > // Intensidade e corda luz. } // ====================================================================== // DESCRIÇÃO DA CENA // ====================================================================== background{ color rgb < 0.3, 0.3, 0.8 > } #declare raio = 2.000; #include "colors.inc" // #include "dados.inc" // ====================================================================== // CORES USADAS // ====================================================================== #declare bgcolor = texture { pigment { color rgb < 0.75, 0.80, 0.85 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare branco = texture { pigment { color rgb < 1.00, 1.00, 1.00 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare azul = texture { pigment { color rgb < 0.00, 0.00, 1.00 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare preto = texture { pigment { color rgb < 0.00, 0.00, 0.00 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare cinza = texture { pigment { color rgb < 0.40, 0.40, 0.40 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare laranja = texture { pigment { color rgb < 1.00, 0.70, 0.00 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } // ====================================================================== // Cristais e Espelhos // ====================================================================== #declare cor_cristal = < 0.40, 0.40, 1.0 >; #declare tx_cristal = texture { finish { ambient 0.1 diffuse 0.1 reflection 0.25 specular 1.0 roughness 0.001 } pigment { color cor_cristal filter 1 } } #declare cor_cristal2 = < 1.00, 0.20, 0.20 >; #declare tx_cristal2 = texture { finish { ambient 0.1 diffuse 0.1 reflection 0.25 specular 1.0 roughness 0.001 } pigment { color cor_cristal2 filter 1 } } #declare cor_espelho = < 0.9, 0.9, 0.9 >; #declare tx_espelho = texture { pigment { rgb cor_espelho } finish { ambient 0.05 diffuse 0.05 reflection cor_espelho specular 0.20 roughness 0.05 } } // ====================================================================== // FORMAS USADAS // ====================================================================== #declare fundo = box {<-20, -20, -20>, <-21, 20, 20> texture {preto}} #declare esfera1 = sphere {<0,0,0>, 2 texture {tx_cristal2}} #declare esfera2 = sphere {<0,0,0>, 2 texture {tx_cristal}} #declare eixo = cylinder {<0,0,-4.5>, <0,0,+4.5>, 0.25 texture {tx_espelho}} #declare base = cone {<0, 0, 0>, 0.75 <0, 0, 0.5>, 0.01 texture {tx_espelho}} #declare LLL = text { ttf "timrom.ttf" "L" 1, 0 texture { branco } rotate 90*y rotate 90*x} #declare III = text { ttf "timrom.ttf" "I" 1, 0 texture { branco } rotate 90*y rotate 90*x} #declare VVV = text { ttf "timrom.ttf" "V" 1, 0 texture { branco } rotate 90*y rotate 90*x} // ====================================================================== // LAB10 - Itens Especificos // ====================================================================== // ====================================================================== // CENA! // ====================================================================== object {fundo} object {esfera1 scale <1,1,2> rotate -75*x} object {esfera2 scale <1,0.7,1.5> rotate -75*x translate <1,0,0>} object {eixo rotate -75*x translate <0.75,0,0>} object {base rotate 105*x translate <0.75,4.5,1.22>} object {base rotate -75*x translate <0.75,-4.5,-1.22>} object {LLL translate <3.5, -1.75, -0.75>} object {III translate <3.5, 0.0, -0.25>} object {VVV translate <3.5, 1.15, +0.15>}