AR Particle Beam

Add to FacebookAdd to DiggAdd to Del.icio.usAdd to StumbleuponAdd to RedditAdd to BlinklistAdd to TwitterAdd to TechnoratiAdd to FurlAdd to Newsvine

So I thought it was about time I jumped on the augmented reality bandwagon. Rather than the obligitory 3D model I decided to make something a little different. I’ve used 3D lighting techniques and physics here to create this beam of light surrounded by strange celestial light particles.

If you would like to interact with it, first download and print out the marker here then go here for a live demo.

Big thanks to a few people. First and foremost Saqoosha, the clever chap who created the FLARToolkit library, a port of the C++ library ARToolkit. Mikko Haapoja for providing a fantastic introduction to using FLARToolkit. Eric Socolofsky for building the framework FLARManager which makes working with FLARToolkit a sinch.

Incidentaly while making this, John Lindquist started an augmented reality competition on the Papervision forum. I’ve decided to enter it (hence the Papervision Logo on my marker – rules of the comp, not sucking up) so please feel free to vote for me on the forum. :)

For those of you who are interested, you can download the source code here. It’s an FDT project but it shouldn’t be too difficult to convert it over to your favourite development environment.

33 Responses to “AR Particle Beam”


  1. 1 Mikko April 15, 2009 at 2:45 pm

    GJ dude. This for that FlarToolkit contest? Wish I woulda had some time to do something.

  2. 2 jamesalliban April 15, 2009 at 7:28 pm

    Thanks Mikko. And thanks again for your great tutorials and source code.

  3. 4 joehwang April 19, 2009 at 12:21 pm

    It’s so cool!!!:)

  4. 5 neelz April 22, 2009 at 8:57 am

    iam sorry, I dont get your source to work, not even in FDT!Proberly Iam too stupid :P but maybe you can upload it as an flashdevelope project or just for the normal flash environment…although its very nice!

  5. 6 jamesalliban April 22, 2009 at 4:47 pm

    Sorry but I’ve never used Flash Develop. With regards to Setting it up in Flash, I think you just need to remove the embed tag in App.as and use this as your document class. You also might have to download the various libraries I’ve used as Im not sure I’ve included them. They are FlarToolkit + Papervision (obviously), FLARManager and TweenMax.

  6. 7 Maudi April 23, 2009 at 11:26 am

    Hello, I’ve downloaded your source code.
    I’ve also installed FDT 3 on my pc.

    When I open .project file, I can only see project name, build name, natures and link resources. So how actually can I compile your file and test on my pc?

    P/S: I’ve never work on FDT before.

  7. 8 jamesalliban April 23, 2009 at 11:44 am

    Hi Maudi. Thanks for your interest in my work. Although FDT is the best Actionscript development environment available, it can be quite a process for new users to setup properly. I would suggest looking through the documentation:

    http://fdt.powerflasher.com/blog/wp-content/fdtuserguide.pdf

    I’m using ANT and the Flex 4 SDK to compile the project.

    Alternatively, if you’re using Flex, it shouldn’t be too dificult to set it up as an actionscript project (I don’t use Flex so can’t help you here).

  8. 9 specal faece April 24, 2009 at 10:22 am

    i like magic light from hand glow!

    you are wizard!

  9. 10 almog koren April 27, 2009 at 6:59 pm

    Hi James, this is very cool I download your source but really couldn’t understand anything I am using Saqoosha’s start kit so working with your source is a bit different any chance of getting some help. I am trying to get the trails to load with my base node. I think once I get that down then I should be good to go.
    Thanks
    Almog

  10. 11 jamesalliban April 27, 2009 at 7:14 pm

    Hi Almog. I’m using FLARManager – see link above. Are you using FDT? If so have you used it before? If so I might be able to help you. If not, you will need to get FDT set up using ANT and Flex 4 (or 3.3) SDK. If you are a Flex or FlashDevelop user you should be able to port the code across but I will not be able to help as I do not use these platforms.

  11. 12 Maudi April 29, 2009 at 6:35 pm

    Hello James..

    1.)How can I setup ANT in FDT?

    2.)And also Flex 4 SDK, I already follow the pdf that u recommended, but I can only find some SDK 3 in my options (sdk 3 pure, sdk 3 with AIR, etc.), but none of it was SDK 4. So can I import SDK 4 into the core libraries?

  12. 13 jamesalliban April 29, 2009 at 8:01 pm

    Just fished this out of my delicious – http://www.dopelogik.com/documents/actionscript_ant/ might be a bit outdated now.

    You can find information on setting up FDT for FP10 here – http://fdt.powerflasher.com/blog/?p=219 along with a link to download the latest releases of Flex SDK 4.

  13. 14 Maudi May 1, 2009 at 4:32 am

    Hello James,

    Heard that u won the AR competition. Impressive!
    Congratulations.

    Anyway, I’m still cant get your files working.. haha..
    I think there is something wrong with my setup and I havent figure it out yet..

    Again, congratulations.. = )

  14. 15 Karam May 4, 2009 at 10:47 am

    Hi,

    Thanks for providing the source code to you project!

    I’m having a little trouble getting it running in FDT. I followed all the instructions here http://fdt.powerflasher.com/blog/?p=219 to setup FDT with flex 4 sdk & flash player 10.

    I get an error when I load your project in FDT… it says
    Core library is undefined: AS3_FP10_beta

    Any help would be much appreciated. Thanks.

  15. 16 jamesalliban May 4, 2009 at 2:08 pm

    It sounds like you havn’t completed step 3 properly. Have you tried setting up a simple FP10 project in FDT? Just write one main class that contains a vector – var vect:Vector.; If this doesn’t work, try making a simple AS3 project to compile a swf.

  16. 17 dennis May 11, 2009 at 9:02 pm

    hello James,

    Impressive work you are showing!
    I’ve also been experimenting with flarmanager since a few weeks, but there are a few things that won’t work:
    In the example simplecubes.as, i want the cubes to display movieclips (movieassetmaterial), any way you can help me on the code?
    And I want to display a collada file, when a marker gets recognized, can you help me please?
    Thanks in advance,
    Dennis

  17. 18 holopaul June 10, 2009 at 9:49 pm

    hi james/and all others,

    can you please tell me how to compile this in flex?
    i can’t manage to do it.
    thank you very much

  18. 19 jamesalliban June 11, 2009 at 1:40 am

    Hi holopaul. Thanks for your interest. I don’t use Flex so I can’t help you. Best of luck though and if you get it working, please send me the project as I’ve had several people asking for a Flex version.

  19. 20 DjacK Height June 12, 2009 at 7:34 pm

    Beautiful work James! Stay creative my friend!

  20. 21 holopaul June 20, 2009 at 2:03 am

    hi again james,

    man, i have tried to compile it under fdt but i’m getting this error:

    “[java] command line: Error: unable to open ’source/libs’”

    what “libs” folder are we talking about?

    thanks a million.

    paul

  21. 22 jamesalliban June 20, 2009 at 2:20 pm

    oops my mistake. That folder didn’t seem to make it into the zip file. It contains the assets which are wrapped up in a swc. Just uploaded a new version. Try it again.

    Also if you hadn’t already noticed, you will need to download several 3rd party libraries. These are Papervision 2.0 + FLARToolkit (obviously), TweenMax and FLARManager.

  22. 23 Tammy July 16, 2009 at 1:09 pm

    This looks wicked. Flash is amazing :)

  23. 24 D. Riggins July 24, 2009 at 7:49 pm

    Whatever happened to using.. oh I dunno… Flash Professional CS4 to compile flash projects?! Is it possible for me to throw your source into Adobe Flash CS4 and compile it??

  24. 25 jamesalliban July 24, 2009 at 10:57 pm

    Sorry D.Riggins but I’m araid that’s not possible (to my knowledge). It’s because you need to embed a few files at runtime. You’re just going to have to learn Flex or FDT.

  25. 26 mr. dr. July 29, 2009 at 8:23 pm

    hola! just wanted to drop a note and let you know that my visitors and i are super stoked about your work!

    AR is a field with many possibilities… watching you explore them is fascinating!

    keep doing big things!

    http://www.drseussjuice.com

  26. 27 jamesalliban July 29, 2009 at 8:39 pm

    Thanks Mr. And thanks for blogging me.

  27. 28 cpper August 25, 2009 at 5:21 pm

    Hi,james

    I download your sourcecode and compile in flexbuilder 3,
    but i can not find the class MarkerBack which is refered in Marker.as, can you tell me how to solve it?

  28. 29 jamesalliban August 25, 2009 at 10:59 pm

    Hi Cpper. MarkerBack is a Sprite embedded in source/libs/ar_particle_beam_assets.swc. You’ll have to add that file to your classpath.

  29. 30 Daniel September 2, 2009 at 4:14 am

    Hi jamesalliban!
    I am Daniel and i’m doing a few tutorials in spanish about Augmented Reality, however the tutorials are only with static elements, so, I have a question: can you show me the light? XD Can you show me the magic behind the video animations in FALRToolKit? I don’t know if, for example, you built the video in After Effects and after that you import data in FLEX or something like that. I really will apreciate your answer.
    Thank you and congratulations for your amazing video.

  30. 31 jamesalliban September 2, 2009 at 10:21 am

    Hi Daniel

    Thanks very much. Have you looked through the source code? It’s all in there. I didn’t do any post production in After Effects. The beams coming from the marker are images, the particles are vector graphics and the particle trails were built using code.

    Email me at me@jamesalliban.co.uk if you have any other questions.

    Cheers

    Jim


  1. 1 Adobe Max 2009 – Jour 3 > FredCavazza.net Trackback on October 9, 2009 at 1:51 pm
  2. 2 The Business cARd « Brendan Mitchell Trackback on November 13, 2009 at 12:27 pm

Leave a Reply








Tweets