<?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>noCreativity.com &#187; Bitmapdata</title>
	<atom:link href="http://nocreativity.com/blog/tag/bitmapdata/feed" rel="self" type="application/rss+xml" />
	<link>http://nocreativity.com</link>
	<description>The life and discoveries of a new media artist</description>
	<lastBuildDate>Sat, 07 Jan 2012 17:03:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>World360: Unbugged and kicking!</title>
		<link>http://nocreativity.com/blog/world360-unbugged-and-kicking</link>
		<comments>http://nocreativity.com/blog/world360-unbugged-and-kicking#comments</comments>
		<pubDate>Fri, 20 Feb 2009 11:11:29 +0000</pubDate>
		<dc:creator>Ronny</dc:creator>
				<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Experiments]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Bitmapdata]]></category>
		<category><![CDATA[experiment]]></category>
		<category><![CDATA[prerendering]]></category>
		<category><![CDATA[Stereographic projection]]></category>
		<category><![CDATA[World360]]></category>

		<guid isPermaLink="false">http://nocreativity.com/blog/?p=397</guid>
		<description><![CDATA[A few days back, I posted the latest update on my World360 project (aka &#8216;stereographic projection&#8216;&#8230; That&#8217;s what it is actually called). What this thing actually does is it turns a 360° panorama image into a stereographic projection. The idea is to render this real time (just for the fun of doing it) (I am [...]]]></description>
			<content:encoded><![CDATA[<p>A few days back, I <a href="http://nocreativity.com/blog/world360-update-now-with-png-bug">posted</a> the latest update on my World360 project (aka &#8216;<a href="http://www2.flickr.com/photos/sbprzd/sets/72057594122346154/" target="_blank" target="_blank">stereographic projection</a>&#8216;&#8230; That&#8217;s what it is actually called). What this thing actually does is it turns a 360° panorama image into a stereographic projection. The idea is to render this real time (just for the fun of doing it) (I am thinking about doing more with this though&#8230;)</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-398" title="stereographicprojection" src="http://nocreativity.com/blog-engine/wp-content/uploads/2009/02/stereographicprojection.jpg" alt="stereographicprojection" width="461" height="258" /></p>
<p>A few days back I ran into a (at that time) weird problem where transparency was rendered black after a few frames. I had a hard time figuring out what was going on, and I just didn&#8217;t have a clue where to start looking. Google wasn&#8217;t really helping me out either. So I posted my problem on FlashFocus but nobody came up with the answer to my problem. <a href="http://Peterelst.com" target="_blank" target="_blank">Peter Elst</a> <a href="http://twitter.com/peterelst/status/1210737946" target="_blank" target="_blank">asked</a> <a href="http://www.unitzeroone.com/blog/" target="_blank" target="_blank">Ralph Hauwert</a> if he already had run into this problem. <a href="http://quasimondo.com/" target="_blank" target="_blank">Mario Klingemann</a> <a href="http://twitter.com/Quasimondo/status/1210859471" target="_blank" target="_blank">suggested</a> that there might be a problem with the <a href="http://www.quasimondo.com/archives/000665.php" target="_blank">premultiplied alpha</a>. At that time I didn&#8217;t know what premultiplied alpha was and seen as the problem resembled <a href="http://www.quasimondo.com/premultipliedAlpha/" target="_blank" target="_blank">the example</a> Mario gave, it seemed quite obvious he was right.</p>
<p>So I took peace with this, and decided to fall back to a non-transparent image format like JPEG. 2 days later <a href="http://twitter.com/erwinverdonk" target="_blank" target="_blank">Erwin Verdonk</a> came up with <a href="http://nocreativity.com/blog/world360-update-now-with-png-bug#comment-4135" target="_self">the answer</a> to the whole problem&#8230; I just had a hard time understanding it&#8230;</p>
<p>The root of the problem was me: I had totally forgotten that the draw() method of the BitmapData class didn&#8217;t clear the pixels before drawing&#8230; Yea, that&#8217;s emberassing, right?</p>
<p>But okay&#8230; That took care of some problems. I rewrote some of the code, and adjusted some settings.<br />
The speed and the result are quite okay right now. However using 450MB and up of RAM usage might be a bit of a killer.<br />
I&#8217;m wondering if I could take care of this using PNGencoder or perhaps JPGencoder.</p>
<p>But for now I&#8217;m happy&#8230; The <a href="http://labs.nocreativity.com/rendering/Tien.html" target="_blank">final result</a> (for now) can be seen here.</p>
<p>Thanks everybody for helping me out. You guys rock!</p>
<p>PS: The <a href="http://www.flickr.com/photos/7258342@N05/3044433024/in/pool-digitaldesignandmedia" target="_blank" target="_blank">picture</a> used in this experiment was taken by <a href="http://www.flickr.com/people/7258342@N05/" target="_blank" target="_blank">Thomas Heylen</a>. Thanks Thomas!</p>
]]></content:encoded>
			<wfw:commentRss>http://nocreativity.com/blog/world360-unbugged-and-kicking/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Some more bitmapdata and soundSpectrum progress</title>
		<link>http://nocreativity.com/blog/some-more-bitmapdata-and-soundspectrum-progress</link>
		<comments>http://nocreativity.com/blog/some-more-bitmapdata-and-soundspectrum-progress#comments</comments>
		<pubDate>Sun, 30 Nov 2008 13:17:15 +0000</pubDate>
		<dc:creator>Ronny</dc:creator>
				<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Audio]]></category>
		<category><![CDATA[bitmap]]></category>
		<category><![CDATA[Bitmapdata]]></category>
		<category><![CDATA[computeSpectrum]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Generative]]></category>
		<category><![CDATA[MP3]]></category>
		<category><![CDATA[player]]></category>
		<category><![CDATA[Playr]]></category>
		<category><![CDATA[SoundMixer]]></category>
		<category><![CDATA[SoundSpectrum]]></category>
		<category><![CDATA[Visualization]]></category>
		<category><![CDATA[Visualizr]]></category>

		<guid isPermaLink="false">http://nocreativity.com/blog/?p=255</guid>
		<description><![CDATA[Today I found some time to mess around with bitmapdata and computeSpectrum again. I&#8217;ve been playing with this earlier, but didn&#8217;t quite get where I wanted to be. A few weeks ago I came up with a better way of rendering the soundTunnel. That resulted in some crazy cool shit, which I finished off today. [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://nocreativity.com/blog-engine/wp-content/uploads/2008/11/picture-30.jpg"><img class="aligncenter size-full wp-image-267" title="picture-30" src="http://nocreativity.com/blog-engine/wp-content/uploads/2008/11/picture-30.jpg" alt="" width="500" height="297" /></a></p>
<p>Today I found some time to mess around with bitmapdata and computeSpectrum again. I&#8217;ve been playing with this earlier, but didn&#8217;t quite get where I wanted to be. A few weeks ago I came up with a better way of rendering the soundTunnel. That resulted in some crazy cool shit, which I finished off today.</p>
<p>I won&#8217;t go into technical details here (yet). I just wanted you guys to see the result.</p>
<p><strong>Demo</strong></p>
<p>Click <a href="http://labs.nocreativity.com/soundCoolness/Visualizr.html" target="_blank">here</a> <img src='http://nocreativity.com/blog-engine/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
And just to make sure it is actually reacting to the sound, try the following links too</p>
<ul>
<li>Song 1: <a href="http://labs.nocreativity.com/soundCoolness/Visualizr.html?s=1" target="_blank">Click</a></li>
<li>Song 2: <a href="http://labs.nocreativity.com/soundCoolness/Visualizr.html?s=2" target="_blank">Click</a></li>
<li>Song 3: <a href="http://labs.nocreativity.com/soundCoolness/Visualizr.html?s=3" target="_blank">Click</a> (default)<a href="http://labs.nocreativity.com/soundCoolness/Visualizr.html?s=1" target="_blank"><br />
</a></li>
<li>Song 4: <a href="http://labs.nocreativity.com/soundCoolness/Visualizr.html?s=4" target="_blank">Click</a></li>
<li>Song 5: <a href="http://labs.nocreativity.com/soundCoolness/Visualizr.html?s=5" target="_blank">Click</a></li>
</ul>
<p><strong>Controls</strong></p>
<ul>
<li>F: Go full screen</li>
<li>S: Freeze visualization</li>
<li>Click: Change color (happens automatically too)</li>
</ul>
<p><span id="more-255"></span></p>
<p><strong>Screenshots</strong></p>
<p><a href="http://nocreativity.com/blog-engine/wp-content/uploads/2008/11/picture-19.jpg"><img class="aligncenter size-full wp-image-256" title="picture-19" src="http://nocreativity.com/blog-engine/wp-content/uploads/2008/11/picture-19.jpg" alt="" width="500" height="294" /></a></p>
<p><a href="http://nocreativity.com/blog-engine/wp-content/uploads/2008/11/picture-20.jpg"><img class="aligncenter size-full wp-image-257" title="picture-20" src="http://nocreativity.com/blog-engine/wp-content/uploads/2008/11/picture-20.jpg" alt="" width="499" height="298" /></a></p>
<p><a href="http://nocreativity.com/blog-engine/wp-content/uploads/2008/11/picture-211.jpg"><img class="aligncenter size-full wp-image-258" title="picture-211" src="http://nocreativity.com/blog-engine/wp-content/uploads/2008/11/picture-211.jpg" alt="" width="500" height="299" /></a></p>
<p><a href="http://nocreativity.com/blog-engine/wp-content/uploads/2008/11/picture-22.jpg"><img class="aligncenter size-full wp-image-259" title="picture-22" src="http://nocreativity.com/blog-engine/wp-content/uploads/2008/11/picture-22.jpg" alt="" width="499" height="297" /></a></p>
<p><a href="http://nocreativity.com/blog-engine/wp-content/uploads/2008/11/picture-23.jpg"><img class="aligncenter size-full wp-image-260" title="picture-23" src="http://nocreativity.com/blog-engine/wp-content/uploads/2008/11/picture-23.jpg" alt="" width="500" height="293" /></a></p>
<p><a href="http://nocreativity.com/blog-engine/wp-content/uploads/2008/11/picture-24.jpg"><img class="aligncenter size-full wp-image-261" title="picture-24" src="http://nocreativity.com/blog-engine/wp-content/uploads/2008/11/picture-24.jpg" alt="" width="500" height="294" /></a></p>
<p><a href="http://nocreativity.com/blog-engine/wp-content/uploads/2008/11/picture-25.jpg"><img class="aligncenter size-full wp-image-262" title="picture-25" src="http://nocreativity.com/blog-engine/wp-content/uploads/2008/11/picture-25.jpg" alt="" width="500" height="295" /></a></p>
<p><a href="http://nocreativity.com/blog-engine/wp-content/uploads/2008/11/picture-26.jpg"><img class="aligncenter size-full wp-image-263" title="picture-26" src="http://nocreativity.com/blog-engine/wp-content/uploads/2008/11/picture-26.jpg" alt="" width="500" height="297" /></a></p>
<p><a href="http://nocreativity.com/blog-engine/wp-content/uploads/2008/11/picture-27.jpg"><img class="aligncenter size-full wp-image-264" title="picture-27" src="http://nocreativity.com/blog-engine/wp-content/uploads/2008/11/picture-27.jpg" alt="" width="500" height="296" /></a></p>
<p><a href="http://nocreativity.com/blog-engine/wp-content/uploads/2008/11/picture-28.jpg"><img class="aligncenter size-full wp-image-265" title="picture-28" src="http://nocreativity.com/blog-engine/wp-content/uploads/2008/11/picture-28.jpg" alt="" width="500" height="297" /></a></p>
<p><a href="http://nocreativity.com/blog-engine/wp-content/uploads/2008/11/picture-29.jpg"><img class="aligncenter size-full wp-image-266" title="picture-29" src="http://nocreativity.com/blog-engine/wp-content/uploads/2008/11/picture-29.jpg" alt="" width="500" height="299" /></a></p>
<p><a href="http://nocreativity.com/blog-engine/wp-content/uploads/2008/11/picture-31.jpg"><img class="aligncenter size-full wp-image-268" title="picture-31" src="http://nocreativity.com/blog-engine/wp-content/uploads/2008/11/picture-31.jpg" alt="" width="499" height="297" /></a></p>
<p><a href="http://nocreativity.com/blog-engine/wp-content/uploads/2008/11/picture-32.jpg"><img class="aligncenter size-full wp-image-269" title="picture-32" src="http://nocreativity.com/blog-engine/wp-content/uploads/2008/11/picture-32.jpg" alt="" width="500" height="298" /></a></p>
<p><a href="http://nocreativity.com/blog-engine/wp-content/uploads/2008/11/picture-33.jpg"><img class="aligncenter size-full wp-image-270" title="picture-33" src="http://nocreativity.com/blog-engine/wp-content/uploads/2008/11/picture-33.jpg" alt="" width="500" height="297" /></a></p>
<p><a href="http://nocreativity.com/blog-engine/wp-content/uploads/2008/11/picture-34.jpg"><img class="aligncenter size-full wp-image-271" title="picture-34" src="http://nocreativity.com/blog-engine/wp-content/uploads/2008/11/picture-34.jpg" alt="" width="500" height="297" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://nocreativity.com/blog/some-more-bitmapdata-and-soundspectrum-progress/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bitmapdata == 201% coolness: World 360</title>
		<link>http://nocreativity.com/blog/bitmapdata-is-201-procent-coolness-world-360</link>
		<comments>http://nocreativity.com/blog/bitmapdata-is-201-procent-coolness-world-360#comments</comments>
		<pubDate>Mon, 13 Oct 2008 22:23:22 +0000</pubDate>
		<dc:creator>Ronny</dc:creator>
				<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[ActionScript 3]]></category>
		<category><![CDATA[Bitmapdata]]></category>
		<category><![CDATA[Experimenten]]></category>
		<category><![CDATA[Group 94]]></category>
		<category><![CDATA[Panorama]]></category>
		<category><![CDATA[Pre-rendering]]></category>
		<category><![CDATA[World 360]]></category>

		<guid isPermaLink="false">http://nocreativity.com/blog/?p=166</guid>
		<description><![CDATA[Sommigen die mij op Twitter volgen weten zonder twijfel wat ik bedoel als ik het over &#8216;world 360&#8242; heb. Degenen die dat niet weten: Welkom in een trip door mijn absoluut geschifte brein. De term World 360 heb ik in feite gewoon bedacht/gekozen omdat we van een 360 graden panorama foto een &#8216;wereldbol&#8217; maken. Op [...]]]></description>
			<content:encoded><![CDATA[<p>Sommigen die mij op <a href="http://twitter.com/babyC/" target="_blank" target="_blank">Twitter</a> volgen weten zonder twijfel wat ik bedoel als ik het over &#8216;world 360&#8242; heb. Degenen die dat niet weten: Welkom in een trip door mijn absoluut geschifte brein.<br />
De term World 360 heb ik in feite gewoon bedacht/gekozen omdat we van een 360 graden panorama foto een &#8216;wereldbol&#8217; maken.</p>
<p><a href="http://nokia.com/nonstopliving" target="_blank" target="_blank"><img class="aligncenter size-full wp-image-167" title="world360" src="http://nocreativity.com/blog-engine/wp-content/uploads/2008/10/world360.jpg" alt="" width="500" height="303" /></a></p>
<p>Op <a href="http://multi-mania.be" target="_blank" target="_blank">MultiMania 2008</a> heb ik <a href="http://group94.com" target="_blank" target="_blank">Group 94</a> gezien, en hebben ze enkele van hun projecten en trukjes blootgelegd. Een behind the scenes van het waarschijnlijk meest gerenomeerde webdesign- en multimedia bedrijf van België (volgens mijn bescheiden mening). Ze lieten onder andere de <a href="http://archive.group94.com/nokianonstopliving/" target="_blank" target="_blank">Nokia &#8211; Non Stop Living</a> site zien; een site waar ik al langer van wist. Ik was altijd compleet onder de indruk van de effecten en transitions die deze site te bieden heeft.</p>
<p>Lange tijd heb ik me afgevraagd hoe alles in zijn werk gaat. Op een dag wou ik het weten en begon ik m&#8217;n hoofd te breken in Flash en Actionscript 3. Op MultiMania wist Julian (Group 94 member) te vertellen dat de &#8216;intro animatie&#8217; on-the-fly opgebouwd werd (aan de hand van ActionScript). Ik vond dat best wel een gewaagde zaak, aangezien het toch veiliger was geweest als men die intro had gerenderd, en dan als video had gebruikt in het project.<br />
Maar voor mij maakte dat opeens allemaal niet meer uit: Ik wou het ook voor elkaar krijgen.<span id="more-166"></span></p>
<p>Ik heb hiervoor verschillende keren moeten herbeginnen. Maar stap voor stap kwam ik dichterbij wat ik wou bereiken. Ik dacht eerst dat het grootste probleem het &#8216;in stukken knippen&#8217; ging zijn. Maar dat bleek niet waar te zijn. Integendeel: Dat was zelfs erg makkelijk. Het werd pas moeilijk als ik de individuele onderdelen wou gaan animeren. 360 bitmaps bijna simultaan tweenen is niet bepaald processor vriendelijk, zo bleek.</p>
<p>Eens ik daar geraakt was, was ik al vrij tevreden: het uiteindelijke effect was er al. Nu alleen nog wat machinevriendelijker maken. Maar daar was het probleem. Ik bedacht mij of er geen mogelijkheid was om on-the-fly een sequentie aan beelden te maken. Al vlug gaf ik het idee op, en ben ik nooit aan de code begonnen. In mijn hoofd zag ik namelijk het RAM geheugen door het dak gaan.</p>
<p>Enkele weken later las ik op <a href="http://www.bit-101.com/blog/" target="_blank" target="_blank">Keith Peters&#8217; blog</a> dat Julian van Group 94 het effectief <a href="http://www.bit-101.com/blog/?p=1544#comment-252844" target="_blank" target="_blank">op die manier had aangepakt</a>. Ik moest het dus ook proberen op die manier&#8230; En wat bleek: Het werkte! (DUHH!)<br />
Ik kreeg het voor elkaar om de animatie te pre-renderen en daarna te laten weergeven. Het resultaat was één smooth-as-fuck animatie. Enige probleem: het RAM geheugen leidde er (zoals ik had voorspeld) echt onder. 900-950MB voor de 380 frames van de animatie.</p>
<p>Ik heb er lang op gezocht, maar de sleutel tot succes bleek gewoon een wat kleinere bitmap te zijn. Door de afmetingen van de bitmaps deels aan te passen slaagde ik erin om 600MB af te knippen. Het resultaat gebruikte 250-300MB, een veel redelijker getal.</p>
<p>Ik ben al erg fier op het gehaalde resultaat. Hieronder kun je de verschillende fases van mijn vooruitgang zien. Ik was van plan om de bron hiervan vrij te geven, maar ik wil het nog even voor mezelf houden om zelf nog wat meer zaken uit te pluizen. <img src='http://nocreativity.com/blog-engine/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Basic versie: <a href="http://labs.nocreativity.com/rendering/twee.html" target="_blank">Twee</a>.<br />
Real time animation versie: <a href="http://labs.nocreativity.com/rendering/Zeven.html" target="_blank">Zeven</a>.<br />
Full blown prerendering (kan je browser crashen indien tekort aan geheugen): <a href="http://labs.nocreativity.com/rendering/Acht.html" target="_blank">Acht</a>.<br />
Optimized prerendering: <a href="http://labs.nocreativity.com/rendering/Negen.html" target="_blank">Negen</a>.</p>
<p>De volgende stap is nu om te zien hoe Julian en zijn collega&#8217;s deze <em>ronde wereld</em> laten &#8216;openplooien&#8217; tot <em>rechte wereld</em>&#8230;  Lijkt me allemaal nog net iets gecompliceerder te worden nu&#8230;</p>
<p>PS: als iemand een leukere panorama afbeelding te bieden heeft: aarzel niet om suggesties te posten. Ik ben de huidige zowat beu gezien <img src='http://nocreativity.com/blog-engine/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://nocreativity.com/blog/bitmapdata-is-201-procent-coolness-world-360/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

