// TP04 - MP004 - Eduardo Kerr // RA800271 // Last edited on 2001-06-02 21:42:54 by stolfi #include "colors.inc" background{ color rgb < 1, 1, 1 > } light_source { // < 0.00, 40.00, 90.00 > <-10.0 40.0 40.0> color rgb < 1.00, 1.00, 1.00 > } camera { // location < 8.00, -25.00, 30.00 > location < 8.0, 18.0, 18.0 > right < -0.60, 0.00, 0.00 > up < 0.00, 0.00, 0.90 > sky < 0.00, 0.00, 1.00 > look_at < 8.00, 0.00, 6.00 > } //Cone - base em metal #declare rbase = 4.5; #declare rtop = 2.5; #declare altb = 5.0; // haste preta #declare rcil= 2.5; // igual ao rtop #declare altcil = 4.0; //altura do cilindro //cristal -simbolo do trofeu #declare rtorus = 0.5; #declare Rtorus = 1.7; #declare cristal = <1, 1, 1>; #declare Tx_cristal = texture { pigment { color cristal filter 0.95 } finish { specular 1 roughness 0.001 ambient 0.1 diffuse 0.1 reflection 0.25} } #declare cor_esp = color rgb < 0.7, 0.7, 0.7 >; #declare tx_esp = texture { pigment { rgb cor_esp } finish { diffuse 0.1 specular 0.15 roughness 0.08 ambient 0.08 reflection cor_esp } } #declare base = cone { < 8.0, 0.0, 0.0 >, rbase < 8.0, 0.0, altb >, rtop texture { tx_esp } } #declare haste = cylinder { < 8.00, 0.0, altb >, < 8.00, 0.0, altb+altcil >, rcil pigment {rgb <0, 0, 0> } } #declare simb = torus { Rtorus, rtorus rotate -90*y translate < 8.0, 0, altb+altcil+Rtorus> texture { Tx_cristal } hollow interior { ior 1.15 } } #declare fundoy = plane { <0, 1, 0>, -15 pigment { rgb <0.1, 0.1, 1.0> } } #declare chao = plane { <0, 0, 1>, 0 pigment {checker Red, White } } // Aqui está a cena, finalmente: union { object { base } object { haste } object { simb } object { fundoy } object { chao } }