<?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[OBJ-Fileformat - denkanstoß zum auslesen der daten]]></title><description><![CDATA[<p>hallo freunde!</p>
<p>ich will aus einem *.obj file (wavefront maya) die geometrie auslesen und habe schon die spezifikation des formats gefunden. und zwar hier:</p>
<p><a href="http://www.fileformat.info/format/wavefrontobj/" rel="nofollow">http://www.fileformat.info/format/wavefrontobj/</a></p>
<p>hat jemand für mich denkantstöße, wie ich am besten vorgehen sollte? am besten so einfach wie möglich, ist nur just for fun. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /> später kann ich das ja neuschreiben. will nur das prinzip verstehen.</p>
<p>schritt 1 ist natürlich das file mit fopen() zu öffnen. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /> wie gehts weiter?</p>
<p>gruß<br />
snikkers</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/232759/obj-fileformat-denkanstoß-zum-auslesen-der-daten</link><generator>RSS for Node</generator><lastBuildDate>Fri, 25 Sep 2026 05:07:40 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/232759.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 26 Jan 2009 19:50:42 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to OBJ-Fileformat - denkanstoß zum auslesen der daten on Mon, 26 Jan 2009 19:50:42 GMT]]></title><description><![CDATA[<p>hallo freunde!</p>
<p>ich will aus einem *.obj file (wavefront maya) die geometrie auslesen und habe schon die spezifikation des formats gefunden. und zwar hier:</p>
<p><a href="http://www.fileformat.info/format/wavefrontobj/" rel="nofollow">http://www.fileformat.info/format/wavefrontobj/</a></p>
<p>hat jemand für mich denkantstöße, wie ich am besten vorgehen sollte? am besten so einfach wie möglich, ist nur just for fun. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /> später kann ich das ja neuschreiben. will nur das prinzip verstehen.</p>
<p>schritt 1 ist natürlich das file mit fopen() zu öffnen. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /> wie gehts weiter?</p>
<p>gruß<br />
snikkers</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1652844</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1652844</guid><dc:creator><![CDATA[snik]]></dc:creator><pubDate>Mon, 26 Jan 2009 19:50:42 GMT</pubDate></item><item><title><![CDATA[Reply to OBJ-Fileformat - denkanstoß zum auslesen der daten on Mon, 26 Jan 2009 19:57:17 GMT]]></title><description><![CDATA[<p>Schon falsch. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
<p>In C++ nimmst du da eher einen ifstream..</p>
<p>Und dann einfach öffnen und der Spezifikation entsprechend einlesen..<br />
Ist ja alles nur Text..</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1652847</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1652847</guid><dc:creator><![CDATA[drakon]]></dc:creator><pubDate>Mon, 26 Jan 2009 19:57:17 GMT</pubDate></item><item><title><![CDATA[Reply to OBJ-Fileformat - denkanstoß zum auslesen der daten on Mon, 26 Jan 2009 20:11:29 GMT]]></title><description><![CDATA[<p>kannst du mir bitte in etwa erklären, wie ich das mache? <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /> paar code-snippets wären super. migriere z.Z von php/perl nach c++ und kenne noch nicht so viel von c++.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1652858</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1652858</guid><dc:creator><![CDATA[snik]]></dc:creator><pubDate>Mon, 26 Jan 2009 20:11:29 GMT</pubDate></item><item><title><![CDATA[Reply to OBJ-Fileformat - denkanstoß zum auslesen der daten on Mon, 26 Jan 2009 20:22:08 GMT]]></title><description><![CDATA[<p>Hmm. Du würdest besser dran tun ein gutes C++ Buch zu lesen. Try/Error ist keine gute Wahl eine Programmiersprache zu lernen. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /> (vor allem nicht C++)</p>
<pre><code class="language-cpp">#include &lt;ifstream&gt;
...
std::ifstream in (&quot;file.obj&quot;);
char token;
vec3d vector;
in &gt;&gt; token;
if ( token == 'v' )
    in &gt;&gt; vector;
</code></pre>
<p>So könnte das in etwa aussehen. Natürlich musst du das anpassen, dass du eine Schleife darauf anwenden kannst und vec3d musst du auch noch zuerst definieren oder das irgendwie anderst einlesen. Und irgendwie speichern musst du das ganze auch noch. (Das wäre dann ein Fall für die Standardcontainer). (Behandlung von Kommentaren usw. musst du auch noch hinzufügen..)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1652866</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1652866</guid><dc:creator><![CDATA[drakon]]></dc:creator><pubDate>Mon, 26 Jan 2009 20:22:08 GMT</pubDate></item></channel></rss>