// Exercicio 3 da 4a. aula de Laboratorio - MC930 - Prof. Stolfi // Eduardo C. Lazarine - RA 970561 #include "colors.inc" background{ color rgb <1,1,1> } light_source { < 0.00, 20.00, 10.00 > color rgb < 1.00, 1.00, 1.00 > } camera { location < 9, 9 , 10 > right < 2.40, 0.00, 0.00 > up < 0.00, 0.00, 1.80 > sky < 0.00, 0.00, 1.00 > look_at < 0.00, 0.00, 0.00 > } #declare raio1 = 0.300; #declare raio2 = 0.700; #declare raio3 = 2.000; #declare A1 = <1,6,0>; #declare A2 = <1,9,0>; #declare A3 = <1,12,0>; #declare A4 = <6,12,4>; #declare A5 = <6,9,4>; #declare A6 = <6,6,4>; #declare A7 = <6,3,4>; #declare A8 = <11,12,0>; #declare A9 = <11,9,0>; #declare A10 = <11,6,0>; #declare A11 = <11,3,0>; #declare A12 = <16,12,4>; #declare A13 = <16,9,4>; #declare A14 = <16,6,4>; #declare A15 = <16,3,4>; #declare A16 = <1,3,0>; #declare S1 = sphere{ A1, 0.2 texture{ pigment{color rgb <0,1,0>} finish {reflection .1}}} #declare S2 = sphere{ A2, 0.2 texture{ pigment{color rgb <0,1,0>} finish {reflection .1}}} #declare S3 = sphere{ A3, 0.2 texture{ pigment{color rgb <0,1,0>} finish {reflection .1}}} #declare S4 = sphere{ A4, 0.2 texture{ pigment{color rgb <0,1,0>} finish {reflection .1}}} #declare S5 = sphere{ A5, 0.2 texture{ pigment{color rgb <0,1,0>} finish {reflection .1}}} #declare S6 = sphere{ A6, 0.2 texture{ pigment{color rgb <0,1,0>} finish {reflection .1}}} #declare S7 = sphere{ A7, 0.2 texture{ pigment{color rgb <0,1,0>} finish {reflection .1}}} #declare S8 = sphere{ A8, 0.2 texture{ pigment{color rgb <0,1,0>} finish {reflection .1}}} #declare S9 = sphere{ A9, 0.2 texture{ pigment{color rgb <0,1,0>} finish {reflection .1}}} #declare S10 = sphere{ A10, 0.2 texture{ pigment{color rgb <0,1,0>} finish {reflection .1}}} #declare S11 = sphere{ A11, 0.2 texture{ pigment{color rgb <0,1,0>} finish {reflection .1}}} #declare S12 = sphere{ A12, 0.2 texture{ pigment{color rgb <0,1,0>} finish {reflection .1}}} #declare S13 = sphere{ A13, 0.2 texture{ pigment{color rgb <0,1,0>} finish {reflection .1}}} #declare S14 = sphere{ A14, 0.2 texture{ pigment{color rgb <0,1,0>} finish {reflection .1}}} #declare S15 = sphere{ A15, 0.2 texture{ pigment{color rgb <0,1,0>} finish {reflection .1}}} #declare S16 = sphere{ A16, 0.2 texture{ pigment{color rgb <0,1,0>} finish {reflection .1}}} #declare tapete = bicubic_patch{ type 1 flatness 0.1 u_steps 4 v_steps 4 A16 A1 A2 A3 A7 A6 A5 A4 A11 A10 A9 A8 A15 A14 A13 A12 texture {pigment{ color rgb <0,0,1>} finish{ reflection .05 }} } //-------Finalmente, o tapete voador! object {tapete translate <-6, -6,0>} //object {cylinder {<0,0,0> <10,0,0> raio1 pigment{Green} }} //object {cylinder {<0,0,0> <0,10,0> raio1 pigment{Red} }} //object {cylinder {<0,0,0> <0,0,10> raio1 pigment{Blue} }} object {S1 translate <-6, -6,0>} object {S2 translate <-6, -6,0>} object {S3 translate <-6, -6,0>} object {S4 translate <-6, -6,0>} object {S5 translate <-6, -6,0>} object {S6 translate <-6, -6,0>} object {S7 translate <-6, -6,0>} object {S8 translate <-6, -6,0>} object {S9 translate <-6, -6,0>} object {S10 translate <-6, -6,0>} object {S11 translate <-6, -6,0>} object {S12 translate <-6, -6,0>} object {S13 translate <-6, -6,0>} object {S14 translate <-6, -6,0>} object {S15 translate <-6, -6,0>} object {S16 translate <-6, -6,0>}