POV-Ray : Newsgroups : povray.general : Help with random object placement : Re: Help with random object placement Server Time
10 Aug 2024 11:26:02 EDT (-0400)
  Re: Help with random object placement  
From: Bill DeWitt
Date: 28 Dec 1999 11:40:13
Message: <3868e7ed@news.povray.org>
I don't know yet if it can be done with some of Povray's new features, but
what you might try is using your #while loop to build an #array, then have
it check each new value against the previous array values, then try again if
it is within a range of any previous number.

"Ryan Twitchell" <try### [at] rochesterrrcom> wrote in message
news:3868e6b4@news.povray.org...
> Hello,
>  For the current project I'm working on (see post 'More mushies' in
p.b.i),
> I've put a lot of small mushrooms around the base of some larger ones.
This
> was done using a while loop to place them all randomly. The problem is,
some
> of them intersect with the stems of the larger mushrooms and also with
> themselves. Can anyone here suggest a way to place them (semi) randomly
> without this happening?
>
> Thanks,
>  Ryan Twitchell


Post a reply to this message

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