// Aluno: Gustavo Fernandez da Costa // RA: 169296 // ====================================================================== // CORES E TEXTURAS background{ color rgb < 0.8, 0.7, 0.5 > } #declare tx_prism = texture{ pigment{ color rgb < 0.8, 0.2, 0.2 > } finish{ diffuse 0.9 ambient 0.1 } } #declare tx_bezier = texture{ pigment{ color rgb < 0.8, 0.2, 0.2 > } finish{ diffuse 0.9 ambient 0.1 } } // ====================================================================== // DESCRICAO DA CENA #include "eixos.inc" #include "retalho-simples.inc" // CENA union{ eixos(3) #declare FRENTE = array[4][4]; #declare FRENTE[0][0] = <2,1,-1>; #declare FRENTE[0][1] = <2,5,3>; #declare FRENTE[0][2] = <2,8,2>; #declare FRENTE[0][3] = <2,11,2>; #declare FRENTE[1][0] = <5,2,0>; #declare FRENTE[1][1] = <5,5,3>; #declare FRENTE[1][2] = <5,8,2>; #declare FRENTE[1][3] = <5,11,2>; #declare FRENTE[2][0] = <8,2,0>; #declare FRENTE[2][1] = <8,5,3>; #declare FRENTE[2][2] = <8,8,2>; #declare FRENTE[2][3] = <8,11,2>; #declare FRENTE[3][0] = <11,1,0>; #declare FRENTE[3][1] = <11,5,3>; #declare FRENTE[3][2] = <11,8,2>; #declare FRENTE[3][3] = <11,11,2>; #declare FRENTE1 = array[4][4]; #declare FRENTE1[0][0] = <11,1,0>; #declare FRENTE1[0][1] = <11,5,3>; #declare FRENTE1[0][2] = <11,8,2>; #declare FRENTE1[0][3] = <11,11,2>; #declare FRENTE1[1][0] = <14,2,0>; #declare FRENTE1[1][1] = <14,5,3>; #declare FRENTE1[1][2] = <14,8,2>; #declare FRENTE1[1][3] = <14,11,2>; #declare FRENTE1[2][0] = <17,2,0>; #declare FRENTE1[2][1] = <17,5,3>; #declare FRENTE1[2][2] = <17,8,2>; #declare FRENTE1[2][3] = <17,11,2>; #declare FRENTE1[3][0] = <20,1,-1>; #declare FRENTE1[3][1] = <20,5,3>; #declare FRENTE1[3][2] = <20,8,2>; #declare FRENTE1[3][3] = <20,11,2>; #declare R = array[4][4]; #declare R[0][0] = <2,11,2>; #declare R[0][1] = <2,14,2>; #declare R[0][2] = <2,17,0>; #declare R[0][3] = <2,20,3>; #declare R[1][0] = <5,11,2>; #declare R[1][1] = <5,14,2>; #declare R[1][2] = <5,17,0>; #declare R[1][3] = <5,20,3>; #declare R[2][0] = <8,11,2>; #declare R[2][1] = <8,14,2>; #declare R[2][2] = <8,17,0>; #declare R[2][3] = <8,20,3>; #declare R[3][0] = <11,11,2>; #declare R[3][1] = <11,14,2>; #declare R[3][2] = <11,17,0>; #declare R[3][3] = <11,20,3>; #declare T = array[4][4]; #declare T[0][0] = <2,20,3>; #declare T[0][1] = <2,23,6>; #declare T[0][2] = <2,26,6>; #declare T[0][3] = <2,29,3>; #declare T[1][0] = <5,20,3>; #declare T[1][1] = <5,23,6>; #declare T[1][2] = <5,26,6>; #declare T[1][3] = <5,29,3>; #declare T[2][0] = <8,20,3>; #declare T[2][1] = <8,23,6>; #declare T[2][2] = <8,26,6>; #declare T[2][3] = <8,29,3>; #declare T[3][0] = <11,20,3>; #declare T[3][1] = <11,23,6>; #declare T[3][2] = <11,26,6>; #declare T[3][3] = <11,29,3>; #declare Q = array[4][4]; #declare Q[0][0] = <2,29,3>; #declare Q[0][1] = <2,32,0>; #declare Q[0][2] = <2,35,2>; #declare Q[0][3] = <2,38,2>; #declare Q[1][0] = <5,29,3>; #declare Q[1][1] = <5,32,0>; #declare Q[1][2] = <5,35,2>; #declare Q[1][3] = <5,38,2>; #declare Q[2][0] = <8,29,3>; #declare Q[2][1] = <8,32,0>; #declare Q[2][2] = <8,35,2>; #declare Q[2][3] = <8,38,2>; #declare Q[3][0] = <11,29,3>; #declare Q[3][1] = <11,32,0>; #declare Q[3][2] = <11,35,2>; #declare Q[3][3] = <11,38,2>; #declare G = array[4][4]; #declare G[0][0] = <2,38,2>; #declare G[0][1] = <2,41,2>; #declare G[0][2] = <2,44,3>; #declare G[0][3] = <2,47,0>; #declare G[1][0] = <5,38,2>; #declare G[1][1] = <5,41,2>; #declare G[1][2] = <5,44,3>; #declare G[1][3] = <5,47,0>; #declare G[2][0] = <8,38,2>; #declare G[2][1] = <8,41,2>; #declare G[2][2] = <8,44,3>; #declare G[2][3] = <8,47,0>; #declare G[3][0] = <11,38,2>; #declare G[3][1] = <11,41,2>; #declare G[3][2] = <11,44,3>; #declare G[3][3] = <11,47,0>; #declare R1 = array[4][4]; #declare R1[0][0] = <11,11,2>; #declare R1[0][1] = <11,14,2>; #declare R1[0][2] = <11,17,0>; #declare R1[0][3] = <11,20,3>; #declare R1[1][0] = <14,11,2>; #declare R1[1][1] = <14,14,2>; #declare R1[1][2] = <14,17,0>; #declare R1[1][3] = <14,20,3>; #declare R1[2][0] = <17,11,2>; #declare R1[2][1] = <17,14,2>; #declare R1[2][2] = <17,17,0>; #declare R1[2][3] = <17,20,3>; #declare R1[3][0] = <20,11,2>; #declare R1[3][1] = <20,14,2>; #declare R1[3][2] = <20,17,0>; #declare R1[3][3] = <20,20,3>; #declare T1 = array[4][4]; #declare T1[0][0] = <11,20,3>; #declare T1[0][1] = <11,23,6>; #declare T1[0][2] = <11,26,6>; #declare T1[0][3] = <11,29,3>; #declare T1[1][0] = <14,20,3>; #declare T1[1][1] = <14,23,6>; #declare T1[1][2] = <14,26,6>; #declare T1[1][3] = <14,29,3>; #declare T1[2][0] = <17,20,3>; #declare T1[2][1] = <17,23,6>; #declare T1[2][2] = <17,26,6>; #declare T1[2][3] = <17,29,3>; #declare T1[3][0] = <20,20,3>; #declare T1[3][1] = <20,23,6>; #declare T1[3][2] = <20,26,6>; #declare T1[3][3] = <20,29,3>; #declare Q1 = array[4][4]; #declare Q1[0][0] = <11,29,3>; #declare Q1[0][1] = <11,32,0>; #declare Q1[0][2] = <11,35,2>; #declare Q1[0][3] = <11,38,2>; #declare Q1[1][0] = <14,29,3>; #declare Q1[1][1] = <14,32,0>; #declare Q1[1][2] = <14,35,2>; #declare Q1[1][3] = <14,38,2>; #declare Q1[2][0] = <17,29,3>; #declare Q1[2][1] = <17,32,0>; #declare Q1[2][2] = <17,35,2>; #declare Q1[2][3] = <17,38,2>; #declare Q1[3][0] = <20,29,3>; #declare Q1[3][1] = <20,32,0>; #declare Q1[3][2] = <20,35,2>; #declare Q1[3][3] = <20,38,2>; #declare G1 = array[4][4]; #declare G1[0][0] = <11,38,2>; #declare G1[0][1] = <11,41,2>; #declare G1[0][2] = <11,44,3>; #declare G1[0][3] = <11,47,0>; #declare G1[1][0] = <14,38,2>; #declare G1[1][1] = <14,41,2>; #declare G1[1][2] = <14,44,3>; #declare G1[1][3] = <14,47,0>; #declare G1[2][0] = <17,38,2>; #declare G1[2][1] = <17,41,2>; #declare G1[2][2] = <17,44,3>; #declare G1[2][3] = <17,47,0>; #declare G1[3][0] = <20,38,2>; #declare G1[3][1] = <20,41,2>; #declare G1[3][2] = <20,44,3>; #declare G1[3][3] = <20,47,0>; retalho(FRENTE,0.,tx_bezier,tx_prism) retalho(T,0.,tx_bezier,tx_prism) retalho(R,0.,tx_bezier,tx_prism) retalho(Q,0.,tx_bezier,tx_prism) retalho(G,0.,tx_bezier,tx_prism) retalho(FRENTE1,0.,tx_bezier,tx_prism) retalho(T1,0.,tx_bezier,tx_prism) retalho(R1,0.,tx_bezier,tx_prism) retalho(Q1,0.,tx_bezier,tx_prism) retalho(G1,0.,tx_bezier,tx_prism) } #include "camlight.inc" #declare centro_cena = < 5.00, 25.00, 0.00 >; #declare raio_cena = 35; #declare dir_camera = < 1.0, -1., 0.4 >; #declare dist_camera = 4*raio_cena; #declare intens_luz = 1.2; camlight(centro_cena, raio_cena, dir_camera, dist_camera , z, intens_luz)