[Opensim-dev] DEM -> Raw

Frisby, Adam adam at deepthink.com.au
Sat May 24 19:32:22 UTC 2008


Formats are:

 

RAW = LLRAW (documented on the SL wiki) - terrible format best avoided
unless you want to have artists edit the files by hand.

R32/F32 - float[256,256] - read directly into/out of the heightmap with
a conversion to/from doubles (we store all intermediary values as
doubles internally, but save to/from files and DBs in single precision)

BMP, PNG, GIF, WMF - saves to/from 256 colour grayscale image, uses IIRC
a scale from 1-128m so each shade is 0.5m (may be 1-511, I forget. Test.
Only really for exporting, importing is going to be lossy)

JPEG - exports a false-colour coloured heightmap similar to the above.
Same as the world map image.

TER - Load-only, Terragen - 16bit precision.

 

I personally recommend R32/F32 as most if not all terrain editing
software can understand it. 

 

Re: USGS DEM (Important distinction as there are several varieties of
DEM, including JDEM, EUDEM, etc) - I have been working on a supplemental
terrain library for OpenSim which has support for USGS DEM files (and a
variety of other more esoteric formats), however it is highly highly
untested - use at own risk. Contact me if you want a beta copy.

 

Regards,

 

Adam

 

From: opensim-dev-bounces at lists.berlios.de
[mailto:opensim-dev-bounces at lists.berlios.de] On Behalf Of Diva Canto
Sent: Friday, 23 May 2008 10:28 PM
To: opensim-dev at lists.berlios.de
Subject: [Opensim-dev] DEM -> Raw

 

Hi,

I have a couple of questions about terrains. Where can I get more
information about these raw formats that OpenSim understands? I tried
Googling, but couldn't really figure it out. Are these 32-bit floating
points, one per what?

Has anyone tried to produce RAW format files from DEM files?
(http://en.wikipedia.org/wiki/USGS_DEM)

Any info appreciated!

Thanks,

Diva / Crista

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://opensimulator.org/pipermail/opensim-dev/attachments/20080524/a5ca888c/attachment-0001.html>


More information about the Opensim-dev mailing list