<?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/"
	xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>¿noʎ ǝɹɐ ʍoɥ &#039;ʎǝɥ</title>
	<atom:link href="http://makc3d.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://makc3d.wordpress.com</link>
	<description>¡ǝuıɟ ʇsnɾ sı buıɥʇʎɹǝʌǝ ǝɹǝH</description>
	<lastBuildDate>Sun, 01 Nov 2009 00:25:57 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='makc3d.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/c4062b5d2481e4da7cc7ee04e38cc691?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>¿noʎ ǝɹɐ ʍoɥ &#039;ʎǝɥ</title>
		<link>http://makc3d.wordpress.com</link>
	</image>
			<item>
		<title>AI Battle again</title>
		<link>http://makc3d.wordpress.com/2009/10/31/ai-battle-again/</link>
		<comments>http://makc3d.wordpress.com/2009/10/31/ai-battle-again/#comments</comments>
		<pubDate>Sat, 31 Oct 2009 15:18:04 +0000</pubDate>
		<dc:creator>makc3d</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[AI]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[wonderfl]]></category>

		<guid isPermaLink="false">http://makc3d.wordpress.com/?p=235</guid>
		<description><![CDATA[Found my old AI battle simulator :)<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=makc3d.wordpress.com&blog=5102728&post=235&subd=makc3d&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Look what I&#8217;ve found on my hard drive &#8211; AI battle simulator! This was AS2 <a title="random ExternalInterface tutorial" href="http://www.actionscript.org/resources/articles/638/1/Basics-of-using-the-ExternalInterface/Page1.html">ExternalInterface</a>-powered thing, that allowed anyone to program blue and teal balls to move around simple maze, pick up green balls and throw into each other. Unfortunately, only three people actually wrote scripts for this thing.</p>
<p><a title="clicky" href="http://makc.googlecode.com/svn/trunk/flash/wonderfl/aibattle/aibattlefield.html"><img class="aligncenter size-full wp-image-236" title="AI Battle" src="http://makc3d.files.wordpress.com/2009/10/aibattle.gif?w=490&#038;h=101" alt="AI Battle" width="490" height="101" /></a></p>
<p>Today, I ported it in AS3 and made it load SWFs that contain &#8220;bot&#8221; code, instead of relying on JavaScript. Thanks to <a title="wonderfl ftw" href="http://wonderfl.net/">wonderfl</a>, however, you can still program &#8220;bots&#8221; in the browser. The sad fact is, wonderfl is the only flash community in the world where experiments like this can prompt any interest, so naturally I am taking it there.<span id="more-235"></span></p>
<p>The rules are simple: write an SWF having <strong>behavior</strong>() method in its main class, battle script will load your SWF and call this method every frame. It will set these input variables:</p>
<ul>
<li><strong>inColors</strong> and <strong>inDistances</strong> &#8211; arrays of 36 numbers representing things your &#8220;bot&#8221; can see at 10 degrees intervals: colors are 0 for wall, 1 for enemy, 2 for bullets and 3 for bullets heading your way, distances are in pixels;</li>
<li><strong>inHasBullet</strong> is <strong>Boolean</strong> value indicating that you have a bullet;</li>
<li><strong>inMaxSpeed</strong> is max speed that you can move at;</li>
</ul>
<p>In <strong>behavior</strong>() method you set following output variables:</p>
<ul>
<li><strong>outMoveSpeed</strong> &#8211; how fast you want to go;</li>
<li><strong>outMoveAngle</strong> &#8211; where you want to go (a number from 0 to 35);</li>
<li><strong>outThrowBullet</strong> &#8211; <strong>Boolean</strong> value indicating that you want to throw bullet (if you have one);</li>
<li><strong>outThrowAngle</strong> defines the target direction.</li>
</ul>
<p>I will soon post to wonderfl all three codes submitted back in 2007.</p>
 Tagged: AI, flash, wonderfl <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/makc3d.wordpress.com/235/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/makc3d.wordpress.com/235/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/makc3d.wordpress.com/235/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/makc3d.wordpress.com/235/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/makc3d.wordpress.com/235/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/makc3d.wordpress.com/235/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/makc3d.wordpress.com/235/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/makc3d.wordpress.com/235/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/makc3d.wordpress.com/235/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/makc3d.wordpress.com/235/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=makc3d.wordpress.com&blog=5102728&post=235&subd=makc3d&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://makc3d.wordpress.com/2009/10/31/ai-battle-again/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/516002b64891d76b1950581dc254cec0?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">makc3d</media:title>
		</media:content>

		<media:content url="http://makc3d.files.wordpress.com/2009/10/aibattle.gif" medium="image">
			<media:title type="html">AI Battle</media:title>
		</media:content>
	</item>
		<item>
		<title>Augmented reality and QR codes</title>
		<link>http://makc3d.wordpress.com/2009/10/30/augmented-reality-and-qr-codes/</link>
		<comments>http://makc3d.wordpress.com/2009/10/30/augmented-reality-and-qr-codes/#comments</comments>
		<pubDate>Fri, 30 Oct 2009 14:37:15 +0000</pubDate>
		<dc:creator>makc3d</dc:creator>
				<category><![CDATA[3D]]></category>
		<category><![CDATA[augmented reality]]></category>
		<category><![CDATA[FLARToolKit]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[QR]]></category>
		<category><![CDATA[QRCodeReader]]></category>
		<category><![CDATA[sand]]></category>

		<guid isPermaLink="false">http://makc3d.wordpress.com/?p=229</guid>
		<description><![CDATA[This is basically proof-of-concept that this is already possible in flash, today. What you do is take saqoosha&#8217;s FLARToolKit, add keno&#8217;s QR code reader, and load results into 3d engine (in this case, kiroukou&#8217;s sandy).

It doesn&#8217;t require webcam, just click to upload your test image. It also makes use of saqoosha&#8217;s PixelBender homography transform filter, since keno&#8217;s [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=makc3d.wordpress.com&blog=5102728&post=229&subd=makc3d&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a title="QR+AR PoC" href="http://code.google.com/p/makc/source/browse/trunk/flash/qr_flar/PoC.as">This</a> is basically proof-of-concept that <a title="random youtube QR+AR demo" href="http://www.youtube.com/watch?v=I6MiJKgtbug">this</a> is already possible in flash, today. What you do is take saqoosha&#8217;s <a title="FLARToolKit docs hub" href="http://www.flartoolkitdocs.org/">FLARToolKit</a>, add keno&#8217;s <a title="keno's QR code reader" href="http://blog.jactionscripters.com/2009/05/23/introduction-of-qr-code-reader-library/">QR code reader</a>, and load results into 3d engine (in this case, kiroukou&#8217;s <a title="R.I.P. :(" href="http://www.flashsandy.org/">sandy</a>).</p>
<p><a href="http://makc.googlecode.com/svn/trunk/flash/qr_flar/qr_flar.swf"><img class="aligncenter size-full wp-image-230" title="Clicky to see PoC" src="http://makc3d.files.wordpress.com/2009/10/qrar.jpg?w=471&#038;h=202" alt="Clicky to see PoC" width="471" height="202" /></a></p>
<p>It doesn&#8217;t require webcam, just click to upload your test image. It also makes use of saqoosha&#8217;s <a href="http://saqoosha.net/2009/05/25/1750/">PixelBender homography transform filter</a>, since keno&#8217;s reader apparently doesn&#8217;t do that on its own (and generally is very sensitive to input bitmap, I must add). Default image comes from <a title="thanks" href="http://www.blindsociety.com/blindspot/interactive-wallscape-incorporates-qr-code-design/">here</a>.</p>
 Tagged: 3D, augmented reality, FLARToolKit, flash, QR, QRCodeReader, sand <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/makc3d.wordpress.com/229/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/makc3d.wordpress.com/229/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/makc3d.wordpress.com/229/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/makc3d.wordpress.com/229/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/makc3d.wordpress.com/229/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/makc3d.wordpress.com/229/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/makc3d.wordpress.com/229/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/makc3d.wordpress.com/229/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/makc3d.wordpress.com/229/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/makc3d.wordpress.com/229/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=makc3d.wordpress.com&blog=5102728&post=229&subd=makc3d&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://makc3d.wordpress.com/2009/10/30/augmented-reality-and-qr-codes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/516002b64891d76b1950581dc254cec0?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">makc3d</media:title>
		</media:content>

		<media:content url="http://makc3d.files.wordpress.com/2009/10/qrar.jpg" medium="image">
			<media:title type="html">Clicky to see PoC</media:title>
		</media:content>
	</item>
		<item>
		<title>Poor man z-sorting</title>
		<link>http://makc3d.wordpress.com/2009/10/21/poor-man-z-sorting/</link>
		<comments>http://makc3d.wordpress.com/2009/10/21/poor-man-z-sorting/#comments</comments>
		<pubDate>Wed, 21 Oct 2009 16:30:06 +0000</pubDate>
		<dc:creator>makc3d</dc:creator>
				<category><![CDATA[3D]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[geometry]]></category>
		<category><![CDATA[sandy]]></category>

		<guid isPermaLink="false">http://makc3d.wordpress.com/?p=220</guid>
		<description><![CDATA[Those of you who still watch sandy engine, know that there is pending maintenance release with almost no new features (unless they finally backport MD2+MD3 support from haXe branch). However, sometimes new features do get added; for example&#8230; BSP sorting in single container mode.
Ever since Thomas added Renderer class a year ago it was possible to implement dynamic BSP sorting for [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=makc3d.wordpress.com&blog=5102728&post=220&subd=makc3d&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Those of you who still watch <a title="sandy?" href="http://www.flashsandy.org/">sandy engine</a>, know that there is pending maintenance release with almost no new features (unless they finally backport MD2+MD3 support from <a title="haXe?" href="http://www.flashsandy.org/haXe">haXe branch</a>). However, sometimes new features do get added; for example&#8230;<span id="more-220"></span> BSP sorting in single container mode.</p>
<p>Ever since <a title="Oct 05, 2008" href="http://code.google.com/p/sandy/source/detail?r=827&amp;path=/trunk/sandy/as3/trunk/src/sandy/core/Renderer.as">Thomas added Renderer class a year ago</a> it was possible to implement dynamic BSP sorting for whole scene (just like <a title="yeah" href="http://makc3d.wordpress.com/2009/09/07/alternativa3d-vs-infinity3d-head-to-head-dynamic-bsp-test/">Infinity3D did</a>), but noone working on sandy seem to have time or skills, and this never happened. On the other hand, an opportunity to implement simpler static BSP sorting existed ever since single container mode was introduced (which was, I believe, well over two years ago). As some people <a title="katopz" href="http://twitter.com/katopz/status/4984406993">noticed</a>, I did just that this weekend, in a matter of hours. Check it out &#8211; <a title="lazy bsp demo" href="http://sandy.googlecode.com/svn/trunk/sandy/as3/trunk/examples/Flex/Demo_LBSP/lbsp.swf">here</a>. On the left, you can see good old average Z sorting, on the right &#8211; BSP. Well, if that was so easy, why noone did it for &#8220;over two years&#8221;, huh?</p>
<p>Of course. There is a catch. This code does not modify geometry at all, no polygons are split and no complicated geometry analysis is done. Why? Simply because sandy is not friendly enough to do this within maintenace relese. You might remember that sandy was first 3D engine to implement <a title="this one" href="http://en.wikipedia.org/wiki/Sutherland-Hodgman_clipping_algorithm">frustum clipping</a>; this algorithm already provides us with all the means to split face by plane (remember <a title="water!" href="http://makc3d.wordpress.com/2008/12/24/water-in-sandy/">this</a>), but you can store just one result of this operation per face (when we need many of them obviously) or, alternatively, you have to modify underlying geometry itself. The latter option would not be that bad, if not for the magnitude of hack it takes to get it done. I tried it last January and gave up on that, but for the purpose of this post I have done <a title="warning: ugly code" href="http://makc.googlecode.com/svn/trunk/flash/sandy_bsp/">this PoC</a>. Just so you know that I am not talking entirely out of my ass.</p>
<p>Okay, so here comes the million dollars question: <strong>who the hell needs BSP that does not split polygons</strong>? I don&#8217;t know, probably poor people with no cash for Alternativa3D license :) It is true that new BSP sorting mode will not display your model correctly, unless it is carefully designed to work in this mode. It is exactly the same way it was before, when you had to carefully design your models to work in average Z sorting mode. In <a title="or click here again" href="http://sandy.googlecode.com/svn/trunk/sandy/as3/trunk/examples/Flex/Demo_LBSP/lbsp.swf">this demo above</a>, click anywhere to display models &#8221;optimized&#8221; for corresponding sorting modes, to see what am I talking about. On the bright side, BSP feature will be open for scripting, so that anyone can write BSP importer from GtkRadiant, or clever Blender script to help modellers.</p>
 Tagged: 3D, flash, geometry, sandy <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/makc3d.wordpress.com/220/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/makc3d.wordpress.com/220/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/makc3d.wordpress.com/220/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/makc3d.wordpress.com/220/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/makc3d.wordpress.com/220/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/makc3d.wordpress.com/220/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/makc3d.wordpress.com/220/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/makc3d.wordpress.com/220/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/makc3d.wordpress.com/220/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/makc3d.wordpress.com/220/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=makc3d.wordpress.com&blog=5102728&post=220&subd=makc3d&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://makc3d.wordpress.com/2009/10/21/poor-man-z-sorting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/516002b64891d76b1950581dc254cec0?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">makc3d</media:title>
		</media:content>
	</item>
		<item>
		<title>Alternativa3D 7.0: first impressions</title>
		<link>http://makc3d.wordpress.com/2009/10/05/alternativa3d-7-first-impressions/</link>
		<comments>http://makc3d.wordpress.com/2009/10/05/alternativa3d-7-first-impressions/#comments</comments>
		<pubDate>Mon, 05 Oct 2009 08:41:21 +0000</pubDate>
		<dc:creator>makc3d</dc:creator>
				<category><![CDATA[3D]]></category>
		<category><![CDATA[alternativa3d]]></category>
		<category><![CDATA[flash]]></category>

		<guid isPermaLink="false">http://makc3d.wordpress.com/?p=211</guid>
		<description><![CDATA[Yes! After 2 months of playing with Alternativa3D 7.0 WIP version I've finally got NDA exception to share my experience with you.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=makc3d.wordpress.com&blog=5102728&post=211&subd=makc3d&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Yes! After 2 months of playing with <a title="Alternativa3D" href="http://alternativaplatform.com/en/alternativa3d/">Alternativa3D</a> 7.0 WIP version I&#8217;ve finally got NDA exception to share my experience with you. And there you go, some juicy details to whet your appetite.<span id="more-211"></span></p>
<p><strong>What&#8217;s new?</strong></p>
<p>Perhaps the most important change from 5.x versions is a number of object container classes. If you have seen <a title="A7 progress report" href="http://blog.alternativaplatform.com/en/2009/02/21/alternativa3d-7-in-progress/">this post</a> from February, you should already know that Alternativa3D 7.0 will support good old average Z sorting in addition to BSP. What you probably don&#8217;t know is that there&#8217;s much more to that &#8211; apart from 3 sorting options (unsorted, average Z and BSP) on mesh level, there are 5 more sorting options on container level! With this kind of arsenal you can probably solve any kind of sorting problem in existence, or vastly improve performance if you do not have any sorting problems to begin with. And this is not the end of the story &#8211; I was told that sorting issue is still in focus of ongoing Alternativa3D development. To sum this point up, this engine is going to seriously kick some ass -)</p>
<p>All right, but it is not all about sorting, is it? Of course it&#8217;s not. The other important feature that somehow have not been demo-ed anywhere is Reference class. That&#8217;s right, <a title="R.I.P. clone()" href="http://help.alternativaplatform.com/en/client/alternativa/engine3d/core/Object3D.html#clone()">Object3D.clone()</a> is gone. As the name implies, Reference will cause referenced object (or container) rendered in its place using its alpha, blending mode, color transformation and filters. This is very simple idea that can save you lots of memory wasted with other engines. It has been around for years but, until now, nobody in flash 3D scene bothered to actually implement it.</p>
<p>Wait, did I just said, &#8220;its alpha, blending mode, color transformation and filters&#8221;? Weren&#8217;t alpha and blending mode in <a title="R.I.P. Material" href="http://help.alternativaplatform.com/en/client/alternativa/engine3d/materials/Material.html">Material</a> class? Yes, they were. However, in Alternativa3D 7.0 there is no any Material class. Instead, Mesh and Sprite3D classes now simply have BitmapData &#8221;texture&#8221; property, and all of you who want some fancy materials will have to extend these classes or design Pixel Bender filters and hook them via &#8221;filters&#8221; property. Yep, so much for materials.</p>
<p>Next in list of awesome features is LOD support. Yes, finally Alternativa3D has it <a title="Yes, yes, April 2008" href="http://code.google.com/p/away3d/source/browse/trunk/src/away3d/containers/LODObject.as?r=455">too</a>. Yes, you have seen it <a title="Alternativa3D official LOD demo" href="http://blog.alternativaplatform.com/ru/files/2009/02/torus.swf">here</a>. But I just had to mention it, because it&#8217;s awesome. With LOD, you can create really huge scenes, that would not be otherwise possible due to flash CPU throttling. In this regard, a combination of LOD and Reference is interesting subject to explore. For example, <a title="LOD and Reference at work" href="http://makc.coverthesky.com/a7reflod.html">this little demo</a> below is actually made of just one 5K 3DS model with ~100 triangles, 4 planes and 1 box. The rest is <span style="text-decoration:line-through;">smoke and mirrors</span> LOD and Reference at work.</p>
<p style="text-align:center;"><a href="http://makc.coverthesky.com/a7reflod.html"><img class="size-full wp-image-215 aligncenter" title="LOD and Reference demo" src="http://makc3d.files.wordpress.com/2009/10/a7reflod.gif?w=480&#038;h=130" alt="LOD and Reference demo" width="480" height="130" /></a></p>
<p>This demo also demonstrates how several sorting algorithms work together in one scene (as if <a title="Tanki!" href="http://tankionline.com/#friend=619300228">this</a> wasn&#8217;t enouh). Press space to see new debug features at work: at the moment, you can display bounding boxes, edges, vertices or normals for individual objects or any instances of certain class, and this list is growing.</p>
<p>There&#8217;s more features to cover, but this post is already getting long - maybe next time ;)</p>
<p><strong>So when will this awesome engine be actually released?</strong></p>
<p>That&#8217;s a good question. Official ETAs are useless, they just keep postponing it again and again, working on <a href="http://tankionline.com/#friend=619300228">Tanki game</a> updates instead. My personal feeling is that perhaps 80% of engine are complete atm. With all these advanced features, the engine lacks some basic and familiar stuff like .x or .rotationY properties, and you have to manually modify transformation matrices (да, да, русские программисты настолько суровы, что работают с матрицами напрямую). Also, documentation is pretty poor so far. My bet is that we will not see this engine released this fall (if not this year).</p>
 Tagged: 3D, alternativa3d, flash <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/makc3d.wordpress.com/211/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/makc3d.wordpress.com/211/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/makc3d.wordpress.com/211/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/makc3d.wordpress.com/211/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/makc3d.wordpress.com/211/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/makc3d.wordpress.com/211/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/makc3d.wordpress.com/211/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/makc3d.wordpress.com/211/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/makc3d.wordpress.com/211/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/makc3d.wordpress.com/211/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=makc3d.wordpress.com&blog=5102728&post=211&subd=makc3d&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://makc3d.wordpress.com/2009/10/05/alternativa3d-7-first-impressions/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/516002b64891d76b1950581dc254cec0?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">makc3d</media:title>
		</media:content>

		<media:content url="http://makc3d.files.wordpress.com/2009/10/a7reflod.gif" medium="image">
			<media:title type="html">LOD and Reference demo</media:title>
		</media:content>
	</item>
		<item>
		<title>Alternativa3D vs Infinity3D: head to head dynamic BSP test</title>
		<link>http://makc3d.wordpress.com/2009/09/07/alternativa3d-vs-infinity3d-head-to-head-dynamic-bsp-test/</link>
		<comments>http://makc3d.wordpress.com/2009/09/07/alternativa3d-vs-infinity3d-head-to-head-dynamic-bsp-test/#comments</comments>
		<pubDate>Mon, 07 Sep 2009 16:08:27 +0000</pubDate>
		<dc:creator>makc3d</dc:creator>
				<category><![CDATA[3D]]></category>
		<category><![CDATA[alternativa3d]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[infinity3d]]></category>

		<guid isPermaLink="false">http://makc3d.wordpress.com/?p=194</guid>
		<description><![CDATA[Some of you might already know the news, but: there is another commercial 3D engine from Russia, called Infinity3D. This engine licensing policy and API are very similar to those of Alternativa3D 5.x, so natural question is, how is it different? Well, one thing where the engines are different is their approach to sorting: in Infinity3D, sorting is done [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=makc3d.wordpress.com&blog=5102728&post=194&subd=makc3d&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Some of you might already know the news, but: there is another commercial 3D engine from Russia, called <a title="check this out!" href="infinity3d-engine.com">Infinity3D</a>. This engine licensing policy and API are very similar to those of Alternativa3D 5.x, so natural question is, how is it different?<span id="more-194"></span> Well, one thing where the engines are different is their approach to sorting: in Infinity3D, sorting is done by <a title="Infinity3D renderers" href="http://www.infinity3d-engine.com/ru/docs/infinity3D/engine/render/package-detail.html">renderer classes</a> (much like in Away3D, <a title="Away3D renderers" href="http://away3d.com/livedocs/away3d/core/render/package-detail.html">for example</a>). So, unlike Alternativa3D, Infinity3D does not build BSP tree for whole scene at once, but instead re-builds it for all objects visible on screen all the time. The question is, therefore, how does this difference affect actual performance? Both engine blogs had previously published &#8220;dynamic BSP&#8221; demos (<a title="Alternativa3D" href="http://blog.alternativaplatform.com/ru/2007/12/19/dynamic-bsp/">here</a> and <a title="Infinity3D" href="http://infinity3d-engine.com/ru/blog/archives/231">here</a>), but those were of little use for any meaningful comparison&#8230; until yesterday, when Infinity3D released this new demo:</p>
<p><a href="http://infinity3d-engine.com/ru/blog/archives/323"><img class="aligncenter size-full wp-image-196" title="infinity demo" src="http://makc3d.files.wordpress.com/2009/09/infinitydemo.png?w=482&#038;h=120" alt="infinity demo" width="482" height="120" /></a></p>
<p>With this demo, it is finally possible to verify two performance claims made by Infinity3D author, namely:</p>
<ol>
<li>Infinity3D BSP performance for dynamic scenes is better;</li>
<li>Infinity3D BSP performance for static scenes is not worse.</li>
</ol>
<p>For this purpose, I have made <a title="Infinity3D demo clone" href="http://makc.googlecode.com/svn/trunk/flash/alternativa3d_bsptest/">similar Alternativa3D demo</a> using <a title="welcome 5.6.0 :)" href="http://blog.alternativaplatform.com/ru/2009/09/04/alternativa3d-5_6_0-update/">their latest released version</a>. Controls are alternativa&#8217;s default W/A/S/D/Z/Space, mouse drag and Enter to toggle animation (note: fps counter insists on going off-stage for some reason, so make sure your browser window width is around 800 pixels).</p>
<p>To test claim 1, you just need to make sure animation is on, and whole scene is in view. I have low-end machine, so results are very unambiguous in this case: 10-12 fps for Infinity3D vs 3-4 fps for Alternativa3D. That&#8217;s 3 times faster! Resolution: the claim is <strong>true</strong>.</p>
<p>For the claim 2, it is not that straight-forward: once you stop animation, both demos run at full 60 fps, so you also need to move around constantly. The results in this case are: same 10-12 fps for Infinity3D vs 9-14 fps for Alternativa3D. Resolution: the claim is <strong>true</strong>.</p>
<p>Congratulations to Romanov Alexey for his great work on Infinity3D, and looking forward for 1.4 release.</p>
 Tagged: 3D, alternativa3d, flash, infinity3d <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/makc3d.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/makc3d.wordpress.com/194/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/makc3d.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/makc3d.wordpress.com/194/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/makc3d.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/makc3d.wordpress.com/194/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/makc3d.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/makc3d.wordpress.com/194/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/makc3d.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/makc3d.wordpress.com/194/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=makc3d.wordpress.com&blog=5102728&post=194&subd=makc3d&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://makc3d.wordpress.com/2009/09/07/alternativa3d-vs-infinity3d-head-to-head-dynamic-bsp-test/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/516002b64891d76b1950581dc254cec0?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">makc3d</media:title>
		</media:content>

		<media:content url="http://makc3d.files.wordpress.com/2009/09/infinitydemo.png" medium="image">
			<media:title type="html">infinity demo</media:title>
		</media:content>
	</item>
		<item>
		<title>Cubic panorama in Alternativa3D</title>
		<link>http://makc3d.wordpress.com/2009/08/19/alternativa3d-skybox/</link>
		<comments>http://makc3d.wordpress.com/2009/08/19/alternativa3d-skybox/#comments</comments>
		<pubDate>Wed, 19 Aug 2009 13:50:45 +0000</pubDate>
		<dc:creator>makc3d</dc:creator>
				<category><![CDATA[3D]]></category>
		<category><![CDATA[alternativa3d]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[panorama]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://makc3d.wordpress.com/?p=189</guid>
		<description><![CDATA[Until v5.6 is out, at least, we have no means to make real skybox in Alternativa3D. We can fake it by placing very large static box around our scene. The problem with this solution is that there are many ways to unwrap the box and, correspondingly, there are many incompatible skybox textures. Changing box UVs by hand [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=makc3d.wordpress.com&blog=5102728&post=189&subd=makc3d&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Until <a title="Anton Volkov promises to release v5.6 before v7.0" href="http://forum.alternativaplatform.com/posts/list/883.page">v5.6</a> is out, at least, we have no means to make real skybox in Alternativa3D. We can fake it by placing very large static <a title="Box class" href="http://help.alternativaplatform.com/en/client/alternativa/engine3d/primitives/Box.html">box</a> around our scene. The problem with this solution is that there are many ways to unwrap the box and, correspondingly, there are many incompatible skybox textures. Changing box UVs by hand every time you replace skybox texture in your project is getting boring at some point, and when they want you to support multiple textures originating from all kinds of different sources, it gets nearly impossible. And then you write this thing:</p>
<p style="text-align:center;"><a title="Alternativa3D skybox demo" href="http://makc.googlecode.com/svn/trunk/flash/alternativa3d_skybox/sbtest.swf"><img class="size-full wp-image-191 aligncenter" title="Alternativa3D skybox demo" src="http://makc3d.files.wordpress.com/2009/08/a5skybox.jpg?w=486&#038;h=104" alt="Alternativa3D skybox demo" width="486" height="104" /></a></p>
<p><span id="more-189"></span>What we have here is <a title="Free cubic panorama, anyone?" href="http://makc.googlecode.com/svn/trunk/flash/alternativa3d_skybox/panos/files.txt">three incompatible cubic panoramas</a> loaded with the same <a title="simple SkyBox class" href="http://code.google.com/p/makc/source/browse/trunk/flash/alternativa3d_skybox/SkyBox.as">SkyBox class</a>. Additionally, there is <a title="TextureLoadMaterial" href="http://code.google.com/p/makc/source/browse/trunk/flash/alternativa3d_skybox/TextureLoadMaterial.as">simple class loading textures in background</a> that may come in handy to some. Check out <a title="skybox demo FlashDevelop project in svn" href="http://makc.googlecode.com/svn/trunk/flash/alternativa3d_skybox/">full source</a>, if you wish.</p>
 Tagged: 3D, alternativa3d, flash, panorama, tutorial <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/makc3d.wordpress.com/189/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/makc3d.wordpress.com/189/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/makc3d.wordpress.com/189/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/makc3d.wordpress.com/189/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/makc3d.wordpress.com/189/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/makc3d.wordpress.com/189/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/makc3d.wordpress.com/189/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/makc3d.wordpress.com/189/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/makc3d.wordpress.com/189/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/makc3d.wordpress.com/189/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=makc3d.wordpress.com&blog=5102728&post=189&subd=makc3d&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://makc3d.wordpress.com/2009/08/19/alternativa3d-skybox/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/516002b64891d76b1950581dc254cec0?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">makc3d</media:title>
		</media:content>

		<media:content url="http://makc3d.files.wordpress.com/2009/08/a5skybox.jpg" medium="image">
			<media:title type="html">Alternativa3D skybox demo</media:title>
		</media:content>
	</item>
		<item>
		<title>Alternative to adaptive thresholding</title>
		<link>http://makc3d.wordpress.com/2009/07/03/alternative-to-adaptive-thresholding/</link>
		<comments>http://makc3d.wordpress.com/2009/07/03/alternative-to-adaptive-thresholding/#comments</comments>
		<pubDate>Fri, 03 Jul 2009 07:55:58 +0000</pubDate>
		<dc:creator>makc3d</dc:creator>
				<category><![CDATA[3D]]></category>
		<category><![CDATA[augmented reality]]></category>
		<category><![CDATA[FLARToolKit]]></category>

		<guid isPermaLink="false">http://makc3d.wordpress.com/?p=174</guid>
		<description><![CDATA[Yay, automatic thresholding seems to be the magic bullet!<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=makc3d.wordpress.com&blog=5102728&post=174&subd=makc3d&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>As cool as it is, <a title="earlier post on subject" href="http://makc3d.wordpress.com/2009/05/05/flartoolkit-adaptive-filter-experiment-sources/">adaptive thresholding</a> generates too much redundant data. The only alternative implemented before seems to be the method called automatic thresholding, suggested by <a title="ARToolKitPlus project" href="http://studierstube.icg.tu-graz.ac.at/handheld_ar/artoolkitplus.php">ARToolKitPlus</a> folks:</p>
<blockquote><p><em>ARToolKitPlus can do dynamic thresholding by looking at the marker content (pattern) and taking the average between the darkest and brightest pixels. If no marker is found the threshold value is randomized.</em></p></blockquote>
<p>From this description alone, it is clear that there will be frames with marker undetected even though it is clearly visible in the image, so I <a title="my comments to Saqoosha's post" href="http://blog.jactionscripters.com/2009/05/18/adaptive-thresholding-experiment/#comments">thought</a>, until now, that this method has to be quite bad. It turns out, however, that this method actually works very well and the number of lost frames is very small. In practice, you don&#8217;t even have to find pixel values range, it suffices to assume that current good threshold value lies close to last known one.</p>
<p>On code side, you no longer need to write or import some fancy filter classes, all you have to do is to modify your fixed thresholding main loop just a bit:</p>
<pre>private var threshold:Number = 0.5;
private var confidence:Number = 0, confidenceThreshold:Number = 0.5;
private function onEnterFrame (e:Event):void {
	videoSnapshot.draw (video);

	if (confidence &lt; confidenceThreshold) {
		// randomize threshold
		threshold *= 0.8;
		threshold += 0.2 * Math.random ();
	}

	confidence = 0;
	if (detector.detectMarkerLite (raster, 255 * threshold)) {
		confidence = detector.getConfidence ();

		detector.getTransformMatrix (result);
		stuff.setTransformMatrix (result);
	}

	scene.render ();
}</pre>
<p>If you&#8217;re <a title="sandy, another 3d engine" href="http://www.flashsandy.org/">sandy</a> fan, you can play with this method using <a title="collada cube" href="http://code.google.com/p/makc/source/browse/trunk/flash/sandy_flar2/">this stub code</a>.</p>
 Tagged: 3D, augmented reality, FLARToolKit <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/makc3d.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/makc3d.wordpress.com/174/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/makc3d.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/makc3d.wordpress.com/174/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/makc3d.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/makc3d.wordpress.com/174/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/makc3d.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/makc3d.wordpress.com/174/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/makc3d.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/makc3d.wordpress.com/174/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=makc3d.wordpress.com&blog=5102728&post=174&subd=makc3d&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://makc3d.wordpress.com/2009/07/03/alternative-to-adaptive-thresholding/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/516002b64891d76b1950581dc254cec0?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">makc3d</media:title>
		</media:content>
	</item>
		<item>
		<title>Augmented reality based on blob detection</title>
		<link>http://makc3d.wordpress.com/2009/06/12/augmented-reality-based-on-blob-detection/</link>
		<comments>http://makc3d.wordpress.com/2009/06/12/augmented-reality-based-on-blob-detection/#comments</comments>
		<pubDate>Fri, 12 Jun 2009 21:15:32 +0000</pubDate>
		<dc:creator>makc3d</dc:creator>
				<category><![CDATA[3D]]></category>
		<category><![CDATA[augmented reality]]></category>
		<category><![CDATA[haxe]]></category>
		<category><![CDATA[sandy]]></category>

		<guid isPermaLink="false">http://makc3d.wordpress.com/?p=169</guid>
		<description><![CDATA[It&#8217;s long time no post now, so I thought why not post something :) So, here goes this little augmented reality experiment. Let me warn you first, it is not impressive at all, nothing fancy on 3D side, and tracking &#8211; to be fair &#8211; sucks. This is in part because it does not use any solid technology such as FLARToolKit, just [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=makc3d.wordpress.com&blog=5102728&post=169&subd=makc3d&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>It&#8217;s long time no post now, so I thought why not post something :) So, here goes this little augmented reality experiment. Let me warn you first, it is not impressive at all, nothing fancy on 3D side, and tracking &#8211; to be fair &#8211; sucks. This is in part because it does not use any solid technology such as <a title="gotta love FLARToolKit" href="http://groups.google.com/group/flartoolkit-userz/web/links">FLARToolKit</a>, just something hastily hacked in <a title="I'm a haX0r!" href="http://haxe.org/">haXe</a>, for a change. In other part, it uses very simple fixed threshold filter, that can (and does) harm tracking. To save me some typing, I have made this short video explaining what this experiment is about:</p>
<p><span style="text-align:center; display: block;"><a href="http://makc3d.wordpress.com/2009/06/12/augmented-reality-based-on-blob-detection/"><img src="http://img.youtube.com/vi/bMGEEbgH7GY/2.jpg" alt="" /></a></span></p>
<p><span id="more-169"></span></p>
<p>If you have seen how bad it is in the video, but still want to play with it, <a title="here be dragons, ye be warned" href="http://coverthesky.com/tmp/triangular.swf">here you go</a>. The code uses slightly modified <a title="yes, getColorBoundsRect()" href="http://play.blog2t.net/fast-blob-detection/">blob detection code by Tomek</a> and <a title="sandy is in haXe now" href="http://www.flashsandy.org/haXe">sandy</a> for 3D part. Make sure you have a webcam, piece of paper, and red, green and blue marken pens.</p>
 Tagged: 3D, augmented reality, haxe, sandy <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/makc3d.wordpress.com/169/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/makc3d.wordpress.com/169/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/makc3d.wordpress.com/169/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/makc3d.wordpress.com/169/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/makc3d.wordpress.com/169/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/makc3d.wordpress.com/169/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/makc3d.wordpress.com/169/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/makc3d.wordpress.com/169/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/makc3d.wordpress.com/169/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/makc3d.wordpress.com/169/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=makc3d.wordpress.com&blog=5102728&post=169&subd=makc3d&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://makc3d.wordpress.com/2009/06/12/augmented-reality-based-on-blob-detection/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/516002b64891d76b1950581dc254cec0?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">makc3d</media:title>
		</media:content>

		<media:content url="http://img.youtube.com/vi/bMGEEbgH7GY/2.jpg" medium="image" />
	</item>
		<item>
		<title>FLARToolKit adaptive filter experiment sources</title>
		<link>http://makc3d.wordpress.com/2009/05/05/flartoolkit-adaptive-filter-experiment-sources/</link>
		<comments>http://makc3d.wordpress.com/2009/05/05/flartoolkit-adaptive-filter-experiment-sources/#comments</comments>
		<pubDate>Tue, 05 May 2009 05:26:50 +0000</pubDate>
		<dc:creator>makc3d</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[augmented reality]]></category>
		<category><![CDATA[FLARToolKit]]></category>

		<guid isPermaLink="false">http://makc3d.wordpress.com/?p=162</guid>
		<description><![CDATA[For those who asked about sources of my little experiment from last week, here they are. Make sure you are using FLARToolKit revision 2570 with these.
If you wasnt reading FLARToolKit mailing list, here is short summary: FLARToolKit converts color image to &#8221;binary&#8221; image before doing any magic on it, using fixed threshold filter. In fact, this threshold is [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=makc3d.wordpress.com&blog=5102728&post=162&subd=makc3d&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>For those who asked about sources of my little <a title="Adaptive filter in action" href="http://www.youtube.com/watch?v=_JBdLq0QT6g">experiment</a> from last week, <a title="warning - GPL!" href="http://makc.googlecode.com/svn/trunk/flash/AdaptiveToBinFilter/">here</a> they are. Make sure you are using FLARToolKit revision 2570 with these.</p>
<p>If you wasnt reading <a title="my message at FLARToolKit ML" href="http://groups.google.com/group/flartoolkit-userz/msg/8f124d845a85838a">FLARToolKit mailing list</a>, here is short summary: FLARToolKit converts color image to &#8221;binary&#8221; image before doing any magic on it, using fixed <a title="threshold()" href="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/BitmapData.html#threshold()">threshold</a> filter. In fact, this threshold is simply hard-coded to be 80 in <a title="Saqoosha start-up guide" href="http://saqoosha.net/en/flartoolkit/start-up-guide/">many</a> <a title="Mikkoh &quot;getting started&quot; post" href="http://www.mikkoh.com/blog/?p=182">examples</a>, and you will need to write more code to detect good values for threshold if you want your application to run regardless of lighting settings. The filter in <a title="Video, again" href="http://www.youtube.com/watch?v=_JBdLq0QT6g">this experiment</a> avoids the problem by using local average brightness as a threshold for every pixel; the downside is that it enables FLARToolKit to &#8220;see&#8221; far more details, thus wasting even more CPU time. As a work-around, I tried to narrow down search area in the image using last detected square, but this only helps when marker motion is limited.</p>
<p>Well, <a title="yes, it is SVN" href="http://makc.googlecode.com/svn/trunk/flash/AdaptiveToBinFilter/">check it out</a>, play with it, and let me know what you think.</p>
 Tagged: augmented reality, FLARToolKit <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/makc3d.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/makc3d.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/makc3d.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/makc3d.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/makc3d.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/makc3d.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/makc3d.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/makc3d.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/makc3d.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/makc3d.wordpress.com/162/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=makc3d.wordpress.com&blog=5102728&post=162&subd=makc3d&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://makc3d.wordpress.com/2009/05/05/flartoolkit-adaptive-filter-experiment-sources/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/516002b64891d76b1950581dc254cec0?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">makc3d</media:title>
		</media:content>
	</item>
		<item>
		<title>FLARToolkit and Alternativa3D, anyone?</title>
		<link>http://makc3d.wordpress.com/2009/04/16/flartoolkit-and-alternativa3d-anyone/</link>
		<comments>http://makc3d.wordpress.com/2009/04/16/flartoolkit-and-alternativa3d-anyone/#comments</comments>
		<pubDate>Thu, 16 Apr 2009 18:42:39 +0000</pubDate>
		<dc:creator>makc3d</dc:creator>
				<category><![CDATA[3D]]></category>
		<category><![CDATA[alternativa3d]]></category>
		<category><![CDATA[augmented reality]]></category>
		<category><![CDATA[FLARToolKit]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[game]]></category>

		<guid isPermaLink="false">http://makc3d.wordpress.com/?p=150</guid>
		<description><![CDATA[Shortly after FLARToolkit was married to Sandy, I arranged it a secret date with Alternativa3D. The date was quite fruitful, and in a week this baby was born:

This is modified &#8221;Ballance&#8221; game released by Alternativa3D team in november, with FLARToolkit used to control camera instead of mouse. Unfortunately, due to GPL2 section 2 clause B I cannot distribute stuff [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=makc3d.wordpress.com&blog=5102728&post=150&subd=makc3d&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Shortly after <a title="FLARToolkit + Sandy" href="http://makc3d.wordpress.com/2009/03/17/sandy-augmented-reality/">FLARToolkit was married to Sandy</a>, I arranged it a <a title="you might have seen this already" href="http://www.youtube.com/watch?v=IAp0kmQM4E0">secret date</a> with Alternativa3D. The date was quite fruitful, and in a week this baby was born:</p>
<p><span style="text-align:center; display: block;"><a href="http://makc3d.wordpress.com/2009/04/16/flartoolkit-and-alternativa3d-anyone/"><img src="http://img.youtube.com/vi/ZjSHjLnrukk/2.jpg" alt="" /></a></span><br />
This is modified &#8221;Ballance&#8221; game released by Alternativa3D team in <a title="Old but good" href="http://blog.alternativaplatform.com/en/2008/11/05/new-demos/">november</a>, with FLARToolkit used to control camera instead of mouse. Unfortunately, due to <a title="free?" href="http://www.gnu.org/licenses/gpl-2.0.html#section2">GPL2 section 2 clause B</a> I cannot distribute stuff including both FLARToolkit and Alternativa3D for free, so no SWF for you to play with atm, sorry. But, if anyone is interested in sponsorship to enable this thing to go online, contact me.</p>
<p><span id="more-150"></span></p>
<p>On the technical side (aka &#8220;how the hell was it done&#8221;), bad news are that neither object transformation matrix nor camera projection matrix cannot be directly set in Alternativa3D, so we have to resort to mind-f@#king tricks to get it working, and the result is only approximate match. Good news are that this approximation is, obviously, good enough and useable. An example of what has to be done to make it work can be found <a title="Behold, source code!" href="http://makc.googlecode.com/svn/trunk/flash/alternativa3d_flar/">here</a> (I believe my single AS file does not contain FLARToolkit, and so I can distribute it, under whatever license I want).</p>
 Tagged: 3D, alternativa3d, augmented reality, FLARToolKit, flash, game <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/makc3d.wordpress.com/150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/makc3d.wordpress.com/150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/makc3d.wordpress.com/150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/makc3d.wordpress.com/150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/makc3d.wordpress.com/150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/makc3d.wordpress.com/150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/makc3d.wordpress.com/150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/makc3d.wordpress.com/150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/makc3d.wordpress.com/150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/makc3d.wordpress.com/150/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=makc3d.wordpress.com&blog=5102728&post=150&subd=makc3d&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://makc3d.wordpress.com/2009/04/16/flartoolkit-and-alternativa3d-anyone/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/516002b64891d76b1950581dc254cec0?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">makc3d</media:title>
		</media:content>

		<media:content url="http://img.youtube.com/vi/ZjSHjLnrukk/2.jpg" medium="image" />
	</item>
	</channel>
</rss>