// Last edited on DATE TIME by stolfi // LAB-07 -- 21/Out/2003 // ====================================================================== // ====================================================================== #declare ctr = < 0.00, 0.00, 0.00 >; #declare camDir = < 40.00, 0.00, 6.50 >; camera { location ctr + 1.00*camDir right -0.80*x up 0.60*y 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 * < +3.0, +3.0, +1.5 > // Posição da lâmpada. color rgb 1.0 * < 1.00, 1.00, 1.00 > // Intensidade e corda luz. } // ====================================================================== // DESCRIÇÃO DA CENA // ====================================================================== background{ color rgb < 0.50, 0.50, 1.0 > } #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.10, 0.10, 0.10 > } 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.10, 0.10, 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.80, 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.5, 0.5, 0.5 >; #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 chao = plane { <0, 0, 1>, -0.01 texture {laranja} } #declare chao2 = plane { <0, 0, 1>, -0.54 texture {tx_cristal} } // ====================================================================== // LAB07 - Itens Especificos // ====================================================================== #declare i=-10; #declare box_teste = box {<1,1,0>, <1,2,5> texture {azul} } // ====================================================================== // CENA! // ====================================================================== object {chao} // object {box_teste translate<0,-5,0>} object {box_1 translate <0,i+0,0>} object {box_2 translate <0,i+2,0>} object {box_3 translate <0,i+4,0>} object {box_4 translate <0,i+6,0>} object {box_5 translate <0,i+8,0>} object {box_6 translate <0,i+10,0>} object {box_7 translate <0,i+12,0>} object {box_8 translate <0,i+14,0>} object {box_9 translate <0,i+16,0>} object {box_10 translate <0,i+18,0>} object {box_11 translate <0,i+20,0>}