Augmented Reality Flartool
Augmented Reality Business Card Website
The project consists of the following requirements:
1. Uses FLARToolKit
2. Loads Video flv files
3. Can display different videos for different markers
4. QR code on card
5. Video or Markers can Easily be changed in the code area (.as or xml file)
The SWF file is created and placed on a website.
When the marker with QR code is placed in front of a webcam, the swf file will load the proper XML file which would have the Video FLV for that Business card.
Here are a few sites:
This one has the FLV videos which change when keys are pressed.
http://www.laboratory4.com/wp-content/uploads/arfashion/
Code Example of the .as file:
private function keyPressedDown(param1:KeyboardEvent) : void
{
var _loc_2:uint;
_loc_2 = param1.keyCode;
switch(_loc_2)
{
case 32:
{
if (videonumber != 2)
{
netStream.seek(0);
netStream.close();
netStream.play(“assets/video22.flv”);
videonumber = 2;
}
else
{
netStream.seek(0);
netStream.close();
netStream.play(“assets/video1.flv”);
videonumber = 1;
}// end else if
break;
}// end case
case 49:
{
videoPlane.scale = videoPlane.scale + 0.25;
break;
}// end case
case 50:
{
if (videoPlane.scale > 0.25)
{
videoPlane.scale = videoPlane.scale – 0.25;
}// end if
break;
}// end case
case 51:
{
videoPlane.scale = 1;
break;
}// end case
YouTube Videos
Code Example:
http://www.adobe.com/newsletters/edge/august2009/articles/article7/2_Augmented_Reality_SOURCE.zip
Business Card Example:
http://www.augmentedbusinesscard.net/
Lots of free FLARToolKit and AR code out there but we need a simple solution to store QR Codes and load them for different markers placed in front of webcam.
Thank you
John