POV-Ray : Newsgroups : povray.beta-test : bug: select within select : Re: bug: select within select Server Time
4 Nov 2024 19:22:27 EST (-0500)
  Re: bug: select within select  
From: Thorsten Froehlich
Date: 1 Oct 2001 12:36:12
Message: <3bb89b7c$1@news.povray.org>

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

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