POV-Ray : Newsgroups : povray.general : Help with random object placement : Re: Help with random object placement Server Time
10 Aug 2024 11:17:59 EDT (-0400)
  Re: Help with random object placement  
From: Bill DeWitt
Date: 31 Dec 1999 18:38:27
Message: <386d3e73@news.povray.org>
"Alf Peake" <alf### [at] peake42freeservecouk> wrote in message
news:386d0131@news.povray.org...
> I had a similar type of problem with a tray of glass marbles. When pov 3.1
and arrays
> arrived I solved the problem with a pair of nested #while loops. The outer
loop generated
> a random position in the current element of the array, and the 2nd loop
checked that
> previous entries were more than one diameter away. An OK entry allowed the
outer loop to
> increment.
> Can't find my old source right now but will have another look if you don't
get a response.
>

    I played with this and although my debug statements seem to say that it
was working, I still got some coincident placements. I would like to see how
you did it, I must be overlooking something obvious. It seems like a simple
thing.


Post a reply to this message

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