|
![](/i/fill.gif) |
I have done the same thing as you and when I run my macro with the parameter
values you set I get an error too. By putting in a few #debugs it appears
that things blow up around step 22. If you reduce ParDt things work fine.
Hope this helps.
Ian
"Rafal 'Raf256' Maj" <raf### [at] raf256 com> wrote in message
news:Xns### [at] 204 213 191 226...
> Hello,
> i'm trying to make Lorenz Fractal, and I have an error/warning
> "Reallocating finte to ...." and a moment after that Pov crashes (WinXP).
>
> I ques that my algorithm is going out-of-range and Pov is trying to hmm
> increase maximum_distance or something ?
>
> Btw. what was this algorithm? I used id a long time ago, but now I have
> problems recreating it, what is wrong with this code :
>
> #local X=1; #local Y=1; #local Z=1;
> #local ParA=-1.3; #local ParB=2.3; #local ParC=1.4;
> #local ParDt = 0.54;
>
> #local T=0; #while (T<2000)
> #local NX = X + (-ParA*X*ParDt) + (ParA*Y*ParDt);
> #local NY = Y + ( ParB*X*ParDt) - ( Y*ParDt) - (Z*X*ParDt);
> #local NZ = Z + (-ParC*Z*ParDt) + (X*Y*ParDt);
> #if (T>0)
> sphere { <X,Y,Z>*5 .3 }
> #end
> #local X=NX; #local Y=NY; #local Z=NZ;
> #local T=T+1; #end
>
> (ParA=-1.3 reproduces this error)
>
> --
> #macro
g(U,V)(.4*abs(sin(9*sqrt(pow(x-U,2)+pow(y-V,2))))*pow(1-min(1,(sqrt(
> pow(x-U,2)+pow(y-V,2))*.3)),2)+.9)#end#macro p(c)#if(c>1)#local
l=mod(c,100
> );g(2*div(l,10)-8,2*mod(l,10)-8)*p(div(c,100))#else 1#end#end
light_source{
> y 2}sphere{z*20
9pigment{function{p(26252423)*p(36455644)*p(66656463)}}}//M
Post a reply to this message
|
![](/i/fill.gif) |