POV-Ray : Newsgroups : povray.newusers : height field values? : Re: height field values? Server Time
31 Jul 2024 02:30:13 EDT (-0400)
  Re: height field values?  
From: hughes, b 
Date: 28 Feb 2003 17:46:24
Message: <3e5fe6c0$1@news.povray.org>
"Bill Hails" <bil### [at] europeyahoo-inccom> wrote in message
news:3e5fdce5@news.povray.org...
> Hi. I'm sorry if this is a FAQ, but I can't find anything
> in the docs.
>
> If I use a height field for a landscape, is there
> any way I can randomly place objects on the surface,
> or add grass that follows the height field?

You could look up keyword 'trace' in the Scene Help if you have POV 3.5, and
check out the includes\rand.inc too.

If you have version 3.1 of POV-Ray and MegaPOV 0.7 there is a hf_height_at
feature made specifically for returning points on the surface of a height
field. There are four trace examples in the folder scenes\language so you
might be able to learn something from those. An alternative would be to
search the newsgroups; easy to do from the web http://news.povray.org/
(you'll need to click through to set up a cookie if your first time in).
There have been plenty of these HF object placement scenes done before.


Post a reply to this message

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