POV-Ray : Newsgroups : povray.advanced-users : Trees on landscape--uneven distribution : Re: Trees on landscape--uneven distribution Server Time
29 Jul 2024 06:22:06 EDT (-0400)
  Re: Trees on landscape--uneven distribution  
From: Christopher James Huff
Date: 24 Nov 2002 18:54:27
Message: <chrishuff-2A7AFE.18515624112002@netplex.aussie.org>
In article <web.3de145fc81186a0c890025210@news.povray.org>,
 "John Haiducek" <c06### [at] usafaafmil> wrote:

> I'm trying to place trees on a landscape using the trace() function so
> they're only placed in view of the camera.  The script I have places most of
> the trees very close to the camera.  Does anyone know how to do this so I
> get an even distribution of trees, all within the camera's view?

I guess you are doing this by placing trees where the base is visible 
from the camera, this will never work correctly...many trees are visible 
without their bases being visible. Try placing the trees evenly on the 
landscape, only placing a tree when the top of the tree is visible. 
(Where there is no intersection on a ray between the top of the tree and 
the camera, maybe also taking camera angle into account.) It would be 
easier to start with a even random distribution and "weed out" the ones 
that aren't visible.

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/


Post a reply to this message

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