// Exercicio 4 // Last edited on 2001-06-02 21:06:46 by stolfi #include "colors.inc" background{ color rgb < 1.00, 1.00, 1.00 > } light_source { < 24.00, 50.00, 30.00 > color rgb < 1.00, 1.00, 1.00 > } camera { location < 8.00, 5.00, 3.00 > right < -0.60, 0.00, 0.00 > up < 0.00, 0.80, 0.00 > sky < 0.00, 1.00, 0.00 > look_at < 0.00, 0.00, 0.00 > } #declare cor_cristal = <1.00, 1.00, 0.00> #declare tx_cristal = texture{ finish{ ambient 0.1 diffuse 0.1 reflection 0.25 specular 1 roughness 0.001 } pigment {color cor_cristal filter 1} } #declare cor_espelho = <1.00, 1.00, 1.00> #declare tx_espelho = texture{ pigment{rgb cor_espelho} finish{ ambient 0.05 diffuse 0.05 reflection cor_espelho specular 0.20 roughness 0.05 } } #declare Trofeu = union{ torus { 0.5, 0.25 translate <0.00, 1.00, 0.00> pigment { Green } } torus { 0.75, 0.5 translate <0.00, 0, 0.00> pigment { Blue } } } #declare Haste1 = cylinder {<0.0, -2.0, 0>, <0.0, 2.5, 0>, 0.30 pigment { color cor_cristal filter 1 } hollow interior {ior 1.5}} #declare Haste2 = cylinder {<0.0, -2.0, 0>, <0.0, 2.5, 0>, 0.25 pigment { color cor_cristal filter 1 } hollow interior {ior 1.5}} #declare Base= box { <-1.0, -2.0, 1.0>, <1.0, -1.55 , -1.0> pigment { rgb cor_espelho }} plane { <0, 2 , 0>, -2 pigment { checker color Green color Yellow } } // Aqui está a cena, finalmente: union{ object { Haste2 } object { Trofeu } difference{ object {Base } object { Haste1 } } }