// Exemplo de arquivo de descricao de cena para POV-ray // Last edited on 2010-03-04 15:44:01 by stolfi // ====================================================================== // CORES E TEXTURAS #include "textures.inc" background{ color rgb < 0.75, 0.80, 0.85 > } #declare tx_plastico = texture{ pigment{ color rgb < 0.30, 0.95, 0.10 > } finish{ diffuse 0.8 ambient 0.1 specular 0.5 roughness 0.005 } } #declare tx_vidro = texture{ pigment{ color rgb < 0.85, 0.95, 1.00 > filter 0.70 } finish{ diffuse 0.03 reflection 0.25 ambient 0.02 specular 0.25 roughness 0.005 } } #declare tx_fosca = texture{ pigment{ color rgb < 0.75, 0.25, 0.05 > } finish{ diffuse 0.9 ambient 0.1 } } #declare tx_espelho = texture{ pigment{ color rgb < 0.0, 0.0, 1.0 > } finish{ diffuse 0.2 reflection 0.7*< 0.00, 0.55, 1 > ambient 0.1 } } #declare tx_xadrez = texture{ pigment{ checker color rgb < 0.10, 0.32, 0.60 >, color rgb < 1.00, 0.97, 0.90 > } finish{ diffuse 0.9 ambient 0.1 } scale 2.0 } // ====================================================================== // DESCRIÇÃO DA CENA // Partes da cena: // ===================== #macro pedestal(txt, textura) union{ object{txt rotate 180*z rotate -90*x scale 1.2 translate<6,1,5.5> } box{ <0,0,0>, <6, 2, 1> texture{textura} translate<0,0,4>} box{ <0,0,0>, <2, 2, 5> texture{textura} translate<2,0,0>} } #end #macro texto(palavra, fonte, tex) text {ttf fonte palavra 0.5, 0 texture{tex} } #end #declare museu = box{ <0,0,0>, <30, 30, 0.5> texture{tx_xadrez}} box{ <0,0,0>, <30, 0.5, 10> texture{Starfield}} box{ <0,0,0>, <0.5, 30, 10> texture{Starfield}} #include "eixos.inc" // Aqui está a cena, finalmente: union{ object{ eixos(70.00) } object{pedestal(texto("Unicamp", "arial.ttf", Brushed_Aluminum), Shadow_Clouds) translate<15,3,0>} object{pedestal(texto(" Museu", "bragga.ttf", Gold_Nugget), tx_fosca) rotate -90*z translate<2,29,0>} object{pedestal(texto("MC930", "bragga.ttf", tx_espelho), tx_plastico) rotate -90*z scale 0.8 translate<10,21,0>} object{pedestal(texto("Henrique", "arial.ttf", Tinny_Brass), Soft_Silver) rotate 90*z translate<29,15,0>} object{museu} } #include "camlight.inc" #declare centro_cena = < 0.00, 0.00, 0.00 >; #declare raio_cena = 60.0; #declare dir_camera = < 30, 18, 3 >; #declare dist_camera = 80.0; #declare intens_luz = 1.00; camlight(centro_cena, raio_cena, dir_camera, dist_camera , z, intens_luz)