POV-Ray : Newsgroups : povray.binaries.images : Digital Elevation Model-grandCanyon : Re: Digital Elevation Model-grandCanyon Server Time
19 May 2024 19:07:08 EDT (-0400)
  Re: Digital Elevation Model-grandCanyon  
From: Verm
Date: 22 Jan 2009 08:09:51
Message: <4978701f$1@news.povray.org>
alphaQuad wrote:
> DEM2POV v1.2a
> 
> Converts USGS Digital Elevation Model data files to tga height-field

Heh - I wish I'd found that a couple of weeks ago :-)

I couldn't find anything that could convert hgt files so I hacked a 
quick java program to convert hgt to pgm. All my program needed to do 
was add the PGM header as otherwise the formats are the same.

It would have been fairly quick but it turned out that POV-Ray is very 
fussy about what type of whitespaces you use in the pgm header gah.
Pov seems to expect you to use newlines everywhere except between the 
width and height (where you should use a space), but I didn't know this 
so at first I just used spaces everywhere.


Post a reply to this message

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