<?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>bongiovi&#039;s</title>
	<atom:link href="http://blog.bongiovi.tw/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://blog.bongiovi.tw</link>
	<description></description>
	<lastBuildDate>Fri, 27 Apr 2012 15:48:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Chinese Masks</title>
		<link>http://blog.bongiovi.tw/?p=376</link>
		<comments>http://blog.bongiovi.tw/?p=376#comments</comments>
		<pubDate>Fri, 27 Apr 2012 15:48:23 +0000</pubDate>
		<dc:creator>bongiovi</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[chinese]]></category>
		<category><![CDATA[Kuler]]></category>
		<category><![CDATA[mask]]></category>

		<guid isPermaLink="false">http://blog.bongiovi.tw/?p=376</guid>
		<description><![CDATA[Just some random idea to create a traditional chinese mask with different colors, next step will be build a real 3D model. and here is a amazing motion design of chinese mask :]]></description>
			<content:encoded><![CDATA[<p>Just some random idea to create a traditional chinese mask with different colors, next step will be build a real 3D model.</p>
<p><a href="http://www.bongiovi.tw/experiments/chineseMask/" target="_blank"><img class="alignnone size-large wp-image-377" title="chineseMask01" src="http://blog.bongiovi.tw/wp-content/uploads/2012/04/chineseMask01-1024x605.jpg" alt="" width="620" height="366" /></a></p>
<div class="flickrGallery"><a href="http://www.flickr.com/photos/68229108@N05/6972707142/" title="chineseMask01" rel="" class="flickr-image"><img src="http://farm8.static.flickr.com/7051/6972707142_1b499877a0_t.jpg" alt="chineseMask01" class="" title="" longdesc="" /></a><a href="http://www.flickr.com/photos/68229108@N05/6972707284/" title="chineseMask02" rel="" class="flickr-image"><img src="http://farm9.static.flickr.com/8021/6972707284_57d4c8040a_t.jpg" alt="chineseMask02" class="" title="" longdesc="" /></a><a href="http://www.flickr.com/photos/68229108@N05/7118786323/" title="chineseMask03" rel="" class="flickr-image"><img src="http://farm9.static.flickr.com/8162/7118786323_1e4883bf2f_t.jpg" alt="chineseMask03" class="" title="" longdesc="" /></a><a href="http://www.flickr.com/photos/68229108@N05/7118786465/" title="chineseMask04" rel="" class="flickr-image"><img src="http://farm9.static.flickr.com/8028/7118786465_ba42755a5b_t.jpg" alt="chineseMask04" class="" title="" longdesc="" /></a><a href="http://www.flickr.com/photos/68229108@N05/7118786605/" title="chineseMask05" rel="" class="flickr-image"><img src="http://farm8.static.flickr.com/7199/7118786605_6c76aab491_t.jpg" alt="chineseMask05" class="" title="" longdesc="" /></a><a href="http://www.flickr.com/photos/68229108@N05/6972707842/" title="chineseMask06" rel="" class="flickr-image"><img src="http://farm8.static.flickr.com/7233/6972707842_8172c36f1b_t.jpg" alt="chineseMask06" class="" title="" longdesc="" /></a><a href="http://www.flickr.com/photos/68229108@N05/6972708008/" title="chineseMask07" rel="" class="flickr-image"><img src="http://farm8.static.flickr.com/7218/6972708008_dbfac5a52d_t.jpg" alt="chineseMask07" class="" title="" longdesc="" /></a><a href="http://www.flickr.com/photos/68229108@N05/6972708112/" title="chineseMask08" rel="" class="flickr-image"><img src="http://farm8.static.flickr.com/7231/6972708112_4b018c7abc_t.jpg" alt="chineseMask08" class="" title="" longdesc="" /></a><a href="http://www.flickr.com/photos/68229108@N05/7118787119/" title="chineseMask09" rel="" class="flickr-image"><img src="http://farm8.static.flickr.com/7122/7118787119_685f158739_t.jpg" alt="chineseMask09" class="" title="" longdesc="" /></a><a href="http://www.flickr.com/photos/68229108@N05/6972708286/" title="chineseMask10" rel="" class="flickr-image"><img src="http://farm8.static.flickr.com/7183/6972708286_de0226f2a7_t.jpg" alt="chineseMask10" class="" title="" longdesc="" /></a><a href="http://www.flickr.com/photos/68229108@N05/6972708440/" title="chineseMask11" rel="" class="flickr-image"><img src="http://farm8.static.flickr.com/7249/6972708440_278a8d9a54_t.jpg" alt="chineseMask11" class="" title="" longdesc="" /></a></div>
<p>and here is a amazing motion design of chinese mask :</p>
<p><iframe src="http://player.vimeo.com/video/24169968?title=0&amp;byline=0&amp;portrait=0&amp;color=ff0179" width="600" height="300" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bongiovi.tw/?feed=rss2&#038;p=376</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Circles with processing and Adobe Kuler</title>
		<link>http://blog.bongiovi.tw/?p=366</link>
		<comments>http://blog.bongiovi.tw/?p=366#comments</comments>
		<pubDate>Mon, 23 Apr 2012 23:00:45 +0000</pubDate>
		<dc:creator>bongiovi</dc:creator>
				<category><![CDATA[Processing]]></category>
		<category><![CDATA[circles]]></category>
		<category><![CDATA[Kuler]]></category>

		<guid isPermaLink="false">http://blog.bongiovi.tw/?p=366</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<a href="http://www.flickr.com/photos/yiwenlin/6961199794/" title="screen-1590" rel="flickr-mgr" class="flickr-image"><img src="http://farm8.static.flickr.com/7109/6961199794_3ae29f3f6b_z.jpg" alt="screen-1590" class="flickr-medium_640" title="" longdesc="" /></a>
<div class="flickrGallery"><a href="http://www.flickr.com/photos/68229108@N05/6961244118/" title="screen-3800" rel="" class="flickr-image"><img src="http://farm9.static.flickr.com/8143/6961244118_15c93139d3_t.jpg" alt="screen-3800" class="" title="" longdesc="" /></a><a href="http://www.flickr.com/photos/68229108@N05/6961239368/" title="screen-3582" rel="" class="flickr-image"><img src="http://farm8.static.flickr.com/7203/6961239368_33817798ce_t.jpg" alt="screen-3582" class="" title="" longdesc="" /></a><a href="http://www.flickr.com/photos/68229108@N05/6961234790/" title="screen-3558" rel="" class="flickr-image"><img src="http://farm8.static.flickr.com/7274/6961234790_32ffc7cf64_t.jpg" alt="screen-3558" class="" title="" longdesc="" /></a><a href="http://www.flickr.com/photos/68229108@N05/7107296783/" title="screen-3437" rel="" class="flickr-image"><img src="http://farm9.static.flickr.com/8020/7107296783_eda73ca31c_t.jpg" alt="screen-3437" class="" title="" longdesc="" /></a><a href="http://www.flickr.com/photos/68229108@N05/7107292181/" title="screen-3145" rel="" class="flickr-image"><img src="http://farm9.static.flickr.com/8019/7107292181_b335cbf0f4_t.jpg" alt="screen-3145" class="" title="" longdesc="" /></a><a href="http://www.flickr.com/photos/68229108@N05/7107287253/" title="screen-2934" rel="" class="flickr-image"><img src="http://farm9.static.flickr.com/8027/7107287253_9fb8007fb9_t.jpg" alt="screen-2934" class="" title="" longdesc="" /></a><a href="http://www.flickr.com/photos/68229108@N05/7107282647/" title="screen-2791" rel="" class="flickr-image"><img src="http://farm9.static.flickr.com/8008/7107282647_56d0edf812_t.jpg" alt="screen-2791" class="" title="" longdesc="" /></a><a href="http://www.flickr.com/photos/68229108@N05/7107277455/" title="screen-2678" rel="" class="flickr-image"><img src="http://farm9.static.flickr.com/8003/7107277455_c8e86015e4_t.jpg" alt="screen-2678" class="" title="" longdesc="" /></a><a href="http://www.flickr.com/photos/68229108@N05/7107272341/" title="screen-1855" rel="" class="flickr-image"><img src="http://farm8.static.flickr.com/7115/7107272341_2e9435d25e_t.jpg" alt="screen-1855" class="" title="" longdesc="" /></a><a href="http://www.flickr.com/photos/68229108@N05/6961199794/" title="screen-1590" rel="" class="flickr-image"><img src="http://farm8.static.flickr.com/7109/6961199794_3ae29f3f6b_t.jpg" alt="screen-1590" class="" title="" longdesc="" /></a><a href="http://www.flickr.com/photos/68229108@N05/6961193964/" title="screen-1299" rel="" class="flickr-image"><img src="http://farm8.static.flickr.com/7208/6961193964_3022d76ca6_t.jpg" alt="screen-1299" class="" title="" longdesc="" /></a><a href="http://www.flickr.com/photos/68229108@N05/7107256149/" title="screen-1095" rel="" class="flickr-image"><img src="http://farm9.static.flickr.com/8167/7107256149_ea75c98826_t.jpg" alt="screen-1095" class="" title="" longdesc="" /></a></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.bongiovi.tw/?feed=rss2&#038;p=366</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Learning OpenGL with Processing</title>
		<link>http://blog.bongiovi.tw/?p=363</link>
		<comments>http://blog.bongiovi.tw/?p=363#comments</comments>
		<pubDate>Fri, 20 Apr 2012 13:57:52 +0000</pubDate>
		<dc:creator>bongiovi</dc:creator>
				<category><![CDATA[Processing]]></category>
		<category><![CDATA[OpenGL]]></category>

		<guid isPermaLink="false">http://blog.bongiovi.tw/?p=363</guid>
		<description><![CDATA[Learning OpenGL with Processing is easy, there is not too much setups to do, just create a simple processing class, and with these 2 lines of code you are ready to go : PGraphicsOpenGL _pgl = (PGraphicsOpenGL) g; GL _gl &#8230;<p class="read-more"><a href="http://blog.bongiovi.tw/?p=363">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>Learning OpenGL with Processing is easy, there is not too much setups to do, just create a simple processing class, and with these 2 lines of code you are ready to go :</p>
<pre>PGraphicsOpenGL _pgl = (PGraphicsOpenGL) g;
GL _gl = _pgl.beginGL();</pre>
<p>and in the end of draw, don't forget to call</p>
<pre>_pgl.endGL();</pre>
<p>and for learning OpenGL, i think the best way to start is through the lessons of <strong><a href="http://nehe.gamedev.net/" target="_blank">Nehe</a></strong>, all the lessons come with source code, although his code are in C++, but they are converted to several other language as well and JOGL is included.</p>
<p>Here are some demos i did this morning, I have to say it's really easy to start, in a very short time you can build an amazing effect in 3D which is going to take much more time to do it in flash, especially theses kind of simple graphic like dots, lines and triangles, because you don't have a simple method to draw these thing in stage3D, not mention that you have to create your own vertex buffer, index buffer, and and handling the view and camera ... etc, but again I am only a beginner into this field, and I believe things will get more complicated as I move deeper into this. Anyway it's always feel good to learn a new thing and to discover the new possibilities.</p>
<div class="flickrGallery"><a href="http://www.flickr.com/photos/68229108@N05/6950064594/" title="03_sphere1" rel="" class="flickr-image"><img src="http://farm8.static.flickr.com/7046/6950064594_6b3124e8bd_t.jpg" alt="03_sphere1" class="" title="" longdesc="" /></a><a href="http://www.flickr.com/photos/68229108@N05/6950064656/" title="03_sphere0" rel="" class="flickr-image"><img src="http://farm8.static.flickr.com/7053/6950064656_5e4fa303fd_t.jpg" alt="03_sphere0" class="" title="" longdesc="" /></a><a href="http://www.flickr.com/photos/68229108@N05/7096135427/" title="02_triangle1" rel="" class="flickr-image"><img src="http://farm6.static.flickr.com/5334/7096135427_25a821c908_t.jpg" alt="02_triangle1" class="" title="" longdesc="" /></a><a href="http://www.flickr.com/photos/68229108@N05/6950064778/" title="02_triangle0" rel="" class="flickr-image"><img src="http://farm8.static.flickr.com/7244/6950064778_03210d6390_t.jpg" alt="02_triangle0" class="" title="" longdesc="" /></a><a href="http://www.flickr.com/photos/68229108@N05/7096135589/" title="01_lines1" rel="" class="flickr-image"><img src="http://farm6.static.flickr.com/5333/7096135589_80e7b76f7f_t.jpg" alt="01_lines1" class="" title="" longdesc="" /></a><a href="http://www.flickr.com/photos/68229108@N05/7096135669/" title="01_lines0" rel="" class="flickr-image"><img src="http://farm8.static.flickr.com/7278/7096135669_ee4a57b722_t.jpg" alt="01_lines0" class="" title="" longdesc="" /></a><a href="http://www.flickr.com/photos/68229108@N05/6950064998/" title="00_dots1" rel="" class="flickr-image"><img src="http://farm8.static.flickr.com/7179/6950064998_69226fa822_t.jpg" alt="00_dots1" class="" title="" longdesc="" /></a><a href="http://www.flickr.com/photos/68229108@N05/7096135821/" title="00_dots0" rel="" class="flickr-image"><img src="http://farm8.static.flickr.com/7218/7096135821_d490142ae2_t.jpg" alt="00_dots0" class="" title="" longdesc="" /></a></div>
<p>p.s. 講中文的同胞有福了，有善心人士把NEHE翻譯成中文了，連結在<a href="http://www.owlei.com/DancingWind/" target="_blank">這邊</a>，真是佛心來著!</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bongiovi.tw/?feed=rss2&#038;p=363</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Processing and Sunflow</title>
		<link>http://blog.bongiovi.tw/?p=358</link>
		<comments>http://blog.bongiovi.tw/?p=358#comments</comments>
		<pubDate>Thu, 19 Apr 2012 09:53:47 +0000</pubDate>
		<dc:creator>bongiovi</dc:creator>
				<category><![CDATA[Processing]]></category>
		<category><![CDATA[sunflow]]></category>

		<guid isPermaLink="false">http://blog.bongiovi.tw/?p=358</guid>
		<description><![CDATA[Do you want a nice looking light render of your processing work? now you can have it easily with P5SunflowApiApi, it's easy to use, just call size(1280, 720, "sunflowapiapi.P5SunflowAPIAPI"); and for the rendering : sunflow.render("invaders.png"); that's it, isn't it amazing, &#8230;<p class="read-more"><a href="http://blog.bongiovi.tw/?p=358">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://www.flickr.com/photos/yiwenlin/6946883956/" title="invaders0" rel="flickr-mgr" class="flickr-image"><img src="http://farm6.static.flickr.com/5466/6946883956_4a80288ec1_z.jpg" alt="invaders0" class="flickr-medium_640" title="" longdesc="" /></a>
<div class="flickrGallery"><a href="http://www.flickr.com/photos/68229108@N05/6946883956/" title="invaders0" rel="" class="flickr-image"><img src="http://farm6.static.flickr.com/5466/6946883956_4a80288ec1_t.jpg" alt="invaders0" class="" title="" longdesc="" /></a><a href="http://www.flickr.com/photos/68229108@N05/6946884008/" title="invaders1" rel="" class="flickr-image"><img src="http://farm6.static.flickr.com/5462/6946884008_887688f24e_t.jpg" alt="invaders1" class="" title="" longdesc="" /></a><a href="http://www.flickr.com/photos/68229108@N05/7092955121/" title="invaders2" rel="" class="flickr-image"><img src="http://farm6.static.flickr.com/5448/7092955121_7cf059125f_t.jpg" alt="invaders2" class="" title="" longdesc="" /></a><a href="http://www.flickr.com/photos/68229108@N05/7092955167/" title="invaders3" rel="" class="flickr-image"><img src="http://farm6.static.flickr.com/5075/7092955167_74083fbf8d_t.jpg" alt="invaders3" class="" title="" longdesc="" /></a><a href="http://www.flickr.com/photos/68229108@N05/6946884158/" title="invaders4" rel="" class="flickr-image"><img src="http://farm6.static.flickr.com/5038/6946884158_f22bfbe783_t.jpg" alt="invaders4" class="" title="" longdesc="" /></a><a href="http://www.flickr.com/photos/68229108@N05/7092955297/" title="invaders5" rel="" class="flickr-image"><img src="http://farm8.static.flickr.com/7094/7092955297_00a5953e36_t.jpg" alt="invaders5" class="" title="" longdesc="" /></a><a href="http://www.flickr.com/photos/68229108@N05/7092955339/" title="invaders6" rel="" class="flickr-image"><img src="http://farm8.static.flickr.com/7097/7092955339_c07fcbaf41_t.jpg" alt="invaders6" class="" title="" longdesc="" /></a></div>
<p>Do you want a nice looking light render of your processing work? now you can have it easily with <a href="http://code.google.com/p/sunflowapiapi/" target="_blank">P5SunflowApiApi</a>, it's easy to use, just call</p>
<pre>size(1280, 720, "sunflowapiapi.P5SunflowAPIAPI");</pre>
<p>and for the rendering :</p>
<pre>sunflow.render("invaders.png");</pre>
<p>that's it, isn't it amazing, and there are more to discover, take a look on this excellent article who has lots more detail this library</p>
<p><a href="http://amnonp5.wordpress.com/2010/09/28/sunflow-processing/" target="_blank">http://amnonp5.wordpress.com/2010/09/28/sunflow-processing/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bongiovi.tw/?feed=rss2&#038;p=358</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Particle Video with Processing</title>
		<link>http://blog.bongiovi.tw/?p=353</link>
		<comments>http://blog.bongiovi.tw/?p=353#comments</comments>
		<pubDate>Wed, 18 Apr 2012 15:40:03 +0000</pubDate>
		<dc:creator>bongiovi</dc:creator>
				<category><![CDATA[Processing]]></category>
		<category><![CDATA[OpenGL]]></category>
		<category><![CDATA[particles]]></category>

		<guid isPermaLink="false">http://blog.bongiovi.tw/?p=353</guid>
		<description><![CDATA[I've been developing a lot on processing, it's really interesting to learn and discover a new language, and also i get involved a lot into OpenGL as well. I must say the power of OpenGL really surprises me, when you &#8230;<p class="read-more"><a href="http://blog.bongiovi.tw/?p=353">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p><iframe src="http://www.youtube.com/embed/sbAnb6fqDlg" frameborder="0" width="600" height="300"></iframe></p>
<p>I've been developing a lot on processing, it's really interesting to learn and discover a new language, and also i get involved a lot into OpenGL as well. I must say the power of OpenGL really surprises me, when you see your work runs smoothly with a good fps and in a full screen size that's just awesome. I am not an expert on OpenGL but still I found it easy to use, at lease to create this kind of particle effect, it doesn't take me too much time to find the solution, I understand for advance effect sure it will be more complicated but for beginning actually it's similar to Processing. I really have a lot of in it, hope i can come up with more interesting works.</p>
<p>And here is how I do to use OpenGL to draw "Point" instead of using the Point(x, y, z) in processing, and I have a lot of improvements on performance :</p>
<pre>PGraphicsOpenGL _pgl = (PGraphicsOpenGL) this.g;
GL _gl = _pgl.beginGL();
_gl.glPointSize(RADIUS);
_gl.glBegin(GL.GL_POINTS);

_gl.glColor4f(red(color), green(color), blue(color), 1);
_gl.glVertex3f(x, y, z);

_gl.glEnd();
_pgl.endGL();</pre>
<p>of course, don't forget set your mode to OPENGL to be able to use it :</p>
<pre>size(screenWidth, screenHeight, OPENGL);</pre>
<p>and you can easily change the size of your point by modifying the parameter "RADIUS", just remember you have too call this before your call gl.begin(GL.GL_POINTS);</p>
<p>P.S. By the way, I really don't know the best way to encode my video, it always looks "crappy" <img src='http://blog.bongiovi.tw/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bongiovi.tw/?feed=rss2&#038;p=353</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Kinect with Processing</title>
		<link>http://blog.bongiovi.tw/?p=347</link>
		<comments>http://blog.bongiovi.tw/?p=347#comments</comments>
		<pubDate>Tue, 10 Apr 2012 15:08:44 +0000</pubDate>
		<dc:creator>bongiovi</dc:creator>
				<category><![CDATA[Processing]]></category>
		<category><![CDATA[Kinect]]></category>

		<guid isPermaLink="false">http://blog.bongiovi.tw/?p=347</guid>
		<description><![CDATA[Recently I finally have some time to play with kinect, it's really interesting, and this is my first test : I use OpenKinect from Daniel Shiffman, it's really easy to use, you can find it here. &#160; And I try &#8230;<p class="read-more"><a href="http://blog.bongiovi.tw/?p=347">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>Recently I finally have some time to play with kinect, it's really interesting, and this is my first test :</p>
<p><iframe width="600" height="300" src="http://www.youtube.com/embed/5uQ_dqbhm0Y" frameborder="0" allowfullscreen></iframe></p>
<p>I use OpenKinect from Daniel Shiffman, it's really easy to use, you can find it <a href="http://www.shiffman.net/p5/kinect/" target="_blank">here</a>.</p>
<p>&nbsp;</p>
<p>And I try to develop on eclipse, but i encounter some problems, luckily i found solutions for that, here are some tips that might be help:</p>
<p>1. To get started, you can start from this article : <a href="http://processing.org/learning/eclipse/" target="_blank">http://processing.org/learning/eclipse/</a></p>
<p>2. Import OpenGL library : you can check this article : <a href="http://processing.org/discourse/beta/num_1114400513_30.html" target="_blank">http://processing.org/discourse/beta/num_1114400513_30.html</a></p>
<p>I followed the instructions of "letsgooutside" and it works perfectly.</p>
<p>3. Import Video library, it just like importing opengl libraries, but just one small thing : in the project properties -&gt; Run/Debug Setting/ -&gt; Arguments -&gt; VM Arguments</p>
<p>have to add "-d32" to make it work , you can take a look on this <a href="http://labs.makemachine.net/2010/02/processing-video-on-osx-10-6-with-eclipse/" target="_blank">article</a>, there are detail instructions inside<a href="http://blog.bongiovi.tw/wp-content/uploads/2012/04/螢幕快照-2012-04-10-下午5.00.25.png"><img class="alignnone size-large wp-image-348" title="螢幕快照 2012-04-10 下午5.00.25" src="http://blog.bongiovi.tw/wp-content/uploads/2012/04/螢幕快照-2012-04-10-下午5.00.25-1024x650.png" alt="" width="620" height="393" /></a></p>
<p>and for the OpenKinect you have to add this "-d32" as well to make it work, i've struggled a little bit to find this.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bongiovi.tw/?feed=rss2&#038;p=347</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ray light pixel bender effect</title>
		<link>http://blog.bongiovi.tw/?p=341</link>
		<comments>http://blog.bongiovi.tw/?p=341#comments</comments>
		<pubDate>Fri, 23 Mar 2012 13:21:38 +0000</pubDate>
		<dc:creator>bongiovi</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[PixelBender]]></category>
		<category><![CDATA[ray light]]></category>

		<guid isPermaLink="false">http://blog.bongiovi.tw/?p=341</guid>
		<description><![CDATA[Having fun with Pixel Bender in a friday afternoon, source code on wonderfl, Ray Lights - wonderfl build flash online check the result here or click on the images.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.bongiovi.tw/experiments/raylight/" target="_blank"><img class="alignnone size-full wp-image-342" title="ray0" src="http://blog.bongiovi.tw/wp-content/uploads/2012/03/ray0.jpg" alt="" width="600" height="320" /></a></p>
<p><a href="http://www.bongiovi.tw/experiments/raylight/" target="_blank"><img class="alignnone size-full wp-image-343" title="ray1" src="http://blog.bongiovi.tw/wp-content/uploads/2012/03/ray1.jpg" alt="" width="600" height="320" /></a></p>
<p>Having fun with Pixel Bender in a friday afternoon, source code on wonderfl,<br />
<script type="text/javascript" src="http://wonderfl.net/blogparts/nibq/js"></script></p>
<p class="ttlBpWonderfl" style="width: 465px; margin: 0; text-align: right; font-size: 11px;"><a title="Ray Lights" href="http://wonderfl.net/c/nibq">Ray Lights - wonderfl build flash online</a></p>
<p>check the result <a href="http://www.bongiovi.tw/experiments/raylight/" target="_blank">here</a> or click on the images.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bongiovi.tw/?feed=rss2&#038;p=341</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Particle Video V2</title>
		<link>http://blog.bongiovi.tw/?p=338</link>
		<comments>http://blog.bongiovi.tw/?p=338#comments</comments>
		<pubDate>Thu, 22 Mar 2012 23:02:23 +0000</pubDate>
		<dc:creator>bongiovi</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[agal]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[particles]]></category>
		<category><![CDATA[Stage3D]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://blog.bongiovi.tw/?p=338</guid>
		<description><![CDATA[If you haven't seen this amazing project, I strongly suggest you to take a look. After seeing this project, i thought about my previous particle video project, and thinking of add more elements, especially i want to recreate that kind of &#8230;<p class="read-more"><a href="http://blog.bongiovi.tw/?p=338">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>If you haven't seen this amazing <a href="http://www.creativeapplications.net/processing/unnamed-soundsculpture-by-daniel-franke-cedric-kiefer-kinect-processing/" target="_blank">project</a>, I strongly suggest you to take a look.<br />
<a href="http://www.creativeapplications.net/processing/unnamed-soundsculpture-by-daniel-franke-cedric-kiefer-kinect-processing/" target="_blank"><img class="alignnone size-full wp-image-339" title="unnamed_soundsculpture05" src="http://blog.bongiovi.tw/wp-content/uploads/2012/03/unnamed_soundsculpture05.jpg" alt="" width="600" height="300" /></a></p>
<p>After seeing this project, i thought about my previous particle video project, and thinking of add more elements, especially i want to recreate that kind of feeling that the particle is created then last for certain time and die away, but it's seems to be a huge task to push more particles on the screen, but at the end, it turns out simpler then I thought.</p>
<p>The idea is simple: create particles base on current image, then keep render it and its previous images until it reach its end, the most important part is that in each frame, we only upload the data (vertex buffer) of current image then store it, so we don't need to upload every images in every frame, this saves us a huge amount of time, secondly, the coordinate of the pixel is never changed, x and y are always the same, and the z is calculated in AGAL based on the color of the pixel, so this part can be reused, therefore the only thing we need to re-upload every time is the colors, you can find the source code here on wonderfl.<br />
<script type="text/javascript" src="http://wonderfl.net/blogparts/fypQ/js"></script></p>
<p class="ttlBpWonderfl" style="width: 465px; margin: 0; text-align: right; font-size: 11px;"><a title="Particle Video" href="http://wonderfl.net/c/fypQ">Particle Video - wonderfl build flash online</a></p>
<p>and another bigger version goes to <a href="http://www.bongiovi.tw/experiments/particleVideo/Test02.html" target="_blank">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bongiovi.tw/?feed=rss2&#038;p=338</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Playing with lights</title>
		<link>http://blog.bongiovi.tw/?p=324</link>
		<comments>http://blog.bongiovi.tw/?p=324#comments</comments>
		<pubDate>Wed, 21 Mar 2012 16:59:58 +0000</pubDate>
		<dc:creator>bongiovi</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Chinese Painting]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[lights]]></category>
		<category><![CDATA[PixelBender]]></category>

		<guid isPermaLink="false">http://blog.bongiovi.tw/?p=324</guid>
		<description><![CDATA[Recently I become very interested in light effects, and I found an amazing light effect on wonderfl: yonatan challenge for people with nothing better to do - wonderfl build flash online &#160; at the same time i come across the &#8230;<p class="read-more"><a href="http://blog.bongiovi.tw/?p=324">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.bongiovi.tw/experiments/lights/latterns.html" target="_blank"><img class="alignnone size-full wp-image-325" title="latterns" src="http://blog.bongiovi.tw/wp-content/uploads/2012/03/latterns.jpg" alt="" width="600" height="293" /></a></p>
<p>Recently I become very interested in light effects, and I found an amazing light effect on wonderfl:<br />
<script type="text/javascript" src="http://wonderfl.net/blogparts/2CRK/js"></script></p>
<p class="ttlBpWonderfl" style="width: 465px; margin: 0; text-align: right; font-size: 11px;"><a title="yonatan challenge for people with nothing better to do" href="http://wonderfl.net/c/2CRK">yonatan challenge for people with nothing better to do - wonderfl build flash online</a></p>
<p>&nbsp;</p>
<p>at the same time i come across the work of this amazing artist : <a href="http://alicexz.deviantart.com/" target="_blank">http://alicexz.deviantart.com/</a> , then I saw this picture, it's so beautiful and i couldn't help thinking what will it be with the light effect i found? so i just give it a try, i remove the brighter part so it becomes transparent, where the light can come through, the result is very interesting, you can see it <a href="http://www.bongiovi.tw/experiments/lights/latterns.html" target="_blank">here</a> or click on the image.</p>
<p>There is a trick when i was adding those particles, in fact all was drawn in a single BitmapData, to create a hole in a BitmapData you can use BitmapData.draw() method combine with BlendMode.ERASE, but here comes the tricky part : when you passing the object you wish to draw, it can't be a BitmapData, it must be a shape, a Bitmap or something else, like this :</p>
<pre class="actionscript">bitmapData.<span style="color: #006600;">draw</span><span style="color: #66cc66;">&#40;</span>bitmapLattern, mtx, ct, BlendMode.<span style="color: #006600;">ERASE</span>, <span style="color: #000000; font-weight: bold;">null</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>; <span style="color: #808080; font-style: italic;">// working</span>
bitmapData.<span style="color: #006600;">draw</span><span style="color: #66cc66;">&#40;</span>bitmapDataLattern, mtx, ct, BlendMode.<span style="color: #006600;">ERASE</span>, <span style="color: #000000; font-weight: bold;">null</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>; <span style="color: #808080; font-style: italic;">// not working</span></pre>
<p>After testing this, i was fascinated by it, and i want to try it on a chinese painting, i took a vary famous painting of chinese : <a href="http://en.wikipedia.org/wiki/Along_the_River_During_the_Qingming_Festival" target="_blank">http://en.wikipedia.org/wiki/Along_the_River_During_the_Qingming_Festival</a></p>
<p><a href="http://www.bongiovi.tw/experiments/lights/AlongTheRiver.html" target="_blank"><img class="alignnone size-full wp-image-326" title="river" src="http://blog.bongiovi.tw/wp-content/uploads/2012/03/river.jpg" alt="" width="600" height="315" /></a></p>
<p>it's a very beautiful painting but also very big, so i can't preprocess it in PhotoShop and export an PNG, it will be too large, therefore i create a little Pixel Bender Program to do the task for me :</p>
<pre>#define getLength(color) color.r*color.r + color.g*color.g + color.b*color.b                              

void
evaluatePixel() {               
   float2 pos = outCoord();
   float4 color = sampleLinear(src, pos);
   color.a = 1.0 - getLength(color)/3.0;
   dst = color;
}</pre>
<p>so the brighter a pixel is, the more transparent it will be, you can check the result <a href="http://www.bongiovi.tw/experiments/lights/AlongTheRiver.html" target="_blank">here</a>, or click on the image as well.</p>
<p>P.S.  Both 2 take some time to load because the image is big, be patient <img src='http://blog.bongiovi.tw/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bongiovi.tw/?feed=rss2&#038;p=324</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Animate Colors with Perlin Noise</title>
		<link>http://blog.bongiovi.tw/?p=320</link>
		<comments>http://blog.bongiovi.tw/?p=320#comments</comments>
		<pubDate>Mon, 05 Mar 2012 12:23:16 +0000</pubDate>
		<dc:creator>bongiovi</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[copyPixel]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[Kuler]]></category>
		<category><![CDATA[PerlinNoise]]></category>

		<guid isPermaLink="false">http://blog.bongiovi.tw/?p=320</guid>
		<description><![CDATA[Kulers - wonderfl build flash online The effect i mentioned before for the circle spectrum, now the full source code including the pixel bender is on wonderfl.]]></description>
			<content:encoded><![CDATA[<p><script type="text/javascript" src="http://wonderfl.net/blogparts/ikfV/js"></script></p>
<p class="ttlBpWonderfl" style="width: 600px; margin: 0; text-align: right; font-size: 11px;"><a title="Kulers" href="http://wonderfl.net/c/ikfV">Kulers - wonderfl build flash online</a></p>
<p>The effect i mentioned before for the circle spectrum, now the full source code including the pixel bender is on wonderfl.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bongiovi.tw/?feed=rss2&#038;p=320</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

