// Exemplo de arquivo de descricao de cena para POV-ray // Last edited on 2020-09-30 19:57:13 by jstolfi // ====================================================================== // CORES E TEXTURAS background{ color rgb < 0.75, 0.80, 0.85 > } #declare tx_vidro = texture{ pigment{ color rgb < 1, 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_plastico = texture{ pigment{ color rgb < 0.50, 0.90, 0.50 > } finish{ diffuse 0.8 ambient 0.1 specular 0.5 roughness 0.005 } } #declare tx_fosca = texture{ pigment{ color rgb < 0.40, 0.01, 0.10 > } finish{ diffuse 0.9 ambient 0.1 } } #declare tx_painel = texture { pigment { color rgb<1, 0, 0> } finish { ambient 1 diffuse 0 } } // ====================================================================== // DESCRI��O DA CENA #declare raio = 2.500; #include "eixos.inc" #macro placa() #declare painel = box{ <1.3, 2,1>, <+1,+4,3> texture{ tx_painel } } union { box{ <0, 0,0>, <+1,+4,5> texture{ tx_plastico } } object { painel translate <0, -1, 0> } } #end #macro base() union { object { placa() rotate <0, -30, 180> translate <0, 4, 0> } object { placa() rotate <0, -30, 0> translate <8, 0, 0> } } #end #macro coluna() union { cylinder { <0, 0, 0>, <0, 0, 7>, 0.5 texture {tx_plastico } } object { ponta() rotate<45, 0, 0> translate <0, 0, 7> } } #end #macro templo() union { object { base() } object { base() rotate <0, 0, 90> translate <6, -2, 0>} object { coluna() translate <3.5, 2, 0>} } #end #macro ponta() union { box{ <-1, -1, -1>, <+1,+1,1> texture{ tx_plastico } } cylinder { <0, 0, -1.5>, <0, 0, 1.5>, 0.5 texture {tx_painel } } cylinder { <0, -1.5, 0>, <0, 1.5, 0>, 0.5 texture {tx_painel } } cylinder { <-1.5, 0, 0>, <1.5, 0, 0>, 0.5 texture {tx_painel } } } #end #include "retalho.inc" #include "direcao_do_sol.inc" #include "parametros.inc" #local dir_sol = direcao_do_sol(lat, lon, mes, hora); union{ object{ eixos(5.00) } object { templo() } } #include "camlight.inc" #declare centro_cena = < 3.00, 2.00, 5.00 >; #declare raio_cena = 13; #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)