// Last edited on 2001-06-09 21:38:53 by stolfi #include "colors.inc" #declare gerador = seed(123456); background{ color rgb < 1, 1, 1 > } light_source { < 20.00, 0.00, 30.00 > color rgb < 1.00, 1.00, 1.00 > } camera { location < 16.00, 2.00, 9.00 > right < -1.20, 0.00, 0.00 > up < 0.00, 0.00, 0.90 > sky < 0.00, 0.00, 1.00 > look_at < 0.00, 0.00, 6.00 > } #declare tinta_A = texture { pigment { color rgb < 0 , 0 , 0 > } finish { diffuse 1.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare ouro = texture { pigment { BrightGold } finish { diffuse 1.0 specular 0.5 roughness 0.005 ambient 0.1 metallic } } #declare tx_cristal = texture { finish { ambient 0.1 diffuse 0.1 reflection 0.15 specular 1 roughness 0.001 } pigment { color Yellow filter 1 } } #declare caixa = box { < -4.0, +6.5, 1.00 >, < 4.0, -6.5, 5.00 > pigment { Yellow } } #declare coluna = cylinder { < -2 , 6 , 5 >, < -2 , 6 , 10 >, 0.5 pigment {Yellow} } #declare Count=0; #declare diminui=1; #while (Count < 7 ) object{coluna translate y*-2*Count} #declare Count=Count+1; #if (Count=7) #declare bola= sphere { <-2,0,11>,1 pigment {Blue} } #end #end #declare cone1 = cone { < 0.00, 0.00, 5.00 >,2.33 < 0.00, 0.00, 7.500 >,0.25 pigment {Gold} } #declare entrada = torus { 0.3, 0.21 rotate x*90 translate <3.9,5,6> } #declare Count1=0; #while (Count1 < 9 ) torus { 0.29, 0.21 rotate x*90 translate <3.9,5,6> translate y*-1.23*Count1 pigment { color rgb < 3*rand(gerador), 3*rand(gerador), 1*rand(gerador)>} } #declare Count1=Count1+1; #end // Aqui está a cena, finalmente: union { object { caixa } object { cone1 } object { entrada } object {coluna} object { bola} } object { plane {z,0} translate <0,0,1> pigment { checker color White, color Gray } }