POV-Ray : Newsgroups : povray.general : random problem : Re: random problem Server Time
11 Aug 2024 19:39:42 EDT (-0400)
  Re: random problem  
From: ingo
Date: 18 May 1999 04:32:57
Message: <374117a9.0@news.povray.org>
Ahh, I see, thanks,


ingo
--
Met dank aan de muze met het glazen oog.

Nathan Kopp heeft geschreven in bericht <3740DC55.26A3866B@Kopp.com>...
>Macros work via text substitution.  Rmm is not really a function returning
>a number.
>
>Right now, this:
>    pigment {rgb <0.50,0.10,0.08>*Rmm(Min,Max,Stream)}
>
>becomes:
>    pigment {rgb <0.50,0.10,0.08>*Max+((Min-Max)*rand(Stream))}
>
>So, you need to put parentheses in the macro.  Change it to look like
>this:
>
>#macro Rmm(Min,Max,Stream)
>   (Max+((Min-Max)*rand(Stream)))
>#end //macro
>
>
>-Nathan


Post a reply to this message

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