// Exemplo de arquivo de descricao de cena para POV-ray // Last edited on 2000-09-21 20:06:05 by stolfi #include "colors.inc" #include "textures.inc" #include "woods.inc" background { color Gray25 } //to make the patch easier to see plane { z, -12 texture { pigment { color Green } } } light_source { < 20.00, 20.00, 20.00 > color rgb < 1.00, 1.00, 1.00 > } light_source { < 0.00, 0.00, 50.00 > color rgb < 1.00, 1.00, 1.00 > } camera { location < 40.00, 40.00, 15.00 > right 2* < -1.20, 0.00, 0.00 > up 2* < 0.00, 0.00, 0.90 > sky < 0.00, 0.00, 1.00 > look_at < 0.00, 0.00, 0.00 > } #declare tinta_A = texture { pigment { color rgb < 0.8, 0.50, 0.10 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare tinta_B = texture { pigment { color rgb < 1.00, 0.0, 0.10 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare tex = texture { DMFWood6 } #declare terreo = difference { box { <-2,-3,0>, <2,3,3> texture { tinta_B } } box { <3,1,0>, <2,-1,2> } } #declare andar = difference { box { <-2,-3,0>, <2,3,3> texture {tinta_B}} box { <3.1,1.2,0>,<-3.1,2.2,2> } //janela direita box { <3.1,-1.2,0>,<-3.1,-2.2,2>} //janela esquerda box { <1,3.1,0>,<-1,-3.1,2>} } #declare i = 1; #declare semente=seed(10.69); #declare predio = union { object { terreo } #declare aux = 10*int(rand(semente))+4; #while (i < aux ) object {andar translate <0,0,3*i> } #declare i = i+1; #end texture { pigment {color rgb }} } #declare blocoRua = union { box { <-3,-3,-0.1>, <3,3,0> texture {pigment { color rgb <0,0,0>}} } box {<-2,-0.5,-0.1>, <2,0.5,0.1> texture { pigment { color rgb <1,1,1> }} } } #declare rua = union { #declare j=1; #while (j<10) object {blocoRua translate <3*j,0,0>} #declare j = j+1; #end } union { #declare k=1; #while (k<4) object {rua translate <0,10*k,0>} #declare k = k+1; #end #declare k=1; #while (k<4) object {rua rotate<0,0,-90> translate<10*k,30,0>} #declare k=k+1; #end } //object {predio translate <25,15,0>} //object {predio translate <15,15,0>} //object {predio translate <15,25,0>} union { difference { box { <-2,-3,0>, <2,3,3> texture { tinta_B } } box { <3,1,0>, <2,-1,2> } } #declare i=1; #declare aux = 10*int(rand(semente))+4; #while (i < aux ) difference { box { <-2,-3,0>, <2,3,3> texture {tinta_B}} box { <3.1,1.2,0>,<-3.1,2.2,2> } //janela direita box { <3.1,-1.2,0>,<-3.1,-2.2,2>} //janela esquerda box { <1,3.1,0>,<-1,-3.1,2>} translate <0,0,3*i> } #declare i = i+1; #end texture { pigment {color rgb }} translate <25,15,0> } union { difference { box { <-2,-3,0>, <2,3,3> texture { tinta_B } } box { <3,1,0>, <2,-1,2> } } #declare i=1; #declare aux = 10*int(rand(semente))+5; #while (i < aux ) difference { box { <-2,-3,0>, <2,3,3> texture {tinta_B}} box { <3.1,1.2,0>,<-3.1,2.2,2> } //janela direita box { <3.1,-1.2,0>,<-3.1,-2.2,2>} //janela esquerda box { <1,3.1,0>,<-1,-3.1,2>} translate <0,0,3*i> } #declare i = i+1; #end texture { pigment {color rgb }} translate <15,15,0> } union { difference { box { <-2,-3,0>, <2,3,3> texture { tinta_B } } box { <3,1,0>, <2,-1,2> } } #declare i=1; #declare aux = 10*int(rand(semente))+7; #while (i < aux ) difference { box { <-2,-3,0>, <2,3,3> texture {tinta_B}} box { <3.1,1.2,0>,<-3.1,2.2,2> } //janela direita box { <3.1,-1.2,0>,<-3.1,-2.2,2>} //janela esquerda box { <1,3.1,0>,<-1,-3.1,2>} translate <0,0,3*i> } #declare i = i+1; #end texture { pigment {color rgb }} translate <15,25,0> }