// Desenho do auditorio POV-ray // Last edited on 2020-10-14 20:51:00 by Guilherme Londe // ====================================================================== // CORES E TEXTURAS background{ color rgb < 0.75, 0.80, 0.85 > } #declare tx_plastico = texture{ pigment{ color rgb < 0.80, 0.80, 0.80 > } finish{ diffuse 0.8 ambient 0.1 specular 0.5 roughness 0.005 } } #declare tx_fosca = texture{ pigment{ color rgb < 1.00, 0.30, 0.10 > } finish{ diffuse 0.9 ambient 0.1 } } // ====================================================================== // DESCRIÇÃO DA CENA // Partes da cena: #macro cadeira(livre) union{ box{ <-0.2, -0.1, 0.5> <0.2, -0.15, 1.0> texture{ tx_plastico} } box{ <-0.2, 0.3, 0.45> <0.2, -0.1, 0.5> texture{tx_plastico} } box{ <-0.2, -0.1, 0> <-0.15, -0.15, 0.5> texture{tx_plastico} } box{ <0.15, -0.1, 0> <0.2, -0.15, 0.5> texture{tx_plastico} } box{ <-0.2, 0.3, 0> <-0.15, 0.25, 0.5> texture{tx_plastico} } box{ <0.15, 0.3, 0> <0.2, 0.25, 0.5> texture{tx_plastico} } #if(livre = 1) cylinder{ <-0.2, -0.09, 0.5>, <0.2, -0.09, 1>, 0.01 texture{tx_fosca} } cylinder{ <0.2, -0.09, 0.5>, <-0.2, -0.09, 1>, 0.01 texture{tx_fosca} } #end } #end #macro auditorio(n, m) union{ #local i = 0; #while(i < n) #local j = 0; #while(j < m) #local livre = mod(i+j, 2); object {cadeira(livre) translate} #local j = j+1; #end #local i = i+1; #end } #end #declare chao = box{ <-20,-20,-1>, <+20,+20,0> } #include "eixos.inc" // Aqui está a cena, finalmente: union{ object{auditorio(5, 4) translate<0, 0, 0>} object{auditorio(5, 4) translate<-7, 0, 0>} } #include "camlight.inc" #declare centro_cena = < 0.00, 0.00, 1.50 >; #declare raio_cena = 7.0; #declare dir_camera = < -1.00, 5.00, 1.00 >; #declare dist_camera = raio_cena; #declare intens_luz = 1.20; camlight(centro_cena, raio_cena, dir_camera, dist_camera , z, intens_luz)