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