[Opensim-dev] DEM -> Raw

Frisby, Adam adam at deepthink.com.au
Sat May 24 21:23:59 UTC 2008


I'll send a copy over - it's very proof-of-concept code though. I've
done very little testing on it.

 

My email is my firstname at deepthink.com.au

 

Adam

 

 

From: opensim-dev-bounces at lists.berlios.de
[mailto:opensim-dev-bounces at lists.berlios.de] On Behalf Of Diva Canto
Sent: Saturday, 24 May 2008 5:21 PM
To: opensim-dev at lists.berlios.de
Subject: Re: [Opensim-dev] DEM -> Raw

 

I'd love to have a beta copy of your library. Does it import directly
from USGS DEM files into OpenSim, as if it were just another terrain
format?

What is the difference between R32 and F32?

 

(Sorry for the spam to the mailing list, but I don't know Adam's email
address)

 

From: opensim-dev-bounces at lists.berlios.de
[mailto:opensim-dev-bounces at lists.berlios.de] On Behalf Of Frisby, Adam
Sent: Saturday, May 24, 2008 12:32 PM
To: opensim-dev at lists.berlios.de
Subject: Re: [Opensim-dev] DEM -> Raw

 

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/fd5cbcbb/attachment-0001.html>


More information about the Opensim-dev mailing list