background{ color rgb < 1, 1, 1 > } #declare steel_1 = // aço texture{ pigment{ color rgb < 0.70, 0.70, 0.70 > } finish{ diffuse 0.5 ambient 0.1 brilliance 1 reflection 0.1 specular 0.2 roughness 0.5} } #declare tx_plastico = texture{ pigment{ color rgb < 0.10, 0.80, 1.00 > } finish{ diffuse 0.8 ambient 0.1 specular 0.5 roughness 0.005 } } #declare tx_painel = texture{ pigment{color rgb <1,0,0>} finish {ambient 1 diffuse 0} } #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 } #declare tx_4 = texture{ pigment{ color rgb < 0.25, 0.59, 0.04 > } finish{ diffuse 0.3 ambient 0.1 specular 0.5 roughness 1 } } #declare tx_woood = texture { pigment {color rgb <.52,.37,0.26>} finish{ diffuse 0.9} } #include "eixos.inc" #include "direcao_do_sol.inc" #include "parametros.inc" #macro casa() #local casa_base = box { <-1, -1, -1>, <1, 2, 1> // near lower left corner, far upper right corner } #local telhaV1 = box { <0, 0, 0>, <2, 3, 0.1> // near lower left corner, far upper right corner } #local asa1 = box { <0, 0, 0>, <2, 3, 0.1> // near lower left corner, far upper right corner } union { object{casa_base texture {tx_woood}} object{telhaV1 texture {tx_plastico} rotate <0, 45, 0> translate <0, -1, 2>} object{telhaV1 texture {tx_plastico} rotate <0, 135, 0> translate <0, -1, 2>} object{asa1 texture {tx_plastico} rotate<30,0,0> translate<-1,2,1>} object{asa1 texture {tx_plastico} rotate<50,0,0> translate<-1,4.55,2.5>} object{asa1 texture {tx_plastico} rotate<150,0,0> translate<-1,-1,1>} object{asa1 texture {tx_plastico} rotate<130,0,0> translate<-1,-3.55,2.5>} } #end #macro paineis() #local telhaV1 = box { <0, 0, 0>, <1.5, 2.5, 0.2> // near lower left corner, far upper right corner } union { object{telhaV1 texture {tx_painel} rotate <0, 45, 0> translate <0, -0.75, 2>} object{telhaV1 texture {tx_painel} rotate <0, 135, 0> translate <0, -0.75, 2.2>} object{telhaV1 texture {tx_painel} rotate<30,0,0> translate<-0.75,2,1>} object{telhaV1 texture {tx_painel} rotate<50,0,0> translate<-0.75,4.55,2.5>} object{telhaV1 texture {tx_painel} rotate<150,0,0> translate<-0.75,-1,1.1>} object{telhaV1 texture {tx_painel} rotate<130,0,0> translate<-0.75,-3.55,2.6>} } #end #declare dir_sol = direcao_do_sol(lat, lon, mes, hora); union { //object{eixos(3)} casa() paineis() } #include "camlight.inc" #declare centro_cena = < 0.00, 0.10, 2.00 >; #declare raio_cena = 10.0; #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)