POV-Ray : Newsgroups : povray.general : Height fields : Re: Height fields Server Time
10 Aug 2024 09:11:02 EDT (-0400)
  Re: Height fields  
From: Margus Ramst
Date: 19 Jan 2000 21:00:45
Message: <38866CC4.D79081D@peak.edu.ee>
Not in official POV. You can however do it with the trace() function in the
Superpatch and MegaPov.
The syntax is trace(Object,Point,Direction,[Normal])
The function traces a 'ray' from a specified point in a specified direction and
repots the intersection point (if any) with the specified object. Optionally, it
can also return the surface normal at this point (see patch documentation for
details).
Now, from the XZ coordinates of the desired point, trace straight up towards the
HF, and you get the height at these coordinates.

Margus

Andrea Ryan wrote:
> 
> Is there any way of finding the height of a height field at a given
> point?
> Brendan Ryan


Post a reply to this message

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