POV-Ray : Newsgroups : povray.advanced-users : re HF heights Server Time
2 Nov 2024 05:18:28 EDT (-0400)
  re HF heights (Message 1 to 10 of 15)  
Goto Latest 10 Messages Next 5 Messages >>>
From: Mick Hazelgrove
Subject: re HF heights
Date: 1 Jul 2000 07:07:18
Message: <395dd0e6$1@news.povray.org>
Is there a way of finding the highest parts of a hf.  I don't just want
everything above a certain height but the top of every bump. Hope this is
clear.

Hope someone can help.

Mick


Post a reply to this message

From: Margus Ramst
Subject: Re: re HF heights
Date: 1 Jul 2000 08:14:38
Message: <395DD2C3.D88FF82B@peak.edu.ee>
Mick Hazelgrove wrote:
> 
> Is there a way of finding the highest parts of a hf.  I don't just want
> everything above a certain height but the top of every bump.

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".

-- 
Margus Ramst

Personal e-mail: mar### [at] peakeduee
TAG (Team Assistance Group) e-mail: mar### [at] tagpovrayorg


Post a reply to this message

From: Christoph Hormann
Subject: Re: re HF heights
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

From: Peter Popov
Subject: Re: re HF heights
Date: 1 Jul 2000 15:14:15
Message: <shgslso0akn9pcm58dlljbqg9sbgg5c03u@4ax.com>
On Sat, 1 Jul 2000 12:09:16 +0100, "Mick Hazelgrove"
<mic### [at] mhazelgrovefsnetcouk> wrote:

>Is there a way of finding the highest parts of a hf.  I don't just want
>everything above a certain height but the top of every bump. Hope this is
>clear.
>
>Hope someone can help.

In MegaPOV, you can use the slope pattern and give it a suitable color
map so as to only point out the peaks. Then you can use eval_pigment
to check against it and the place objects or whatever you like on the
'bumps'. Hope I made this clear enough.


Peter Popov ICQ : 15002700
Personal e-mail : pet### [at] usanet
TAG      e-mail : pet### [at] tagpovrayorg


Post a reply to this message

From: Tor Olav Kristensen
Subject: Re: re HF heights
Date: 1 Jul 2000 20:00:08
Message: <395E8575.78A398EF@online.no>
Mick Hazelgrove wrote:

> Is there a way of finding the highest parts of a hf.  I don't just want
> everything above a certain height but the top of every bump. Hope this is
> clear.
>
> Hope someone can help.

I believe this problem is a bit similar to a problem that is solved
by the source code I posted 13. May 2000 to the thread
"On Bezier splines" (by Peter Popov):

news://news.povray.org/391C9B3B.C63B6FC1%40online.no

I can explain how to use the code if you're interested.


Tor Olav
--
mailto:tor### [at] hotmailcom
http://www.crosswinds.net/~tok/tokrays.html


Post a reply to this message

From: Chris Huff
Subject: Re: re HF heights
Date: 1 Jul 2000 20:43:21
Message: <chrishuff-8F5AEE.19432801072000@news.povray.org>
In article <shgslso0akn9pcm58dlljbqg9sbgg5c03u@4ax.com>, Peter Popov 
<pet### [at] usanet> wrote:

> In MegaPOV, you can use the slope pattern and give it a suitable color
> map so as to only point out the peaks. Then you can use eval_pigment
> to check against it and the place objects or whatever you like on the
> 'bumps'. Hope I made this clear enough.

The eval_pigment function won't work with the slope pattern, because 
slope requires intersection information which isn't available(POV 
doesn't know you want to check it at that point on the surface of the 
object).
However, you could do an overhead view of the height field, and use 
eval_pigment on the resulting image_map...or emulate the slope pattern 
using the trace function.

-- 
Christopher James Huff - Personal e-mail: chr### [at] maccom
TAG(Technical Assistance Group) e-mail: chr### [at] tagpovrayorg
Personal Web page: http://homepage.mac.com/chrishuff/
TAG Web page: http://tag.povray.org/


Post a reply to this message

From: Peter Popov
Subject: Re: re HF heights
Date: 2 Jul 2000 00:11:08
Message: <30gtlsk8a4sijojb3m8s72v91kqao23h67@4ax.com>
On Sat, 01 Jul 2000 19:43:28 -0500, Chris Huff <chr### [at] maccom>
wrote:

>The eval_pigment function won't work with the slope pattern, because 
>slope requires intersection information which isn't available(POV 
>doesn't know you want to check it at that point on the surface of the 
>object).

That's a limitation I didn't think about. Thanks for putting me back
on track.

Peter Popov ICQ : 15002700
Personal e-mail : pet### [at] usanet
TAG      e-mail : pet### [at] tagpovrayorg


Post a reply to this message

From: Marc-Hendrik Bremer
Subject: Re: re HF heights
Date: 2 Jul 2000 05:38:19
Message: <395f0d8b@news.povray.org>
Wouldn't a gradient y pattern be even better to determine the highest part
of the Hf? Just give it a colour-map from black to white and check for the
brightest part (with eval_pattern)?

Marc-Hendrik


Post a reply to this message

From: ingo
Subject: Re: re HF heights
Date: 2 Jul 2000 06:40:16
Message: <8F6588BDCseed7@204.213.191.228>
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. 

If the base of your HF is an image you can use ImagInc by Remco de Korte 
to get a grid of values: http://www.xs4all.nl/~remcodek/pov.html . It 
turns an image into an INC file so you can use the RGB-data.

Ingo

-- 
Photography: http://members.home.nl/ingoogni/
Pov-Ray    : http://members.home.nl/seed7/


Post a reply to this message

From: Peter Popov
Subject: Re: re HF heights
Date: 2 Jul 2000 12:37:53
Message: <amrulsg5autt8s7q0ecldevitfrtt31cng@4ax.com>
On Sun, 2 Jul 2000 11:36:53 +0200, "Marc-Hendrik Bremer"
<Mar### [at] t-onlinede> wrote:

>Wouldn't a gradient y pattern be even better to determine the highest part
>of the Hf? Just give it a colour-map from black to white and check for the
>brightest part (with eval_pattern)?

This would only determine the global maximum and not all the local
maxima.


Peter Popov ICQ : 15002700
Personal e-mail : pet### [at] usanet
TAG      e-mail : pet### [at] tagpovrayorg


Post a reply to this message

Goto Latest 10 Messages Next 5 Messages >>>

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