POV-Ray : Newsgroups : povray.binaries.images : Flower generation macro test #3 : Re: Flower generation macro test #3 Server Time
31 Jul 2024 16:30:28 EDT (-0400)
  Re: Flower generation macro test #3  
From: Christian Froeschlin
Date: 12 Jul 2009 06:05:53
Message: <4a59b581$1@news.povray.org>
Another option is to generate them without collision in the
first place. Instead of placing them at random location, go
through a grid of points with twice the necessary spacing and
decide randomly whether to place an object (or semi-randomly,
you can control the probability using a pattern function).

To avoid too regular placing, you can then add some random
offset or turbulence to the grid position (which is why you
need more than the maximum spacing in the initial grid).


Post a reply to this message

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