// Lab. 3 - Romeu Ribeiro M. da Fonseca RA: 993236 // ====================================================================== // CÂMERA camera { location 0.8 * < +15.00, +50.00, 15.00 > // Posição do observador. right < -0.60, 0.00, 0.00 > // Largura RELATIVA da imagem. up < 0.00, 0.00, 0.80 > // Altura RELATIVA da imagem. sky < 0.00, 0.00, 1.00 > // Qual direção é "para cima"? look_at < 0.00, 0.00, 10.00 > // Para onde a câmera está apontando. } // Nota: os parâmetros "right" e "up" devem ter a mesma proporção // que os parâmetros ${WIDTH} e ${HEIGHT} no Makefile. // ====================================================================== // 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 } }