POV-Ray : Newsgroups : povray.advanced-users : Random tree position, without duplicates? : Re: Random tree position, without duplicates? Server Time: 28 Sep 2020 21:10:35 GMT
  Re: Random tree position, without duplicates?  
From: Christian Froeschlin
Date: 4 Jun 2010 20:25:53
SharkD wrote:

> Is there a good way to, for instance, place a number of trees randomly 
> without having them overlap?

one possible way is to iterate over a grid of possible positions and
then deciding randomly or based on a distribution function whether this
particular cell should contain a tree. The actual tree position can
then be varied within the cell to avoid an obvious grid spacing.


Post a reply to this message

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