POV-Ray : Newsgroups : povray.advanced-users : Trees on landscape--uneven distribution : Re: Trees on landscape--uneven distribution Server Time
29 Jul 2024 06:15:48 EDT (-0400)
  Re: Trees on landscape--uneven distribution  
From: Mark Weyer
Date: 25 Nov 2002 11:30:53
Message: <3DE2527E.7E59A3A8@frege.mathematik.uni-freiburg.de>
> - Choose a basic probability p.
> [...]
> - Calculate the area A _OF THE IMAGE_ that the triangle P0-P1-P2 would
> [...]
> - Put a tree with probability p/A. Beware of division by zero.

I was previously in a hurry. Here is a more refined version:
Let A0 be the area of the image between three ,,adjacent'' rays.
Let d be the desired density of trees, i.e. in average there
should be one tree in an area of 1/d.

Then put a tree with probability d*dx*dy*A0/A, i.e. choose p=d*dx*dy*A0.

Regards,

  Mark


Post a reply to this message

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