POV-Ray : Newsgroups : povray.advanced-users : Need a script to randomly scatter objects vertically : Re: Need a script to randomly scatter objects vertically Server Time
25 Apr 2024 16:15:32 EDT (-0400)
  Re: Need a script to randomly scatter objects vertically  
From: Tor Olav Kristensen
Date: 21 Apr 2021 21:55:00
Message: <web.6080d64cc2ce34cb6d7cc5a589db30a9@news.povray.org>
"Norbert Kern" <nor### [at] t-onlinede> wrote:
>... I want
> to point to an old macro made by JRG (Jonathan Rafael Ghiglia) back in 2001 -
> his "clutter macro". Since I wasn't able to find the link on this server I
> include the macro here.
>...

Hi Norbert

I suspect that there is an error in JRG's Interpolate macro in the enclosed zip
file.

I would guess that it should return this expression:

    (P1 + (T - T1)/(T2 - T1)*(P2 - P1))

- instead of this one:

    (P1 + (T1 + T/(T2 - T1))*(P2 - P1))

--
Tor Olav
http://subcube.com
https://github.com/t-o-k


Post a reply to this message

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