POV-Ray : Newsgroups : povray.pov4.discussion.general : Suggest v4.0 drop global noise_generator. (yuqk R17 v0.6.11.0) : Re: Suggest v4.0 drop global noise_generator. (yuqk R17 v0.6.11.0) Server Time
9 Dec 2024 08:23:49 EST (-0500)
  Re: Suggest v4.0 drop global noise_generator. (yuqk R17 v0.6.11.0)  
From: William F Pokorny
Date: 29 Nov 2024 21:08:09
Message: <674a7389$1@news.povray.org>
On 11/29/24 09:18, Bald Eagle wrote:
> I had something bouncing around in the back of my head this morning, and since
> this thread concerns the PRNG, I'll drop this here.
> 
> If you look at my issue here:
> https://news.povray.org/web.650c19af5bb87ec31f9dae3025979125%40news.povray.org
> 
> this exposed what I believe to be a long-standing non-uniformity in the returned
> values from POV-Ray's built-in PRNG.
> 
> Have we taken a deep look at the values that the PRNG returns?
> 
> I was examining this from a color_map point of view way back, and I think it
> would be good to have something uniform/linear unless otherwise specified.
> 
> - BW
> 

Due the noise_generator changes in yuqk, I've been working on 
documentation which I think will help. See the attached text file.

I believe the noise you were trying to use is a smoothed noise which in 
addition to not being locally random at all, roughly follows a normal / 
Gaussian centered distribution over all values returned.

The yuqk fork has implemented a few different methods for uniform random 
noise in a range beyond what we can do with seed() and random() at parse 
time.

Bill P.


Post a reply to this message


Attachments:
Download 'ip_noise_generator.txt' (10 KB)

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