POV-Ray : Newsgroups : povray.general : Strange Attractors, rendering time & memory usage : Strange Attractors, rendering time & memory usage Server Time
2 Nov 2024 11:24:53 EDT (-0400)
  Strange Attractors, rendering time & memory usage  
From: Manuel Kasten
Date: 13 Mar 2004 05:29:52
Message: <4052e2a0@news.povray.org>
Hello,

the following code renders "Strange Attractors", its derived from Paul Bourkes
scc entry. Has anybody got an idea how to reduce memory usage or parsing
times on that?

Thank you,
Manuel Kasten




//------------------------------------------------------------------------
//Quality 0: Preview            ~2.5 min @ Athlon XP 1900+ 512 MB Ram
//+w1024 +h1024 +a0.0 +r5 +fn       Memory use: ~30MB

//Quality 1: Final              ~15 min @ Athlon XP 1900+ 512 MB Ram
//+w1024 +h1024 +a0.0 +r5 +fn     Memory use: ~400MB

//Quality 2: Bigfinal           ~35 min @ Athlon XP 1900+ 512 MB Ram
//+w5000 +h5000 +a0.0 +r5 +fn     Memory use: ~400MB

#declare quality=0;

#declare a=1.5;
#declare b=1.84;
#declare c=-2;
#declare d=-1.8;




camera { right x }
#declare x1=0;
#declare y1=0;
#declare nul=1000;
#if(quality=0)
  #declare i=100000;   //Preview
#else
  #declare i=2000000;  //Final
#end


#while(nul>0)
   #declare x1=sin(a*y1)-cos(b*x1);
   #declare y1=sin(c*x1)-cos(d*y1);
   #declare nul=nul-1;
#end


union {

   #while(i>0)
      #declare x2=sin(a*y1)-cos(b*x1);
      #declare y2=sin(c*x1)-cos(d*y1);
      #if(quality=0)
         sphere{<x2,y2,4.3>, 0.002}     //Preview
      #else if(quality=1)
         sphere{<x2,y2,4.3>, 0.001}     //Final
      #else if(quality=2)
         sphere{<x2,y2,4.3>, 0.0005}    //Bigfinal
      #end
      #declare x1 = x2 ;
      #declare y1 = y2 ;
      #declare i  = i-1;
   #end

pigment { rgb 1 }
finish { ambient 1 }

}


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.