|
![](/i/fill.gif) |
In article <web.3de145fc81186a0c890025210@news.povray.org>,
"John Haiducek" <c06### [at] usafa af mil> 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] earthlink net>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tag povray org
http://tag.povray.org/
Post a reply to this message
|
![](/i/fill.gif) |