// Exemplo de arquivo de descricao de cena para POV-ray // Last edited on 2010-03-04 15:44:01 by stolfi // ====================================================================== // CORES E TEXTURAS background{ color rgb < 0.75, 0.80, 0.85 > } #declare tx_plastico = texture{ pigment{ color rgb < 0.10, 0.80, 1.00 > } finish{ diffuse 0.9 ambient 0.4 specular 0.5 roughness 0.505 } } #declare tx_fosca = texture{ pigment{ color rgb < 1.00, 0.80, 0.10 > } finish{ diffuse 0.8 ambient 0.4 } } #declare tx_farol = texture{ pigment{ color rgb < 1.00, 0.90, 0.10 > } finish{ diffuse 0.9 ambient 0.8 } } #declare tx_espelho = texture{ pigment{ color rgb < 1.00, 0.85, 0.30 > } finish{ diffuse 0.2 reflection 0.9*< 1.00, 0.85, 0.30 > ambient 0.1 } } #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 } } // ====================================================================== // DESCRIÇÃO DA CENA // Partes da cena: #declare chao = box{ <-20,-10,0>,<20,10,0.1> texture{pigment{color rgb<1,1,1>} finish{diffuse 0.2 ambient 0.5}} } #declare escada = cylinder{ <0,0,0.1>,<0,0,1>,5 texture{pigment{color rgb<1,1,1>} finish{diffuse 0.2 ambient 0.5}} } #declare pedestal = union{ box{ <-3,-3,1>,<3,3,6> texture{pigment{color rgb<1,1,1>} finish{diffuse 0.2 ambient 0.5}} } box{ <-2,-3,3>,<2,-3.1,5> texture{tx_fosca} } } #declare tampo = box{ <-3.3,-3.3,6>,<3.3,3.3,6.3> texture{pigment{color rgb<1,1,1>} finish{diffuse 0.2 ambient 0.5}} } #declare pilar1 = union{ cylinder{ <10,0,0.1>,<10,0,1>,2.2 texture{pigment{color rgb<1,1,1>} finish{diffuse 0.2 ambient 0.5}} } cylinder{ <10,0,1>,<10,0,11>,1.8 texture{pigment{color rgb<1,1,1>} finish{diffuse 0.2 ambient 0.5}} } cylinder{ <10,0,11>,<10,0,12>,2.2 texture{pigment{color rgb<1,1,1>} finish{diffuse 0.2 ambient 0.5}} } box{ <11,-1.8,6>,<9,-1.81,9> texture{tx_fosca} } } #declare pilar2 = union{ cylinder{ <-10,0,0.1>,<-10,0,1>,2.2 texture{pigment{color rgb<1,1,1>} finish{diffuse 0.2 ambient 0.5}} } cylinder{ <-10,0,1>,<-10,0,11>,1.8 texture{pigment{color rgb<1,1,1>} finish{diffuse 0.2 ambient 0.5}} } cylinder{ <-10,0,11>,<-10,0,12>,2.2 texture{pigment{color rgb<1,1,1>} finish{diffuse 0.2 ambient 0.5}} } box{ <-11,-1.8,6>,<-9,-1.81,9> texture{tx_fosca} } } #declare abc = union{ text {ttf "arial.ttf" "a b c d e f g h i j k l m" 0.2,0 texture{pigment{color rgb<0,0,0>}} scale<0.4,1,0.6> rotate <90,0,0> translate<-1.9,-3.2,4.3> } text {ttf "arial.ttf" "n o p q r s t u v w x y z" 0.2,0 texture{pigment{color rgb<0,0,0>}} scale<0.38,1,0.6> rotate <90,0,0> translate<-1.9,-3.2,3.3> } } #declare baba = union{ text {ttf "arial.ttf" "b+a=ba" 0.2,0 texture{pigment{color rgb<0,0,0>}} scale<0.6,1,0.6> rotate <90,0,0> translate<-10.99,-1.82,8> } text {ttf "arial.ttf" "b+e=be" 0.2,0 texture{pigment{color rgb<0,0,0>}} scale<0.6,1,0.6> rotate <90,0,0> translate<-10.99,-1.82,6.8> } } #declare bibi = union{ text {ttf "arial.ttf" "b+i=bi" 0.2,0 texture{pigment{color rgb<0,0,0>}} scale<0.6,1,0.6> rotate <90,0,0> translate<9.01,-1.82,8.1> } text {ttf "arial.ttf" "biotonico" 0.2,0 texture{pigment{color rgb<0,0,0>}} scale<0.5,1,0.6> rotate <90,0,0> translate<9.01,-1.82,7.1> } text {ttf "arial.ttf" "fontora" 0.2,0 texture{pigment{color rgb<0,0,0>}} scale<0.5,1,0.6> rotate <90,0,0> translate<9.01,-1.82,6.2> } } #include "eixos.inc" // Aqui está a cena, finalmente: union{ object{ eixos(3.00) } object{ chao } object{ escada } object{ pedestal } object{ tampo } object{ pilar1 } object{ pilar2 } object{abc} object{baba} object{bibi} } #include "camlight.inc" #declare centro_cena = < 00.00,0, 5.00 >; #declare raio_cena = 25.0; #declare dir_camera = < 0.01, -10.01,4.00 >; #declare dist_camera = 15.0; #declare intens_luz = 1.00; camlight(centro_cena, raio_cena, dir_camera, dist_camera , z, intens_luz)