|
|
Skiba <abx### [at] babilonorg> wrote:
> it looks like select inside select not work
>
> look at the function
>
> #local test=function{
> select(
> f_noise3d(floor(x),floor(y),0)-(1/3),
> 0,
> select(
> f_noise3d(floor(y),floor(x),0)-(1/2),
> 1,
> 2
> )
> )
> }
>
> in my opionion it should evenly return 0, 1 and 2
>
> but I have tested this 100.000 with differents seeds and random points
> with script from the end of this post and it returned
>
> 0 - 0 times
> 1 - 64161 times
> 2 - 35839 times
>
> anybody can confirm ?
Do you by any chance have a _simpler_ version of this function? Or does it
require f_noise3d to show the problem or will any nested select show the
problem?
Thorsten
Post a reply to this message
|
|