// Last edited on DATE TIME by USER // Processed by remove-cam-lights background{ color rgb < 0.75, 0.80, 0.85 > } #declare tinta_A = texture { pigment { color rgb < 0.10, 0.80, 1.00 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare tinta_B = texture { pigment { color rgb < 1.00, 0.80, 0.10 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare A11 = < 0, 0, 1>; #declare A12 = < 0, 0, 0>; #declare A13 = < 0, 0, -1>; #declare A21 = < 1, 2, 3>; #declare A22 = < 1, 2, 0>; #declare A23 = < 1, 2, -1>; #declare A24 = < 1, 2, 0>; #declare A31 = < 2, 3, 0>; #declare A32 = < 2, 3, 1>; #declare A33 = < 2, 3, 0>; #declare A34 = < 2, 3, 1>; #declare A41 = < 3, 4, 3>; #declare A42 = < 3, 4, 2>; #declare A43 = < 3, 4, 1>; #declare A44 = < 3, 4, 0>; #declare B12 = <0,2,-2>; #declare A14 = (A13+B12)/2; #declare B11 = A14; #declare B21 = A24; #declare B31 = A34; #declare B41 = A44; #macro retalho(A11, A12, A13, A14,A21, A22, A23, A24,A31, A32, A33, A34,A41, A42, A43, A44 ) union{ bicubic_patch{ type 1 u_steps 3 v_steps 3 A41, A42, A43, A44, A31, A32, A33, A34, A21, A22, A23, A24, A11, A12, A13, A14 texture {tinta_A} } sphere { A11, 0.1 texture {tinta_B} } sphere { A12, 0.1 texture {tinta_B} } sphere { A13, 0.1 texture {tinta_B} } sphere { A14, 0.1 texture {tinta_B} } sphere { A21, 0.1 texture {tinta_B} } sphere { A22, 0.1 texture {tinta_B} } sphere { A23, 0.1 texture {tinta_B} } sphere { A24, 0.1 texture {tinta_B} } sphere { A31, 0.1 texture {tinta_B} } sphere { A32, 0.1 texture {tinta_B} } sphere { A33, 0.1 texture {tinta_B} } sphere { A34, 0.1 texture {tinta_B} } sphere { A41, 0.1 texture {tinta_B} } sphere { A42, 0.1 texture {tinta_B} } sphere { A43, 0.1 texture {tinta_B} } sphere { A44, 0.1 texture {tinta_B} } cylinder{A11,A12,0.05 } cylinder{A12,A13,0.05 } cylinder{A13,A14,0.05 } cylinder{A11,A21,0.05 } cylinder{A12,A22,0.05 } cylinder{A13,A23,0.05 } cylinder{A14,A24,0.05 } cylinder{A21,A22,0.05 } cylinder{A22,A23,0.05 } cylinder{A23,A24,0.05 } cylinder{A21,A31,0.05 } cylinder{A22,A32,0.05 } cylinder{A23,A33,0.05 } cylinder{A24,A34,0.05 } cylinder{A31,A32,0.05 } cylinder{A32,A33,0.05 } cylinder{A33,A34,0.05 } cylinder{A31,A41,0.05 } cylinder{A32,A42,0.05 } cylinder{A33,A43,0.05 } cylinder{A34,A44,0.05 } cylinder{A41,A42,0.05 } cylinder{A42,A43,0.05 } cylinder{A43,A44,0.05 } } #end #declare bandeira = bicubic_patch{ type 1 u_steps 3 v_steps 3 <0,0,0>,<4,4,0>,<-7,8,0>,<0,12,0> <0,0,2>,<4,4,2>,<-7,8,2>,<0,12,2> <0,0,4>,<4,4,4>,<-7,8,4>,<0,12,4> <0,0,6>,<4,4,6>,<-7,8,6>,<0,12,6> pigment{uv_mapping image_map{png "unicamp.png"}} } object { retalho(A11, A12, A13, A14,A21, A22, A23, A24,A31, A32, A33, A34,A41, A42, A43, A44 )} // Original camera parameters: // #local cam_ctr = <0,0,0> // #local cam_vec = <-8,4,6> // #local cam_sky = z #include "camlight.inc" camlight(<0,0,0>,<10,10,10>,20.0,z,1.0)