// Trabalho de laboratorio numero 4 // Copa Embromadores das Americas // MP004 -1s/2001 // Aluna: Simone da Silva Amorim background{ color rgb < 0.8,0.9,1 > } light_source { < 8.00, 2.00, 4.00 > color rgb < 1.00, 1.00, 1.00 > } camera { location < 8.00, 2.00, 2.00 > right < -0.60, 0.00, 0.00 > up < 0.00, 0.00, 0.80 > sky < 0.00, 0.00, 1.00 > look_at < 0.00, 0.00, 0.00 > } #declare cor_cristal = color rgb <0.9,0.9,0.9>; #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 = color rgb <0.95,0.95,0.1>; #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 base= union{ box { <1,1,-1>, < -1,-1,-2> pigment { color rgb <0.1,0.1,0.1>} } cone { <0, 0, -1>, 1.0 // Center and radius of one end <0, 0, 0>, 0.5 // Center and radius of other end color rgb <1,1,0> pigment {color rgb <0,0,0>} texture { tx_cristal} hollow interior{ior 1.5} } } #declare peca = union{ torus { 0.5, 0.1 rotate -90*x pigment { color rgb <1,1,0> } texture { tx_espelho} } torus { 0.6, 0.1 rotate -90*x pigment { color rgb <1,1,0> } translate <0, 0, 0.15> texture { tx_espelho} } torus { 0.7, 0.1 rotate -90*x pigment { color rgb <1,1,0> } translate <0, 0, 0.3> texture { tx_espelho} } } #declare copo = cone { <0, 0, 1.7>, 1.0 <0, 0, -1>, 0.1 pigment {color rgb <1,1,1>} texture { tx_cristal} } #declare braco = torus { 0.4, 0.05 rotate -90*z pigment { color rgb <1,1,0> } translate <0, 0.8, 1> texture { tx_espelho} } #declare chao = plane { <0, 0, 1>, -2 pigment{ checker <0,0.8,0.9>,<0,0.9,1>} } // Aqui está a cena, finalmente: object { base} object { peca} object { copo hollow interior{ior 1.5}} object { braco} object { chao}