A Rossler Lorenz fusion.
-Animation by Timothy Jones
#include "stdio.h" #include "stdlib.h" #include "math.h" int main(int argc,char **argv) { FILE* fp; fp = fopen(argv[1],"w"); int i=0; int N=atoi(argv[1])+1000; double x0,y0,z0,x1,y1,z1; double h = 0.005; double a = 10.0; double b = 28.0; double c = 8.0 / 3.0; double aa=0.2; double bb=0.2; double cc=5.7; x0 = 0.1; y0 = 0; z0 = 0; for (i=0;i1000) fprintf(fp,"Sp(%f, %f, %f, 0.5,1) \n",x0,y0,z0); } // double X = x0 - 1*sin(1.0*N/100); // double Y = y0 + 1.4 + 1*sin(1.0*N/100); ; // double Z = z0 + 10*sin(1.0*N/100)*sin(1.0*N/100) + 0.1; // fprintf(fp, "camera {location <%f, %f, %f> look_at <%f, %f,%f>}\n",X,Y,Z, x0,y0,z0); }
Output_File_Type=N Width=500 Height=500 Quality=9 Antialias=on Antialias_Threshold=0.001 Initial_Frame=1 Final_Frame=700 Initial_Clock=0 Final_Clock=40
#include "colors.inc" #include "textures.inc" light_source{<90,200,-150> color White*0.7} light_source{<-60, 100,100> color Gold*0.7} background { // color rgb <0.3,0,0> color rgb <0,0,0> } #macro Sp(x0,y0,z0,rad,col) sphere {, rad pigment{ rgb<0.7,1,1>} // pigment { rgb <0.7,0.9,0.7> } finish { reflection .7 phong .6 } } #end camera {location look_at <0, 0,0>}
#> g++ -o loross loross.c #> ./loross 50000 #> cat temp.pov > 50000.pov #> cat 50000 >> 50000.pov #> povray lr.ini 50000.pov Display=False