POV-Ray : Newsgroups : povray.advanced-users : Heightfields question Server Time
1 Nov 2024 05:23:15 EDT (-0400)
  Heightfields question (Message 1 to 3 of 3)  
From: Fidel viegas
Subject: Heightfields question
Date: 19 Nov 2002 09:04:17
Message: <B9FFF425.70C4%fidel.viegas@artrecognition.co.uk>
Hello guys, is there a way of checking the height of a heightfield at an
(x,z) point?

Thanks in advance

Fidel.


Post a reply to this message

From: Johannes Dahlstrom
Subject: Re: Heightfields question
Date: 19 Nov 2002 09:44:25
Message: <3dda4e49@news.povray.org>
Fidel viegas wrote:

> Hello guys, is there a way of checking the height of a heightfield at an
> (x,z) point?
> 
> Thanks in advance
> 
> Fidel.

The trace() function does this, among a multitude of other things. 
Basically, it tests a ray against an object and returns the nearest 
intersection point (and optionally the normal, too). Check the docs for 
more info.


Post a reply to this message

From: Fidel viegas
Subject: Re: Heightfields question
Date: 19 Nov 2002 09:55:30
Message: <BA000024.70E3%fidel.viegas@artrecognition.co.uk>
in article 3dda4e49@news.povray.org, Johannes Dahlstrom at
sad### [at] tkukoulufi wrote on 19/11/02 2:42 pm:

> Fidel viegas wrote:
> 
>> Hello guys, is there a way of checking the height of a heightfield at an
>> (x,z) point?
>> 
>> Thanks in advance
>> 
>> Fidel.
> 
> The trace() function does this, among a multitude of other things.
> Basically, it tests a ray against an object and returns the nearest
> intersection point (and optionally the normal, too). Check the docs for
> more info.

Thanks. I'll have a look at it.

All the best

Fidel.


Post a reply to this message

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