// MP004 - COMPUTACAO GRAFICA // NOME: LUCIANA RAMOS // RA: 7868 // Last edited on 2001-06-02 21:12:06 by stolfi // TRABALHO DE LABORATORIO 4 // COPA EMBROMADORES DAS AMERICAS //azul #include "colors.inc" background{ color rgb < 1.00, 1.00, 1.00 > } /* light_source { < 6.00, 3.00, -1.50 > color rgb < 1.00, 1.00, 1.00 > } */ light_source { < 8.00, -4.00, 20.00 > color rgb < 1.00, 1.00, 1.00 > } camera { location < +9.00, 4.00, 3.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.30, 1.00, -0.70 > } #declare tinta_verde = texture { pigment { color rgb < 0.00, 1.00, 0.00 > } finish { diffuse 0.7 specular 0.3 roughness 0.005 ambient 0.1 } } #declare cor_cristal = < 0.5, 0.5, 1 > #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 } } //metal #declare cor_espelho = < 1, 0.8, 0.5> //#declare cor_espelho = < 0.5, 0.5, 0.5> #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 raio = 2.000; #declare x1 = cylinder { < +100.00, 0.00, 0.00 >, < -100.00, 0.00, 0.00 >, 0.01 texture { pigment { color rgb < 1.00, 0.00, 0.00 > } } } #declare y1 = cylinder { < +0.00, 100.00, 0.00 >, < 0.00, -100.00, 0.00 >, 0.01 texture { pigment { color rgb < 0.00, 1.00, 0.00 > } } } #declare z1 = cylinder { < 0.00, 0.00, 100.00 >, < 0.00, 0.00, -100.00 >, 0.01 texture { pigment { color rgb < 0.00, 0.00, 1.00 > } } } #declare t1 = torus { 1, 0.5 } #declare t2 = torus { 1, 0.5 translate <0, 2, 0> } #declare cilindro1 = cylinder { < +0.00, +0.00, +0.00 >, < +0.00, +2.00, +0.00 >, 0.5 } #declare cone1 = cone { < -0.30, 1.00, 0.00 >, 0.80 < -0.30, 1.00, -3.50 >, 0.20 } #declare cilindro2 = cylinder { < -0.30, +1.00, -4.50 >, < -0.30, +1.00, -0.30 >, 0.2 } // Aqui está a cena, finalmente: union{ /* object{ x1 } object{ y1 } object{ z1 } */ object { t1 texture { tx_cristal } #declare cor_espelho = < 1, 0.8, 0.5> hollow interior { ior 1.0 } } object { t2 texture { tx_cristal } hollow interior { ior 1.0 } } object { cilindro1 texture { tx_espelho } hollow interior { ior 0.1 } } object { cone1 texture { tx_espelho } hollow interior { ior 0.1 } } object { cilindro2 texture { tx_espelho } hollow interior { ior 0.1 } } plane { <0, 0, 1>, -8 pigment { checker color <1,0.5,0.5>, color <0.5,0.5,1> } } }