POV-Ray : Newsgroups : povray.advanced-users : Generated Height Field <IN Pov> question Server Time
28 Jul 2024 18:14:51 EDT (-0400)
  Generated Height Field <IN Pov> question (Message 1 to 2 of 2)  
From: Stephen R  Phillips
Subject: Generated Height Field <IN Pov> question
Date: 18 Apr 2004 01:09:02
Message: <Xns94CF6824E2Ccybermans.pov.posts.@203.29.75.35>
I plan on generating a heighfield using the HF_Square macro.
I have a small problem, I have a series of objects I need to stick on the 
height field. I can compute there location but I need to change the objects 
elevation to meet the height fields. Is this possible or do I need to 
duplicate the macro in my code and preserve the array it creates for the 
height field instead?


Post a reply to this message

From: Mike Williams
Subject: Re: Generated Height Field <IN Pov> question
Date: 18 Apr 2004 02:09:07
Message: <RHQ4fGA+shgAFwoE@econym.demon.co.uk>
Wasn't it Stephen R. Phillips who wrote:
>I plan on generating a heighfield using the HF_Square macro.
>I have a small problem, I have a series of objects I need to stick on the 
>height field. I can compute there location but I need to change the objects 
>elevation to meet the height fields. Is this possible or do I need to 
>duplicate the macro in my code and preserve the array it creates for the 
>height field instead?

You can use trace() to project a ray vertically onto the heightfield
object to find the point of intersection.

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

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