// ==== Standard POV-Ray Includes ==== // File: .pov // Vers: 3.5 // Desc: Makes a sphere of spheres // Date: 15.05.05 // Auth: C. Oestergaard #include "colors.inc" #include "textures.inc" #include "functions.inc" #include "math.inc" // background (sky) background { color rgb <0.7, 0.7, 0.8> } // camera camera { location <0,10,-11> look_at <0.0, 0, 0.0> } //light light_source { <0, 10, -10> color rgb 1.0} //Spheres //------------------------------------ #declare r = 4;//Radius #declare step = 8; #declare BlueCenter=<0,0,0>; //Center coordinates #declare BlueSphere= sphere {<0,0,0>.4 scale 0.5 texture{pigment{color Blue} finish {ambient 0.1 diffuse 0.9}}} #declare NrX = 0; // startX #declare EndNrX = 360; // endX #while (NrX < EndNrX) #declare NrY = 0; // startY #declare EndNrY = 360; // endY #while (NrY < EndNrY) object{BlueSphere translate +BlueCenter } #declare NrY = NrY+step;// next NrY #end // ---------- end of loop Y #declare NrX = NrX+step;// next NrX #end // ----------- end of loop X ----