POV-Ray : Newsgroups : povray.general : Height fields : Re: Height fields Server Time
10 Aug 2024 09:10:06 EDT (-0400)
  Re: Height fields  
From: Remco de Korte
Date: 20 Jan 2000 06:03:32
Message: <3886EAEB.6CD7DC3D@xs4all.nl>
Peter Popov wrote:
> 
> On Wed, 19 Jan 2000 20:21:21 -0500, Andrea Ryan <ary### [at] global2000net>
> wrote:
> 
> >Is there any way of finding the height of a height field at a given
> >point?
> >Brendan Ryan
> 
> You can do it in the official version but it's quite a heavier
> solution than using trace(). Convert the hf source picture to ppm,
> then use search/replace to replace all white space with commas, and
> then use the file i/o functions in POV to read it into a 2D array.
> 
> Peter Popov
> pet### [at] usanet
> ICQ: 15002700

I reckon you could use the updated TGAMosaic to do that for you.
Otherwise I have a similar little utility (less powerfull) that'll make
an INC file of an image, giving you all the data you need. 

Remco


Post a reply to this message

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