// Exemplo de arquivo de descricao de cena para POV-ray // Last edited on 2020-09-30 19:57:13 by jstolfi // ====================================================================== // Declarações essenciais #include "direcao_do_sol.inc" #include "parametros.inc" background{ color rgb < 0.75, 0.75, 0.85 > } #declare theSeed = seed(4200); // ====================================================================== // Texturas #declare tx_templo = texture{ pigment{ color rgb < 0.50, 0.50, 0.50 > } finish{ diffuse 0.8 ambient 0.1 specular 0.5 roughness 0.005 } } #declare tx_painel = texture{ pigment{ color rgb < 1, 0, 0 > } finish{ diffuse 0 ambient 1 } } #declare tx_chao = texture{ pigment{ color rgb < 0.40, 0.60, 0.40 > } finish{ diffuse 0.9 ambient 0.1 } } // ====================================================================== // Formas #declare templo = union{ cylinder{<-0.7,-0.7,0>, <-0.7,-0.7,0.6>, 0.1 texture{tx_templo}} cylinder{<-0.7,+0.7,0>, <-0.7,+0.7,0.6>, 0.1 texture{tx_templo}} cylinder{<+0.7,-0.7,0>, <+0.7,-0.7,0.6>, 0.1 texture{tx_templo}} cylinder{<+0.7,+0.7,0>, <+0.7,+0.7,0.6>, 0.1 texture{tx_templo}} difference { box{<-1,-1,-1>, <1,1,1> texture{tx_templo}} union{ box{<-1,-1,-1>, <1,1,1> rotate<+45, 00,0> translate<0, -1, 1.2> texture{tx_templo}} box{<-1,-1,-1>, <1,1,1> rotate<-45, 00,0> translate<0, +1, 1.2> texture{tx_templo}} box{<-1,-1,-1>, <1,1,1> rotate< 00,+45,0> translate<-1, 0, 1.2> texture{tx_templo}} box{<-1,-1,-1>, <1,1,1> rotate< 00,-45,0> translate<+1, 0, 1.2> texture{tx_templo}} } } } #declare paineis = union{ cylinder{<-0.7,-0.7,0.3>, <-0.7,-0.7,0.5>, 0.15 texture{tx_painel}} cylinder{<-0.7,+0.7,0.3>, <-0.7,+0.7,0.5>, 0.15 texture{tx_painel}} cylinder{<+0.7,-0.7,0.3>, <+0.7,-0.7,0.5>, 0.15 texture{tx_painel}} cylinder{<+0.7,+0.7,0.3>, <+0.7,+0.7,0.5>, 0.15 texture{tx_painel}} box{<-0.3,0,0>, <0.3,0.1,0.4> rotate<+45, 00,0> translate<0, 0.6, 0.1> texture{tx_painel}} box{<-0.3,-0.1,0>, <0.3,0,0.4> rotate<-45, 00,0> translate<0, -0.6, 0.1> texture{tx_painel}} box{<0,-0.3,0>, <0.1,0.3,0.4> rotate<0, -45,0> translate<+0.6, 0, 0.1> texture{tx_painel}} box{<-0.1,-0.3,0>, <0,0.3,0.4> rotate<0, +45,0> translate<-0.6, 0, 0.1> texture{tx_painel}} } // ====================================================================== // Macros // ====================================================================== //Render object{templo} object{paineis} object{box{<-100,-100,-1>,<100,100,0>} texture{tx_chao}} #local dir_sol = direcao_do_sol(lat,lon,mes,hora); #include "camlight.inc" #declare centro_cena = < 0.00, 0.00, 0.00 >; #declare raio_cena = 2.4; #declare dir_camera = dir_sol; #declare dist_camera = 200*raio_cena; #declare intens_luz = 1.20; camlight(centro_cena, raio_cena, dir_camera, dist_camera , z, intens_luz)