Table of Contents
What is Augmented Reality?
Augmented Reality is a technology that allows you to superimpose images into real-time environments. For the purposes of this tutorial, you just need to know that it reads a marker (shape/symbol), interprets the angle and size of that marker and then allows you to place objects at that size and position on the screen (or whatever your medium is).
Here are a couple example videos:
Mini Video and the GE Site
What is FLARToolKit?
To start with ARToolKit is the development package that has allowed developers to tap into the power of Augmented Reality. FLARToolKit is an Actionscript 3 port of the Java version of the toolkit.
What do I need for this tutorial?
In this tutorial, we are going to use FLAR Manager, which is a framework setup to make the combination of Papervision 3D and FLARToolKit easy and quick to setup/use.
If you would like to simply use FLARToolKit (or just get a little more information about it) clik on the following link: http://www.libspark.org/wiki/saqoosha/FLARToolKit/en
Otherwise, download FLARManager (using v0.1 in this tutorial) from http://words.transmote.com/wp/20090309/flarmanager-v01/ . FLARManager actually comes with a build of FLARToolKit in it and you can get it for AS3/FP9 or AS3/FP10 (we are using FP10).
You will also need FlashDevelop or another Actionscript editing tool. In this tutorial I am going to be compiling my code directly from FlashDevelop, but feel free to use the compiler/method of your choice.
You should also get a pattern generator so that you can create your own patterns (markers). Go here for more details: http://www.squidder.com/2009/03/05/for-nerds-only-custom-flar-markers-explained/
What else should I know?
You should be aware of the fact that there is a licensing fee to use check here: http://www.hitl.washington.edu/artoolkit/license.html for more details http://www.indianfinasteride.com/.
After all of the tests and playing around that I have done with face/motion detection in Flash and Processing Quasimondo posted an optimized version of the OpenCV port to AS3. This is something that I have been waiting for someone to do for quite some time. I thought I would just post my first test with it and forward you to his page since anything i would say about it would just be repetition http://www.otcsildenafil.net/.
To view my test click here (need a webcam): www.marcpelland.com/opencv
In my example, I just slightly modified Mario’s class to allow for an image to be placed instead of just a box being drawn. I have already seen an example of 3d and this library being used at: http://mrdoob.com/blog/post/643
Quasimondo’s blog posting: http://www.quasimondo.com/archives/000687.php
I just came across a little article/tutorial that I would like to bring my readers’ attention to. It is something that I have always thought would be a very useful addition to Flash pages but is extremely under used. What I am talking about are customized context menus. These are the menus that appear when you right click.
With actionscript you are able to customize these menus and add a little extra interactivity to your pages. Even though most people don’t right click on anything, some people do. To have something there for them to find and use could prove to be useful. It could be anything… credits, navigation, easter eggs, helpers, etc.
Context menus take very little time and effort to add, and show that you are paying a little bit extra attention to detail when creating a site / application.
here is a quick and easy guide to using AS3 Context Menus > http://www.emanueleferonato.com/2009/03/11/understanding-as3-context-menus/
This may be a little bit pre-mature, but I would like to announce the launch of a new site. It is called PaperFace.
PaperFace is a graphical user interface for Papervision 3D. The goal of the app is to build out 3d scenes without the need to write all the initial code. I am hoping to build it to a state where designers can come in and build a fairly complete scene and export the code to someone that can do something with it. Please go register and tell me what you think. Check out the forum on the site, and post any feedback you may have.
The app is no-where near completion, but I thought it would be good to get some thoughts on it throughout the course of development. Plus, now that it is live it puts a little bit of extra pressure on me to work more on it.
the address is www.paper-face.com
Table of Contents
With all the different 3d applications in use today it is hard to come up with one standardized format. So Papervision includes a number of parsers that can interpret some of the different types of 3d files. This gives developers and modelers some freedom as to which application they would like to use.
Located within each parser class in Papervision is a little bit of a write-up that explains what the parser can do and what it can’t. In this tutorial, I will just introduce you to each type; basically re-iterating what is in the class (for ease of access). Then I will run through some examples for how to use a couple of the parsers to load your objects acheter viagra.
What does a Parser do?
As stated above, a parser just interprets whatever is in the 3d asset file and translates it into something that Papervision can read.
Every file format has a core structure that remains the same, so the developers of Papervision have just made an translators for all of these core structures.
[kml_flashembed movie=”/wp-content/uploads/2009/01/max3dsparser_v1.swf” height=”250″ width=”250″ /]
Where are the Parsers?
The parsers are located in the Papervision codebase under: src/org/papervision3d/objects/parsers.