|
![](/i/fill.gif) |
I am wondering of there is a way to use a height field to position objects.
For example, I would like to place glows slighty above an undulating hf.
Here is a
visual representation:
O
___|____ O O
___________
|__|___ O __________|________|
|___|_____|
The circles are where the glows would appear. I would like to do something
like use the hf height to modify the glow height. Maybe <somex,
hf+0.25,somez>
Is this possible?
Post a reply to this message
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
Patrick Dugan wrote:
>
> I am wondering of there is a way to use a height field to position objects.
With megapov you can use 'trace()' or 'hf_height_at()', the second one
will no more be supported in Povray 3.5 btw.
Christoph
--
Christoph Hormann <chr### [at] gmx de>
IsoWood include, radiosity tutorial, TransSkin and other
things on: http://www.schunter.etc.tu-bs.de/~chris/
Post a reply to this message
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
It is possible in MegaPOV, but in the official version you would have to
use an external program to get the data.
In MegaPOV: Use the trace() function, (assuming your height field is in
the xz plane), use -y as the direction, and use a point well above the
height field as the ray starting point. You may want to check the normal
to see if the height field was really hit, the normal will be < 0, 0, 0>
if no intersection was found.
It would also be possible to use the hf_height_at() function, but that
would be a bad idea, because it isn't as versatile and will not be
supported in the future.
--
Christopher James Huff
Personal: chr### [at] mac com, http://homepage.mac.com/chrishuff/
TAG: chr### [at] tag povray org, http://tag.povray.org/
<><
Post a reply to this message
|
![](/i/fill.gif) |