// ALUNO : Alex Zerio 970154 // 16/11/2000 #include "colors.inc" camera { location <150, 30, 150> sky < 0, 1, 0> look_at <80, 7, 27> } light_source { <20,15,50> White } light_source { <120,15,50> White } background { White } #declare X = 0; #declare Z = 0; #declare N = 1; #declare i = 5; #declare g = seed(pi); #declare terreo = difference{ box { <0,0,0>, <27, 14, 27> pigment { color Blue } } box { <9,0,27.5>, <18, 9, 25> pigment { color Black } } } #declare andar = difference{ box { < 0, 14, 0>, <27, 28, 27> pigment { color Blue }} box { < 3, 18, 27.5>, <12, 25, 25> pigment { color Black }} box { <15, 18, 27.5>, <24, 25, 25> pigment { color Black }} box { <-0.5, 18, 8>, < 2, 25, 24> pigment { color Black }} box { <27.5, 18, 8>, <25, 25, 24> pigment { color Black }} } union{ #while (i > 0) #declare X = int(rand(g)*5)+27; #declare Z = int(rand(g)*5)+27; object{terreo translate <30*(i-1), 0, 0>} #declare N = int(rand(g)*5)+1; #while (N > 0) object{andar translate <30*(i-1),14*(N-1),0>} #declare N = N - 1; #end #declare i = i - 1; #end }