POV-Ray : Newsgroups : povray.advanced-users : Generated Height Field <IN Pov> question : Re: Generated Height Field <IN Pov> question Server Time
28 Jul 2024 20:25:56 EDT (-0400)
  Re: Generated Height Field <IN Pov> question  
From: Mike Williams
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.