POV-Ray : Newsgroups : povray.unofficial.patches : Any way to use a height field to position objects? Server Time
1 Nov 2024 11:13:32 EDT (-0400)
  Any way to use a height field to position objects? (Message 1 to 3 of 3)  
From: Patrick Dugan
Subject: Any way to use a height field to position objects?
Date: 8 Dec 2000 14:05:57
Message: <3a313115@news.povray.org>
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

From: Christoph Hormann
Subject: Re: Any way to use a height field to position objects?
Date: 8 Dec 2000 14:14:16
Message: <3A313308.40AA5531@gmx.de>
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] gmxde>
IsoWood include, radiosity tutorial, TransSkin and other 
things on: http://www.schunter.etc.tu-bs.de/~chris/


Post a reply to this message

From: Chris Huff
Subject: Re: Any way to use a height field to position objects?
Date: 8 Dec 2000 15:06:59
Message: <chrishuff-8F3864.15074808122000@news.povray.org>
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] maccom, http://homepage.mac.com/chrishuff/
TAG: chr### [at] tagpovrayorg, http://tag.povray.org/

<><


Post a reply to this message

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