<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[World Machine Heightmap Floatingpoint Output]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich versuche gerade mit World Machine Terrains zu erstellen und will die jetzt auf die Platte als Heightmap speichern. Als Optionen habe ich: RAW16 und RAW-FP32 - ich interpretiere das als: Ein Stream von 16Bit Höhenwerten und ein Stream von 32Bit Floating Point Werten.</p>
<p>Meine Frage: Wie lese ich so eine Datei mit C++ in ein Array ein?</p>
<p>Würde das z.B. bei der RAW-FP32 so gehen?</p>
<pre><code class="language-cpp">std::ifstream Stream(&quot;datei.foo&quot;, std::ios::binary);
float heightData = new float[NUM]; 
Stream.read( (float*)heightData, NUM);
</code></pre>
<p>Und wie sieht das mit 16Bit RAW aus? Nehm ich da einfach unsigned short?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/204411/world-machine-heightmap-floatingpoint-output</link><generator>RSS for Node</generator><lastBuildDate>Thu, 08 Oct 2026 14:43:28 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/204411.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 02 Feb 2008 23:55:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to World Machine Heightmap Floatingpoint Output on Sat, 02 Feb 2008 23:55:40 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich versuche gerade mit World Machine Terrains zu erstellen und will die jetzt auf die Platte als Heightmap speichern. Als Optionen habe ich: RAW16 und RAW-FP32 - ich interpretiere das als: Ein Stream von 16Bit Höhenwerten und ein Stream von 32Bit Floating Point Werten.</p>
<p>Meine Frage: Wie lese ich so eine Datei mit C++ in ein Array ein?</p>
<p>Würde das z.B. bei der RAW-FP32 so gehen?</p>
<pre><code class="language-cpp">std::ifstream Stream(&quot;datei.foo&quot;, std::ios::binary);
float heightData = new float[NUM]; 
Stream.read( (float*)heightData, NUM);
</code></pre>
<p>Und wie sieht das mit 16Bit RAW aus? Nehm ich da einfach unsigned short?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1448307</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1448307</guid><dc:creator><![CDATA[Heightmapper]]></dc:creator><pubDate>Sat, 02 Feb 2008 23:55:40 GMT</pubDate></item><item><title><![CDATA[Reply to World Machine Heightmap Floatingpoint Output on Sun, 03 Feb 2008 00:03:41 GMT]]></title><description><![CDATA[<p>Heightmapper schrieb:</p>
<blockquote>
<p>Nehm ich da einfach unsigned short?</p>
</blockquote>
<p>typedef!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1448311</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1448311</guid><dc:creator><![CDATA[Entenwickler]]></dc:creator><pubDate>Sun, 03 Feb 2008 00:03:41 GMT</pubDate></item></channel></rss>