<?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>Sjeiti</title>
	<atom:link href="http://www.sjeiti.com/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.sjeiti.com</link>
	<description>nothing to declare</description>
	<lastBuildDate>Thu, 29 Jul 2010 13:15:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>meten is weten</title>
		<link>http://www.sjeiti.com/?p=587</link>
		<comments>http://www.sjeiti.com/?p=587#comments</comments>
		<pubDate>Thu, 22 Jul 2010 20:38:36 +0000</pubDate>
		<dc:creator>Sjeiti</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.sjeiti.com/?p=587</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><img src="wp-content//uploads/img/blog/metenIsWeten.png" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sjeiti.com/?feed=rss2&amp;p=587</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>emergence</title>
		<link>http://www.sjeiti.com/?p=579</link>
		<comments>http://www.sjeiti.com/?p=579#comments</comments>
		<pubDate>Wed, 02 Jun 2010 09:33:04 +0000</pubDate>
		<dc:creator>Sjeiti</dc:creator>
				<category><![CDATA[actionscript]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[flash]]></category>

		<guid isPermaLink="false">http://www.sjeiti.com/?p=579</guid>
		<description><![CDATA[It just needs some color.]]></description>
			<content:encoded><![CDATA[<p>It just needs some color.<br />
<img src="wp-content//uploads/img/blog/blackfun.jpg" /><br /><img src="wp-content//uploads/img/blog/blackfun1.jpg" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sjeiti.com/?feed=rss2&amp;p=579</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simplex noise in as3</title>
		<link>http://www.sjeiti.com/?p=473</link>
		<comments>http://www.sjeiti.com/?p=473#comments</comments>
		<pubDate>Thu, 13 May 2010 21:49:36 +0000</pubDate>
		<dc:creator>Sjeiti</dc:creator>
				<category><![CDATA[actionscript]]></category>
		<category><![CDATA[code]]></category>

		<guid isPermaLink="false">http://www.sjeiti.com/?p=473</guid>
		<description><![CDATA[Well I ported the simplex noise to actionscript 3. The weird thing is that there is no speed increase whatsoever. I must be doing it wrong. Download Simplex.as and test class. The test class also shows the spread and speed of both Perlin (left) and Simplex (right). - oh but wait - I just notice [...]]]></description>
			<content:encoded><![CDATA[<p>Well I ported the simplex noise to actionscript 3. The weird thing is that there is no speed increase whatsoever. I must be doing it wrong.</p>
<p><span id="more-473"></span></p>
<p><a href="wp-content/uploads/img/blog/jsnoise/simplexAs4D.rar">Download Simplex.as and test class</a>. The test class also shows the spread and speed of both Perlin (left) and Simplex (right).</p>
<p><img src="wp-content/uploads/img/blog/jsnoise/classicVsSimplex.jpg" alt="classic vs simplex" style="border:1px solid grey;"/></p>
<p>- oh but wait -</p>
<p>I just notice the great <a href="http://toxi.co.uk/">Toxi</a> (aka Karsten Schmidt) also has taken Stefan Gustavson&#8217;s version and improved/modified it a bit in his <a href="http://code.google.com/p/toxiclibs/source/browse/trunk/toxiclibs/src.core/toxi/math/noise/SimplexNoise.java">Toxiclibs</a>. And this one is in 4D!!! (I was wondering why <a href="http://gist.github.com/304522">Sean McCullough</a> wasn&#8217;t doing anything with the simplex lookup table).<br />K&#8230; let&#8217;s see what this one does in as3&#8230;</p>
<p>Alrighty&#8230; <a href="wp-content/uploads/img/blog/jsnoise/simplexAs4D.rar">new version here</a>. It&#8217;s not much faster but it does have 4D!</p>
<p><small>Ps: I&#8217;ve also changed the first link in this post, old link is <a href="wp-content/uploads/img/blog/jsnoise/simplexAs4D.rar">this</a>.</small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sjeiti.com/?feed=rss2&amp;p=473</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>noise r us  . . .</title>
		<link>http://www.sjeiti.com/?p=448</link>
		<comments>http://www.sjeiti.com/?p=448#comments</comments>
		<pubDate>Wed, 12 May 2010 13:05:05 +0000</pubDate>
		<dc:creator>Sjeiti</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.sjeiti.com/?p=448</guid>
		<description><![CDATA[canvas { border: 1px solid black; width: 200px; height: 200px; } ul#noisess { margin: 0px; padding: 0px; list-style: none; } ul#noisess li { float: left; overflow: hidden; width: 210px; } .clear { clear: both; } &#8230;so after some hours of coding, debugging, testing, refactoring playing around I&#8217;ve got two nice noise implementations. Apart from the [...]]]></description>
			<content:encoded><![CDATA[<style type="text/css">
			canvas {
				border: 1px solid black;
				width: 200px;
				height: 200px;
			}
			ul#noisess {
				margin: 0px;
				padding: 0px;
				list-style: none;
			}
				ul#noisess li {
					float: left;
					overflow: hidden;
					width: 210px;
				}
			.clear {
				clear: both;
			}
		</style>
<p>&#8230;so after some hours of <del>coding, debugging, testing, refactoring</del> playing around I&#8217;ve got two nice noise implementations. Apart from the obvious speed increase the comparison is rather striking.<span id="more-448"></span><script type="text/javascript" src="wp-content/uploads/img/blog/jsnoise/base.js"></script><script type="text/javascript" src="wp-content/uploads/img/blog/jsnoise/Perlin.js"></script><script type="text/javascript" src="wp-content/uploads/img/blog/jsnoise/PerlinSimplex.js"></script><script type="text/javascript" src="wp-content/uploads/img/blog/jsnoise/perlinAndSimplexExample.js"></script></p>
<p>
<br />
If you&#8217;re really interested, the first thing you should read (or skim through) is <a href="http://staffwww.itn.liu.se/~stegu/simplexnoise/simplexnoise.pdf" rel="external">this pdf</a>. What you don&#8217;t see in the example is that the simplex noise is a bit denser, which is probably caused by the triangulating way the noise is calculated. I&#8217;ve corrected this in the canvas output by multiplying it by 1.5 (that number is nothing more but a wild guess, it looks ok though).</p>
<p>Also very obvious is the range of the noise. The simplex noise low and high values approach 0 and 1 more often. I&#8217;ve run some tests between the two types to find the lowest and highest values with different octave and falloff values. The classical Perlin noise does go near 0 and 1 but it just seems more mediated, or the simplex one is more evenly spread. Altogether, the simplex version seems more chaotic than the classic. So in theory you&#8217;d need less octaves for a similar visual effect.</p>
<p><a href="wp-content/uploads/img/blog/jsnoise/perlinAndSimplex.rar">Click here</a> to download the example, and feel free to comment or mail if you have any ideas for improvement.</p>
<p>Well, I guess I&#8217;ll go and port the simplex to as3 now.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sjeiti.com/?feed=rss2&amp;p=448</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>noise r us</title>
		<link>http://www.sjeiti.com/?p=426</link>
		<comments>http://www.sjeiti.com/?p=426#comments</comments>
		<pubDate>Mon, 10 May 2010 12:39:54 +0000</pubDate>
		<dc:creator>Sjeiti</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.sjeiti.com/?p=426</guid>
		<description><![CDATA[ul#noises { margin: 0px; padding: 0px; list-style: none; } ul#noises li { width: 160px; float: left; overflow: hidden; } ul#noises li * { font-size: 12px; } .clear { clear: both; } img.left { float: left; margin: 0px 10px 0px 0px; } What started as a simple excersize to put theory to practice has once again [...]]]></description>
			<content:encoded><![CDATA[<style type="text/css">
	ul#noises {
		margin: 0px;
		padding: 0px;
		list-style: none;
	}
		ul#noises li {
			width: 160px;
			float: left;
			overflow: hidden;
		}
			ul#noises li * {
				font-size: 12px;
			}
	.clear {
		clear: both;
	}
	img.left {
		float: left;
		margin: 0px 10px 0px 0px;
	}
</style>
<p>What started as a simple excersize to put <a href="http://books.google.com/books?id=PXa2bby0oQ0C&#038;printsec=frontcover&#038;source=gbs_slider_thumb#v=onepage&#038;q&#038;f=false">theory</a> to practice has once again spun out of control. Well I&#8217;ve just come off three months of programming actionscript 3 so I needed the distraction (frankly I like js better than as). Plus I never really got into the HTML5 canvas thing and I needed to check that out to. And off course those idiots Apple and Adobe (turning into a bad marriage) are making me feel I should focus on HTML5/js a bit more (doesn&#8217;t anybody realize HTML5 isn&#8217;t even ready yet?).</p>
<p><span id="more-426"></span></p>
<p>After a bit of playing I decided to make a good Perlin noise generator in javascript. First I did a quick port from my actionscript class to javascript. But because others had probably preceded me I roamed the web for other implementations. I had to mangle them a bit to get them to work but here they are.</p>
<ul id="noises">
<li>
		<img src="wp-content/uploads/img/blog/jsnoise/sjeiti.jpg" alt="Perlin sjeiti" />
<div>
<h4>sjeiti</h4>
<p>url: <a href="http://www.sjeiti.com/?p=305&amp;PORTED2JS" target="_blank">sjeiti</a><br />authors: <a href="http://www.sjeiti.com/" target="_blank">Ron Valstar</a> and <a href="http://www.quasimondo.com/" target="_blank">Mario Klingeman</a><br />speed: <strong>60 ms</strong></div>
</li>
<li>
		<img src="wp-content/uploads/img/blog/jsnoise/lonelypinkelephants.jpg" alt="Perlin lonelypinkelephants" />
<div>
<h4>lonelypinkelephants</h4>
<p>url: <a href="http://lonelypinkelephants.com/random/perlin.html" target="_blank">lonelypinkelephants</a><br />author: <a href="http://www.sjeiti.com/" target="_blank">Jason LaPorte</a><br />speed: <strong>10 ms</strong></div>
</li>
<li>
		<img src="wp-content/uploads/img/blog/jsnoise/bankseanClassical.jpg" alt="Perlin bankseanClassical" />
<div>
<h4>bankseanClassical:</h4>
<p>url: <a href="http://gist.github.com/304522" target="_blank">bankseanClassical:</a><br />author: <a href="http://www.dashdashverbose.com/" target="_blank">Sean McCullough</a><br />speed: <strong>33 ms</strong></div>
</li>
<li style="clear:both;">
		<img src="wp-content/uploads/img/blog/jsnoise/bankseanSimplex.jpg" alt="Perlin bankseanSimplex" />
<div>
<h4>bankseanSimplex:</h4>
<p>url: <a href="http://gist.github.com/304522" target="_blank">bankseanSimplex:</a><br />authors: <a href="http://www.dashdashverbose.com/" target="_blank">Sean McCullough</a> and <a href="http://staffwww.itn.liu.se/~stegu/" target="_blank">Stefan Gustavson</a><br />speed: <strong>22 ms</strong></div>
</li>
<li>
		<img src="wp-content/uploads/img/blog/jsnoise/slimeland.jpg" alt="Perlin slimeland" />
<div>
<h4>slimeland:</h4>
<p>url: <a href="http://www.slimeland.com/raytrace/help.html" target="_blank">slimeland:</a><br />author: <a href="http://www.slimeland.com/" target="_blank">Slime</a><br />speed: <strong>34 ms</strong></div>
</li>
<li>
		<img src="wp-content/uploads/img/blog/jsnoise/processingJs.jpg" alt="Perlin processingJs" />
<div>
<h4>processingJs:</h4>
<p>url: <a href="http://processingjs.org/" target="_blank">processingJs:</a><br />author: <a href="http://ejohn.org" target="_blank">John Resig</a><br />speed: <strong>270 ms</strong></div>
</li>
</ul>
<p><br class="clear" /></p>
<p>The first thing you&#8217;ll probably notice that these are all only one octave. Because the banksean and slimeland versions did not implement more octaves I set the others to one octave as well (plus my own quick port had weird artifacts dealing with multiple octaves). I also put in a pseudo random number generator into the ones that used Math.random (we do want to seed it).</p>
<p>I&#8217;m a bit disapointed by the one from the one by processingJs. Granted: I did have to hack it a bit to get it to work and from the looks of the comments it&#8217;s not fully implemented yet. But it&#8217;s still very slow and looks a bit squared.</p>
<p><img src="wp-content/uploads/img/blog/jsnoise/lonelypinkelephantsX.jpg" alt="Perlin lonelypinkelephants 6 octaves" class="left" /></p>
<p>But the curious one is lonelypinkelephants: 10 milliseconds! It&#8217;s even worse that that: running for six octaves it is only three milliseconds slower (see image to the left). And only 50 lines of code! What the fuck dude?! Well, actually it&#8217;s a very smart cheat. Where others calculate and store random numbers and then interpolate between these before drawing, the lonelypinkelephants version simply makes a dummy canvas, draws the random numbers and resizes the result onto the final canvas. Letting the interpolation occur somewhere in the native drawImage method. Come to think of it, this may be exactly the reason why Flash&#8217;s native Perlin noise function is so much faster than the <a href="http://www.sjeiti.com/?p=305">as3 class</a>.
</p>
<p>Unfortunately the lonelypinkelephants version is quite useless for a number of reasons. The first being that the drawImage method is implemented differtly in different browsers. I test all my stuff in Chrome, but I ran the test through Safari just now and the lonelypinkelephants noise looks really different! Secondly, I really want to be able to use x and y offset which is kind of tricky to implement in it&#8217;s current form. Lastly we do want that extra dimension (which was exactly the reason I did that Java to as3 port some years ago).</p>
<p>I think I&#8217;ll fork the bankseanSimplex version with some octaves and falloff to see if its much faster and prettier than my own quick port. I&#8217;ll keep you posted.</p>
<p>To run the tests yourself <a href="wp-content/uploads/img/blog/jsnoise/perlincomparison.rar">download code here</a> (and sorry for the mess).</p>
<p>&#8211; small update &#8211;</p>
<p>On the other hand&#8230; well see for yourself&#8230; I did the test in four browsers:</p>
<ul style="list-style:none;margin-left:0px;padding-left:0px;">
<li>
<h4>Chrome</h4>
<p><img src="wp-content/uploads/img/blog/jsnoise/chrome.jpg" width="100%" /></li>
<li>
<h4>Firefox</h4>
<p><img src="wp-content/uploads/img/blog/jsnoise/firefox.jpg" width="100%" /></li>
<li>
<h4>Safari</h4>
<p><img src="wp-content/uploads/img/blog/jsnoise/safari.jpg" width="100%" /></li>
<li>
<h4>Opera</h4>
<p><img src="wp-content/uploads/img/blog/jsnoise/opera.jpg" width="100%" /></li>
</ul>
<p>Isn&#8217;t that great?! All of them render differently!!! (yes even Chrome and Firefox). Didn&#8217;t I hear something about someone wanting to trade in Flash for HTML5? And look at that (self proclaimed fastest browser) Opera. It looks like it just wraps pixels around the threshold (%). And what&#8217;s that first row of pixels doing in the processingJs version?</p>
<p>It looks like I have to do some more figuring out before I decide which noise to use. Or maybe just skip HTML5 altogether and wait for XHTML2.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sjeiti.com/?feed=rss2&amp;p=426</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>freelance space for hire</title>
		<link>http://www.sjeiti.com/?p=420</link>
		<comments>http://www.sjeiti.com/?p=420#comments</comments>
		<pubDate>Tue, 04 May 2010 13:45:21 +0000</pubDate>
		<dc:creator>Sjeiti</dc:creator>
				<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://www.sjeiti.com/?p=420</guid>
		<description><![CDATA[Workplace for hire in the heart of Amsterdam behind Dam square. The studio is shared with a film maker and an interaction designer (me). Directly available for €152 per month. Contact me or Claudia.]]></description>
			<content:encoded><![CDATA[<p><a href="http://maps.google.nl/maps?hl=nl&#038;rlz=1G1GGLQ_NLNL373&#038;lr=&#038;um=1&#038;ie=UTF-8&#038;q=cruiz&#038;fb=1&#038;gl=nl&#038;hq=cruiz&#038;hnear=Noord-Holland,+Amsterdam&#038;cid=0,0,12460096793426827438&#038;ei=NCG7S9L2NIKbOKTl9O4H&#038;sa=X&#038;oi=local_result&#038;ct=image&#038;resnum=1&#038;ved=0C">Workplace</a> for hire in the heart of Amsterdam behind Dam square. The studio is shared with a <a href="http://www.cruiz.nl">film maker</a> and an interaction designer (me). Directly available for €152 per month. Contact <a href="mailto:werkplek@sjeiti.com">me</a> or <a href="mailto:werkplek@cruiz.nl">Claudia</a>.<span id="more-420"></span></p>
<p><img src="wp-content//uploads/img/blog/studio01.jpg" /><br /><img src="wp-content//uploads/img/blog/studio02.jpg" /><br /><img src="wp-content//uploads/img/blog/studio03.jpg" /><br /><img src="wp-content//uploads/img/blog/studio04.jpg" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sjeiti.com/?feed=rss2&amp;p=420</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Twitter</title>
		<link>http://www.sjeiti.com/?p=418</link>
		<comments>http://www.sjeiti.com/?p=418#comments</comments>
		<pubDate>Sat, 06 Mar 2010 10:33:35 +0000</pubDate>
		<dc:creator>Sjeiti</dc:creator>
				<category><![CDATA[none]]></category>

		<guid isPermaLink="false">http://www.sjeiti.com/?p=418</guid>
		<description><![CDATA[I guess I could say I&#8217;ve crossed over to the dark-side because Twittering is something I said I&#8217;d never do. But I didn&#8217;t want a mobile phone either (ten years ago). I also said I&#8217;d never move to Amsterdam. But never say never. My new phone is exactly the reason I changed my mind and [...]]]></description>
			<content:encoded><![CDATA[<p>I guess I could say I&#8217;ve crossed over to the dark-side because Twittering is something I said I&#8217;d never do. But I didn&#8217;t want a mobile phone either (ten years ago). I also said I&#8217;d never move to Amsterdam. But never say never. My new phone is exactly the reason I changed my mind and give Twitter a go. The old Nokia I had was only good for calling or bashing somebody&#8217;s head in, so I traded it in for something new and Android. Which caused me to make more use of cloud computing and social networks. And now I&#8217;m <a href="http://twitter.com/Sjeiti">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sjeiti.com/?feed=rss2&amp;p=418</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>icon for new jQuery plugin</title>
		<link>http://www.sjeiti.com/?p=414</link>
		<comments>http://www.sjeiti.com/?p=414#comments</comments>
		<pubDate>Sat, 13 Feb 2010 18:01:37 +0000</pubDate>
		<dc:creator>Sjeiti</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.sjeiti.com/?p=414</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><img src="wp-content//uploads/img/blog/elephant.jpg" alt="" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sjeiti.com/?feed=rss2&amp;p=414</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>cleanup</title>
		<link>http://www.sjeiti.com/?p=411</link>
		<comments>http://www.sjeiti.com/?p=411#comments</comments>
		<pubDate>Wed, 27 Jan 2010 11:03:11 +0000</pubDate>
		<dc:creator>Sjeiti</dc:creator>
				<category><![CDATA[admin]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://www.sjeiti.com/?p=411</guid>
		<description><![CDATA[I&#8217;m cleaning my root. In the not so near future I will remove the subdirs ffbatch, ffpv3d, stampomatic and test/attractors4 in favor of respectively ffbatch.sjeiti.com, ffpv3d.sjeiti.com, stampomatic.sjeiti.com and attractors.sjeiti.com.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m cleaning my root. In the not so near future I will remove the subdirs ffbatch, ffpv3d, stampomatic and test/attractors4 in favor of respectively <a href="http://ffbatch.sjeiti.com">ffbatch.sjeiti.com</a>, <a href="http://ffpv3d.sjeiti.com">ffpv3d.sjeiti.com</a>, <a href="http://stampomatic.sjeiti.com">stampomatic.sjeiti.com</a> and <a href="http://attractors.sjeiti.com">attractors.sjeiti.com</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sjeiti.com/?feed=rss2&amp;p=411</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Android Processing</title>
		<link>http://www.sjeiti.com/?p=407</link>
		<comments>http://www.sjeiti.com/?p=407#comments</comments>
		<pubDate>Thu, 17 Dec 2009 15:11:38 +0000</pubDate>
		<dc:creator>Sjeiti</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.sjeiti.com/?p=407</guid>
		<description><![CDATA[Looks like I upgraded my stone-age phone just in time: http://www.creativeapplications.net/android/processing-is-coming-to-android-processing-android/ and http://android.processing.org/]]></description>
			<content:encoded><![CDATA[<p>Looks like I upgraded my stone-age phone just in time: <a href="http://www.creativeapplications.net/android/processing-is-coming-to-android-processing-android/">http://www.creativeapplications.net/android/processing-is-coming-to-android-processing-android/</a></p>
<p>and</p>
<p><a href="http://android.processing.org/">http://android.processing.org/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sjeiti.com/?feed=rss2&amp;p=407</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
