<?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>Dirty Motherfucking Blog &#187; processing</title>
	<atom:link href="http://dirty-motherfucker.org/blog/tag/processing/feed/" rel="self" type="application/rss+xml" />
	<link>http://dirty-motherfucker.org/blog</link>
	<description>All kinds of shit</description>
	<lastBuildDate>Wed, 04 Jan 2012 15:38:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4-alpha-19620</generator>
		<item>
		<title>Supernova</title>
		<link>http://dirty-motherfucker.org/blog/2008/08/18/supernova/</link>
		<comments>http://dirty-motherfucker.org/blog/2008/08/18/supernova/#comments</comments>
		<pubDate>Mon, 18 Aug 2008 18:42:37 +0000</pubDate>
		<dc:creator>gencha</dc:creator>
				<category><![CDATA[actionscript]]></category>
		<category><![CDATA[processing]]></category>
		<category><![CDATA[jared tarbell]]></category>

		<guid isPermaLink="false">http://dirty-motherfucker.org/blog/?p=133</guid>
		<description><![CDATA[While working on a reference implementation in Actionscript for a demo effect, I accidentally ended up with this beauty. It&#8217;s based on the lovely City Traveler algorithm by Jared Tarbell with only a few minor adjustments actually. I thought I&#8217;d share nevertheless :) Be sure to stop it at some point, otherwise it will go [...]]]></description>
			<content:encoded><![CDATA[<p>While working on a reference implementation in Actionscript for a demo effect, I accidentally ended up with this beauty. It&#8217;s based on the lovely City Traveler algorithm by Jared Tarbell with only a few minor adjustments actually. I thought I&#8217;d share nevertheless :) Be sure to stop it at some point, otherwise it will go on and on forever, eating up you cpu time.</p>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_supernova_512_1165870543"
			class="flashmovie"
			width="512"
			height="512">
	<param name="movie" value="http://dirty-motherfucker.org/blog/wp-content/uploads/2008/08/supernova_512.swf" />
	<param name="play" value="false" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://dirty-motherfucker.org/blog/wp-content/uploads/2008/08/supernova_512.swf"
			name="fm_supernova_512_1165870543"
			width="512"
			height="512">
		<param name="play" value="false" />
	<!--<![endif]-->
		
	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
<p>As always, I also provide a <a href="http://dirty-motherfucker.org/blog/wp-content/uploads/2008/08/supernova_1024.swf">larger version</a>.</p>
<p>You can also dig out the source from the Processing repository, but it&#8217;s now buried under the more recent revision of the effect i was actually going for. So if you&#8217;re interested, better drop me a line ;)</p>
]]></content:encoded>
			<wfw:commentRss>http://dirty-motherfucker.org/blog/2008/08/18/supernova/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Updated Processing works</title>
		<link>http://dirty-motherfucker.org/blog/2008/05/26/updated-processing-works/</link>
		<comments>http://dirty-motherfucker.org/blog/2008/05/26/updated-processing-works/#comments</comments>
		<pubDate>Mon, 26 May 2008 13:54:14 +0000</pubDate>
		<dc:creator>gencha</dc:creator>
				<category><![CDATA[actionscript]]></category>
		<category><![CDATA[processing]]></category>
		<category><![CDATA[flex sdk]]></category>

		<guid isPermaLink="false">http://dirty-motherfucker.org/blog/?p=91</guid>
		<description><![CDATA[I updated all the processing works to use a more common code base. Additionally i added start/stop functionality to the small versions displayed directly in the blog. I also fixed a few minor (and some major) issues in the Sand Traveler project. In the original code you will find the following line: float tinc = [...]]]></description>
			<content:encoded><![CDATA[<p>I updated all the processing works to use a more common code base. Additionally i added start/stop functionality to the small versions displayed directly in the blog.<br />
I also fixed a few minor (and some major) issues in the Sand Traveler project.<br />
In the original code you will find the following line:</p>
<p><code>float tinc = ot+(1.1-t/num)*2*t*TWO_PI/num;</code></p>
<p>which i ported to:</p>
<p><code>var tinc:Number = ot + ( 1.1 - cityIdx / NUM_CITIES ) * 2 * cityIdx * MathHelper.TWO_PI / NUM_CITIES;</code></p>
<p>Now cityIdx (t) and NUM_CITIES (num) are both integers. Java (Processing) will correctly do the integer division (which always results in 0). Thus the whole term &#8220;(1.1-t/num)&#8221; always equals 1.1.<br />
Now the Flex compiler has a different opinion on how this should be evaluated. The presence of 1.1 makes it cast cityIdx and NUM_CITIES to Number as well.</p>
<p>This whole drama led to further errors in the original port. You can grab the fixed source from <a href="svn://dirty-motherfucker.org:8888/processing/trunk">svn://dirty-motherfucker.org:8888/processing/trunk</a></p>
<p>Here are the new stand alone versions:<br />
<a href="http://dirty-motherfucker.org/blog/wp-content/uploads/2008/05/buddahbrotas3_1024.swf">Buddahbrot</a><br />
<a href="http://dirty-motherfucker.org/blog/wp-content/uploads/2008/05/happyplaceas3_9001.swf">Happy Place</a><br />
<a href="http://dirty-motherfucker.org/blog/wp-content/uploads/2008/05/sandtravelleras3_1024.swf">Sand Traveler</a><br />
<a href="http://dirty-motherfucker.org/blog/wp-content/uploads/2008/05/substrateas3_7201.swf">Substrate</a></p>
]]></content:encoded>
			<wfw:commentRss>http://dirty-motherfucker.org/blog/2008/05/26/updated-processing-works/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>BuddahBrot in AS3</title>
		<link>http://dirty-motherfucker.org/blog/2008/05/22/buddahbrot-in-as3/</link>
		<comments>http://dirty-motherfucker.org/blog/2008/05/22/buddahbrot-in-as3/#comments</comments>
		<pubDate>Thu, 22 May 2008 00:47:21 +0000</pubDate>
		<dc:creator>gencha</dc:creator>
				<category><![CDATA[actionscript]]></category>
		<category><![CDATA[processing]]></category>
		<category><![CDATA[jared tarbell]]></category>

		<guid isPermaLink="false">http://dirty-motherfucker.org/blog/?p=76</guid>
		<description><![CDATA[2008-05-26: I fixed some parts of this port. For further details check the updated works post. For this one i have to credit quite a few people. As always, i started out with the Processing source by Jared Tarbell. He based his code on an implementation by Paul Bourke, who based his work on a [...]]]></description>
			<content:encoded><![CDATA[<p>2008-05-26: I fixed some parts of this port. For further details check <a href="http://dirty-motherfucker.org/blog/2008/05/26/updated-processing-works/">the updated works post</a>.</p>
<p>For this one i have to credit quite a few people.<br />
As always, i started out with the Processing source by Jared Tarbell. He based his code on an implementation by <a href="http://astronomy.swin.edu.au/%7Epbourke/">Paul Bourke</a>, who based his work on a technique invented by <a href="http://www.superliminal.com/fractals/bbrot/bbrot.htm">Melinda  Green</a>.</p>
<p>It&#8217;s pretty much a straight ahead port of Tarbell&#8217;s code. Nothing to say about it. Click it to activate it. This is the version with a bailout value of 20 (nice looking results fast).<br />

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_buddahbrotas3_512_455121492"
			class="flashmovie"
			width="512"
			height="512">
	<param name="movie" value="http://dirty-motherfucker.org/blog/wp-content/uploads/2008/05/buddahbrotas3_512.swf" />
	<param name="play" value="false" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://dirty-motherfucker.org/blog/wp-content/uploads/2008/05/buddahbrotas3_512.swf"
			name="fm_buddahbrotas3_512_455121492"
			width="512"
			height="512">
		<param name="play" value="false" />
	<!--<![endif]-->
		
	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
<p>I didn&#8217;t package up a .zip with the source. But you can get the latest versions of all my processing ports from: <a href="svn://dirty-motherfucker.org:8888/processing/trunk">svn://dirty-motherfucker.org:8888/processing/trunk</a><br />
I also changed some of the other ports in the meanwhile. Some small bugs slipped in the versions i uploaded to the blog. So if you&#8217;re interested, be sure to grab the latest sources from the repository.</p>
]]></content:encoded>
			<wfw:commentRss>http://dirty-motherfucker.org/blog/2008/05/22/buddahbrot-in-as3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Jared Tarbell&#8217;s &#8220;Sand Traveller&#8221; in AS3</title>
		<link>http://dirty-motherfucker.org/blog/2008/05/22/jared-tarbells-sand-traveller-in-as3/</link>
		<comments>http://dirty-motherfucker.org/blog/2008/05/22/jared-tarbells-sand-traveller-in-as3/#comments</comments>
		<pubDate>Thu, 22 May 2008 00:36:31 +0000</pubDate>
		<dc:creator>gencha</dc:creator>
				<category><![CDATA[actionscript]]></category>
		<category><![CDATA[processing]]></category>
		<category><![CDATA[jared tarbell]]></category>

		<guid isPermaLink="false">http://dirty-motherfucker.org/blog/?p=70</guid>
		<description><![CDATA[2008-05-26: I fixed some parts of this port. For further details check the updated works post. I saved one of my favorites by Jared Tarbell&#8217;s for now. The algorithm amazed me almost as much as Substrate did, but when i decided to port Tarbell&#8217;s works i knew i could put a little sugar into this [...]]]></description>
			<content:encoded><![CDATA[<p>2008-05-26: I fixed some parts of this port. For further details check <a href="http://dirty-motherfucker.org/blog/2008/05/26/updated-processing-works/">the updated works post</a>.</p>
<p>I saved one of my favorites by <a href="http://www.complexification.net/">Jared Tarbell&#8217;s</a> for now. The algorithm amazed me almost as much as Substrate did, but when i decided to port Tarbell&#8217;s works i knew i could put a little sugar into this one.</p>
<p>I started converting it straight ahead but i also added new blending modes. This implementation is basically Tarbell&#8217;s <a href="http://complexification.net/gallery/machines/sandTraveler/index.php">third variation of the original implementation</a>. I made it so that the traveler&#8217;s sandpainters will either pick additive or subtractive blending. This leads to some <a href="http://dirty-motherfucker.org/blog/wp-content/uploads/2008/05/sandtravelleras3.swf">pretty nice results</a>.</p>
<p>I didn&#8217;t add a smaller version inside this post as it needs some time to develop and it also needs a certain size so you can fully appreciate it. So please check out the <a href="http://dirty-motherfucker.org/blog/wp-content/uploads/2008/05/sandtravelleras3.swf">large version</a> (1000&#215;1000).</p>
<p>Be sure to also grab the <a href="http://dirty-motherfucker.org/blog/wp-content/uploads/2008/05/sandtravelleras3.zip">source</a>  and check out <a href="http://complexification.net/gallery/machines/sandTraveler/index.php">the originals by Tarbell</a>.</p>
<p>I also added a preview version:<br />

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_sandtravelleras3_512_1437030253"
			class="flashmovie"
			width="512"
			height="512">
	<param name="movie" value="http://dirty-motherfucker.org/blog/wp-content/uploads/2008/05/sandtravelleras3_512.swf" />
	<param name="play" value="false" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://dirty-motherfucker.org/blog/wp-content/uploads/2008/05/sandtravelleras3_512.swf"
			name="fm_sandtravelleras3_512_1437030253"
			width="512"
			height="512">
		<param name="play" value="false" />
	<!--<![endif]-->
		
	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
]]></content:encoded>
			<wfw:commentRss>http://dirty-motherfucker.org/blog/2008/05/22/jared-tarbells-sand-traveller-in-as3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Jared Tarbell&#8217;s &#8220;Happy Place&#8221; in AS3</title>
		<link>http://dirty-motherfucker.org/blog/2008/05/15/jared-tarbells-happy-place-in-as3/</link>
		<comments>http://dirty-motherfucker.org/blog/2008/05/15/jared-tarbells-happy-place-in-as3/#comments</comments>
		<pubDate>Thu, 15 May 2008 12:54:04 +0000</pubDate>
		<dc:creator>gencha</dc:creator>
				<category><![CDATA[actionscript]]></category>
		<category><![CDATA[processing]]></category>
		<category><![CDATA[jared tarbell]]></category>

		<guid isPermaLink="false">http://dirty-motherfucker.org/blog/?p=56</guid>
		<description><![CDATA[2008-05-26: I fixed some parts of this port. For further details check the updated works post. I finished another one of Jared Tarbell&#8217;s works. Based on the experience with Substrate, this port was straight-forward. I also just gave the new Flash Player 10 Beta a run for it&#8217;s money. I can only recommend installing it [...]]]></description>
			<content:encoded><![CDATA[<p>2008-05-26: I fixed some parts of this port. For further details check <a href="http://dirty-motherfucker.org/blog/2008/05/26/updated-processing-works/">the updated works post</a>.</p>
<p>I finished another one of <a href="http://www.complexification.net/">Jared Tarbell&#8217;s works</a>. Based on the experience with Substrate, this port was straight-forward.</p>
<p>I also just gave the new <a href="http://labs.adobe.com/technologies/flashplayer10/">Flash Player 10 Beta</a> a run for it&#8217;s money. I can only recommend installing it for a test runs on these <a href="http://processing.org">Processing</a> ports. On my Core2 Duo E6600 with FP9 one core is usually maxed out drawing these demos with reasonable speed. With FP10 i get fluid performance with CPU time to spare.</p>
<p>So here it is (click to start):<br />

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_happyplaceas3_5121_1441806087"
			class="flashmovie"
			width="512"
			height="512">
	<param name="movie" value="http://dirty-motherfucker.org/blog/wp-content/uploads/2008/05/happyplaceas3_5121.swf" />
	<param name="play" value="false" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://dirty-motherfucker.org/blog/wp-content/uploads/2008/05/happyplaceas3_5121.swf"
			name="fm_happyplaceas3_5121_1441806087"
			width="512"
			height="512">
		<param name="play" value="false" />
	<!--<![endif]-->
		
	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
<p>There is also a <a href="http://dirty-motherfucker.org/blog/wp-content/uploads/2008/05/happyplaceas3_900.swf">larger version</a> (900&#215;900).</p>
<p>As before you can also grab the <a href="http://dirty-motherfucker.org/blog/wp-content/uploads/2008/05/happyplaceas3_source.zip">source code</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://dirty-motherfucker.org/blog/2008/05/15/jared-tarbells-happy-place-in-as3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Jared Tarbell&#8217;s &#8220;Substrate&#8221; in AS3</title>
		<link>http://dirty-motherfucker.org/blog/2008/05/13/substrate-in-as3/</link>
		<comments>http://dirty-motherfucker.org/blog/2008/05/13/substrate-in-as3/#comments</comments>
		<pubDate>Tue, 13 May 2008 11:55:57 +0000</pubDate>
		<dc:creator>gencha</dc:creator>
				<category><![CDATA[actionscript]]></category>
		<category><![CDATA[processing]]></category>
		<category><![CDATA[jared tarbell]]></category>

		<guid isPermaLink="false">http://dirty-motherfucker.org/blog/?p=30</guid>
		<description><![CDATA[2008-05-26: I fixed some parts of this port. For further details check the updated works post. Through a long web discovery session, i have come along the website of Jared Tarbell lately. If you aren&#8217;t familiar with his works you should definitely have a look. Needless to say i was very impressed by his procedural [...]]]></description>
			<content:encoded><![CDATA[<p>2008-05-26: I fixed some parts of this port. For further details check <a href="http://dirty-motherfucker.org/blog/2008/05/26/updated-processing-works/">the updated works post</a>.</p>
<p>Through a long web discovery session, i have come along the website of <a href="http://www.complexification.net">Jared Tarbell</a> lately. If you aren&#8217;t familiar with his works you should definitely have a look.<br />
Needless to say i was very impressed by his procedural image generation approaches, which are based on <a href="http://processing.org/">Processing</a>.</p>
<p>So i decided to port some of his projects to ActionScript3. I have to admit that this wasn&#8217;t really a big task, as the source code can practically be copied &amp; pasted directly into FlashDevelop and can be compiled to an SWF.</p>
<p>Something should be noted nevertheless. To achieve acceptable performance in a project like this it is fundamental to work directly with a BitmapData object and not the Graphics instances of the DisplayObjects.<br />
So the only task that had to be done was to write some alpha-blending function and port a handful of Processing specific functions.</p>
<p>So here is my port of Substrate (click to start):<br />

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_substrateas3_5121_460402304"
			class="flashmovie"
			width="512"
			height="512">
	<param name="movie" value="http://dirty-motherfucker.org/blog/wp-content/uploads/2008/05/substrateas3_5121.swf" />
	<param name="play" value="false" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://dirty-motherfucker.org/blog/wp-content/uploads/2008/05/substrateas3_5121.swf"
			name="fm_substrateas3_5121_460402304"
			width="512"
			height="512">
		<param name="play" value="false" />
	<!--<![endif]-->
		
	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
<p>A larger version (1280&#215;720) can be seen <a href="http://dirty-motherfucker.org/blog/wp-content/uploads/2008/05/substrateas3_720.swf">here</a>. This version will also restart the animation when a limit of cracks has been reached.</p>
<p>You can also grab the <a href="http://dirty-motherfucker.org/blog/wp-content/uploads/2008/05/substrateas3_source.rar">source code</a> and have some fun with it :)</p>
]]></content:encoded>
			<wfw:commentRss>http://dirty-motherfucker.org/blog/2008/05/13/substrate-in-as3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

