<?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>something in the way &#187; Uncategorized</title>
	<atom:link href="http://www.herkulano.com/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.herkulano.com</link>
	<description>sharing inspirations in design, art, photography and technology</description>
	<lastBuildDate>Mon, 26 Jul 2010 18:10:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>AS3-P2P-LIB and P2P Video Calls on Android</title>
		<link>http://www.herkulano.com/2010/07/as3-p2p-lib-and-p2p-video-calls-on-android/</link>
		<comments>http://www.herkulano.com/2010/07/as3-p2p-lib-and-p2p-video-calls-on-android/#comments</comments>
		<pubDate>Thu, 22 Jul 2010 08:15:30 +0000</pubDate>
		<dc:creator>herkulano</dc:creator>
				<category><![CDATA[Shared]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[lib]]></category>
		<category><![CDATA[P2P]]></category>
		<category><![CDATA[Video]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[
			
				
			
		
I am very happy that the community is getting more and more involved in P2P. I told you, it has endless possibilities!  
AS3-P2P-LIB
AS3-P2P-LIB is a pure ActionScript 3.0 Library by Dominic Graefen that helps Flash developers get star...]]></description>
			<content:encoded><![CDATA[<div style="float:right;margin-left:10px">
			<a href="http://api.tweetmeme.com/share?url=http://www.flashrealtime.com/as3-p2p-lib-and-p2p-video-calls-on-android/"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http://www.flashrealtime.com/as3-p2p-lib-and-p2p-video-calls-on-android/&amp;style=normal" height="61" width="50"/><br />
			</a>
		</div>
<p>I am very happy that the community is getting more and more involved in P2P. I told you, it has endless possibilities! <img src="http://www.flashrealtime.com/wp-includes/images/smilies/icon_smile.gif" alt=":)"/> </p>
<p><strong>AS3-P2P-LIB</strong><br />
AS3-P2P-LIB is a pure ActionScript 3.0 Library by <a href="http://devboy.org/">Dominic Graefen</a> that helps Flash developers get started with P2P easily.</p>
<p><a href="http://github.com/devboy/AS3-P2P-LIB"><img src="http://www.flashrealtime.com/wp-content/uploads/2010/07/as3-p2p-lib.png" alt="as3-p2p-lib" title="as3-p2p-lib" width="480" height="251"/></a></p>
<p><a href="http://github.com/devboy/AS3-P2P-LIB/tree/master/org/devboy/toolkit/net/p2p">All Classes</a> | <a href="http://github.com/devboy/AS3-P2P-LIB/blob/master/Example.as">Example</a> | <a href="http://github.com/devboy/AS3-P2P-LIB">Project page at GitHub</a></p>
<p><strong>P2P Video Calls on Android</strong></p>
<p>My fellow evangelist Mark Doherty built a great demo app using P2P and <a href="http://labs.adobe.com/technologies/air/">AIR 2.5 for Android</a>. <a href="http://vimeo.com/13410620">Watch this video</a>, where he shows how it works. And btw: I should really teach him how to pronounce my name <img src="http://www.flashrealtime.com/wp-includes/images/smilies/icon_smile.gif" alt=":)"/> Mark, you are going to get a lesson at MAX 2010!</p>
<p><embed src="http://vimeo.com/moogaloop.swf?clip_id=13410620&amp;server=vimeo.com&amp;show_title=0&amp;show_byline=0&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" allowFullScreen="true" allowScriptAccess="never" width="500" height="281" wmode="transparent" type="application/x-shockwave-flash"></embed></p>
<p><a href="http://www.flashmobileblog.com/2010/07/17/p2p-video-calls-on-android/">Check Mark’s blog post</a> for further information.</p>]]></content:encoded>
			<wfw:commentRss>http://www.herkulano.com/2010/07/as3-p2p-lib-and-p2p-video-calls-on-android/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Passing webcam data into WebGL via Flash</title>
		<link>http://www.herkulano.com/2010/07/passing-webcam-data-into-webgl-via-flash/</link>
		<comments>http://www.herkulano.com/2010/07/passing-webcam-data-into-webgl-via-flash/#comments</comments>
		<pubDate>Fri, 16 Jul 2010 20:46:30 +0000</pubDate>
		<dc:creator>herkulano</dc:creator>
				<category><![CDATA[Shared]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Note: To view the demos, you will need to have a WebGL capable browser plus the latest Flash Player (with webcam enabled in your Flash settings). I advise people to download Firefox 4.0 beta, enter "about:config" in the address bar, and change "webgl.e...]]></description>
			<content:encoded><![CDATA[<p><em>Note: To view the demos, you will need to have a WebGL capable browser plus the latest <a href="http://get.adobe.com/flashplayer/">Flash Player</a> (with webcam enabled in your <a href="http://www.macromedia.com/support/documentation/en/flashplayer/help/help04.html">Flash settings</a>). I advise people to download <a href="http://www.mozilla.com/en-US/firefox/all-beta.html">Firefox 4.0 beta</a>, enter "about:config" in the address bar, and change "webgl.enabled_for_all_sites" to <strong>true</strong>.</em></p>
<p>I tend to stay away from the HTML5 vs Flash "debate", principally because I think it's inane. Both platforms offer certain advantages over the other and some interesting results can be achieved by utilizing their strengths. Case in point, Flash's built-in webcam support and WebGL's hardware-accelerated 3D graphics are features that only exist in their respective platforms (<a href="http://devworks.thinkdigit.com/Internet/Native-webcam-support-to-come-with-HTML5_3834.html">for now</a>). Bridging the technologies produces something unattainable by only using one, as the following quick examples illustrate. </p>
<p><a href="http://www.peternitsch.net/demo/webgl_webcam/index.html"><img src="http://www.peternitsch.net/images/webglcam2.jpg" alt="WebGLcam"/><br />
Simple interactive cube.</a></p>
<p><span></span><a href="http://www.peternitsch.net/demo/webgl_webcam/kaleido.html"><img src="http://www.peternitsch.net/images/webglcam3.jpg" alt="WebGLcam"/><br />
Plane deformation</a> (Kaleidoscope shader by iq ported from <a href="http://www.iquilezles.org/apps/shadertoy/">Shader Toy</a>).</p>
<p><a href="http://www.peternitsch.net/demo/webgl_webcam/raytracer.html"><img src="http://www.peternitsch.net/images/webglcam1.jpg" alt="WebGLcam"/><br />
Raytracing</a> (Kinderpainter by iq ported from <a href="http://www.iquilezles.org/apps/shadertoy/">Shader Toy</a>).</p>
<p>Passing webcam data to Javascript involves a few steps. The BitmapData drawn from the Video object needs to be compressed to JPEG and encoded to Base64 for the <a href="http://en.wikipedia.org/wiki/Data_URI_scheme">data URI</a> to read it. This can be a very taxing process in native ActionScript, but is nearly negligible when done in <a href="http://haxe.org/">haXe</a> or <a href="http://labs.adobe.com/technologies/alchemy/">Alchemy</a>. In this case, I'm using both. The JPEG compression is performed by <a href="http://www.websector.de/blog/2009/06/21/speed-up-jpeg-encoding-using-alchemy/">metalbot's Alchemy JPEG encoder</a>, while the Base64 encoding is handled by <a href="http://www.blooddy.by/en/">Bloodhound's haXe crypto library</a>. ExternalInferface passes the resulting string to the WebGL's texture Image source with the following method:</p>
<div><span><a href="http://www.peternitsch.net/blog">PLAIN TEXT</a></span></div>
<div><span>CODE:</span>
<div>
<div>
<ol>
<li style="font-family:&#39;Courier New&#39;, Courier, monospace;color:black;font-weight:normal;font-style:normal;color:#3A6A8B">
<div style="font-family:&#39;Courier New&#39;, Courier, monospace;font-weight:normal">function fromFlash<span style="color:#006600;font-weight:bold">(</span>event, value<span style="color:#006600;font-weight:bold">)</span> <span style="color:#006600;font-weight:bold">{</span></div>
</li>
<li style="font-weight:bold;color:#26536A">
<div style="font-family:&#39;Courier New&#39;, Courier, monospace;font-weight:normal">  texture.<span>image</span>.<span>src</span> = <span style="color:#CC0000">"data:image/jpg;base64,"</span>+value;</div>
</li>
<li style="font-family:&#39;Courier New&#39;, Courier, monospace;color:black;font-weight:normal;font-style:normal;color:#3A6A8B">
<div style="font-family:&#39;Courier New&#39;, Courier, monospace;font-weight:normal"><span style="color:#006600;font-weight:bold">}</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Not only is it possible for HTML5 and Flash to peacefully coexist, but they can also help each other achieve a result not possible on their own. Kumbaya. </p>]]></content:encoded>
			<wfw:commentRss>http://www.herkulano.com/2010/07/passing-webcam-data-into-webgl-via-flash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
