// Last edited on DATE TIME by stolfi // Lab. 3 - Romeu Ribeiro M. da Fonseca RA: 993236 // ====================================================================== #declare ctr = < 0.00, 0.00, 10.00 >; #declare camDir = (0.8 * < +15.00, +50.00, 15.00 >) - (< 0.00, 0.00, 10.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 * < +50.0, +30.0, +50.0 > // Posição da lâmpada. color rgb 1.2 * < 0.90, 1.00, 0.90 > // Intensidade e corda luz. } light_source { 10 * < +50.0, -10.0, +10.0 > // Posição da lâmpada. color rgb 0.8 * < 1.00, 1.00, 1.00 > // Intensidade e corda luz. } // ====================================================================== // DESCRIÇÃO DA CENA background{ color rgb < 0.75, 0.80, 0.85 > } #declare tinta_Azul = texture { pigment { color rgb < 0, 0, 1.00 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare tinta_Vermelha = texture { pigment { color rgb < 1.00, 0, 0 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare tinta_Verde = texture { pigment { color rgb < 0, 1.00, 0 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare tinta_Amarela = texture { pigment { color rgb < 1.00, 1.00, 0.00 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare cor_cristal = <0.50, 1.00, 0.50>; #declare tx_cristal = texture { finish { ambient 0.1 diffuse 0.1 reflection 0.25 specular 1 roughness 0.001 } pigment { color cor_cristal filter 1 } } #declare cor_espelho = < 0.00, 0.00, 1.00>; #declare tx_espelho = texture { pigment { rgb cor_espelho } finish { ambient 0.05 diffuse 0.05 reflection cor_espelho specular 0.20 roughness 0.05 } } #declare chao = plane { z, -10 pigment{ checker color rgb < 1.00, 1.00, 1.00 >, color rgb < 0.00, 0.00, 0.00 > scale 5 rotate 7*z} } #declare teto = cone { < 0.00, 0.00, +15>, 6, < 0.00, 0.00, +20>, 0 texture { tx_espelho } interior { ior 1.5 } } #declare enfeite = torus { 4, 0.5 texture { tinta_Azul } interior { ior 1.5 } } #declare porta = box { < -1.50, +10.05, 0.00 >, < +1.50, +10.05, +4.50 > texture { tinta_Azul } } #declare torre = cylinder { < 0.00, 0.00, +10.00 >, < 0.00, 0.00, +15.00 >, 3.5 texture { tinta_Vermelha } //interior { ior 1.5 } } #declare base = box { < -5.00, +10.00, 0.00 >, < +5.00, -10.00, +10.00 > texture {tx_cristal} interior { ior 1.5 } } // Aqui está a cena, finalmente: union { object { chao } object { base } object { torre } object { porta } object { enfeite rotate <90, 0, 0> translate < 0.00, 0.00, +14.50> } object { teto } }