POV-Ray : Newsgroups : povray.beta-test : beta.33 for Windows: Not Reproducible : Re: beta.33 for Windows: Not Reproducible Server Time
7 Jul 2024 06:34:07 EDT (-0400)
  Re: beta.33 for Windows: Not Reproducible  
From: clipka
Date: 7 Aug 2009 14:39:12
Message: <4a7c74d0@news.povray.org>
Thorsten Froehlich schrieb:
> clipka wrote:
> Well, what is the wave pattern in arches? There is a (global) method 
> that initiates all waves, but that would not be much different from 3.6. 
> Is the bug visible there, too?
> 
>     Thorsten

Same thing in 3.6.2, yes - I just checked.

In 3.7, I can track down the bug to a global variable "Number_Of_Waves", 
which is initialized to its default value (10) once at startup of the 
whole app, and then no more (I guess the same mechanism applies to 3.6). 
Any scene having a "number_of_waves" parameter will sort of change the 
default for the next scene to be rendered.

There's another potential problem with the waves initialization: The 
wave pattern data will always be initialized for 10 waves, no matter how 
high or low it is set by the user; for smaller values set in the scene 
this is no real problem, because it just accesses the first N waves; but 
higher values will lead to accesses beyond the actually allocated data 
block.

For the time being I'll change that to impose a maximum limit of 10 on 
number_of_waves (higher values were useless anyway), and store the 
actual number of waves in the scene data. But I guess it's worth 
thinking about moving the waves data into the thread completely. Global 
variables are ugly, and it's not really a huge amount of data.


(BTW, the problem should be reproducible in Unix as well, by setting up 
an animation that explicitly defines "number of waves" to something 
other than 10, but leaves it at the default for later frames; rendering 
the whole animation would then cause different results than rendering 
just the later frames.)


Post a reply to this message

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