POV-Ray : Newsgroups : povray.beta-test : strange recursion error : Re: strange recursion error Server Time
29 Jul 2024 20:22:51 EDT (-0400)
  Re: strange recursion error  
From: Geoff Reedy
Date: 19 Mar 2002 20:57:58
Message: <MPG.1701fd006c322296989680@news.povray.org>
In article <3c9786bf@news.povray.org>, jrg### [at] hotmailcom says...

> > POV 3.5 b 13 icl on WinNT Sp 6 PII 233 with 128 MB
> > then it is rendered fine. Any confirmation ?
> 
> Confirmed. This bug is breaking most of my newest scenes.
> Here's where I met it:
> 

It seems that the bug shows up when the function has fewer than the 
default 3 parameters.  Try your code like this instead:

> 
> #macro Interpolate (p1,p2,TT)
> #local p1x=p1.x;
> #local p1y=p1.y;
> #local p1z=p1.z;
> #local p2x=p2.x;
> #local p2y=p2.y;
> #local p2z=p2.z;
> 
> #local fx = function (T,a,b){p1x + T*(p2x-p1x)}
> #local fy = function (T,a,b){p1y + T*(p2y-p1y)}
> #local fz = function (T,a,b){p1z + T*(p2z-p1z)}
> 
> #local vec = <fx(TT,0,0),fy(TT,0,0),fz(TT,0,0)>;
> 
> vec
> #end
> 
> #local my_vector =
> Interpolate (<0,0,0>,<1,1,1>,0.5) ;
> 

This workaround fixes the original reporter's signature, and also fixes 
at least f_sqr in math.inc.  Now it is up to the developers to make a 
real fix for the bug.

--
Geoff Reedy                                                gre### [at] umredu


Post a reply to this message

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