<?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>nulldesign // lars gerckens &#187; OpenGL</title>
	<atom:link href="http://www.nulldesign.de/category/opengl/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nulldesign.de</link>
	<description>blog &#38; portfolio</description>
	<lastBuildDate>Mon, 30 Jan 2012 21:39:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>ND2D &#8211; Pixel Bleeding</title>
		<link>http://www.nulldesign.de/2011/08/30/nd2d-pixel-bleeding/</link>
		<comments>http://www.nulldesign.de/2011/08/30/nd2d-pixel-bleeding/#comments</comments>
		<pubDate>Tue, 30 Aug 2011 15:26:58 +0000</pubDate>
		<dc:creator>lars</dc:creator>
				<category><![CDATA[Molehill / Stage3D]]></category>
		<category><![CDATA[ND2D]]></category>
		<category><![CDATA[OpenGL]]></category>
		<category><![CDATA[Talk]]></category>

		<guid isPermaLink="false">http://www.nulldesign.de/?p=619</guid>
		<description><![CDATA[This post is more a note to myself, but you might find that interesting. There was a bug that was annoying me for a while in ND2D, but I didn&#8217;t had the time to fix it: When you use spritesheets and the sprites are packed without any space between them like this one: It&#8217;s likely &#8230; <a href="http://www.nulldesign.de/2011/08/30/nd2d-pixel-bleeding/">Read more <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This post is more a note to myself, but you might find that interesting.</p>
<p>There was a bug that was annoying me for a while in <a href="https://github.com/nulldesign/nd2d" target="_blank">ND2D</a>, but I didn&#8217;t had the time to fix it: When you use spritesheets and the sprites are packed without any space between them like this one:</p>
<p><img class="alignnone size-full wp-image-624" title="packed_sheet" src="http://www.nulldesign.de/wp-content/uploads/2011/08/packed_sheet.jpg" alt="" width="108" height="100" /></p>
<p>It&#8217;s likely that you run into issues where the GPU is drawing the pixels of another sprite around your sprite. This looks like this then (The lower image is the fixed version):</p>
<p><img class="alignnone size-full wp-image-620" title="pixelbleeding" src="http://www.nulldesign.de/wp-content/uploads/2011/08/pixelbleeding.jpg" alt="" width="500" height="316" /></p>
<p>If you use mip-mapping it get&#8217;s even worse, but that&#8217;s another story&#8230;</p>
<p>This happens, because OpenGL / DirectX needs to have the center of uv-coordinates on the pixel and not on the edge of the pixel. The solution is pretty simple: Instead of calculating the uv-coordinates from 0 to screenwidth, you&#8217;re technically supposed to calculate from 0.5 to screenwidth &#8211; 0.5. This way the edge pixels are &#8220;cropped&#8221; out and the bleeding stops :)</p>
<p>Operation successful, patient alive &amp; breathing. Nurse, I need a drink, cheers!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nulldesign.de/2011/08/30/nd2d-pixel-bleeding/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>iPhone App: FluidToy released</title>
		<link>http://www.nulldesign.de/2010/04/11/iphone-app-fluidtoy-released/</link>
		<comments>http://www.nulldesign.de/2010/04/11/iphone-app-fluidtoy-released/#comments</comments>
		<pubDate>Sun, 11 Apr 2010 20:55:45 +0000</pubDate>
		<dc:creator>lars</dc:creator>
				<category><![CDATA[Cocos2D]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[OpenGL]]></category>

		<guid isPermaLink="false">http://www.nulldesign.de/?p=311</guid>
		<description><![CDATA[Good news everyone. My first iPhone App got released to the AppStore: FluidToy, a little toy that turns your device into an interactive fluid simulation and helps you to relax ;). Enjoy:]]></description>
			<content:encoded><![CDATA[<p>Good news everyone. My first iPhone App got released to the AppStore: <a href="http://itunes.apple.com/us/app/fluidtoy/id363572062?mt=8" target="_blank">FluidToy</a>, a little toy that turns your device into an interactive fluid simulation and helps you to relax ;). Enjoy:</p>
<p style="text-align: center;">
<p style="text-align: center;"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="400" height="300" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://vimeo.com/moogaloop.swf?clip_id=10532572&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" /><embed type="application/x-shockwave-flash" width="400" height="300" src="http://vimeo.com/moogaloop.swf?clip_id=10532572&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p style="text-align: center;"><a href="http://itunes.apple.com/us/app/fluidtoy/id363572062?mt=8" target="_blank"><img class="size-full wp-image-319 aligncenter" src="http://www.nulldesign.de/wp-content/uploads/2010/04/App_Store_Badge.png" alt="" width="226" height="78" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.nulldesign.de/2010/04/11/iphone-app-fluidtoy-released/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

