// Priscilla Sanches Marques // RA : 981944 // MC 930 - Computacao Grafica // 2 semestre 2000 // Laboratorio 6 // Prof. Stolfi #include "colors.inc" #include "textures.inc" background { color rgb<1.0, 1.0, 1.0>} light_source { < 0.00, 7.00, -5.00 > color rgb < 1.00, 1.00, 1.00 > } camera { location < 1.00, 10.00, -10.00 > look_at < 0.00, 2.00, 1.00 > } // Plano de fundo plane { <0, 1, 0>, -1 pigment { checker color Gold, color White } } // Pecas que unidas irao montar o objeto #declare caixa_fora = box { <-3, 0, 0>, < 3, 4, 3> texture { Brushed_Aluminum finish { ambient .1 diffuse .4 specular 1 roughness 0.001 reflection .5 metallic } } } #declare caixa_dentro = box { <-2.5, 0.5, 0.5 >, <2.5, 4.05, 2.5> texture { Brushed_Aluminum finish { ambient .1 diffuse .4 specular 1 roughness 0.001 reflection .5 metallic } } } #declare esfera = sphere { < 4.05, 2.00, 0.50 >, 2.00 texture { Gold_Nugget normal { bumps 0.4 scale 0.2 } finish { phong 1 reflection 0.75 } } } #declare cilindro = cylinder { <4.05, 6.00, 1.00>, <4.05, 1.00, 1.00>, 1.00 open texture { Gold_Nugget normal { bumps 0.4 scale 0.2 } finish { phong 1 reflection 0.75 } } } // A construcao final da cena : union { difference { object { caixa_fora } object { caixa_dentro } texture { Brushed_Aluminum } } merge{ object { esfera } object { cilindro } texture { Gold_Nugget } } rotate 335*x }