POV-Ray : Newsgroups : povray.advanced-users : Bug in POV3.5???? : Re: Bug in POV3.5???? Server Time
29 Jul 2024 10:25:58 EDT (-0400)
  Re: Bug in POV3.5????  
From: Jaap Frank
Date: 25 Jul 2002 17:52:08
Message: <3d407308@news.povray.org>
I've found the cause of this!
It's a problem with brackets.
If you use:

exp(-pow((x-PosX1/LndScpWidth)/(L1/LndScpWidth/4),2))
                                                           ^^
everything is fine, but if you put more brackets in it, for instance with:

exp(-pow((x-PosX1/LndScpWidth)/((L1*4+W1*3)/LndScpWidth/4),2))
                                                           ^^^^^^^^^^^^^^
then something goes wrong.
It has nothing to do with what's inside, for this goes wrong too:

exp(-pow((x-PosX1/LndScpWidth)/((L1)/LndScpWidth/4),2))
                                                           ^^^^
but

exp(-pow((x-PosX1/LndScpWidth)/(((L1)/LndScpWidth)/4),2))
                                                           ^ ^^^
^
is fine again.

The only thing I can think of is the parser. Somehow the brackets
cause something weird.

Jaap Frank.


Post a reply to this message

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