<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Wavefront Obj Mesh Loader</title>
	<atom:link href="http://www.limegarden.net/2010/03/02/wavefront-obj-mesh-loader/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.limegarden.net/2010/03/02/wavefront-obj-mesh-loader/</link>
	<description>Personal site of Wouter Lindenhof</description>
	<lastBuildDate>Sun, 12 Feb 2012 16:01:11 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: A Tiny Wavefront Object Loader &#8211; Part I &#124; Benjamin Sommer Weblog</title>
		<link>http://www.limegarden.net/2010/03/02/wavefront-obj-mesh-loader/comment-page-1/#comment-790</link>
		<dc:creator>A Tiny Wavefront Object Loader &#8211; Part I &#124; Benjamin Sommer Weblog</dc:creator>
		<pubDate>Sun, 12 Feb 2012 16:01:11 +0000</pubDate>
		<guid isPermaLink="false">http://limegarden.net/2010/03/02/wavefront-obj-mesh-loader/#comment-790</guid>
		<description>[...] One unique vertex being reused by several faces should only be stored in one place. Take the post by limegarden.net, where a triangular mesh is returned &#8211; a mesh where all vertex, normal and texture [...]</description>
		<content:encoded><![CDATA[<p>[...] One unique vertex being reused by several faces should only be stored in one place. Take the post by limegarden.net, where a triangular mesh is returned &#8211; a mesh where all vertex, normal and texture [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wouter Lindenhof</title>
		<link>http://www.limegarden.net/2010/03/02/wavefront-obj-mesh-loader/comment-page-1/#comment-684</link>
		<dc:creator>Wouter Lindenhof</dc:creator>
		<pubDate>Mon, 31 Jan 2011 13:03:26 +0000</pubDate>
		<guid isPermaLink="false">http://limegarden.net/2010/03/02/wavefront-obj-mesh-loader/#comment-684</guid>
		<description>Yep, the wavefront obj file format (and the accompanying wavefront mtl format) have many more capabilities then the above loader supports. The above loader only supports a few simple things. 

However for what I needed the above was good enough. Hmm... Might be fun to write an fully capable OBJ mesh loader.</description>
		<content:encoded><![CDATA[<p>Yep, the wavefront obj file format (and the accompanying wavefront mtl format) have many more capabilities then the above loader supports. The above loader only supports a few simple things. </p>
<p>However for what I needed the above was good enough. Hmm&#8230; Might be fun to write an fully capable OBJ mesh loader.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexander Smirnov</title>
		<link>http://www.limegarden.net/2010/03/02/wavefront-obj-mesh-loader/comment-page-1/#comment-683</link>
		<dc:creator>Alexander Smirnov</dc:creator>
		<pubDate>Mon, 31 Jan 2011 09:44:21 +0000</pubDate>
		<guid isPermaLink="false">http://limegarden.net/2010/03/02/wavefront-obj-mesh-loader/#comment-683</guid>
		<description>Man... You should read wavefront obj file format specification, it&#039;s not that simple.</description>
		<content:encoded><![CDATA[<p>Man&#8230; You should read wavefront obj file format specification, it&#8217;s not that simple.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wouter Lindenhof</title>
		<link>http://www.limegarden.net/2010/03/02/wavefront-obj-mesh-loader/comment-page-1/#comment-557</link>
		<dc:creator>Wouter Lindenhof</dc:creator>
		<pubDate>Sun, 26 Sep 2010 06:48:37 +0000</pubDate>
		<guid isPermaLink="false">http://limegarden.net/2010/03/02/wavefront-obj-mesh-loader/#comment-557</guid>
		<description>Thanks for your feedback. I had completely forgotten that I could use streams. I will fix that as soon as possible (and give credits).

It&#039;s true that because of RAII (Resource Acquisition Is Initialization) you don&#039;t need to close stream, so I could leave it out, but I like to clean things up when I no longer need them. The reason for that is because it can reduce the size of memory leaks in case of exceptions.</description>
		<content:encoded><![CDATA[<p>Thanks for your feedback. I had completely forgotten that I could use streams. I will fix that as soon as possible (and give credits).</p>
<p>It&#8217;s true that because of RAII (Resource Acquisition Is Initialization) you don&#8217;t need to close stream, so I could leave it out, but I like to clean things up when I no longer need them. The reason for that is because it can reduce the size of memory leaks in case of exceptions.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dale Weiler</title>
		<link>http://www.limegarden.net/2010/03/02/wavefront-obj-mesh-loader/comment-page-1/#comment-555</link>
		<dc:creator>Dale Weiler</dc:creator>
		<pubDate>Sat, 25 Sep 2010 06:17:24 +0000</pubDate>
		<guid isPermaLink="false">http://limegarden.net/2010/03/02/wavefront-obj-mesh-loader/#comment-555</guid>
		<description>you don&#039;t need to close it, or do that memset with STL, and why c_str(), again you don&#039;t need that.

try removing lines 82-94 and replacing them with what I have below:

[sourcecode language=&#039;cpp&#039;]
std::string fileBuffer;                         // char required memset (C function!)
std::stringstream strStream;                    // Normal string stream
std::ifstream filestream(filename);             //no c_str() required

while(std::getline(filestream, fileBuffer))     //this is the gold since when it&#039;s finished it auto closes
                                                // which means line 118 can come right out (more SPEED THIS WAY!)[/sourcecode]</description>
		<content:encoded><![CDATA[<p>you don&#8217;t need to close it, or do that memset with STL, and why c_str(), again you don&#8217;t need that.</p>
<p>try removing lines 82-94 and replacing them with what I have below:</p>
<pre class="brush: cpp; ">

std::string fileBuffer;                         // char required memset (C function!)
std::stringstream strStream;                    // Normal string stream
std::ifstream filestream(filename);             //no c_str() required

while(std::getline(filestream, fileBuffer))     //this is the gold since when it&#039;s finished it auto closes
                                                // which means line 118 can come right out (more SPEED THIS WAY!)
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wouter Lindenhof</title>
		<link>http://www.limegarden.net/2010/03/02/wavefront-obj-mesh-loader/comment-page-1/#comment-459</link>
		<dc:creator>Wouter Lindenhof</dc:creator>
		<pubDate>Tue, 22 Jun 2010 14:48:49 +0000</pubDate>
		<guid isPermaLink="false">http://limegarden.net/2010/03/02/wavefront-obj-mesh-loader/#comment-459</guid>
		<description>Yes, it should (and it was). Thanks for pointing it out.</description>
		<content:encoded><![CDATA[<p>Yes, it should (and it was). Thanks for pointing it out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Onno</title>
		<link>http://www.limegarden.net/2010/03/02/wavefront-obj-mesh-loader/comment-page-1/#comment-458</link>
		<dc:creator>Onno</dc:creator>
		<pubDate>Tue, 22 Jun 2010 09:14:42 +0000</pubDate>
		<guid isPermaLink="false">http://limegarden.net/2010/03/02/wavefront-obj-mesh-loader/#comment-458</guid>
		<description>small question on line 85:

should &quot;&amp;amp;&amp;amp;&quot; not be &quot;&amp;&amp;&quot;?</description>
		<content:encoded><![CDATA[<p>small question on line 85:</p>
<p>should &#8220;&amp;amp;amp;&amp;amp;amp;&#8221; not be &#8220;&amp;&amp;&#8221;?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic page generated in 0.380 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2012-05-08 17:02:14 -->
<!-- Compression = gzip -->
