<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.2.1" -->
<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>actionscript microcosmos</title>
	<link>http://www.dasprinzip.com/prinzipiell</link>
	<description>Frank Reitberger, prinzipiell.com</description>
	<pubDate>Mon, 31 Oct 2011 10:52:07 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.1</generator>
	<language>en</language>
			<item>
		<title>Beatbox.</title>
		<link>http://www.dasprinzip.com/prinzipiell/2011/10/31/beatbox/</link>
		<comments>http://www.dasprinzip.com/prinzipiell/2011/10/31/beatbox/#comments</comments>
		<pubDate>Mon, 31 Oct 2011 10:49:15 +0000</pubDate>
		<dc:creator>frank reitberger</dc:creator>
		
		<category><![CDATA[WebGL]]></category>

		<guid isPermaLink="false">http://www.dasprinzip.com/prinzipiell/2011/10/31/beatbox/</guid>
		<description><![CDATA[Busy days these days - filled with working on lots of exciting projects &#38; ideas for the last weeks. One of these projects is another full visualization of an Dubstep tune (the realization of the 1st tune I showed you as realtime demo at this years Flash on the beach during my session) running in [...]]]></description>
			<content:encoded><![CDATA[<p>Busy days these days - filled with working on lots of exciting projects &amp; ideas for the last weeks. One of these projects is another full visualization of an Dubstep tune (<em>the realization of the 1st tune I showed you as realtime demo at this years <a href="http://flashonthebeach.com/" title="Flash on the beach conference, 2011">Flash on the beach</a> during my session</em>) running in realtime. Being quite happy with my result for the tune, the record label once again gave me the freedom of developing the whole visual set for the second tune on my own <em>*muhahahaha* </em>- so I´ve the total freedom to go for every form, color, structure &amp; stuff I can imagine. Simply amazing, but whilst doing all this wonderful projects the reverse of the medal is, you simply got so less time to decouple little snippets and experiments to post here&#8230;</p>
<p>True&#8230; by now: Lastly I took some time and uncoupled a snippet with a little audio-reactive shader sequence from my second tune visualization I´m currently working on,  to test it separately. Best practice to test several options and possibilities and most perfect to use it as blog-post and sign of life here!</p>
<p>Well, by knowing my work you probably won´t wonder that it´s all about raymarching and deforming/displacing implicit volumes and surfaces again. Btw., want to dig deeper into this  <em>dark </em>matter? <a href="http://www.iquilezles.org/www/" title="Inigo Quilez">Inigo Quilez</a> released a <a href="http://www.iquilezles.org/www/articles/distfunctions/distfunctions.htm" title="modeling with distance functions">brilliant article</a> with all the basic info´s you need to get started. But for now - lets take some WebGL and  get this little audio-reactive thingy going&#8230;</p>
<p>Achtung!!! May take a bit to load the sound first&#8230;</p>
<p><a href="http://www.dasprinzip.com/pExamples/bbox/bbox.html" title="Beatbox WebGL shader"><img src="http://www.dasprinzip.com/pExamples/p129.jpg" title="Beatbox" alt="Beatbox" align="middle" border="0" height="463" hspace="0" vspace="0" width="480" /><br />
Launch</a> Side note: Best viewed in <a href="http://www.google.com/chrome/?installdataindex=nosearch&amp;hl=de&amp;brand=CHMA&amp;utm_campaign=de&amp;utm_source=de-ha-emea-de-bk&amp;utm_medium=ha" title="Google Chrome">Chrome</a>, <a href="http://www.mozilla.org/en-US/firefox/new/" title="Firefox download">Firefox</a> will do as well but takes ages to validate the shader&#8230;</p>
<p>What else, what else&#8230; hmmm&#8230; hell yeah - just got invited to once again speak at <a href="http://www.fitc.ca/events/speakers/speaker.cfm?event=125&amp;speaker_id=11418" title="FITC Amsterdam 2012">FITC Amsterdam 2012</a>, be sure I´ll come there with a new session topic <a href="http://www.fitc.ca/events/presentations/presentation.cfm?event=125&amp;presentation_id=1792" title="My FITC A´dam session: Highly Illogical"><em>(called: Highly Illogical)</em></a> bringing along all the new FP11 &amp; WebGL stuff I´m working on right now. &#8216;<a href="http://www.fitc.ca/events/tickets/?event=125" title="FITC Amsterdam 2012 tickets">Early Birdies</a>&#8216; are already <a href="http://www.fitc.ca/events/tickets/?event=125" title="FITC Amsterdam 2012 tickets">on sale</a>, so be quick and see you there&#8230;<br />&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dasprinzip.com/prinzipiell/2011/10/31/beatbox/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Does not compute.</title>
		<link>http://www.dasprinzip.com/prinzipiell/2011/08/03/does-not-compute/</link>
		<comments>http://www.dasprinzip.com/prinzipiell/2011/08/03/does-not-compute/#comments</comments>
		<pubDate>Wed, 03 Aug 2011 08:39:34 +0000</pubDate>
		<dc:creator>frank reitberger</dc:creator>
		
		<category><![CDATA[WebGL]]></category>

		<guid isPermaLink="false">http://www.dasprinzip.com/prinzipiell/2011/08/03/does-not-compute/</guid>
		<description><![CDATA[Phew! There´s nothing more frustrating if thinks don´t work out the way you expect ´em to. Seems that lastly anyone but me was able to use this little piece of code  written in Python  by Mr. Doob right from the start. All I got by trying to run it, were tons of error-messages [...]]]></description>
			<content:encoded><![CDATA[<p>Phew! There´s nothing more frustrating if thinks don´t work out the way you expect ´em to. Seems that lastly anyone but me was able to use this little piece of code  written in <a href="http://www.python.org/" title="Python">Python</a>  by <a href="http://mrdoob.com/blog/post/677" title="Mr. Doob´s blog">Mr. Doob</a> right from the start. All I got by trying to run it, were tons of error-messages whilst compiling. But actually this script is very handy for effectively &#8216;analyzing&#8217; audio-files for the use of then syncing them f.e. via <a href="http://de.wikipedia.org/wiki/WebGL" title="wikipedia´s WebGL definition">WebGL</a>. So lets quickly update this few lines of magic for the use with Python 3 (<em>which I´ve installed</em>) instead of Python 2 <em>(Mr. Doob´s actual code is based on it</em>). Meaning kick out <em>xrange</em> and replace by <em>range</em> and set brackets when using <em>print()</em>. And, most important if you don´t want to end up like me just having half a brain - check the file´s encoding before wondering while it´s still not working (or just be lazy and <a href="http://www.dasprinzip.com/pExamples/AudioPython.zip" title="audio.py for the use with Python3">download the updated code here</a>)&#8230; Hereafter, assumed you already have Python installed on your machine, open Windows command prompt, switch to your projects folder and simply execute audio.py like this:</p>
<p><img src="http://www.dasprinzip.com/pExamples/executeAudioPy.jpg" align="middle" border="0" height="36" hspace="0" vspace="0" width="370" /></p>
<p>Once you got this running lets leave this bone dry parts and switch over to the more exciting visual fun parts - meaning let´s do some with our just received audio informations and write some audio driven stuff in WebGL. As for instance following little thingy I programmed last night and called it cause of lacking a better word &#8216;<em>Strange Lattice</em>&#8216;.</p>
<p><a href="http://www.dasprinzip.com/pExamples/Lattice.html" title="Strange Lattice"><img src="http://www.dasprinzip.com/pExamples/p128.jpg" title="Strange Lattice" alt="Strange Lattice" align="middle" border="0" height="188" hspace="0" vspace="0" width="514" /><br />
Launch</a> <em>(your browser needs to support WebGL!)</em></p>
<p>I know - I know, some of you still refuse to update your system having an up to date browser that supports proper and sexy WebGL like <a href="http://www.google.com/chrome/intl/de/landing_win.html?hl=de&amp;installdataindex=nosearch&amp;hl=de&amp;brand=CHMA&amp;utm_campaign=de&amp;utm_source=de-ha-emea-de-bk&amp;utm_medium=ha" title="Google Chrome download page">Chrome</a> or <a href="http://www.mozilla.com/de/firefox/" title="Firefox download page">Firefox</a>. All right, uploaded a <a href="http://vimeo.com/27233891" title="Strange Lattice video">video</a> of this experiment to my <a href="http://vimeo.com/27233891" title="Strange Lattice video">vimeo account</a> as well.</p>
<p>That´s it - enjoy!</p>
<p>!!! <em>Edit: Updated shader for the use with Chrome Canary, but should as well execute on Chrome 12 + 13, Firefox &amp; Safari 5.1 </em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dasprinzip.com/prinzipiell/2011/08/03/does-not-compute/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Bending basic volumes.</title>
		<link>http://www.dasprinzip.com/prinzipiell/2011/07/21/bending-basic-volumes/</link>
		<comments>http://www.dasprinzip.com/prinzipiell/2011/07/21/bending-basic-volumes/#comments</comments>
		<pubDate>Thu, 21 Jul 2011 11:30:14 +0000</pubDate>
		<dc:creator>frank reitberger</dc:creator>
		
		<category><![CDATA[Pixel Bender]]></category>

		<category><![CDATA[Flash]]></category>

		<category><![CDATA[Actionscript3]]></category>

		<guid isPermaLink="false">http://www.dasprinzip.com/prinzipiell/2011/07/21/bending-basic-volumes/</guid>
		<description><![CDATA[As this years Flash on the beach is coming closer, it´s about time to finalize my latest stuff and experiments for my upcoming session (&#8230; &#8216;and hell yeah!&#8217;, I got lots of yet unpublished things &#38; demos to show this time). In doing so there´s lot of snippets and try-outs that I just used as [...]]]></description>
			<content:encoded><![CDATA[<p>As this years <a href="http://www.flashonthebeach.com" title="Flash on the beach conference">Flash on the beach</a> is coming closer, it´s about time to finalize my latest stuff and experiments for my upcoming <a href="http://www.flashonthebeach.com/speakers/index.php?pageid=1230" title="My FOTB session">session</a> (<em>&#8230; &#8216;and hell yeah!&#8217;, I got lots of yet unpublished things &amp; demos to show this time</em>). In doing so there´s lot of snippets and try-outs that I just used as tests to get certain results or insights and that didn´t make it any further.</p>
<p>Including following little snippet which I just developed to test possible maximum speed of combining Flash10 + Pixel Bender to use for raymarching a set of basic volumes like: a torus, cubes, spheres and cylinders (<em>all of whom formulas to create ´em can be found <a href="http://www.pouet.net/topic.php?which=7931&amp;page=1&amp;x=29&amp;y=6" title="Pouet: Raymarching Toolbox Thread">here</a></em>). Keep in mind that prementioned combination (<em>Flash10/Pixel Bender</em>) is not pretty well known for it´s supersonic speed ´cause of not having GPU acceleration, so I was quite sceptic of what I could probably tease out there.</p>
<p>But, surprise surprise!!! &#8230;gettig it all up and running by having &gt;55FPS on average was a big &#8216;aha moment&#8217; that I didn´t expect <em>AT ALL!</em> This was even better then I ever expected - so I took this little test as a basis for developing a demo which will first be shown at forthcoming <a href="http://flashonthebeach.com/tickets/" title="Flash on the beach tickets">FOTB</a> (&#8230;<em>interested? Better get your ticket before last &#8216;Early Birds&#8217; are out of stock</em>).</p>
<p>Need an appetiser? <span id="result_box" class="short_text" lang="fr"><span title="Zur Anzeige alternativer Übersetzungen klicken" class="hps">Bon appétit&#8230; (<em>loading the audio first of all  may take a little while</em>)</span></span></p>
<p><a href="http://www.dasprinzip.com/pExamples/p125.html" title="Bending basic volumes : origin size"><img src="http://www.dasprinzip.com/pExamples/p127.jpg" title="Bending basic volumes" alt="Bending basic volumes" align="middle" border="0" height="463" hspace="0" vspace="0" width="480" /><br />
Launch</a> (<em>origin siz</em>e)</p>
<p><a href="http://www.dasprinzip.com/pExamples/p125_full.html" title="Bending basic volumes : fullscreen">Launch</a> (<em>fullscreen</em>)<br />&nbsp;<br />Well, like a said before - this is probably my last post before FOTB because I´ll now take my time to finalize the demos and experiments for my talk - so, see you there!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dasprinzip.com/prinzipiell/2011/07/21/bending-basic-volumes/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Fog me, fog you!</title>
		<link>http://www.dasprinzip.com/prinzipiell/2011/06/15/fog-me-fog-you/</link>
		<comments>http://www.dasprinzip.com/prinzipiell/2011/06/15/fog-me-fog-you/#comments</comments>
		<pubDate>Wed, 15 Jun 2011 09:44:47 +0000</pubDate>
		<dc:creator>frank reitberger</dc:creator>
		
		<category><![CDATA[WebGL]]></category>

		<guid isPermaLink="false">http://www.dasprinzip.com/prinzipiell/2011/06/15/fog-me-fog-you/</guid>
		<description><![CDATA[After I released &#8216;Implicit Reactions&#8216; a week ago, I decided to stick with  WebGL based raymarching synced to audio a bit longer and keep it rolling. There are still so many things to explore in this field, and while I was thinking of what my possible next steps could be, I remembered this GPU Gems [...]]]></description>
			<content:encoded><![CDATA[<p>After I released &#8216;<a href="http://www.dasprinzip.com/prinzipiell/2011/06/06/implicit-reactions/" title="Implicit Reactions">Implicit Reactions</a>&#8216; a week ago, I decided to stick with  <a href="http://en.wikipedia.org/wiki/WebGL" title="Wikipedia´s WebGL definition">WebGL</a> based raymarching synced to audio a bit longer and keep it rolling. There are still so many things to explore in this field, and while I was thinking of what my possible next steps could be, I remembered this <a href="http://http.developer.nvidia.com/GPUGems/gpugems_ch05.html" title="Implementing improved Perlin Noise">GPU Gems article</a>. I think most of you know of <a href="http://en.wikipedia.org/wiki/Perlin_noise" title="Wikipedia´s Perlin Noise definition">Perlin Noise</a> which results from professor <a href="http://cs.nyu.edu/~perlin/" title="Ken Perlin´s homepage">Ken Perlin</a>, due to the fact it´s a ready to use build in function in Flash. And Perlin Noise is indeed a very handy function for lots of potential applications.</p>
<p>No need to say that Perlin Noise is heavily used for programming visual effects as well, for instance in <a href="http://www.iquilezles.org/www/" title="Inigo Quilez´s homepage">IQ</a>´s brilliant <a href="http://www.youtube.com/watch?v=eJBGj8ggCXU" title="RGBA´s Leizex by IQ">Leizex</a> demo, or for generating procedural landscapes like in <a href="http://www.youtube.com/watch?v=_YWMGuh15nE" title="Elevated demo by RGBA &amp; TBC">Elevated</a>, a demo made by RGBA &amp; TBC. So, gimme gimme&#8230; the logical next step for me was to implement some noise for my WebGL stuff and add it to my raymarchers. However, my evil plan was to use this noise for generating smoke-like behaviours and what should I say - I think it worked <em>pretty good</em>&#8230; (by strictly implementing <a href="http://www.pouet.net/user.php?who=4548" title="Las @pouet.net">Las´s</a> sources &amp; instructions from the &#8216;<a href="http://www.pouet.net/topic.php?which=7920&amp;page=1&amp;x=17&amp;y=8" title="Raymarching Beginners Thread @pouet.net">Raymarching Beginners</a>&#8216; Thread which I recommended you reading a dozen times the last blogposts).</p>
<p>Now, by the time I´d it all working the last days I decided to write another little audio synced demo for it. Corresponding to my decision <a href="http://blog.andre-michelle.com/" title="Andre Michelle´s blog">Andre Michelle</a> just released &#8216;<a href="http://burn-studios.audiotool.com/track/tief_blau/" title="Tief Blau, by Andre Michelle ">Tief Blau</a>&#8216; (<em>liked it from the start</em>), a piece of music he created with <a href="http://burn-studios.audiotool.com/" title="Audiotool">Audiotool</a>. Well, and after having a little chat in the small hours the setup was clear: &#8216;<a href="http://burn-studios.audiotool.com/track/tief_blau/" title="Tief Blau, by Andre Michelle">Tief Blau</a>&#8216; will be used as main tune for my next demo. From where I stand now I only can say: Madness!!! What the hell has possessed me? What originally intended to be a small little tech-demo, now escalated to be a full 6 minutes demo - meaning long nights of working short of sleep.</p>
<p>Honestly, I must have been totally crazy, not to say nuts(!), to base a demo on <a href="http://burn-studios.audiotool.com/track/tief_blau/" title="Tief Blau, by Andre Michelle">Andre</a>´s 6 minutes long track. Know what that mean? You need tons of effects. So my only solution during the past nights to cope with this task was: make, make, make&#8230;</p>
<p>Status quo now - The good thing: A long list of fragment shader effects featuring the music over the entire term, the bad thing: Reaching web brower´s time-limits initializing it! ;) The Solution: decouple a sneak preview of it with some effects &amp; save the best until last&#8230; meaning - I´ll release a fully effects packed 6 minutes longplay raymarching version based on <a href="http://labs.adobe.com/technologies/flashplatformruntimes/incubator/features/molehill.html" title="Adobe´s Molehill Flash Player ">Adobe´s Molehill Flash Player</a> in <a href="http://flashonthebeach.com/speakers/index.php?pageid=1230" title="My session @Flash on the beach ">my session</a> at <a href="http://www.flashonthebeach.com/speakers/" title="Flash on the beach conference 2011">Flash on the beach</a> this year (interested? Better be <a href="http://www.flashonthebeach.com/tickets/" title="Tickets, Flash on the beach, 2011">there</a>&#8230;)</p>
<p>Enough talk &amp; &#8216;<strong>Achtung!!!</strong>&#8216;, it´s like I said - the whole demo needs some time getting initialized by the browser! On average ~18 secs running on Google Chrome, compared to ~1.30 secs with Firefox (<em>holy cow! How come @Firefox ? &#8230;</em>) So <a href="http://www.google.com/chrome/intl/de/landing_win.html?hl=de&amp;installdataindex=nosearch&amp;hl=de&amp;brand=CHMA&amp;utm_campaign=de&amp;utm_source=de-ha-emea-de-bk&amp;utm_medium=ha" title="Google Chrome web browser">Google Chrome</a> is my weapon of choice for running/viewing this!</p>
<p>But for now - let´s make some noise for the next 6 minutes&#8230;</p>
<p><a href="http://www.dasprinzip.com/pExamples/FogMe.html" title="Fog Me - Fog you demo"><img src="http://www.dasprinzip.com/pExamples/p126.jpg" title="Fog.Me demo  " alt="Fog.Me demo  " vspace="0" width="480" align="middle" border="0" height="463" hspace="0" /><br />
Launch</a> <em>(Have patience whilst initializing - best viewed in Google Chrome!)</em></p>
<p>And here´s a <a href="http://www.vimeo.com/25104656" title="Fog Me - Fog you demo via vimeo">video of the whole demo</a> for those of you not running a modern web browser yet (<em>for whatever reason&#8230; ;) </em>).</p>
<p>Up next: relaxing a bit&#8230;<br />
<br />
<em>Edit: Las - hope to have put this right&#8230;</em><br />&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dasprinzip.com/prinzipiell/2011/06/15/fog-me-fog-you/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Implicit Reactions.</title>
		<link>http://www.dasprinzip.com/prinzipiell/2011/06/06/implicit-reactions/</link>
		<comments>http://www.dasprinzip.com/prinzipiell/2011/06/06/implicit-reactions/#comments</comments>
		<pubDate>Mon, 06 Jun 2011 08:18:15 +0000</pubDate>
		<dc:creator>frank reitberger</dc:creator>
		
		<category><![CDATA[WebGL]]></category>

		<guid isPermaLink="false">http://www.dasprinzip.com/prinzipiell/2011/06/06/implicit-reactions/</guid>
		<description><![CDATA[Between ourselves: I honestly can say, I´ve never ever had such as strange days as I had the last two weeks! Why? I terribly totally lost focus on things I originally planned to do, just to run into some weird distractions that utterly gone wrong, which I now résumé as a great experience that brought [...]]]></description>
			<content:encoded><![CDATA[<p>Between ourselves: I honestly can say, I´ve never ever had such as strange days as I had the last two weeks! Why? I terribly totally lost focus on things I originally planned to do, just to run into some weird distractions that utterly gone wrong, which I now résumé as a great experience that brought me back better than before to what I wanted to do in the first place&#8230;</p>
<p>Anyway, to make a long story short, I´m back on track now, working on several new stuff, so what´s the news? A few weeks ago <a href="http://bompo-blog.appspot.com/2011/5/Raymarching-in-WebGL" title="Stefan Wagner´s blog">Stefan Wagner</a> took some of <a href="http://www.dasprinzip.com/prinzipiell/2011/02/21/raymarching/" title="Raymarching examples">my WebGL raymarching examples</a> and synced ´em to audio. Visually a pure blast, I liked it a lot (<em>still do!</em>), and decided to dig deeper into that topic. The idea: Let´s create more complex raymarched forms that react on synced audio, constantly changing surface and colour. So consequent the task was: Finding interesting, sublime and pleasing looking distance field formulas to compute this forms. And well, exploring distance field formulas and find unique forms is not as easy as you might think, but that is what I intended to do in the first place.</p>
<p>However, like I said, started, lost focus, totally got distracted, now back on track and finally got 1st results, which I like to share with you in a tick. &#8216;<a href="http://www.dasprinzip.com/pExamples/ImplicitReactions.html" title="Launch Implicit Reactions demo">Implicit Reactions</a>&#8216; is a first early release of a demo I´m now working on for upcoming <a href="http://flashonthebeach.com/speakers/" title="Flash on the beach conference">Flash on the beach</a> in September. But at this moment in time, and coming right back from a meeting in London, I´m totally stoked to say that this demo might come even more into general use as I ever expected. Curious? I´m sorry to say that this was the only rumour I´m allowed to spread on that news. I guess you all have to come to <a href="http://flashonthebeach.com/speakers/" title="Flash on the beach conference">Flash on the beach</a> and I´ll tell and show you more about it within my session.</p>
<p>For now - Implicit Reactions, early release studies&#8230;</p>
<p><a href="http://www.dasprinzip.com/pExamples/ImplicitReactions.html" title="Launch Implicit Reactions demo"><img src="http://www.dasprinzip.com/pExamples/p125.jpg" title="Implicit Reactions" alt="Implicit Reactions" vspace="0" width="480" align="middle" border="0" height="463" hspace="0" /><br />
Launch</a> (<em>opens in Fullscreen, takes a bit to preload audio, enjoy!</em>)</p>
<p>To make this more worthwhile for all of you not having an up to date browser that supports proper and sexy <a href="http://en.wikipedia.org/wiki/WebGL" title="wikipedia´s WebGL definition">WebGL</a> I uploaded <a href="http://www.vimeo.com/user3684921/videos" title="prinzipiell´s vimeo account">two videos</a> on my <a href="http://www.vimeo.com/user3684921/videos" title="prinzipiell´s vimeo account">vimeo account</a>. The 1st one is a recording of &#8216;<a href="http://www.vimeo.com/24659582" title="Implicit Reactions video via vimeo">Implicit Reactions</a>&#8216; and goes <a href="http://www.vimeo.com/24659582" title="Implicit Reactions video via vimeo">here</a>, the <a href="http://www.vimeo.com/24678831" title="Adaptive Waves video via vimeo">2nd video</a> shows my &#8216;<a href="http://www.vimeo.com/24678831" title="Adaptive Waves video via vimeo">Adaptive Waves</a>&#8216; Flash/Alchemy port from Karsten Schmidt´s incredible great Processing origin (<em>got lots of mails to show that again after last FOTB 2010</em>).</p>
<p>Lastly, all in all - enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dasprinzip.com/prinzipiell/2011/06/06/implicit-reactions/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Blobsphere.</title>
		<link>http://www.dasprinzip.com/prinzipiell/2011/05/15/blobsphere/</link>
		<comments>http://www.dasprinzip.com/prinzipiell/2011/05/15/blobsphere/#comments</comments>
		<pubDate>Sun, 15 May 2011 14:26:29 +0000</pubDate>
		<dc:creator>frank reitberger</dc:creator>
		
		<category><![CDATA[Pixel Bender]]></category>

		<category><![CDATA[Flash]]></category>

		<category><![CDATA[Actionscript3]]></category>

		<guid isPermaLink="false">http://www.dasprinzip.com/prinzipiell/2011/05/15/blobsphere/</guid>
		<description><![CDATA[&#8230;or the like, that´s what you get if you create patterns on a sphere, zoom into and point the camera at it! Bygone times I was a bit too quiet  at this place, but finally I found some time to again start with working out new ideas and snippets.
This&#8230; plus I´m working on a new [...]]]></description>
			<content:encoded><![CDATA[<p>&#8230;or the like, that´s what you get if you create patterns on a sphere, zoom into and point the camera at it! Bygone times I was a bit too quiet  at this place, but finally I found some time to again start with working out new ideas and snippets.</p>
<p>This&#8230; plus I´m working on a new demo right now for my next talk at upcoming &#8216;<a href="http://www.flashonthebeach.com/" title="Flash on the beach conference, Sept 11-14, Brighton">Flash on the beach - conference</a>&#8216; this September, which I´m already super-excitedly looking forward to!</p>
<p>Well, as I mentioned already, &#8216;<a href="http://www.dasprinzip.com/pExamples/p124.html" title="Blobsphere">Blobsphere</a>&#8216; is an odd self-given titel for a little pattern-experiment thats projected onto a sphere. We have a lightsource and bump as parameters to modify and play with. Unfortunately this whole piece wouldn´t run by programming it in Flash only, but thanks to <a href="http://www.adobe.com/devnet/pixelbender.html" title="Adobe Pixel Bender">Pixel Bender</a>, and a nifty little trick for optimizing the bump-mapping,  we now can run that &#8216;baby&#8217; on a resolution of 800&#215;600 pixels. Yummy! ;)</p>
<p>Stop talking, Frank? Ok, here you go:</p>
<p><a href="http://www.dasprinzip.com/pExamples/p124.html" title="Blobsphere"><img src="http://www.dasprinzip.com/pExamples/p124.jpg" title="Blobsphere" alt="Blobsphere" vspace="0" width="500" align="middle" border="0" height="352" hspace="0" /><br />
Launch</a></p>
<p>So, until September, still lots of things and ideas to work on for me and my FOTB session, but <a href="http://www.flashonthebeach.com/tickets/" title="Flash on the beach confi tickets, Sept 11-14, Brighton">tickets</a> are already on sale and <a href="http://twitter.com/FOTB" title="John Davey´s FOTB @twitter">John</a> once again managed to arrange a great line-up of speakers, so go and get yours as long as prices are low! See you at least in Brighton&#8230;<br />&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dasprinzip.com/prinzipiell/2011/05/15/blobsphere/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Ray marching the distance.</title>
		<link>http://www.dasprinzip.com/prinzipiell/2011/03/22/ray-marching-the-distance/</link>
		<comments>http://www.dasprinzip.com/prinzipiell/2011/03/22/ray-marching-the-distance/#comments</comments>
		<pubDate>Tue, 22 Mar 2011 08:46:29 +0000</pubDate>
		<dc:creator>frank reitberger</dc:creator>
		
		<category><![CDATA[WebGL]]></category>

		<category><![CDATA[Flash]]></category>

		<category><![CDATA[Actionscript3]]></category>

		<guid isPermaLink="false">http://www.dasprinzip.com/prinzipiell/2011/03/22/ray-marching-the-distance/</guid>
		<description><![CDATA[Being right back from FITC Amsterdam and with an eye toward my upcoming talk at the FFK Cologne 2011 conference, I finally found some time the last days to get my teeth into &#8216;ray marching&#8217; (ray tracing done in discrete steps)  once again. It was about time to explore and modify some new or [...]]]></description>
			<content:encoded><![CDATA[<p>Being right back from <a href="http://www.fitc.ca/events/presentations/presentation.cfm?event=115&amp;presentation_id=1441" title="FITC Amsterdam">FITC Amsterdam</a> and with an eye toward my upcoming talk at the <a href="http://www.beyondtellerrand.com/ffk11/speakers_sessions.php" title="FFK conference, Cologne, 2011">FFK Cologne 2011</a> conference, I finally found some time the last days to get my teeth into &#8216;ray marching&#8217; (ray tracing done in discrete steps)  once again. It was about time to explore and modify some new or different distance field formulas.</p>
<p>Based on my first &#8216;<a href="http://www.dasprinzip.com/prinzipiell/2011/02/21/raymarching/" title="Raymarching ">Raymarching article</a>&#8216; I now intended to experiment with various distance field formulas and see what beauty may come to light by applying them. &#8216;Distance fields&#8217;, never heared? Ok, put simply, distance fields provide minimum distances to any surface in a scene from any point. As a result out of this, you can use distance fields as a look up for your rays position and step at the minimum of the returned distance in its direction before a new look up is required. The key thereby lies in defining a distance field cause it offers you the freedom to shape an entire <em><a href="http://en.wikipedia.org/wiki/Implicit_surface" title="implicit surface wikipedia definition">implicit</a></em> volume or <em><a href="http://en.wikipedia.org/wiki/Implicit_surface" title="implicit surface wikipedia definition">surface</a></em> out of it. Cool?</p>
<p>Gee, damn cool! Just have a look at Bluflame´s &#8216;<a href="http://www.youtube.com/watch?v=OEXQzOCj910" title="Lunaquatic, by Bluflame">Lunaquatic</a>&#8216; or Youth Uprising´s 4k &#8216;<a href="http://www.youtube.com/watch?v=OwWSFj3TTLM" title="Muon Baryon, Youth Uprising 4k demo">Muon Baryon</a>&#8216;. But what´s the catch? Let´s face it. Because when it comes to calculate distance fields, there is the need of using lots of mathematic functions like <em>sin()</em> and <em>cos(), </em>so doing this with Flash might not be your best idea ever. But to say it in advance, I went for a pure AS3 attempt as well, of which more later&#8230;</p>
<p>There´s another solution that´s not far to seek by using <a href="http://de.wikipedia.org/wiki/WebGL" title="WebGL wikipedia´s definition">WebGL</a> <a href="http://de.wikipedia.org/wiki/GLSL" title="GLSL wikipedia´s definition">GLSL</a> shaders (like i did <a href="http://www.dasprinzip.com/prinzipiell/2011/02/21/raymarching/" title="Raymarching">here</a>). So this time I tried diverse formulas for my distance field and added some more values to the process. For instance, by simply clicking on the generated output image, you can now square the entire field or switch back to the normal view as you like.</p>
<p><a href="http://www.dasprinzip.com/pExamples/raymarcher04.htm" title="Raymarching"><img src="http://www.dasprinzip.com/pExamples/p123_4.jpg" title="square my distance" alt="square my distance" vspace="0" width="514" align="middle" border="0" height="188" hspace="0" /><br />
Launch</a> <em>(You need a modern WebGL enabled browser like <a href="http://www.google.com/landing/chrome/beta/" target="_blank">Google Chrome 9+</a> or <a href="http://www.mozilla.com/firefox/beta/" target="_blank">Firefox 4+</a>)</em></p>
<p>And like I hinted before, I was up for coding an AS3 only based raymarcher as well. In the final analysis I must admit that this version is nothing more just like a proof of concept, as it is commonly known that too much of <em>Math.sin()</em> and <em>Math.cos()</em> or <em>Math.sqrt()</em> means <em>FlashPlayer.sucks()</em>!<em> </em>So it´s only logical that you can´t go for any too advanced distance field calculations at all, but still it´s fun, so here we go&#8230;</p>
<p><a href="http://www.dasprinzip.com/pExamples/p123.html" title="AS3 only raymarching a simple distance field"><img src="http://www.dasprinzip.com/pExamples/p123_3.jpg" title="AS3 only raymarching a simple distance field" alt="AS3 only raymarching a simple distance field" vspace="0" width="514" align="middle" border="0" height="155" hspace="0" /><br />
Launch</a></p>
<p>Lastly&#8230; &#8216;Phew,&#8217; I can hardly wait to show you some very nice <a href="http://www.adobe.com/devnet/pixelbender.html" title="Adobe Pixel Bender">Pixel Bender</a>, <a href="http://labs.adobe.com/technologies/alchemy/" title="Adobe Alchemy">Alchemy</a> and <a href="http://labs.adobe.com/technologies/flashplatformruntimes/incubator/" title="Adobe Molehill 3D Api">Molehill</a> stuff I prepared for my upcoming <a href="http://www.beyondtellerrand.com/ffk11/speakers_sessions.php" title="FFK conference, Cologne, 2011">FFK Cologne 2011</a> talk, and in the meantime, feel free to <a href="http://www.dasprinzip.com/pExamples/as3raymarcher.zip" title="download as3 raymarcher">download</a> the <a href="http://www.dasprinzip.com/pExamples/as3raymarcher.zip" title="download as3 raymarcher">sources</a> and march into the distance as you like!</p>
<p>All right, see you at FFK Cologne in a few weeks or maybe before that at upcoming <a href="http://www.geekybynature.com/" title="Geekybynature conference, New York">Geekybynature</a> conference in New York next week? Anyway, enjoy!<br />&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dasprinzip.com/prinzipiell/2011/03/22/ray-marching-the-distance/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Raymarching</title>
		<link>http://www.dasprinzip.com/prinzipiell/2011/02/21/raymarching/</link>
		<comments>http://www.dasprinzip.com/prinzipiell/2011/02/21/raymarching/#comments</comments>
		<pubDate>Mon, 21 Feb 2011 16:05:56 +0000</pubDate>
		<dc:creator>frank reitberger</dc:creator>
		
		<category><![CDATA[WebGL]]></category>

		<guid isPermaLink="false">http://www.dasprinzip.com/prinzipiell/2011/02/21/raymarching/</guid>
		<description><![CDATA[The recent days I had some time to  tinker with WebGL, and once again, it´s really highly enjoyable being able to write GLSL based shader effects without caring about performance too much. Therefore I decided to take some stuff I initially prepared for my upcoming FITC Amsterdam talk but that didn´t make it in my [...]]]></description>
			<content:encoded><![CDATA[<p>The recent days I had some time to  tinker with <a href="http://en.wikipedia.org/wiki/WebGL" title="wikipedia webgl definition">WebGL</a>, and once again, it´s really highly enjoyable being able to write <a href="http://en.wikipedia.org/wiki/GLSL" title="wikipedia glsl definition">GLSL</a> based shader effects without caring about performance too much. Therefore I decided to take some stuff I initially prepared for my upcoming <a href="http://www.fitc.ca/events/presentations/presentation.cfm?event=115&amp;presentation_id=1441" title="FITC Amsterdam 2011">FITC Amsterdam</a> talk but that didn´t make it in my new session (<a href="http://www.fitc.ca/events/presentations/presentation.cfm?event=115&amp;presentation_id=1441">RealTimeHard<sup></sup></a>) by some reason, and write its GLSL equivalent.</p>
<p>But at first, &#8216;ray marching&#8217;, what is this all about? Well, using the &#8216;ray marching + distance fields&#8217; technique is like the newest hot potato finding its way from the <a href="http://en.wikipedia.org/wiki/Demoscene" title="wikipedia´s demoscene definition">Demoscene</a> to our beloved Flash for example. If you want to get started and get an idea of the concept behind all that, I recommend reading following <a href="http://code4k.blogspot.com/2009/10/potatro-and-raymarching-story-of.html" title="Potatro, RayMarching and DistanceFields">article</a> first (and maybe the concept behind distance fields called <a href="http://www.springerlink.com/content/917pw8d69dq49x1g/" title="sphere tracing">sphere tracing</a> from John C. Hart). Beyond that, there are tons of threads and articles out there dealing with that topic, but the &#8216;<a href="http://www.pouet.net/topic.php?which=7920&amp;page=1&amp;x=15&amp;y=12" title="pouet.net raymarching beginners thread">Raymarching Beginners</a>&#8216; as well as the &#8216;<a href="http://www.pouet.net/topic.php?which=7931&amp;page=1&amp;x=29&amp;y=6" title="pouet.net raymarching toolbox thread">Raymarching Toolbox</a>&#8216; threads are fantastic <a href="http://www.pouet.net" title="pouet.net ">pouet.net</a> sources to get started with.</p>
<p>Enough talk: Let us first enjoy how beautiful this technique looks in action, for example in FRequency´s 4k intro &#8216;<a href="http://www.youtube.com/watch?v=mswPy5bt3TQ" title="FRequency´s potatro 4k intro ">potatro</a>&#8216; or in &#8216;<a href="http://www.youtube.com/watch?v=8H30wwxflBQ" title="Quite and Orange, cdak 4k intro">cdak</a>&#8216; a 4k intro by Quite and Orange. And as I said, ray marching looks good in Flash too, like in this <a href="http://www.unitzeroone.com/labs/raymarcher/" title="UnitZeroOne´s pb raymarcher">Raymarcher</a> using Pixelbender from <a href="http://unitzeroone.com/blog/" title="UnitZeroOne´s blog">Ralph Hauwert</a>. So being charged with all that inspiration, here are my little contributions in this field (yet again using <a href="http://mrdoob.com/blog" title="Mr. Doob´s blog">Mr. Doob´s handy WebGL sandbox</a>):</p>
<p><a href="http://www.dasprinzip.com/pExamples/raymarcher01.htm" title="webgl/glsl raymarcher#1"><img src="http://www.dasprinzip.com/pExamples/raymarcherImg01.jpg" title="raymarcher#1" alt="raymarcher#1" align="middle" border="0" vspace="0" width="514" height="188" hspace="0" /><br />
Launch</a></p>
<p><a href="http://www.dasprinzip.com/pExamples/raymarcher02.htm"><img src="http://www.dasprinzip.com/pExamples/raymarcherImg02.jpg" title="raymarcher#2" alt="raymarcher#2" align="middle" border="0" vspace="0" width="514" height="92" hspace="0" /></a><a href="http://www.dasprinzip.com/pExamples/raymarcher02.htm" title="webgl/glsl raymarcher#2"><br />
Launch</a></p>
<p><a href="http://www.dasprinzip.com/pExamples/raymarcher03.htm" title="webgl/glsl raymarcher#3"><img src="http://www.dasprinzip.com/pExamples/raymarcherImg03.jpg" title="raymarcher#3" alt="raymarcher#3" align="middle" border="0" vspace="0" width="514" height="188" hspace="0" /><br />
Launch</a></p>
<p>Feel free to grab the sourcecodes (<em>which´s located within the HTML templates</em>) and modify at your pleasure. Still interested? More to come in my upcoming <a href="http://www.fitc.ca/events/presentations/presentation.cfm?event=115&amp;presentation_id=1441" title="FITC Amsterdam 2011">FITC Amsterdam</a> and <a href="http://www.beyondtellerrand.com/ffk11/speakers_sessions.php" title="FFK Cologne 2011">FFK Cologne 2011</a> talks. See you!<br />&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dasprinzip.com/prinzipiell/2011/02/21/raymarching/feed/</wfw:commentRss>
		</item>
		<item>
		<title>WebGL excursion.</title>
		<link>http://www.dasprinzip.com/prinzipiell/2011/02/07/webgl-excursion/</link>
		<comments>http://www.dasprinzip.com/prinzipiell/2011/02/07/webgl-excursion/#comments</comments>
		<pubDate>Mon, 07 Feb 2011 12:48:49 +0000</pubDate>
		<dc:creator>frank reitberger</dc:creator>
		
		<category><![CDATA[WebGL]]></category>

		<guid isPermaLink="false">http://www.dasprinzip.com/prinzipiell/2011/02/07/webgl-excursion/</guid>
		<description><![CDATA[After WebGL was implemented and activated by default in the newest update of Google Chrome 9 last week, and even Firefox 4.0 Beta 9 runs it as well (and a Safari Nightly build too), I decided that now is the time to give it a try. As for me for now the most exciting feature [...]]]></description>
			<content:encoded><![CDATA[<p>After <a href="http://en.wikipedia.org/wiki/WebGL" title="webgl definition via wikipedia">WebGL</a> was implemented and activated by default in the newest update of <a href="http://www.chromeexperiments.com/webgl" title="Google Chrome 9 (Beta)">Google Chrome 9</a> last week, and even <a href="http://www.mozilla.com/de/firefox/beta/" title="Firefox 4.0 Beta 9">Firefox 4.0 Beta 9</a> runs it as well (and a <a href="http://nightly.webkit.org/" title="Safari Nightly build">Safari Nightly build</a> too), I decided that now is the time to give it a try. As for me for now the most exciting feature to play around with is <a href="http://en.wikipedia.org/wiki/GLSL" title="glsl definition via wikipedia">GLSL</a> based shader programming. Yummy!</p>
<p>In case you want immidiately start programming your own Fragment- and Vertex-shaders too, <a href="http://mrdoob.com/blog" title="Mr. Doob´s blog">Mr. Doob </a>has written a very handy sandbox with the basic WebGL  initialisation code. Most helpful if you don´t want to waste time on that and just concentrate on coding your shaders. So here are my results to date&#8230;<br />&nbsp;</p>
<p><a href="http://www.dasprinzip.com/pExamples/webgl_lattice.htm" title="lattice (glsl fragment shader)"><img src="http://www.dasprinzip.com/pExamples/p123_0.jpg" title="Lattice" alt="Lattice" align="middle" border="0" vspace="0" width="473" height="92" hspace="0" /><br />
Launch</a><br />&nbsp;</p>
<p>And&#8230;</p>
<p><a href="http://www.dasprinzip.com/pExamples/webgl_clod.htm" title="synthetic berries"><img src="http://www.dasprinzip.com/pExamples/p123_1.jpg" title="Synthetic berries" alt="Synthetic berries" align="middle" border="0" vspace="0" width="473" height="92" hspace="0" /><br />
Launch</a></p>
<p>The lesson is clear: Using WebGL/GLSL is pure fun and I think it´s definitely worth playing around with it, but as I expect clients to be overcautious making use of this new possibilities<a href="http://www.dict.cc/englisch-deutsch/possibilities.html"></a>, there´s way enough space for Flash projects in the future.</p>
<p><em>Edit: There´s a fullscreen version of the &#8216;Lattice&#8217; - feel free to <a href="http://www.dasprinzip.com/pExamples/webgl_latticeFull.htm" title="lattice fullscreen version">start it</a> at <strong>your own risk</strong>! Warning!!! It may shut down your system. </em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dasprinzip.com/prinzipiell/2011/02/07/webgl-excursion/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Vortex.</title>
		<link>http://www.dasprinzip.com/prinzipiell/2011/01/22/vortex/</link>
		<comments>http://www.dasprinzip.com/prinzipiell/2011/01/22/vortex/#comments</comments>
		<pubDate>Sat, 22 Jan 2011 12:47:10 +0000</pubDate>
		<dc:creator>frank reitberger</dc:creator>
		
		<category><![CDATA[Pixel Bender]]></category>

		<category><![CDATA[Flash]]></category>

		<category><![CDATA[Actionscript3]]></category>

		<guid isPermaLink="false">http://www.dasprinzip.com/prinzipiell/2011/01/22/vortex/</guid>
		<description><![CDATA[This year´s gonna be awesome! I personally got invited to give talks at upcoming FITC Amsterdam and FFK 2011 Cologne conferences so far (hurry, you may still get the super early bird tickets for both conferences), as well as going to travel to New York together with a decent lineup of friends of mine (like [...]]]></description>
			<content:encoded><![CDATA[<p>This year´s gonna be awesome! I personally got invited to give talks at upcoming <a href="http://www.fitc.ca/events/presentations/presentation.cfm?event=115&amp;presentation_id=1441" title="FITC Amsterdam 2011">FITC Amsterdam</a> and <a href="http://www.beyondtellerrand.com/ffk11/speakers_sessions.php" title="FFK 2011 Cologne">FFK 2011 Cologne</a> conferences so far (<span class="status-body"><span class="entry-content">hurry, you may still get the super early bird tickets for both conferences)</span></span>, as well as going to travel to New York together with a decent lineup of friends of mine (like <a href="http://www.derschmale.com" title="David Lenaert´s blog">David</a>, <a href="http://en.nicoptere.net/" title="Nicolas Barradeau´s blog">Nicolas</a> and <a href="http://devboy.org/" title="Dominic Graefen´s blog">Dominic</a>) and visit the promising <a href="http://geekybynature.com/" title="Geeky by nature 2011, New York">Geekybynature</a> conference there. Best thing in view of my forthcoming talks is, that I´ll have an utterly new presentation, jam-packed with unreleased new experiments and snippets I´m already burning to show you.</p>
<p>Reverse of the medal is, that working on new stuff and preparing my new talk means not to have that much spare time to release snippets alongside. Until by now&#8230;</p>
<p><a href="http://www.dasprinzip.com/pExamples/p122.html" title="Vortex"><img src="http://www.dasprinzip.com/pExamples/p122.jpg" title="vortex pixelshader" alt="vortex pixelshader" vspace="0" width="500" align="middle" border="0" height="352" hspace="0" /><br />
Launch</a></p>
<p>The little <a href="http://en.wikipedia.org/wiki/Vortex" title="Vortex wikipedia definition">vortex</a> pixelshader listed above is a <a href="http://www.adobe.com/devnet/pixelbender.html" title="Adobe´s Pixel Bender Technology Center">Pixel Bender</a> shader implementation of  Mic´s famous <a href="http://www.pouet.net/prod.php?which=52761" title="Monjori 1k demo-release @pouet.net">Monjori 1k</a> demo-release. Watch out! Yet another effect referring to the <a href="http://en.wikipedia.org/wiki/Demoscene" title="demoscene wikipedia defintion">demoscene</a> is crossing your path, and of course feel free to snag the <a href="http://www.dasprinzip.com/pExamples/p122.zip" title="vortex sources">full sources here</a>. So let´s heat up for this year and <a href="http://www.dasprinzip.com/pExamples/p122.html" title="Vortex">dive </a>into the <a href="http://www.dasprinzip.com/pExamples/p122.html" title="Vortex">vortex</a>.<br />&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dasprinzip.com/prinzipiell/2011/01/22/vortex/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>

