// Trabalho 5 - 09/06/2001 // Last edited on 2001-06-09 21:31:17 by stolfi #include "colors.inc" background{ color rgb < 0.00, 0.00, 0.00 > } light_source { < 10.00, 30.00, 50.00 > color rgb < 1.00, 1.00, 1.00 > } camera { location < 5.00, 20.00, 10.00 > right < -0.80, 0.00, 0.00 > up < 0.00, 0.00, 0.60 > sky < 0.00, 0.00, 1.00 > look_at < 0.00, 0.00, 0.00 > } #declare tinta_Ouro = texture { pigment { BrightGold } finish { ambient 0.1 diffuse 0.4 reflection 0.25 specular 1.0 metallic } } #declare tinta_Prata = texture { pigment { White } finish { ambient 0.05 diffuse 0.4 reflection 0.25 specular 1.0 metallic } } #declare tinta_Amarela = texture { pigment { color rgb < 1.00, 1.00, 0.00 > } finish { diffuse 1.5 specular 0.5 roughness 0.005 ambient 0.1 } } plane { <0.0, 0.0, -5.0>, 4.0 pigment{checker color White, color Blue} } box { < -5.00, -10.00, -4.00>, < 5.00, 3.00, -3.50> texture { tinta_Ouro } } // Monta Colunas do Fundo #declare coluna_fundo = union { cylinder { < 4.50, -9.20, 3.00>, < 4.50, -9.20, -3.50>, 0.4 texture { tinta_Amarela } } sphere { <4.50, -9.20, 2.90>, 0.7 texture { tinta_Ouro } } } #declare Count=0; #declare Muda=1; #while (Count < 7) #if (Muda = 1) object{coluna_fundo translate x*-1.5*Count translate z*-1.0} #declare Muda=0; #else object{coluna_fundo translate x*-1.5*Count translate z*-2.0} #declare Muda=1; #end #declare Count=Count+1; #end // Monta Colunas da Frente #declare coluna_frente = union { cylinder { < 4.50, 2.20, 3.00>, < 4.50, 2.20, -3.50>, 0.4 texture { tinta_Amarela } } sphere { <4.50, 2.20, 2.90>, 0.7 texture { tinta_Ouro } } } #declare Count=0; #declare Muda=1; #while (Count < 7) #if (Muda = 1) object{coluna_frente translate x*-1.5*Count translate z*-1.0} #declare Muda=0; #else object{coluna_frente translate x*-1.5*Count translate z*-2.0} #declare Muda=1; #end #declare Count=Count+1; #end #declare gerador = seed(123456); // Monta Cones 1 #declare Count=0; #while (Count < 5) cone { < 1.00, -3.20, 1.00>, 0.0 < 1.00, -3.20, -3.50>, 0.3 translate x*-0.7*Count pigment { color rgb <1*rand(gerador), 2*rand(gerador), 3*rand(gerador)> } } #declare Count=Count+1; #end // Monta Cones 2 #declare Count=0; #while (Count < 5) cone { < 1.00, -4.20, 1.00>, 0.0 < 1.00, -4.20, -3.50>, 0.3 translate x*-0.7*Count pigment { color rgb <4*rand(gerador), 0*rand(gerador), 1*rand(gerador)> } } #declare Count=Count+1; #end // Monta Cones 3 #declare Count=0; #while (Count < 5) cone { < 1.00, -5.20, 1.00>, 0.0 < 1.00, -5.20, -3.50>, 0.3 translate x*-0.7*Count pigment { color rgb <3*rand(gerador), 2*rand(gerador), 1*rand(gerador)> } } #declare Count=Count+1; #end sphere { < -0.50, -4.20, 3.00>, 2.5 texture { tinta_Prata } } torus { 4, 0.3 rotate x*-180 rotate z*90 translate x*4.5 translate y*-3.5 translate z*-3.0 texture { tinta_Prata } } torus { 4, 0.3 rotate x*-180 rotate z*90 translate x*-4.5 translate y*-3.5 translate z*-3.0 texture { tinta_Prata } }