<?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>Promethe's Blog &#187; Augmented Reality</title>
	<atom:link href="http://blog.promethe.net/tag/augmented-reality/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.promethe.net</link>
	<description>Web, RIAs and chocolate spaghettis...</description>
	<lastBuildDate>Tue, 29 Jun 2010 09:24:39 +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>MadCompany: Coming Soon!</title>
		<link>http://blog.promethe.net/2009/12/10/madcompany-coming-soon/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=madcompany-coming-soon</link>
		<comments>http://blog.promethe.net/2009/12/10/madcompany-coming-soon/#comments</comments>
		<pubDate>Wed, 09 Dec 2009 23:05:04 +0000</pubDate>
		<dc:creator>Promethe</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[3D]]></category>
		<category><![CDATA[ActionScript 3.0]]></category>
		<category><![CDATA[Augmented Reality]]></category>
		<category><![CDATA[FLARToolkit]]></category>
		<category><![CDATA[Flash 10]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://blog.promethe.net/?p=554</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><center><br />
<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/wrfLwa1aXrI&#038;hl=en_US&#038;fs=1&#038;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/wrfLwa1aXrI&#038;hl=en_US&#038;fs=1&#038;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object><br />
</center></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.promethe.net/2009/12/10/madcompany-coming-soon/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Augmented Reality in Flash 10</title>
		<link>http://blog.promethe.net/2009/10/20/augmented-reality-in-flash-10/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=augmented-reality-in-flash-10</link>
		<comments>http://blog.promethe.net/2009/10/20/augmented-reality-in-flash-10/#comments</comments>
		<pubDate>Tue, 20 Oct 2009 19:55:46 +0000</pubDate>
		<dc:creator>Promethe</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[3D]]></category>
		<category><![CDATA[3DS]]></category>
		<category><![CDATA[Augmented Reality]]></category>
		<category><![CDATA[FLARToolkit]]></category>
		<category><![CDATA[Flash 10]]></category>

		<guid isPermaLink="false">http://blog.promethe.net/?p=496</guid>
		<description><![CDATA[For those who have never heard of "augmented reality" (AR), here is Wikipedia's definition: Augmented reality (AR) is a term for a live direct or indirect view of a physical real-world environment whose elements are merged with (or augmented by) virtual computer-generated imagery - creating a mixed reality. Sounds a bit blury? Well... I'll try [...]]]></description>
			<content:encoded><![CDATA[<p>For those who have never heard of "augmented reality" (AR), here is <a href="http://en.wikipedia.org/wiki/Augmented_reality" target="_target">Wikipedia</a>'s definition:</p>
<blockquote><p>Augmented reality (AR) is a term for a live direct or indirect view of a physical real-world environment whose elements are merged with (or augmented by) virtual computer-generated imagery - creating a mixed reality.</p></blockquote>
<p>Sounds a bit blury? Well... I'll try to make it clearer with a demo...</p>
<h4>Demo</h4>
<p>First, you will have to print a little black and white "marker". The AR software scans the webcam picture and look for this very marker. When it is found, its 3D position, rotation and scale are computed and used to embed a 3D object. You can found the marker <a href="http://blog.promethe.net/wp-content/uploads/2009/10/flarlogo-marker.pdf" target="_blank">here</a> and it looks like this:</p>
<div id="attachment_517" class="wp-caption aligncenter" style="width: 310px"><a href="http://blog.promethe.net/wp-content/uploads/2009/10/flarlogo_marker.jpg" rel="shadowbox[post-496];player=img;"><img class="size-full wp-image-517" title="flarlogo_marker" src="http://blog.promethe.net/wp-content/uploads/2009/10/flarlogo_marker.jpg" alt="FLARToolkit Marker" width="300" height="300" /></a><p class="wp-caption-text">FLARToolkit Marker</p></div>
<p><span id="more-496"></span></p>
<p>Then, launch the following application and place the printed marker in front of your camera:</p>
<div id="attachment_505" class="wp-caption aligncenter" style="width: 330px"><a rel="shadowbox[minkoflar];width=640;height=480" href="http://blog.promethe.net/wp-content/uploads/2009/10/MinkoFLARDemo.swf"><img class="size-full wp-image-505" title="FLARToolkit in Flash 10" src="http://blog.promethe.net/wp-content/uploads/2009/10/minkoflar_tekkaman.jpg" alt="FLARToolkit in Flash 10" width="320" height="240" /></a><p class="wp-caption-text">FLARToolkit demo application (webcam required)</p></div>
<h4>What it does...</h4>
<ul>
<li>Load a <a href="http://blog.promethe.net/2009/10/07/quake-2-3d-models-in-flash-10/">MD2 file</a> and a JPEG texture</li>
<li>Loop through the animation of the model</li>
<li>Define multiple materials (press "w" to switch)</li>
<li>Use the <a href="http://www.libspark.org/wiki/saqoosha/FLARToolKit/en" target="_blank">FLARToolkit</a> library for the AR</li>
<li>Translate FLARToolkit matrices to fit the 3D API</li>
</ul>
<h4>How it works</h4>
<ul>
<li>The viewport and a dummy camera are initialized using the camera parameters and the size of the capture</li>
<li>The webcam image is binarized using a threshold filter: aeras that are darker than a threshold value end up completely white on a black background. Areas that are too small or too big are rejected.</li>
<li>Each remaining area is detected and its bounding box and position are computed</li>
<li>For each area that "looks like" a square, the data of what should be the pattern is extracted</li>
<li>This data is then compared to the actual pattern</li>
<li>If the match confidence is above a certain value (80% is this case), a matrix that contains the position/rotation/scale of the center of the marker is computed</li>
<li>This matrix is converted into a native Matrix3D object that can be used as the world transform for the 3D objects we want to display</li>
</ul>
<h4>What it does not do...</h4>
<ul>
<li>Use FLARManager to handle the AR. Lee "<a href="http://theflashblog.com/" target="_blank">The Flash Blog</a>" Brimelow juste made this <a href="http://gotoandlearn.com/play?id=114" target="_blank">excellent tutorial</a> about FLARManager: thank you Lee!</li>
</ul>
<h4>Known Issues</h4>
<p>The FLARToolkit library is very CPU intensive! I looked into it and beside the fact that it is poorly engineered, it looks like the blob extraction algorithm is the bottleneck. Sadly, there is not much to do about it...</p>
<p>It was ported from a Java port of a C++ library called ARToolkit. I never read the original C++ code or its Java port, but the AS3 version seems to be just a straight forward rewriting without much thinking. AS3 native types are totally ignored, if not re-implemented, and the design clearly perspires C++ (and not only because the original code is embeded in comments all over the place...). FLARManager apparently leverages the lack of a proper API.</p>
<p>To put it in a nutshell, FLARToolkit is an impressive tool but it needs a big cleanup!</p>
<h4>Credits</h4>
<ul>
<li><a href="http://mrdoob.com/80/Hi-ReS!_Stats" target="_blank">Framerate counter</a> by <a href="http://mrdoob.com" target="_blank">Mr. Doob</a></li>
<li>Augmented reality using <a href="http://www.libspark.org/wiki/saqoosha/FLARToolKit/en" target="_blank">FLARToolkit</a> by <a href="http://saqoosha.net/en/" target="_blank">Saqoosha</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.promethe.net/2009/10/20/augmented-reality-in-flash-10/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
