// MC930 - Trabalho final // Luis Arthur Micai Nunes RA: 971106 // Inicio em 14/12/2000 #include "colors.inc" // CAMERA camera { location <10,6,-50> look_at <10,6,0> } //FUNDO background{ color rgb <0,0,0> } //ILUMINACAO light_source { <10, 6.00, -50.00 > color rgb <1.00, 1.00, 1.00> } // ESTRUTURA DO PREDIO #declare estrutura = box { <0,0,0>, <20,9,30> texture { pigment { color White } } } //CHAO plane { y, 0 pigment { Brown } } //PLATAFORMA #declare plataforma= box{ <-2,0,-2>, <22,2,32> pigment{ White } } //SACADA #declare sacada = box{ <0,5,-2>, <20,6,2> pigment {White} } //JANELAS E PORTAS #declare janela_porta= union{ box{ <1,0,-0.1>, <2,2.3,0.1> pigment { Black } } box{ <2.5,0,-0.1>, <3.5,2.3,0.1> pigment { Green} } } #declare i = 0; #declare janelas_e_portas = union{ #while(i<5) #declare j=0; #while (j<2) object {janela_porta translate } #declare j = j + 1; #end #declare j = 1; #declare i = i + 1; #end } object{estrutura translate<0,2,0>} object{janelas_e_portas translate<0,2.1,0>} object{plataforma} object{sacada}