Sunday, 2 May 2010

Working With Augmented Reality


So having no experience in using Augmented Reality i needed to find a good foundation to work from and build upon if I was to create a sucessful Augmented Reality Photo Album. Fortunately I found a few very useful tutorials about the basis of creating an AR application. I found a website called gotoandlearn.com this site is run by an Adobe flash developer Lee Brimelow who provides two AR tutorials to show the basics.

The first tutorial helped me to understand how to setup an action script project that would enable me to display a 3D cube on top of an AR marker and to create a webcam window as well as adding additional classes Papervision3D & FLARToolkit basically these two external libraries are what makes AR possible within action script. Papervision3D enables the creation and rendering of 3D objects directly from within Flash/action script without having to import basic 3D renders from another source. The FLARToolkit is what allows the Augmented Reality to occur and for the recognition of AR markers so that content can be associated with it.

I followed the first tutorial http://www.gotoandlearn.com/play?id=105 and this enabled me to learn how to setup AR and to add content in the form of a basic 3D cube. From here I found another tutorial that was alot more related to the area of content that my project was going to be based on. The tutorial again from gotoandlearn was an extended AR tutorial showing how to display a video on a flat 3D plane using an AR marker http://www.gotoandlearn.com/play?id=114 from this I was able to develop the code so instead of loading a video file it would allow me to load an external image file for display on the AR marker. Below is an screen shot of what I achieved.




















The image moves with the symbol even when rotated so it acts in the same manner as a traditional photograph.

The next stage was to add more markers and more images to each marker to build a collection of images.

No comments:

Post a Comment