// MC930: Exercicio 5 - 07/11/2000 background{ color rgb < 1.00, 1.00, 1.00 > } light_source { < 2.00, 2.00, 2.00 > color rgb 1.5* < 1.00, 1.00, 1.00 > } camera { location < 10.00, 3.00, 2.00 > // right < 2.40, 0.00, 0.00 > // up < 0.00, 0.00, 1.80 > sky < 0.00, 1.00, 0.00 > look_at < 1.00, 2.00, 4.00 > } #declare tinta_AMAR = texture { pigment { color rgb < 1.00, 1.00, 0.00 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare tinta_AZUL = texture { pigment { color rgb < 0.00, 0.00, 1.00 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare tinta_VERD = texture { pigment { color rgb < 0.00, 1.00, 0.00 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare A1 = <0.00, 4.00, 0.00>; #declare A2 = <0.50, 2.50, 0.75>; #declare A3 = <1.00, 1.00, 1.50>; #declare A4 = <1.50, 0.00, 2.25>; #declare A5 = <0.00, 4.00, 0.50>; #declare A6 = <0.50, 2.50, 1.25>; #declare A7 = <1.00, 1.00, 2.00>; #declare A8 = <1.50, 0.00, 2.75>; #declare A9 = <0.00, 3.00, 1.00>; #declare A10 = <0.50, 2.00, 1.75>; #declare A11 = <1.00, 1.00, 2.50>; #declare A12 = <1.50, 0.00, 3.25>; #declare A13 = <0.00, 2.50, 1.50>; #declare A14 = <0.50, 1.50, 2.25>; #declare A15 = <1.00, 0.50, 3.25>; #declare A16 = <1.50, 0.00, 3.75>; #declare B1 = <0.00, 2.50, 1.50>; #declare B2 = <0.50, 1.50, 2.25>; #declare B3 = <1.00, 0.50, 3.25>; #declare B4 = <1.50, 0.00, 3.75>; #declare B5 = <0.00, 2.00, 2.00>; #declare B6 = <0.50, 1.25, 2.75>; #declare B7 = <1.00, 0.75, 3.75>; #declare B8 = <1.50, 0.00, 4.25>; #declare B9 = <0.00, 1.50, 2.50>; #declare B10 = <0.50, 1.00, 3.25>; #declare B11 = <1.00, 0.50, 4.25>; #declare B12 = <1.50, 0.00, 4.75>; #declare B13 = <0.00, 1.00, 3.00>; #declare B14 = <0.50, 0.50, 3.75>; #declare B15 = <1.00, 0.25, 4.75>; #declare B16 = <1.50, 0.00, 5.25>; #declare patchA = bicubic_patch { type 0 flatness 0.1 u_steps 4 v_steps 4 A1,A2,A3,A4,A5,A6,A7,A8,A9,A10,A11,A12,A13,A14,A15,A16 pigment {color rgb <0.00, 0.25, 0.75>} // finish{reflection 0.8} } #declare patchB = bicubic_patch { type 0 flatness 0.1 u_steps 4 v_steps 4 B1,B2,B3,B4,B5,B6,B7,B8,B9,B10,B11,B12,B13,B14,B15,B16 pigment {color rgb <0.00, 0.25, 0.75>} // finish{reflection 0.8} } #declare chao = plane { y,-6 texture {pigment {checker color rgb <1,0,0>, color rgb <1,1,0>} }} #declare final = union { object { patchA } object { patchB } } //Cena Final object { final } object { final scale <1,-1,1>} object { chao } sphere { A1, 0.1 texture { pigment {color rgb <1,0,0> }}} sphere { A2, 0.1 texture { pigment {color rgb <1,0,0> }}} sphere { A3, 0.1 texture { pigment {color rgb <1,0,0> }}} sphere { A4, 0.1 texture { pigment {color rgb <1,0,0> }}} sphere { A5, 0.1 texture { pigment {color rgb <1,0,0> }}} sphere { A6, 0.1 texture { pigment {color rgb <1,0,0> }}} sphere { A7, 0.1 texture { pigment {color rgb <1,0,0> }}} sphere { A8, 0.1 texture { pigment {color rgb <1,0,0> }}} sphere { A9, 0.1 texture { pigment {color rgb <1,0,0> }}} sphere { A10, 0.1 texture { pigment {color rgb <1,0,0> }}} sphere { A11, 0.1 texture { pigment {color rgb <1,0,0> }}} sphere { A12, 0.1 texture { pigment {color rgb <1,0,0> }}} sphere { A13, .1 texture { pigment {color rgb <1,0,0> }}} sphere { A14, 0.1 texture { pigment {color rgb <1,0,0> }}} sphere { A15, 0.1 texture { pigment {color rgb <1,0,0> }}} sphere { A16, 0.1 texture { pigment {color rgb <1,0,0> }}} sphere { B1, 0.1 texture { pigment {color rgb <1,0,0> }}} sphere { B2, 0.1 texture { pigment {color rgb <1,0,0> }}} sphere { B3, 0.1 texture { pigment {color rgb <1,0,0> }}} sphere { B4, 0.1 texture { pigment {color rgb <1,0,0> }}} sphere { B5, 0.1 texture { pigment {color rgb <1,0,0> }}} sphere { B6, 0.1 texture { pigment {color rgb <1,0,0> }}} sphere { B7, 0.1 texture { pigment {color rgb <1,0,0> }}} sphere { B8, 0.1 texture { pigment {color rgb <1,0,0> }}} sphere { B9, 0.1 texture { pigment {color rgb <1,0,0> }}} sphere { B10, 0.1 texture { pigment {color rgb <1,0,0> }}} sphere { B11, 0.1 texture { pigment {color rgb <1,0,0> }}} sphere { B12, 0.1 texture { pigment {color rgb <1,0,0> }}} sphere { B13, .1 texture { pigment {color rgb <1,0,0> }}} sphere { B14, 0.1 texture { pigment {color rgb <1,0,0> }}} sphere { B15, 0.1 texture { pigment {color rgb <1,0,0> }}} sphere { B16, 0.1 texture { pigment {color rgb <1,0,0> }}}