POV-Ray : Newsgroups : povray.general : Lorenz and Finite Server Time
5 Nov 2024 22:22:39 EST (-0500)
  Lorenz and Finite (Message 1 to 3 of 3)  
From: Rafal 'Raf256' Maj
Subject: Lorenz and Finite
Date: 31 Dec 2002 09:19:31
Message: <Xns92F59BA11E9Araf256com@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

From: Ian Hodge
Subject: Re: Lorenz and Finite
Date: 1 Jan 2003 16:00:01
Message: <3e1356d1@news.povray.org>
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] raf256com> wrote in message
news:Xns### [at] 204213191226...
> 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

From: Rafal 'Raf256' Maj
Subject: Re: Lorenz and Finite
Date: 1 Jan 2003 16:07:30
Message: <Xns92F6E0D053E29raf256com@204.213.191.226>
"Ian Hodge" <ian### [at] btinternetcom> wrote in
news:3e1356d1@news.povray.org 

> 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. 

I'm making a utility to expirement with Lorenz Fractals. Curent version is 
only for Win32 :( It ilustrates Lorenz and allows to change 4 parameters 
and see results in real-time, 3dSMax-style (3 + 1 view windows)

It's a *little* warmup before writting a 3d wireframe editor :) 
Program (Lorenz Editor) will be available at http://www.raf256.com in few 
days IMHO.

btw. why supersede option is disabled on news.povray.org ?

-- 
#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

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