//Pedro Feniman 083991 // ====================================================================== // CORES E TEXTURAS background{ color rgb < 0.75, 0.80, 0.85 > } #declare tx_plastico = texture{ pigment{ color rgb < 1, 1, 0 > } finish{ diffuse 0.8 ambient 0.1 specular 0.5 roughness 0.005 } } #declare tx_plastico1 = texture{ pigment{ color rgb < 0, 1, 0 > } finish{ diffuse 0.8 ambient 0.1 specular 0.5 roughness 0.005 } } #declare tx_plastico2 = texture{ pigment{ color rgb < 0.2, 0.2, 0.2 > } finish{ diffuse 0.8 ambient 0.1 specular 0.5 roughness 0.005 } } #declare tx_fosca = texture{ pigment{ color rgb < 0.42, 0.50, 0.23 > } finish{ diffuse 0.9 ambient 0.1 } } #declare tx_fosca1 = texture{ pigment{ color rgb < 0.10, 0.10, 0.90 > } finish{ diffuse 0.9 ambient 0.1 } } #declare tx_espelho = texture{ pigment{ color rgb < 0.30, 0.45, 0.90 > } finish{ diffuse 0.2 reflection 0.3*< 1.00, 0.85, 0.30 > ambient 0.1 } } #declare tx_xadrez = texture{ pigment{ checker color rgb < 0.10, 0.10, 0.10 >, color rgb < 1.00, 0.97, 0.90 > } finish{ diffuse 0.9 ambient 0.1 } scale 2.0 } // ====================================================================== // DESCRIÇÃO DA CENA #declare raio = 2.000; // Partes da cena: #declare tampa= box { < -1.3 ,-1.3, 0> <1.3, 1.3, 0.18> texture{ tx_plastico } } #declare caixa_maior= box { < -1.3 ,-1.3, 0> <1.3, 1.3, 1.8> texture{ tx_plastico } } #declare caixa_menor= box { < -1 ,-1, 0> <1, 1, 2> texture{ tx_plastico } } #declare caixinha= box { < -0.2 ,-0.2, 0> <0.2, 0.2, 0.2> texture{ tx_plastico1 } } #declare cone1= cone { <-0.5, 0.5 , 3.5>, 0.5 <-0.5, 0.5, 1.5>, 0 texture{ tx_fosca1 } } #declare bola = sphere{ < 1,-1.0,2.6 >, 0.7 texture{ tx_plastico2 } } #declare bolinha = sphere{ < 0.23,1.5,2.3 >, 0.23 texture{ tx_fosca }} #declare cilindro = cylinder{ < 0, 1, 1 >, < 0, 1, 3 >, 0.23 } #declare chao = box{ <-20,-20,-1>, <+20,+20,0> } union{ object{ chao translate < 0,0,-5 > texture{ tx_xadrez } } object{ cilindro translate < 0.4,-1, 0.8 > texture{ tx_espelho } } object{ cone1 } object{ bolinha } object{ bola } object{ caixinha translate < 0.3,1.8, 2.8 >} object{ tampa rotate <0, 45, 0> translate < -2.2, 0, 2.55 > } difference{ object{ caixa_maior } object{ caixa_menor } } } #include "camlight.inc" #declare centro_cena = < 0.00, 0.00, 1.00 >; #declare raio_cena = 6.0; #declare dir_camera = < 8.00, 6.00, 4.00 >; #declare dist_camera = 12.0; #declare intens_luz = 1.00; camlight(centro_cena, raio_cena, dir_camera, dist_camera , z, intens_luz)