POV-Ray : Newsgroups : povray.beta-test : bug: select within select : Re: bug: select within select Server Time
4 Nov 2024 19:14:56 EST (-0500)
  Re: bug: select within select  
From:
Date: 22 Oct 2001 05:54:18
Message: <s9p7ttk0cqadgpvrkjquu9r2c5tai77u6g@4ax.com>
On Mon, 1 Oct 2001 19:18:42 +0100, Mike Williams <mik### [at] nospamplease>
wrote:

> Wasn't it W?odzimierz ABX Skiba who wrote:
> > in my opionion it should evenly return 0, 1 and 2
> >
> > 0 - 0 times
> > 1 - 64161 times
> > 2 - 35839 times
>
> I confirm the numbers, but I don't think it's anything to do with the
> nesting of selects.
>
> If you change to noise generator 1, the numbers come out even. It looks
> to me like there's a subtlety in noise type 3 that causes
> f_noise3d(integer, integer, 0) to always be greater than 1/3.

Thanks for finding and pointing this.
I think there should be note withing documentation about
characteristic of noise generators.

> I really
> don't see that as being a problem because you shouldn't really expect
> noise3d to be a random number generator.

I don't expect. They are just good to make "random but constant"
mosaics in textures/pigments. :-)

> If you do the same thing, with the default noise generator, but without
> the "floor()"s, then the results are:-
>
> 0 - 13007 times
> 1 - 45476 times
> 2 - 41517 times

they are similiar to noise_generator 2 with floor() for args

> By the way, since you seem to like using "Interpolate()",

sorry. it's macro from standard "math.inc"

ABX


Post a reply to this message

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