POV-Ray : Newsgroups : povray.advanced-users : Either pov or Greg fails at simple addition : Re: Either pov or Greg fails at simple addition Server Time
29 Jul 2024 18:23:51 EDT (-0400)
  Re: Either pov or Greg fails at simple addition  
From: Greg M  Johnson
Date: 26 Feb 2001 09:18:33
Message: <3A9A6455.873339CD@my-dejanews.com>
"Greg M. Johnson" wrote:

> #macro rdr()
> (rand(RRR)-0.5)+(rand(RRR)-0.5)+(rand(RRR)-0.5)+(rand(RRR)-0.5)
> #end

If you replace that macro with this one, the world returns to normal.
WHY!?  Is there an error in what povray (note: using mega 0.6) does with
parens???

// replace with this macro
#macro rdr()
//(rand(RRR)-0.5)+(rand(RRR)-0.5)+(rand(RRR)-0.5)+(rand(RRR)-0.5)
rand(RRR)+rand(RRR)+rand(RRR)+rand(RRR)-2
#end


Post a reply to this message

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