// Exercício número 7 - Aula de 30/06/2001 // Anderson Supriano - RA 7852 // Last edited on 2001-07-31 13:32:38 by stolfi background{ color rgb < .9, .9, 1 > } #declare chao = texture { pigment { checker color rgb <0.6, 0.6, 0.6> color rgb <1, 1, 1> } finish { ambient 0.4 diffuse 0.6 } scale 2 } #declare cor_azul = <0.3, 0.3, 1.0>; #declare cor_verde = <0.3, 1.0, 0.3>; #declare cor_roxo = <1.0, 0.3, 1.0>; #declare azul_metalico = texture { pigment { color rgb cor_azul } finish { ambient 0 diffuse 0.2 reflection 0.8*cor_azul specular 0.1 roughness 0.05 } } #declare verde_metalico = texture { pigment { color rgb cor_verde } finish { ambient 0 diffuse 0.2 reflection 0.8*cor_verde specular 0.1 roughness 0.05 } } #declare roxo_metalico = texture { pigment { color rgb cor_roxo } finish { ambient 0 diffuse 0.2 reflection 0.8*cor_roxo specular 0.1 roughness 0.05 } } camera { location 0.8*< -5, 7, 40 > // right <-0.60, 0.00, 0.00> // up <0.00, 0.00, 0.80> sky <0.00, 0.00, 1.00> look_at < 0, 0, 0 > } light_source { < -300, -190, 500 > color rgb 1.1*< 1, 1, 1 > } #declare A01 = <-20, 0, 0>; #declare A02 = <-20, 0, 0>; #declare A03 = <-20, 0, 0>; #declare A04 = <-20, 0, 0>; #declare A05 = <-17, 0, 6>; #declare A06 = <-17, 3, 1>; #declare A07 = <-17, 5, -3>; #declare A08 = <-17, 9, -7>; #declare A09 = <-6, 0, 7>; #declare A10 = <-6, 3, 1>; #declare A11 = <-6, 5, -3>; #declare A12 = <-6, 10, -7>; #declare A13 = <1, 0, 9>; #declare A14 = <1, 3, 1>; #declare A15 = <1, 5, -3>; #declare A16 = <1, 10, -7>; #declare B01 = <1, 0, 9>; #declare B02 = <1, 3, 1>; #declare B03 = <1, 5, -3>; #declare B04 = <1, 10, -7>; #declare B05 = <3, 0, 16>; #declare B06 = <3, 3, 6>; #declare B07 = <3, 5, -3>; #declare B08 = <3, 10, -7>; #declare B09 = <6, 0, 16>; #declare B10 = <6, 3, 6>; #declare B11 = <6, 5, -3>; #declare B12 = <6, 10, -7>; #declare B13 = <8, 0, 9>; #declare B14 = <8, 3, 1>; #declare B15 = <8, 5, -3>; #declare B16 = <8, 10, -7>; #declare C01 = <8, 0, 9>; #declare C02 = <8, 3, 1>; #declare C03 = <8, 5, -3>; #declare C04 = <8, 10, -7>; #declare C05 = <12, 0, 7>; #declare C06 = <12, 3, 1>; #declare C07 = <12, 5, -3>; #declare C08 = <12, 10, -7>; #declare C09 = <17, 0, 6>; #declare C10 = <17, 3, 1>; #declare C11 = <17, 5, -3>; #declare C12 = <17, 9, -7>; #declare C13 = <20, 0, 0>; #declare C14 = <20, 0, 0>; #declare C15 = <20, 0, 0>; #declare C16 = <20, 0, 0>; #declare patchA = bicubic_patch { type 1 flatness 0.1 u_steps 5 v_steps 5 A01, A02, A03, A04, A05, A06, A07, A08, A09, A10, A11, A12, A13, A14, A15, A16 } #declare patchB = bicubic_patch { type 1 flatness 0.1 u_steps 5 v_steps 5 B01, B02, B03, B04, B05, B06, B07, B08, B09, B10, B11, B12, B13, B14, B15, B16 } #declare patchC = bicubic_patch { type 1 flatness 0.1 u_steps 5 v_steps 5 C01, C02, C03, C04, C05, C06, C07, C08, C09, C10, C11, C12, C13, C14, C15, C16 } union { plane { <0,0,1>, 0 texture {chao rotate 45*z} } plane { <-1,0,0>, 0 texture {chao} translate 30*x } sphere { A01, 0.4 texture { pigment { color rgb <0, 0, 1> } } } sphere { A02, 0.4 texture { pigment { color rgb <0, 0, 1> } } } sphere { A03, 0.4 texture { pigment { color rgb <0, 0, 1> } } } sphere { A04, 0.4 texture { pigment { color rgb <0, 0, 1> } } } sphere { A05, 0.4 texture { pigment { color rgb <0, 0, 1> } } } sphere { A06, 0.4 texture { pigment { color rgb <0, 0, 1> } } } sphere { A07, 0.4 texture { pigment { color rgb <0, 0, 1> } } } sphere { A08, 0.4 texture { pigment { color rgb <0, 0, 1> } } } sphere { A09, 0.4 texture { pigment { color rgb <0, 0, 1> } } } sphere { A10, 0.4 texture { pigment { color rgb <0, 0, 1> } } } sphere { A11, 0.4 texture { pigment { color rgb <0, 0, 1> } } } sphere { A12, 0.4 texture { pigment { color rgb <0, 0, 1> } } } sphere { A13, 0.4 texture { pigment { color rgb <0, 0, 1> } } } sphere { A14, 0.4 texture { pigment { color rgb <0, 0, 1> } } } sphere { A15, 0.4 texture { pigment { color rgb <0, 0, 1> } } } sphere { A16, 0.4 texture { pigment { color rgb <0, 0, 1> } } } object {patchA texture {azul_metalico} } object {patchA texture {azul_metalico} scale <1, -1, 1> } sphere { B01, 0.4 texture { pigment { color rgb <0, 1, 0> } } } sphere { B02, 0.4 texture { pigment { color rgb <0, 1, 0> } } } sphere { B03, 0.4 texture { pigment { color rgb <0, 1, 0> } } } sphere { B04, 0.4 texture { pigment { color rgb <0, 1, 0> } } } sphere { B05, 0.4 texture { pigment { color rgb <0, 1, 0> } } } sphere { B06, 0.4 texture { pigment { color rgb <0, 1, 0> } } } sphere { B07, 0.4 texture { pigment { color rgb <0, 1, 0> } } } sphere { B08, 0.4 texture { pigment { color rgb <0, 1, 0> } } } sphere { B09, 0.4 texture { pigment { color rgb <0, 1, 0> } } } sphere { B10, 0.4 texture { pigment { color rgb <0, 1, 0> } } } sphere { B11, 0.4 texture { pigment { color rgb <0, 1, 0> } } } sphere { B12, 0.4 texture { pigment { color rgb <0, 1, 0> } } } sphere { B13, 0.4 texture { pigment { color rgb <0, 1, 0> } } } sphere { B14, 0.4 texture { pigment { color rgb <0, 1, 0> } } } sphere { B15, 0.4 texture { pigment { color rgb <0, 1, 0> } } } sphere { B16, 0.4 texture { pigment { color rgb <0, 1, 0> } } } object {patchB texture {verde_metalico} } object {patchB texture {verde_metalico} scale <1, -1, 1> } sphere { C01, 0.4 texture { pigment { color rgb <1, 0, 1> } } } sphere { C02, 0.4 texture { pigment { color rgb <1, 0, 1> } } } sphere { C03, 0.4 texture { pigment { color rgb <1, 0, 1> } } } sphere { C04, 0.4 texture { pigment { color rgb <1, 0, 1> } } } sphere { C05, 0.4 texture { pigment { color rgb <1, 0, 1> } } } sphere { C06, 0.4 texture { pigment { color rgb <1, 0, 1> } } } sphere { C07, 0.4 texture { pigment { color rgb <1, 0, 1> } } } sphere { C08, 0.4 texture { pigment { color rgb <1, 0, 1> } } } sphere { C09, 0.4 texture { pigment { color rgb <1, 0, 1> } } } sphere { C10, 0.4 texture { pigment { color rgb <1, 0, 1> } } } sphere { C11, 0.4 texture { pigment { color rgb <1, 0, 1> } } } sphere { C12, 0.4 texture { pigment { color rgb <1, 0, 1> } } } sphere { C13, 0.4 texture { pigment { color rgb <1, 0, 1> } } } sphere { C14, 0.4 texture { pigment { color rgb <1, 0, 1> } } } sphere { C15, 0.4 texture { pigment { color rgb <1, 0, 1> } } } sphere { C16, 0.4 texture { pigment { color rgb <1, 0, 1> } } } object {patchC texture {roxo_metalico} } object {patchC texture {roxo_metalico} scale <1, -1, 1> } }