// Exemplo de arquivo de descricao de cena para POV-ray // Last edited on 2017-05-07 20:10:09 by stolfilocal // ====================================================================== // CORES E TEXTURAS background { color rgb < 0.74, 0.84, 0.92 > } #declare roleta = seed(11031997); #declare tx_azul = texture { pigment { color rgb <0.34, 0.45, 0.6> } finish { diffuse 0.8 ambient 0.1 specular 0.5 roughness 0.005 } } #declare tx_vermelho = texture { pigment { color rgb <1, 0.37, 0.34> } finish { diffuse 0.8 ambient 0.1 specular 0.5 roughness 0.005 } } #declare tx_laranja = texture { pigment { color rgb <0.96, 0.55, 0.26> } finish { diffuse 0.8 ambient 0.1 specular 0.5 roughness 0.005 } } #declare tx_verde = texture { pigment { color rgb <0.34, 0.6, 0.45> } finish { diffuse 0.8 ambient 0.1 specular 0.5 roughness 0.005 } } #declare tx_branco = texture { pigment { color rgb <1, 1, 1> } finish { diffuse 0.8 ambient 0.1 specular 0.5 roughness 0.005 } } // ====================================================================== // DESCRIÇÃO DA CENA // Partes da cena: // Aqui está a cena, finalmente: #include "eixos.inc" union { /* eixos(15) */ difference { prism { 0, 10, 6, <-1, -1.38>, <1, -1.38>, <1.62, 0.52>, <0, 1.7>, <-1.62, 0.52>, <-1, -1.38> texture { tx_vermelho } } prism { 0.05 9.95, 6, <-0.95, -1.33>, <0.95, -1.33>, <1.57, 0.47>, <0, 1.65>, <-1.57, 0.47>, <-0.95, -1.33> texture { tx_azul } } text { ttf "verdana.ttf" "UNICAMP!" 4 0 rotate <0, 0, 90> translate <0.4, 2.5, -4> } } box { <-4, -2, -3>, <4, 12, -2.8> texture { tx_branco } } /* light_source { <0, 3, 0>, color <1.0, 1.0, 1.0> } */ /* light_source { <0, 4, 0>, color <1.0, 1.0, 1.0> } */ light_source { <0, 5, 1.5>, color <1.0, 1.0, 1.0> } /* light_source { <0, 6, 0>, color <1.0, 1.0, 1.0> } */ /* light_source { <0, 7, 0>, color <1.0, 1.0, 1.0> } */ rotate <0, 90, 0> } #include "camlight.inc" #declare centro_cena = < 0.00, 5.00, 3.00 >; #declare raio_cena = 10.0; #declare dir_camera = < 10.00, 0.00, 15.00 >; #declare dist_camera = 5*raio_cena; #declare intens_luz = 0.0; camlight(centro_cena, raio_cena, dir_camera, dist_camera , z, intens_luz)