// MC930 - Trabalho prático 9 - 1s2003 // Last edited on 2003-05-31 15:06:56 by stolfi // Artur Manoel Passos RA 001388 #include "colors.inc" #declare imgname = "artur5.gif"; #declare ctr = <0,0,0>; camera { location ctr + 0.30 * < 5, 5, -30.00 > right 1.0*x up 0.50*y sky y look_at ctr } light_source { 100*< 5.00, 3.00, -7.00 > color rgb < 2.20, 2.20, 2.20 > } light_source { 100*<-5.00, 3.00, -7.00 > color rgb < 2.20, 2.20, 2.20 > } #declare tx1 = texture { pigment { Silver } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } background{ LightBlue } #declare face1 = union { sphere { <0, 0, 0> 2 pigment { image_map {gif imgname} scale 3.6 translate <1.4, 1.5, 0>} } } #declare face2a = union { sphere {<0, 0, 0> 1 scale <1, 1.2, 1>} cylinder {<0.05, -1.5, 0>, <0.05, -0.8, 0> 0.6 } sphere {<0, 0, 0> 0.3 scale<0.4, 0.8, 0.1> translate<1, 0, -0.3> } sphere {<0, 0, 0> 0.3 scale<0.4, 0.8, 0.1> translate<-0.8, 0, -0.3> } box {<-0.75, 0.4, -0.8>, <0.85, 1.2, 0.8> } } #declare face2 = difference { object {face2a} box {<-0.5,-0.4, -3> <0.5, 0.4, 3> rotate <0, 0, 30> translate<-1.2, -0.55, 0>} box {<-1, -0.9, -3 > <-0.6,-0.7, 3> } } // object {face1 translate <2.5,0,0>} #declare cena = object {face2 pigment{image_map {gif imgname} scale 3.6 translate <1.75, 1.55, 0> } } object { cena } object { cena rotate +60*y translate -3*x } object { cena rotate -60*y translate +3*x } plane { y, -5 texture {tx1} }