<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>davidpetrie.com</title>
	<atom:link href="http://davidpetrie.com/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://davidpetrie.com</link>
	<description></description>
	<lastBuildDate>Fri, 18 Jun 2010 09:57:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>New theme, new server</title>
		<link>http://davidpetrie.com/?p=286</link>
		<comments>http://davidpetrie.com/?p=286#comments</comments>
		<pubDate>Fri, 18 Jun 2010 09:57:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://davidpetrie.com/?p=286</guid>
		<description><![CDATA[Shifted over to Slicehost. There aren&#8217;t really many decent personal blog themes on woothemes, so I&#8217;ve opted for a free one for now.]]></description>
			<content:encoded><![CDATA[<p>Shifted over to Slicehost. There aren&#8217;t really many decent personal blog themes on woothemes, so I&#8217;ve opted for a free one for now.</p>
]]></content:encoded>
			<wfw:commentRss>http://davidpetrie.com/?feed=rss2&amp;p=286</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FTGLES Update (or, truetype fonts for OpenGL ES)</title>
		<link>http://davidpetrie.com/?p=275</link>
		<comments>http://davidpetrie.com/?p=275#comments</comments>
		<pubDate>Tue, 13 Apr 2010 21:01:36 +0000</pubDate>
		<dc:creator>david</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.davidpetrie.com/?p=275</guid>
		<description><![CDATA[FTLGES on github: http://github.com/cdave1/ftgles I&#8217;ve been working on a library called FTGLES, which is an open source truetype font rendering library for OpenGL ES 1.1. FTGLES is a port of FTGL, a library originally written by Henry Maddocks and a number of other contributors. Earlier versions of the FTGLES library, originally hosted on googlecode, were [...]]]></description>
			<content:encoded><![CDATA[<p>FTLGES on github: <a href="http://github.com/cdave1/ftgles">http://github.com/cdave1/ftgles</a></p>
<p><img src="http://davidpetrie.com/wp-content/uploads/2010/04/IMG_0278.jpg" alt="FTGLES on iPod Touch" title="FTGLES on iPod Touch" width="205" height="300" class="alignnone size-medium wp-image-280" /></p>
<p>I&#8217;ve been working on a library called FTGLES, which is an open source truetype font rendering library for OpenGL ES 1.1. FTGLES is a port of <a href="http://homepages.paradise.net.nz/henryj/code/#FTGL">FTGL</a>, a library originally written by <a href="http://homepages.paradise.net.nz/henryj/index.html">Henry Maddocks</a> and a number of other contributors.</p>
<p>Earlier versions of the FTGLES library, originally hosted on <a href="http://code.google.com/p/ftgles/">googlecode</a>, were horribly buggy. OpenGL ES is essentially a stripped down version of OpenGL. To get FTGL working on OpenGL ES, I had to rip out all the old OpenGL calls in FTGL and replace them with a sort of internal &#8220;glue&#8221; layer that maintained its own internal vertex, texture, and colour buffer arrays. Most of the nasty bugs were caused by the glue layer not restoring client states or buffer arrays properly, and I was repeatedly getting emails from people saying that seemingly unrelated feature x or feature y was crashing their app. I received a number of patches that <em>kinda</em> solved these problems, but they did not quite solve the problems in a way that would work for all users.</p>
<p>I&#8217;ve now gone through the library and fixed the these bugs. This updated version will properly restore all previous array and client states. I&#8217;ve removed the need to call <code>ftglInitImmediateModeGL()</code> before rendering your fonts. I&#8217;ve also added support for polygon font rendering.</p>
<p>Performance is slightly better on this update, but I&#8217;m still not quite happy with it. There are always significant performance constraints on mobile operating systems so it&#8217;s always going to be a fight to get decent performance. The library will render texture fonts without too much fuss, but polygon fonts should be used sparingly. Unfortunately, OpenGL ES does not allow pixels to be rendered directly to the framebuffer, so the ultra-fast FTPixmap type is still not available. I&#8217;m working on a separate type that mimics the behavior of this class by rendering glyphs to single texture, precalculating the glyph texture coordinates, and then using this single texture to render the font so <code>glBindTexture(GL_TEXTURE_2D, handle)</code> does not need to be called for each and every glyph.</p>
<p>The project has now been shifted to github, so if you are interested <a href="http://github.com/cdave1/ftgles">you should download/clone it from here</a>. I should point out the contributions made by James Long, who did a <a href="http://jlongster.com/blog/2010/02/08/fonts-ugh/">great writeup on the library here</a>. He re-instated the automake files, among other things, that I removed from the earlier googlecode version for some stupid reason.</p>
<p>The source code contains a number of demos for the iPhone. I&#8217;m hoping to provide demos for the iPad, but the most important thing now is to get a version working on the Android operating system. Here is a screenshot of one of the iPhone demos:</p>
<p><img src="http://davidpetrie.com/wp-content/uploads/2010/04/Screen-shot-2010-04-14-at-8.26.37-AM.png" alt="FTGLES screenshot on iPhone" title="FTGLES screenshot on iPhone" width="320" height="480" class="alignnone size-full wp-image-277" /></p>
]]></content:encoded>
			<wfw:commentRss>http://davidpetrie.com/?feed=rss2&amp;p=275</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A game I&#039;m working on&#8230;</title>
		<link>http://davidpetrie.com/?p=246</link>
		<comments>http://davidpetrie.com/?p=246#comments</comments>
		<pubDate>Mon, 09 Nov 2009 10:11:01 +0000</pubDate>
		<dc:creator>david</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.davidpetrie.com/?p=246</guid>
		<description><![CDATA[Here&#8217;s two gameplay trailers for a game I&#8217;m working on for the iPhone: You can find out more about the game here.]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s two gameplay trailers for a game I&#8217;m working on for the iPhone:</p>
<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/RWWLVXcL8FY&#038;hl=en&#038;fs=1&#038;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/RWWLVXcL8FY&#038;hl=en&#038;fs=1&#038;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></p>
<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/yp9dSbFhNR8&#038;hl=en&#038;fs=1&#038;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/yp9dSbFhNR8&#038;hl=en&#038;fs=1&#038;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></p>
<p>You can find out more about the game <a href="http://www.hackdirt.com">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://davidpetrie.com/?feed=rss2&amp;p=246</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Digital Painting</title>
		<link>http://davidpetrie.com/?p=233</link>
		<comments>http://davidpetrie.com/?p=233#comments</comments>
		<pubDate>Mon, 07 Sep 2009 04:00:03 +0000</pubDate>
		<dc:creator>david</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.davidpetrie.com/?p=233</guid>
		<description><![CDATA[I&#8217;ve been doing some digital painting. If you don&#8217;t know what that means, &#8220;digital painting&#8221; is just painting using your computer, usually with a program like Photoshop and a tablet. These particular paintings are depictions of characters in my upcoming game. I&#8217;m quite new to digital painting and there are still a few techniques I [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been doing some digital painting. If you don&#8217;t know what that means, &#8220;digital painting&#8221; is just painting using your computer, usually with a program like Photoshop and a <a href="http://www.wacom-asia.com/intuos4">tablet</a>.</p>
<p>These particular paintings are depictions of characters in my <a href="http://www.hackdirt.com/">upcoming game</a>. I&#8217;m quite new to digital painting and there are still a few techniques I suck at. I still haven&#8217;t worked out how to do hair properly, and generally find ears to be impossible to get right. Despite this, I&#8217;m pretty happy with how it&#8217;s turning out. Check &#8216;em out:</p>
<p><a href="http://www.davidpetrie.com/files/Painting/sep032009_chick.jpg"><img src="http://www.davidpetrie.com/files/Painting/sep032009_chick.jpg" width="200px" /></a><br />
<br />
<a href="http://www.davidpetrie.com/files/Painting/sep012009_bluecollar.jpg"><img src="http://www.davidpetrie.com/files/Painting/sep012009_bluecollar.jpg" width="200px" /></a><br />
<br />
<a href="http://www.davidpetrie.com/files/Painting/sep062009_model.jpg"><img src="http://www.davidpetrie.com/files/Painting/sep062009_model.jpg" width="200px" /></a></p>
<p>There&#8217;s a great digital painting tutorial <a href="http://dianae.deviantart.com/art/Digital-Painting-Tutorial-74468761">here</a>, in case you&#8217;re interested in getting into this.</p>
]]></content:encoded>
			<wfw:commentRss>http://davidpetrie.com/?feed=rss2&amp;p=233</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Software Startup</title>
		<link>http://davidpetrie.com/?p=221</link>
		<comments>http://davidpetrie.com/?p=221#comments</comments>
		<pubDate>Sun, 30 Aug 2009 22:33:49 +0000</pubDate>
		<dc:creator>david</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.davidpetrie.com/?p=221</guid>
		<description><![CDATA[The website is here. We&#8217;re currently working on iPhone games. And I really should post here more often&#8230;]]></description>
			<content:encoded><![CDATA[<p>The website is <a href="http://www.hackdirt.com">here</a>.</p>
<p>We&#8217;re currently working on iPhone games.</p>
<p>And I really should post here more often&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://davidpetrie.com/?feed=rss2&amp;p=221</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bloody hell</title>
		<link>http://davidpetrie.com/?p=219</link>
		<comments>http://davidpetrie.com/?p=219#comments</comments>
		<pubDate>Tue, 27 Jan 2009 03:00:57 +0000</pubDate>
		<dc:creator>david</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.davidpetrie.com/?p=219</guid>
		<description><![CDATA[Too many video posts showing that I don&#8217;t really have a lot to say at the moment. I&#8217;m currently deep in a cocoon-like state working on an iPhone game after spending most of last year working for a startup here in Wellington. On that note, Wellington dev Tim Haines has set up a database for iPhone [...]]]></description>
			<content:encoded><![CDATA[<p>Too many video posts showing that I don&#8217;t really have a lot to say at the moment. I&#8217;m currently deep in a cocoon-like state working on an iPhone game after spending most of last year working for a <a href="http://www.learningsource.co.nz/" target="_blank">startup</a> here in Wellington.</p>
<p>On that note, Wellington dev <a href="http://ims.co.nz/">Tim Haines</a> has set up a database for iPhone devs around the world <a href="http://spreadsheets.google.com/ccc?key=p3LA_Q08eM-VAAyq03ZSjYQ">here</a>. Add your name on <a href="http://is.gd/hlhv">this form</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://davidpetrie.com/?feed=rss2&amp;p=219</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Demoscene Vids</title>
		<link>http://davidpetrie.com/?p=218</link>
		<comments>http://davidpetrie.com/?p=218#comments</comments>
		<pubDate>Wed, 07 Jan 2009 02:09:29 +0000</pubDate>
		<dc:creator>david</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.davidpetrie.com/?p=217</guid>
		<description><![CDATA[Couple of recent demo productions I was sent:]]></description>
			<content:encoded><![CDATA[<p>Couple of recent demo productions I was sent:</p>
<p><object width="480" height="295"><param name="movie" value="http://www.youtube.com/v/CRaVuKE5DcI&#038;hl=en&#038;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/CRaVuKE5DcI&#038;hl=en&#038;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="295"></embed></object></p>
<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/Q2bq-3L3r7k&#038;hl=en&#038;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/Q2bq-3L3r7k&#038;hl=en&#038;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://davidpetrie.com/?feed=rss2&amp;p=218</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Dan Gilbert: Exploring the frontiers of happiness</title>
		<link>http://davidpetrie.com/?p=214</link>
		<comments>http://davidpetrie.com/?p=214#comments</comments>
		<pubDate>Fri, 19 Dec 2008 08:34:34 +0000</pubDate>
		<dc:creator>david</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.davidpetrie.com/?p=214</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/c-4flnuxNV4&#038;hl=en&#038;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/c-4flnuxNV4&#038;hl=en&#038;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://davidpetrie.com/?feed=rss2&amp;p=214</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>I don&#039;t remember going to any drum &#039;n bass gigs like this</title>
		<link>http://davidpetrie.com/?p=205</link>
		<comments>http://davidpetrie.com/?p=205#comments</comments>
		<pubDate>Tue, 16 Dec 2008 22:45:19 +0000</pubDate>
		<dc:creator>david</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.davidpetrie.com/?p=205</guid>
		<description><![CDATA[More here.]]></description>
			<content:encoded><![CDATA[<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/5_JmXCNPs6Y&#038;hl=en&#038;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/5_JmXCNPs6Y&#038;hl=en&#038;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></p>
<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/zUDTq7cAqR0&#038;hl=en&#038;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/zUDTq7cAqR0&#038;hl=en&#038;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></p>
<p>More <a href="http://uk.youtube.com/profile?user=airloaf&amp;view=videos">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://davidpetrie.com/?feed=rss2&amp;p=205</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Thematic Theme</title>
		<link>http://davidpetrie.com/?p=160</link>
		<comments>http://davidpetrie.com/?p=160#comments</comments>
		<pubDate>Sat, 11 Oct 2008 06:39:41 +0000</pubDate>
		<dc:creator>david</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.davidpetrie.com/?p=160</guid>
		<description><![CDATA[Just upgraded to the awesome thematic theme framework. Thematic works in conjunction with the awesome &#8220;Junction&#8221; theme from Pat Dryburgh.]]></description>
			<content:encoded><![CDATA[<p>Just upgraded to the awesome <a href="http://themeshaper.com/thematic-for-wordpress">thematic theme</a> framework. Thematic works in conjunction with the awesome &#8220;Junction&#8221; theme from <a href="http://patdryburgh.net/junction/">Pat Dryburgh</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://davidpetrie.com/?feed=rss2&amp;p=160</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
