POV-Ray : Newsgroups : povray.advanced-users : Random tree position, without duplicates? : Re: Random tree position, without duplicates? Server Time
20 Apr 2024 07:50:00 EDT (-0400)
  Re: Random tree position, without duplicates?  
From: Christian Froeschlin
Date: 4 Jun 2010 16:25:53
Message: <4c096151@news.povray.org>
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-2023 Persistence of Vision Raytracer Pty. Ltd.