//FRACTAL MADE FROM SPHERE //Files with predefined colors and textures #include "colors.inc" #include "glass.inc" #include "golds.inc" #include "metals.inc" #include "stones.inc" #include "woods.inc" //Place the camera camera { sky <0,0,1> //Don't change this direction <-1,0,0> //Don't change this right <-4/3,0,0> //Don't change this location <30,10,1.5> //Camera location look_at <0,0,0> //Where camera is pointing angle 10 //Angle of the view--increase to see more, decrease to see less } global_settings { ambient_light White } //Place a light light_source { <10,0,0> color White*2 } //Set a background color background { color White } //Create a "floor" //plane { // <0,0,1>, 0 // texture { T_Silver_3A } //} //Sphere with specified center point and radius #declare mysphere = sphere { <0,0,0>, 1 texture {T_Silver_1A} }; #declare counter=1; #while(counter < 7) #declare mysphere=union{ object{mysphere} object{mysphere scale .5 translate x} object{mysphere scale .5 translate y} object{mysphere scale .5 translate z} object{mysphere scale .5 translate -x} object{mysphere scale .5 translate -y} object{mysphere scale .5 translate -z} } #declare counter=counter+1; #end //Display the fractal mysphere