Re: Runtime generation of contour lines

New Message Reply Date view Thread view Subject view Author view

Mario Veraart (rioj7++at++fel.tno.nl)
Fri, 30 Oct 1998 17:05:57 +0100 (MET)


> Does anybody have any ideas as to how I might generate contour lines at
> runtime from an exiting terrain model? I have several .flt terrain
> models that represent non-real-world geography and would like to generate
> a God's-eye-view model made up of contours for the terrain databases.
> Any ideas?

Use performer to take uniform distributed, rectangular grid,
samples of the height with 'pfNodeIsectSegs()'
Look if you want the height taken from the above or from below if
you don't want any terrain features to clutter the contourlines.
With this grid and a contour algorithm for triangle meshes construct
all the contour lines. There is enough literature about contour
algorithms. I have used one that was adapted by a collegue of mine.
When you have the contour lines you can draw them in the draw callback
as a kind of Head Up Display in the postdraw fase.

Mario Veraart


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Fri Oct 30 1998 - 08:07:59 PST

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.