POV-Ray : Newsgroups : povray.advanced-users : re HF heights : Re: re HF heights Server Time
30 Jul 2024 00:25:00 EDT (-0400)
  Re: re HF heights  
From: Christoph Hormann
Date: 1 Jul 2000 08:59:02
Message: <395DEB13.33C4FB6F@schunter.etc.tu-bs.de>
Margus Ramst wrote:
> 
[...]
> A basic method in MegaPOV would be to get a grid of height values (using trace)
> and start comparing: if a point is higher than all 8 points around it (or 5
> points at the edges, or 3 points in the corner) it is the top of a bump.
> Of course it's a bit more complicated if you want more control, e.g. only
> consider convexities above a certain scale as "bumps".
> 

That would produce quite a lot of points, because usual heightfields contain
quite a lot of local maxima.  

HF-Lab contains a function for something quite similar, namely filling up local
minima, source code (in C) can be found at:

http://www.best.com/~beale/

Christoph

--
Christoph Hormann <chr### [at] gmxde>
Homepage: http://www.schunter.etc.tu-bs.de/~chris/


Post a reply to this message

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