// Castelo de Cristal // Daniel Kalil Franulovic ra 001525 // ====================================================================== // CÂMERA camera { location < 20.00, -60.00, 10.00 > // Posição do observador. right <-0.60,0.00,0.00> // right -1.0*x // Largura RELATIVA da imagem. // up 0.75*y // Altura RELATIVA da imagem. up <0.00,0.00,0.80> 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.0, +10.0, +70.0 > // Posição da lâmpada. color rgb 2 * < 1.00, 1.00, 1.00 > // Intensidade e corda luz. } light_source { < +10.0, 15.0, +100.0 > // Posição da lâmpada. color rgb 0.8 * < 1.00, 1.00, 1.00 > // Intensidade e corda luz. } light_source { < +10.0, -70.0, 100.0 > // Posição da lâmpada. color rgb 2 * < 1.00, 1.00, 1.00 > // Intensidade e corda luz. } // ====================================================================== // DESCRIÇÃO DA CENA background{ color rgb < 0.75, 0.80, 0.95 > } #declare tinta_verde = texture { pigment { color rgb < 0, 1, 0 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare tinta_marrom = texture { pigment { color rgb < 0.5, 0.5, 0.2 > } finish { diffuse 0.5 specular 0.5 roughness 0.05 ambient 0.1 } } #declare cor_dourado = <0.9,0.9,0.1>; #declare dourado = texture { pigment {rgb cor_dourado} finish { ambient 0.05 diffuse 0.05 reflection cor_dourado specular 0.20 roughness 0.05 } } #declare cor_prata = <0.7,0.7,0.7>; #declare prateado = texture { pigment {rgb cor_prata} finish { ambient 0.05 diffuse 0.05 reflection cor_prata specular 0.20 roughness 0.05 } } #declare cor_cristal = <0.8,0.8,1>; #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 coluna = cylinder { <0,0,0>, <0,0,20>, 1.5 texture {prateado} } #declare parede_frontal = box { <0,0,0>, <14,1,20> texture {tx_cristal} interior {ior 1.5} } #declare parede_traseira = object {parede_frontal translate <0,29,0>} #declare parede_lateral = box { <0,0,0>, <1,29,20> texture {tx_cristal} interior {ior 1.5} } #declare teto = box { <-3,-3,20>, <17,32,22> texture{prateado} } #declare porta = box { <4.5,-0.5,0>, <8.5,1.5,8> texture {dourado} } #declare aboboda = cylinder { <6.5,-0.5,8>, <6.5,1.5,8>, 2 texture {dourado} } #declare frente = difference{ object{parede_frontal} object{aboboda} object{porta} } #declare lado_direito = union { object {parede_lateral} object {coluna} object { coluna translate <0,7,0>} object { coluna translate <0,14,0>} object { coluna translate <0,21,0>} object { coluna translate <0,28,0>} } #declare lado_esquerdo = object {lado_direito translate <13,0,0>} #declare chao = plane { z,0 texture {tinta_marrom} } //nao deu tempo, depois termino //#declare enfeite = // torus { // <>, // <> // texture {dourado} //} // Aqui está a cena, finalmente: //coluna //parede_lateral lado_direito lado_esquerdo parede_traseira frente chao teto