<?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>Patched Reality &#187; Code</title>
	<atom:link href="http://patchedreality.com/category/code/feed/" rel="self" type="application/rss+xml" />
	<link>http://patchedreality.com</link>
	<description>Augmented,Virtual,Mixed... Patched</description>
	<lastBuildDate>Sun, 20 Nov 2011 02:10:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
		<item>
		<title>Patched Reality FLAR Framework v0.1 release</title>
		<link>http://patchedreality.com/2010/06/patched-reality-flar-framework-v0-release/</link>
		<comments>http://patchedreality.com/2010/06/patched-reality-flar-framework-v0-release/#comments</comments>
		<pubDate>Tue, 01 Jun 2010 07:28:06 +0000</pubDate>
		<dc:creator>patrick</dc:creator>
				<category><![CDATA[Augmented Reality]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Papervision3D]]></category>
		<category><![CDATA[Actionscript3]]></category>
		<category><![CDATA[Away3D]]></category>
		<category><![CDATA[Away3DLite]]></category>
		<category><![CDATA[FLARManager]]></category>
		<category><![CDATA[FLARToolkit]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://patchedreality.com/?p=248</guid>
		<description><![CDATA[Today I&#8217;m announcing the first public availability of an application framework I&#8217;ve been developing that complements FLARToolkit and FLARManager, and makes it possible to rapidly produce Flash augmented reality applications. This past year I spent many many hours with FLARToolkit and  Eric Socolofsky&#8217;s excellent FLARManager.  FLARManager makes the overall FLARToolkit configuration much simpler, especially if you want to mirror the [...]]]></description>
			<content:encoded><![CDATA[<p></p><div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fpatchedreality.com%2F2010%2F06%2Fpatched-reality-flar-framework-v0-release%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fpatchedreality.com%2F2010%2F06%2Fpatched-reality-flar-framework-v0-release%2F&amp;source=patchedreality&amp;style=normal&amp;service=bit.ly&amp;service_api=patchedreality%3AR_071146e844329a445420841831829b42" height="61" width="50" /><br />
			</a>
		</div>
<p>Today I&#8217;m announcing the first public availability of an application framework I&#8217;ve been developing that complements <a title="FLARToolkit" href="http://www.libspark.org/wiki/saqoosha/FLARToolKit/en" target="_blank">FLARToolkit</a> and <a title="FLARManager" href="http://words.transmote.com/wp/flarmanager/" target="_blank">FLARManager</a>, and makes it possible to rapidly produce Flash augmented reality applications.</p>
<p>This past year I spent many many hours with <a title="FLARToolkit" href="http://www.libspark.org/wiki/saqoosha/FLARToolKit/en" target="_blank">FLARToolkit</a> and  <a title="Eric Socolofsky's" href="http://words.transmote.com/wp/about/" target="_blank">Eric Socolofsky&#8217;s</a> excellent <a title="FLARManager" href="http://words.transmote.com/wp/flarmanager/" target="_blank">FLARManager</a>.  FLARManager makes the overall FLARToolkit configuration much simpler, especially if you want to mirror the camera or use multiple markers, and has some nice additional features like marker smoothing.</p>
<p>However, after two or three projects I found myself spending a lot of time writing very similar 3D asset loading and manipulation code, which FLARManager wasn&#8217;t really created to address.  This is where the framework I&#8217;m announcing today comes in.  A simple &#8220;show an animated 3D model on a marker&#8221; application can be written in about 5 minutes with about 10 lines of mxml code.  Of course, much more complex applications are possible, such as the first application to use it, which lets you explore a 17th century &#8220;Cabinet of Curiosities&#8221;  at The Getty Museum web site: <a rel="nofollow" href="http://bit.ly/GettyAugsburgAR" target="_blank">http://bit.ly/GettyAugsburgAR</a>.</p>
<p><object id="gettyvideo_embed" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="384" height="318" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="align" value="middle" /><param name="allowScriptAccess" value="sameDomain" /><param name="allowFullScreen" value="true" /><param name="quality" value="high" /><param name="bgcolor" value="#000000" /><param name="FlashVars" value="id=http://www.getty.edu/art/exhibitions/north_pavilion/ar/arvideo.xml" /><param name="src" value="http://www.getty.edu/global/video/gettyvideo_embed.swf" /><param name="name" value="gettyvideo_embed" /><param name="flashvars" value="id=http://www.getty.edu/art/exhibitions/north_pavilion/ar/arvideo.xml" /><param name="allowfullscreen" value="true" /><embed id="gettyvideo_embed" type="application/x-shockwave-flash" width="384" height="318" src="http://www.getty.edu/global/video/gettyvideo_embed.swf" name="gettyvideo_embed" flashvars="id=http://www.getty.edu/art/exhibitions/north_pavilion/ar/arvideo.xml" bgcolor="#000000" quality="high" allowfullscreen="true" allowscriptaccess="sameDomain" align="middle"></embed><noembed>
<p>Alternative content</p>
<p></noembed><br />
</object></p>
<p>The key features of the framework are:</p>
<ul>
<li>Clean separation between tracking libraries and rendering engines, allowing for easy mix and match</li>
<li>Configure 3D scenes with a simple XML file and specify scale, position, and rotation</li>
<li>Group 3D models and assign them to different AR markers</li>
<li>Configure Collada animation clips (especially useful for Maya-exported models)</li>
<li>Easily specify marker detection/removal behavior - fade out, fade in out, stay visible, or disappear immediately.</li>
<li>Pluggable and extensible scene renderers &#8211; currenlty Papervision3D, Away3D, and Away3DLite.</li>
<li>Integration with FLARManager and flare*NFT (commercial only)</li>
<li>Sound manager for configuring and playing sounds</li>
<li>Extend all XML configuration items with application-specific data</li>
</ul>
<p>The framework is dual licensed in the same manner as FLARToolkit &#8211; it is licensed under GPL for non-commercial projects, or projects where you are willing to share your source code.  For use in projects where you do not want to share your source code, a commercial license is available.  Send commercial inquiries to: <script type="text/javascript">// <![CDATA[
// Email obfuscator script 2.1 by Tim Williams, University of Arizona
// Random encryption key feature by Andrew Moulden, Site Engineering Ltd
// This code is freeware provided these four comment lines remain intact
// A wizard to generate this code is at http://www.jottings.com/obfuscator/
{ coded = "ONvd@zWPgIQtpQWjOPM.gdG"
  key = "WJ6NwQZ0yRtCT7X1xIcz2UY5DsoBlmiMLPErbfqa4gnuekVH8dAjGOS9hKpFv3"
  shift=coded.length
  link=""
  for (i=0; i<coded.length; i++) {
    if (key.indexOf(coded.charAt(i))==-1) {
      ltr = coded.charAt(i)
      link += (ltr)
    }
    else {
      ltr = (key.indexOf(coded.charAt(i))-shift+key.length) % key.length
      link += (key.charAt(ltr))
    }
  }
document.write("<a href="mailto:"+link+"" mce_href="mailto:&quot;+link+&quot;">"+link+"</a>")
}
// ]]&gt;</script><noscript>Sorry, you need Javascript on to use the email link.</noscript>.</p>
<p>The framework doesn&#8217;t have an official name yet, but I wanted to be able to share it with fellow <a title="ARE2010" href="http://augmentedrealityevent.com/" target="_blank">ARE2010</a> attendees.  You can check out the framework here:</p>
<p><code>svn co http://projects.patchedreality.com/FLARFramework/releases/v0.1 PatchedRealityFLARFramework</code></p>
<p><span style="font-family: Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;">Or browse the source at:</span></p>
<p><a title="http://projects.patchedreality.com/FLARFramework/releases/v0.1" href="http://projects.patchedreality.com/FLARFramework/releases/v0.1" target="_blank">http://projects.patchedreality.com/FLARFramework/releases/v0.1</a></p>
<p>There is a simple example application in the &#8220;examples/Simple&#8221; directory.  More information and documentation to come.</p>
<p>If you&#8217;re going to be at the <a title="ARE2010" href="http://augmentedrealityevent.com/" target="_blank">ARE2010</a>conference, look me up and I&#8217;d be happy to give you a demonstration. I hope you&#8217;ll download it and give it a try, and enjoy spending more of your time on application/game logic than boilerplate code.  And if you do, please share your experiences.</p>
]]></content:encoded>
			<wfw:commentRss>http://patchedreality.com/2010/06/patched-reality-flar-framework-v0-release/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Added support for multiple animation clips in Collada models in Papervision3D</title>
		<link>http://patchedreality.com/2009/04/support-for-multiple-animation-clips-in-collada-models-in-papervision3d/</link>
		<comments>http://patchedreality.com/2009/04/support-for-multiple-animation-clips-in-collada-models-in-papervision3d/#comments</comments>
		<pubDate>Thu, 30 Apr 2009 21:29:48 +0000</pubDate>
		<dc:creator>patrick</dc:creator>
				<category><![CDATA[Augmented Reality]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Papervision3D]]></category>
		<category><![CDATA[Actionscript 3]]></category>
		<category><![CDATA[collada]]></category>
		<category><![CDATA[FLARToolkit]]></category>
		<category><![CDATA[flash]]></category>

		<guid isPermaLink="false">http://patchedreality.com/?p=7</guid>
		<description><![CDATA[On my current FLARToolkit project (release soon!), I needed the ability to trigger more than one animation for a Collada file.  No problem, I figured, I&#8217;ll just use the convenient DAE.play(clip:String) method.  Unfortunately, I discovered that the implementation of that method didn&#8217;t make use of the &#8220;optional&#8221; clip name: /** * Plays the animation. * [...]]]></description>
			<content:encoded><![CDATA[<p></p><div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fpatchedreality.com%2F2009%2F04%2Fsupport-for-multiple-animation-clips-in-collada-models-in-papervision3d%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fpatchedreality.com%2F2009%2F04%2Fsupport-for-multiple-animation-clips-in-collada-models-in-papervision3d%2F&amp;source=patchedreality&amp;style=normal&amp;service=bit.ly&amp;service_api=patchedreality%3AR_071146e844329a445420841831829b42" height="61" width="50" /><br />
			</a>
		</div>
<p>On my current <a href="http://www.libspark.org/wiki/saqoosha/FLARToolKit/en" target="_blank">FLARToolkit</a> project (release soon!), I needed the ability to trigger more than one animation for a Collada file.  No problem, I figured, I&#8217;ll just use the convenient <code>DAE.play(clip:String)</code> method.  Unfortunately, I discovered that the implementation of that method didn&#8217;t make use of the &#8220;optional&#8221; clip name:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">/**
* Plays the animation.
 *
 * @param clip Optional clip name.
 */</span>
<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> <span style="color: #0066CC;">play</span><span style="color: #66cc66;">&#40;</span>clip:<span style="color: #0066CC;">String</span>=<span style="color: #000000; font-weight: bold;">null</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
<span style="color: #66cc66;">&#123;</span>
    <span style="color: #0066CC;">_currentFrame</span> = <span style="color: #cc66cc;">0</span>;
    _currentTime = <span style="color: #0066CC;">getTimer</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
    _isPlaying = <span style="color: #66cc66;">&#40;</span>_isAnimated <span style="color: #66cc66;">&amp;</span>amp;<span style="color: #66cc66;">&amp;</span>amp; _channels <span style="color: #66cc66;">&amp;</span>amp;<span style="color: #66cc66;">&amp;</span>amp; _channels.<span style="color: #0066CC;">length</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p>Luckily, the original author, <a href="http://techblog.floorplanner.com/author/tim" target="_blank">Tim Knip</a>, had coded enough of the foundations that adding in support for multiple clips was pretty straightforward.  If you need to play multiple animations for your Collada models, and can&#8217;t wait for the fix to make it into Papervision3D, you can download a replacement: <a href=" http://patchedreality.com/wp-content/uploads/2009/04/DAE.as" target="_blank">DAE.as</a>.</p>
<p>The bug report is <a href="http://code.google.com/p/papervision3d/issues/detail?id=191" target="_blank">Issue 191</a>, if you want to follow progress on its inclusion in the <a href="http://code.google.com/p/papervision3d" target="_blank">Papervision3D</a> trunk.</p>
]]></content:encoded>
			<wfw:commentRss>http://patchedreality.com/2009/04/support-for-multiple-animation-clips-in-collada-models-in-papervision3d/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

