// MC930 - Exemplo de main.pov para o trabalho final // Last edited on 2000-12-14 09:07:40 by mc726 // MONUMENTO #include "textures.inc" #include "colors.inc" #include "finish.inc" background { color rgb < 1.00, 1.00, 0.80 > } light_source { < 200.00, 500.00, 200.00 > color rgb < 1.00, 1.00, 1.00 > } camera { location < 20.00, 30.00, 30.00 > right < 2.40, 0.00, 0.00 > up < 0.00, 0.00, 1.80 > sky < 0.00, 1.00, 0.00 > look_at < 10.00, 25.00, 0.00 > } #declare pavimento = plane{ y, -1 texture{ pigment{ checker color rgb < 0.0, 0.0, 0.00 >, color rgb < 0.80, 0.80, 0.80 > } finish{ diffuse 0.9 ambient 0.05 specular 0.3 roughness 0.1 } } } #declare terreo = union { object {pavimento} // terreo box { < -5, 0.5, -5>, < 5, 5, 5> texture{ pigment{ color rgb < 1.00, 0.90, 0.05 > } finish{ diffuse 0.05 ambient 0.05 reflection 0.90 } } } // primeira laje box { < -5.2, 5, -5.2>, < 5.2, 6, 5.2> texture{ pigment{ color rgb <0.5,0,0> }} } // porta box { < -1.5, 0.5, -2.5>, < 1.5, 3, 5.2> texture {pigment{ color rgb <1,0,0> }} } } #declare i = 1; #declare g = seed(pi); #declare andares = union { #declare n_and = rand(g) * 10; #while (i < n_and + 1) box { < -5, 1 + 5*i, -5>, < 5, 5 + 5*i, 5> texture{ pigment{ color rgb < 1.00, 0.90, 0.05 > } finish{ diffuse 0.05 ambient 0.05 reflection 0.90 } } } box { < -5.2, 5 + 5*i, -5.2>, < 5.2, 6 + 5*i, 5.2> texture { pigment {color rgb <0.5,0,0>} } } // janelas de frente box { < -4.5, 1 + 5*i, 4.2>, < -2, 5 + 5*i, 5.1> texture{ pigment{ color rgb < 1.00, 0.90, 0.05 > } finish{ diffuse 0.05 ambient 0.05 reflection 0.90 } } } box { < -1.5, 1 + 5*i, 4.2>, < 1.5, 5 + 5*i, 5.1> texture{ pigment{ color rgb < 1.00, 0.90, 0.05 > } finish{ diffuse 0.05 ambient 0.05 reflection 0.90 } } } box { < 2, 1 + 5*i, 4.2>, < 4.5, 5 + 5*i, 5.1> texture{ pigment{ color rgb < 1.00, 0.90, 0.05 > } finish{ diffuse 0.05 ambient 0.05 reflection 0.90 } } } // janelas do fundo box { < -4.5, 1 + 5*i, -4.2>, < -2, 5 + 5*i, -5.1> texture{ pigment{ color rgb < 1.00, 0.90, 0.05 > } finish{ diffuse 0.05 ambient 0.05 reflection 0.90 } } } box { < -1.5, 1 + 5*i, -4.2>, < 1.5, 5 + 5*i, -5.1> texture{ pigment{ color rgb < 1.00, 0.90, 0.05 > } finish{ diffuse 0.05 ambient 0.05 reflection 0.90 } } } box { < 2, 1 + 5*i, -4.2>, < 4.5, 5 + 5*i, -5.1> texture{ pigment{ color rgb < 1.00, 0.90, 0.05 > } finish{ diffuse 0.05 ambient 0.05 reflection 0.90 } } } // janelas direitas box { < 4.2, 1 + 5*i, -4.5>, < 5.1, 5 + 5*i, -2> texture{ pigment{ color rgb < 1.00, 0.90, 0.05 > } finish{ diffuse 0.05 ambient 0.05 reflection 0.90 } } } box { < 4.2, 1 + 5*i, -1.5>, < 5.1, 5 + 5*i, 1.5> texture{ pigment{ color rgb < 1.00, 0.90, 0.05 > } finish{ diffuse 0.05 ambient 0.05 reflection 0.90 } } } box { < 4.2, 1 + 5*i, 2>, < 5.1, 5 + 5*i, 4.5> texture{ pigment{ color rgb < 1.00, 0.90, 0.05 > } finish{ diffuse 0.05 ambient 0.05 reflection 0.90 } } } // janelas esquerdas box { < -4.2, 1 + 5*i, -4.5>, < -5.1, 5 + 5*i, -2> texture{ pigment{ color rgb < 1.00, 0.90, 0.05 > } finish{ diffuse 0.05 ambient 0.05 reflection 0.90 } } } box { < -4.2, 1 + 5*i, -1.5>, < -5.1, 5 + 5*i, 1.5> texture{ pigment{ color rgb < 1.00, 0.90, 0.05 > } finish{ diffuse 0.05 ambient 0.05 reflection 0.90 } } } box { < -4.2, 1 + 5*i, 2>, < -5.1, 5 + 5*i, 4.5> texture{ pigment{ color rgb < 1.00, 0.90, 0.05 > } finish{ diffuse 0.05 ambient 0.05 reflection 0.90 } } } #declare i = i + 1; #end #declare i = 1; } #declare predio = union { object { terreo } object { andares } } #declare vazio = box { < -7.5, 0, -7.5>, < 7.5, 0.5, 7.5> texture { pigment {color rgb <0,1,0> } } } // Cena Final object { pavimento} object { predio } // PAVIMENTO #declare pavimento = plane{ z, -1 texture{ pigment{ checker color rgb < 0.80, 0.90, 1.00 >, color rgb < 0.20, 0.70, 1.00 > } finish{ diffuse 0.9 ambient 0.05 specular 0.3 roughness 0.1 } } } // FUNDO background{ color rgb < 0.90, 0.92, 0.95 > }