Mrinal has given a session at Devcamp last Saturday.
 
Copied entirely from Mrinal blog
 
 
gave a talk about Augmenting Reality at Devcamp Bangalore this Saturday. In the talk I did some live coding to show how you can use Saqoosha’s FLARToolkit AS3 library to add 3D objects to a webcam video in real-time … here’s a video recording of the application we created during the session … it adds a cow to reality ..
 

The core idea behind FLARToolkit (which is an AS3 port of ARToolkit) as I understand it … is that it can detect if a given pattern is present in a bitmap, if so .. then where is it located and how much has it been transformed in 3D space. Once we have this information .. we can manipulate the bitmap (or a frame of video from a webcam in our case) to add virtual objects that can be moved and transformed same as the pattern. If this is done over each frame of the movie coming from the webcam it creates the illusion of a real object being added to the video and the object moves around as we move the pattern in reality.

Here’s the code with detailed comments on how this is achieved … You can download the complete project here.

Try it out yourself …

  1. Print out this marker pattern [pdf]
  2. You’ll need a webcam
  3. Visit this application
  4. Allow it to use your webcam
  5. Move the pattern in front of the webcam
  6. You should see a virtual cow moving with it.

References

Here are the various places where I got a lot of this information from ..

I hope everyone who came to my talk enjoyed it .. I would love to hear any feedback that you may have.

Also a very special thankyou to the all the guys who were behind organizing Devcamp, I had a great time and learned a lot.

Advertisements

About ambatisreedhar

Developer

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s