// Primeiro exercicio de MC930 // Eduardo Hideki Tanaka (970563) // data: 28/09/2000 background{ color rgb < 0.00, 0.08, 0.02 > } light_source { < 5.00, -10.00, 7.00 > color rgb < 1.00, 1.00, 1.00 > } camera { location < 3.00, -5.00, 10.00 > right < -1.20, 0.00, 0.00 > up < 0.00, 0.00, 0.90 > sky < 0.00, 0.00, 1.00 > look_at < 5.00, 5.00, 6.00 > } #declare tinta_cinza = texture { pigment { color rgb < 1.00, 0.80, 1.00 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare tinta_cinza_escuro = texture { pigment { color rgb < 0.80, 0.80, 1.00 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare tinta_vermelha = texture { pigment { color rgb < 1.00, 0.10, 0.00 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare tinta_azul = texture { pigment { color rgb < 0.00, 0.10, 1.00 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare tinta_laranja = texture { pigment { color rgb < 1.00, 0.50, 0.10 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare esfera = sphere { < 6.50, 2.50, 5.50 >, 1.50 texture { tinta_vermelha } } #declare cilindro_grande = cylinder { < 1.00, 5.00, 4.00 >, < 1.00, 5.00, 9.00 >, 1.00 texture { tinta_laranja } } #declare cilindro_pequeno = cylinder { < 4.00, 5.00, 4.00 >, < 4.00, 5.00, 7.00 >, 1.00 texture { tinta_laranja } } #declare cubo = box { < 8.00, 7.00, 4.00 >, < 10.70, 9.70, 6.70 > texture { tinta_azul } } #declare cilindro_furado = cylinder { < 3.00, 2.50, 4.00 >, < 3.00, 2.50, 5.80 >, 1.00 texture { tinta_cinza } } #declare furo = cylinder { < 3.00, 2.50, 4.90 >, < 3.00, 2.50, 6.00 >, 0.80 texture { tinta_cinza_escuro } } // A cena é formada aqui... union { object { esfera } object { cilindro_grande } object { cilindro_pequeno } object { cubo } difference { object { cilindro_furado } object { furo } } }