<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<title>DEM -> Raw</title>
<style>
<!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page Section1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-AU link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Formats are:<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>RAW = LLRAW (documented on the SL wiki) – terrible format best
avoided unless you want to have artists edit the files by hand.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>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)<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>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)<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>JPEG – exports a false-colour coloured heightmap similar to the
above. Same as the world map image.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>TER – Load-only, Terragen – 16bit precision.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>I personally recommend R32/F32 as most if not all terrain
editing software can understand it. <o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>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.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Regards,<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Adam<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<div>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>
<p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:
"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'> opensim-dev-bounces@lists.berlios.de
[mailto:opensim-dev-bounces@lists.berlios.de] <b>On Behalf Of </b>Diva Canto<br>
<b>Sent:</b> Friday, 23 May 2008 10:28 PM<br>
<b>To:</b> opensim-dev@lists.berlios.de<br>
<b>Subject:</b> [Opensim-dev] DEM -> Raw<o:p></o:p></span></p>
</div>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<p><span lang=EN-US style='font-family:"Calibri","sans-serif"'>Hi,</span><o:p></o:p></p>
<p><span lang=EN-US style='font-family:"Calibri","sans-serif"'>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?</span><o:p></o:p></p>
<p><span lang=EN-US style='font-family:"Calibri","sans-serif"'>Has anyone tried
to</span><span lang=EN-US> </span><span lang=EN-US style='font-family:"Calibri","sans-serif"'>produce
RAW format files from DEM files? (<a
href="http://en.wikipedia.org/wiki/USGS_DEM">http://en.wikipedia.org/wiki/USGS_DEM</a>)</span><o:p></o:p></p>
<p><span lang=EN-US style='font-family:"Calibri","sans-serif"'>Any info appreciated!</span><o:p></o:p></p>
<p><span lang=EN-US style='font-family:"Calibri","sans-serif"'>Thanks,</span><o:p></o:p></p>
<p><span lang=EN-US style='font-family:"Calibri","sans-serif"'>Diva / Crista</span><o:p></o:p></p>
</div>
</body>
</html>