POV-Ray : Newsgroups : povray.general : Height field to topographic map? : Re: Height field to topographic map? Server Time
19 Nov 2024 11:37:24 EST (-0500)
  Re: Height field to topographic map?  
From: Ron Parker
Date: 5 Mar 2002 11:12:29
Message: <slrna89rje.o1p.ron.parker@fwi.com>
On 5 Mar 2002 10:14:11 -0500, Ron Parker wrote:
> On Tue, 05 Mar 2002 09:59:02 +0200, Vahur Krouverk wrote:
>> Mark Wagner wrote:
>>> 
>>> I'm looking for a program that will take a heightfield image that I've
>>> created and turn it into a contour map.  I've found GRASS, but it seems a
>>> bit overkill for the job, and it's a 17 MB download.
>>> 
>> Won't POV-Ray be suitable? if you render heightfield orthographically
>> from top and create texture map accordingly to height?
> 
> That technique has a tendency to make fat contour lines where the slope is 
> gentle.

I had a great thought on this: just use the slope pattern to select a 
suitably narrow or wide gradient pattern!  It'd be ugly code, but it'd 
kinda work.

--
#macro R(L P)sphere{L __}cylinder{L P __}#end#macro P(_1)union{R(z+_ z)R(-z _-z)
R(_-z*3_+z)torus{1__ clipped_by{plane{_ 0}}}translate z+_1}#end#macro S(_)9-(_1-
_)*(_1-_)#end#macro Z(_1 _ __)union{P(_)P(-_)R(y-z-1_)translate.1*_1-y*8pigment{
rgb<S(7)S(5)S(3)>}}#if(_1)Z(_1-__,_,__)#end#end Z(10x*-2,.2)camera{rotate x*90}


Post a reply to this message

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