| I just uploaded a new tutorial on using the FLARManager library to create augmented reality applications. This library makes things much easier than using the FLARToolkit directly, especially when dealing with multiple markers. In this example I display a video on a 3D plane that follows the AR marker. The tutorial also covers how to properly create markers using a new online tool. |
Lee








Good tutorial on getting started with Flash and AR.
With trying to flip the plane, try using the “opposite” property on the MovieMaterial. I believe it achieves the same result.
http://papervision3d.googlecode.com/svn/trunk/as3/trunk/docs/org/papervision3d/materials/MovieMaterial.html
Thanks,
Dustin
Thanks for sharing!
@djandrew ahh thanks for sharing!
Hi Lee,
great tutorial.
what’s plugin you used, when you type “pv” and get “private var” or “eh” and then get event handler function?
thx and sorry for my ruglish.
Can’t Believe Adobe would do this:
http://blog.flashden.net/site-news/important-news-flashden-is-changing-its-name-to-activeden/
Damn… just a few days to late
Already had figured it out by myself after a lot of struggling…
Great tutorial – trying to follow it but cannot download the FlarManager…as it just freezes – is there any other links for the zipped version?
Kutu – check out http://www.gotoandlearn.com/play?id=94
Cool! How about a tutorial on scripting 3d, and some mind-blowing formula’s for generating z-axis positions based on height/width dimensions, and fun stuff with 3d matrices, Cartesian coordinate systems, and yeah?
Pete,
thx, but how he choose event type in dialog window?
It never ceases to amaze me how Lee is able to discuss such a large spectrum of subjects and make them all so easy to understand. Glad to see more virtual reality / augmented reality stuff.
Hi Lee,
I am trying to follow the tutorial word for word but what happens in yours does not happen in mine – there seems to be some imports missing – even on first start up of the “camera” I am going to a HTML page and am getting an error from the Flarmanager about the dat file…any hints as to where I am going wrong? – is there a configuration within Flash Builder that I need to do?
Thanks
Pete
Using your tutorial, i made a somewhat cheesy but high tech haunted house for our holloween office decoration contest. Visitors walk around with a ghost detecting laptop and find ghosts around the office. You the man.
Each time I try to run this Flash Player crashes…any suggestions really welcome as this is becoming very fustrating…
Hi Lee,
great tutorial, any link to the background of your desktop please.
Lee, thanks for sharing!
I am a brazilian designer!
But, I don’t working in flex plataform…
As I develop this tutorial in flash cs4
I tried but unsuccessfully…
Thanks
Marcelo
Hi. I was absent few month, and i noticed forum link is forbidden(403) for me. What happened?
Good Job Lee. This is definitely what people were looking for. Nice desktop wallpaper… any link to it?
Great tutorial, but all I can think is where did you get that awesome wallpaper for your desktop?
Hi Lee, thank you for the tutorial!
I`m here in Brazil trying to follow this, but in the beginning i`m getting some errors. I guess is missing some imports?
Well, is something like this:
1046: Type was not found or was not a compile-time constant: FLARCode. FLARPatternLoader.as
1046: Type was not found or was not a compile-time constant: FLARDoubleMatrix34. FLARMarker.as
1120: Access of undefined property FLARCode. FLARPatternLoader.as
1172: Definition org.libspark.flartoolkit:FLARException could not be found. FLARPatternLoader.as
1172: Definition org.libspark.flartoolkit.core:FLARCode could not be found. FLARPatternLoader.as
Any ideas what can be wrong?
sorry for any errors in my english and thanks again!
Dear Lee, Thanks for your awesome tutorials. Can you pls make one that shows how to make Flash AR objects interactive? Like how to make Flash AR objects interact with other Flash objects. I’ve been trying this for a long time and so far no luck, the normal hit test methods don’t work. Thanks, joe
Hi lee; soooo nice work.
i would thank you for your tutorials.
you’re genious
Hi Lee,
Awesome tutorial!
I downloaded the latest version of Flash Builder and FLARManager. I am running the FLARManager example without any errors. However when I attempt to run HelloFLAR I get the following three errors:
1017:The definition of base class Camera3D was not found. Loc: pv3d folder line 40.
1020:Method marked override must override another method. Loc: pv3d line 120
1046:Type was not found or was not a compile-time constant: Matrix3D Loc: utils/geom FLARPVGeomUtils.as
Any help would be much appreciated!
Hi Lee, i´ll try to see the video but i can´t, you have a other link?
regards
FLATManager and FLARToolkit is ok if you want to have an simple AR solution for flash. However what about markerless AR? (for example in commercial applications the companies want their product be the marker in AR application.) There are good examples of markerless AR http://studierstube.icg.tu-graz.ac.at/handheld_ar/nft.php
Hi Lee,
I’d love to see your tutorial on FLARManager, but it seems that the links are broken (the last two tutorials are unavailable).
Your tutorials are so cool !
Denis
Hi Lee.. the video seems to be off. Either to watch, either to download. Could you please check on that?
Thanks a lot for all your great tutorials.. There are so helpful.
Regards.
It looks like your video has vanished.
Hi Lee,
Unfortunetly the tutorial is not visibile, so the downloadable movie… Can you check it again? All others tutorials plays, but not the last AR one… When I try to download the movie it gives me zero bytes and quit downloading.
P.S. another old, but gold tutorial on AR with flash is
http://saqoosha.net/en/flartoolkit/start-up-guide/
Hey, Lee. You are singlehandedly responsible for helping me transfer my skills to Flash, and just as I was about to loose my mind with FLARManager you saved the day.
If I wanted to do multiple videos, would I need to publish multiple .swc’s, or does it behave like a class (can I use the same swc for multiple instances?)
Oops, okay nevermind I got this working, and to answer my own question yes, you can apply the same swc to multiple vids. Eventually I just found it easier to modify the source of FLARManager, though it was your help with the video planes that made me realize my mistakes.
Thanks again.
Hi Lee. Thank you for sharing this tutorial. It works very well. Now I’m trying to put more markers linked to various video using getMaterialByPatternId. is correct or should I use a different method?
Thanks
Sorry to waste your time, but your tutorial is real good and I was trying to do something exactly as you are doing in it.
But I’m developer whit little knowledge of flash, and I really understand when you told about using the component (SWC) with the “fov” playback controller, could you tell me or write a Little post about how to do one as the one you use??
Really because I can’t find any reference of how to create such a thing like that.
Thank you very much for your time
FLARmanager (FLARCameraSource) has an interoperability issue with some WebCams. My (USB connected)Intel Web cam gets error #2044 with any of FLARManager examples. It works fine with other Flex scripts using webcams.
When I connected my video recording camera to computer the FLARmanager worked fine.
I have tried to change CAMERA_VALIDATION_TIME:Number = 2000; to some higher number, but it did not help.
Regards,
Hello Lee,
I have watched a couple of your video tutorials re: Flash based AR. The first was getting started with the FLARToolkit. I think I had also watched Sakoosha’s primer on the Toolkit that got me going with a working and web publishable demo of my own sprite objects, e.g. cubes, cones, spheres, etc., tracking against a self-designed marker.
Second, I watched your video tutorial on http://www.gotoandlearn.com about the use of the FLARManager. I was particularly interested in your addition to the example library of a video mapped to a plane tracking off of the marker, e.g. the Kramer vid. I had no problem duplicating your results and went quickly to another vid and marker combination.
The problem I am having lies in placing the collection of files in the wwwroot directory on a windows iis based webserver or the var/www directory on a linux box. Once I place the necessary files in the proper directories on those servers and hit them from a remote location, or even from localhost, I get the screen that asks for acceptance or denial of the use of the camera in the FLASH player . and then it just goes black and claims to be loading data.
I have stripped the example down to a one minute sample.mov file, i.e. the quicktime splash screen sample, and it still hangs on loading.
Later I went back to the set of examples provided with the FLARManager download and although they all work when I am building them from the IDE, in this case, Windows 7 based FLEX Builder 3, I am still unable to publish the result so that it is visible to a remote web-client or even local host.
I would be very grateful for any information that you or anyone else could provide that would help me to solve this problem or to shed light on this and similar problems that myself and/or others may be experiencing.
Thank you in advance for your consideration and assistance. I look forward to hearing from you soon.
Hey, I have followed the tutorial and have the same errors as a few people who have posted.
Description Resource Path Location Type
1017: The definition of base class Camera3D was not found. FLARCamera3D.as aguemnted reality/[source path] ActionScript/org/libspark/flartoolkit/support/pv3d line 40 Flex Problem
Description Resource Path Location Type
1020: Method marked override must override another method. FLARCamera3D.as aguemnted reality/[source path] ActionScript/org/libspark/flartoolkit/support/pv3d line 121 Flex Problem
But I cant see a reply with the solution is there any chance you can tell me where I am going wrong
Thank you
Hi
am also facing the same issue.. i tried with Flex Builder 3 it was showing version 10 player swc is not found.. again i tried using flash develop and flex sdk 3.6 its compiling with out any error by even camera is not getting initialized.. even i tried with flash cs4 its the showing 3 error s now interface method attachDestiion in namespce org.libspartk..core.labeling:IIFLARLabeling not implemented by class or ….
please anyone help me..
Regards
Looks like me and Sooraj T R really need some help, so anyone? please
i need help creating multiple collada models width multiple markers,
can anyone help me ???
Hi Lee.
First of all, thanks a lot for all your awesome tutorials. Watching these was what made me get into working with flash and action scripting.
I have watched this tutorial, and i would like if you could tell me how i can implement a collada into this aswell? I seem to struggle with getting it in aswell as the movie.
Regards
Hi Lee great tutorials, i am new to all this AR stuff, but as part of a college project i have been following your tutorial and i am trying to put my own vids into this tutorial. I was wondering if you have the time to explain to me, how you created the SWF and SWC files? and what if any actionscript is inside these files?
Regards
Mark
dear Lee,
I was wondering…. does the box marker have to be symmetric or mirrored in some way IE if you mirror the camera, do you have to mirror the marker somehow so the iSight sees it correctly??? presently my box has 4 letters in it like this
AL
EX
so would I have to make an alt version for making the pattern file? like this?
LA
XE (only mirrored of course…. you get my drift right?)
also what would you say would be the smallest marker I could get away with… I’m trying to put a 1 inch one on my business card…
Hey Lee, when trying to do this tutorial in FlexBuilder, the line addChild(Sprite(fm.flarSource)); is supposed to display the webcam video , however, nothing happens when the project is built. No errors are thrown and no video is displayed in the swf. Any thoughts on why this is?
Thanks
Hello,
thank you very much for the tutorial, it is very useful.
I followed your instructions but I still get 2 errors:
1046: Type wan not found or was not a compile-time constant: FLARMarkerEvent.
referring to the line:
Private function onAdded(e:FLARMarkerEvent):void
and
Private function onRemoved(e:FLARMarkerEvent):void
i tried everything, but it still does not work.
Can please someone help me?
Thank you in advance
Fabi
hi lee,
i’m doing project that need markerless AR any suggestion porting the markerless into flash?
I am having issues with the HelloFlar.as file. I can’t seem to swap out the kramer.m4v file with another video file.
I changed the file path in HelloFlar.as, but it always plays Kramer.
What do I need to do to swap the video with another?
Any help is greatly appreciated!
I have the same problem as Dorazi, does anyone have any clue? I am also getting type was not found or was not a compile-time constant error on my flash builder
I’ve solved the above problems by copying the necessary folders as per import calls… But i’m still getting this error:
Description Resource Path Location Type
1046: Type was not found or was not a compile-time constant: Vid. HelloFLAR.as /HelloFLAR/src line 33 Flex Problem
Can’t seem to find any errors pertaining to this, does anyone have a clue how I can fix this?
Hey was wondering if any one can help. Any idea how to display different videos using multiple markers? I can’t seem to work this one out!
Thanks
Hey Everybody
I can see that some of You are struggle with the same problem as I am.
“1020: Method marked override must override another method.”
I’ve read up on it on different websites and almost all of them suggest that it’s a bug in the Flash CS4 compiler (compiling inside of flash). I’ve done the tutorial in Flash Builder 4 without this error which suggest the same.
However there is a workaround that is reported working, although I haven’t been able to try it myself. Check out this Bug report:
http://bugs.adobe.com/jira/browse/ASC-3588
I’m not a flash guru, so if you get this working with regards to this tutorial please post you solution
//Moonkin
Hellow everyone,
I am trying to create a Augmented Reality application with Flash Builder after following this tutorial
But im getting this error, and i can’t figure out why
1046: Type was not found or was not a compile-time constant: FLARMarkerEvent
http://www.actionscript.org/forums/attachment.php3?attachmentid=34697&stc=1&d=1274876878
Can any one tell me what im doing wrong?
Tnks
Sincerely,
To whom it may concern. I hope everyone.
For example applies Flex Builder 3 with SDK 3.2 under Windows 7 operating system.
Based on the execution of the example of “augmented reality tutorial, typing and run it after I found the following problem: If you put both the pattern ” A ” or pattern ” B “, which gives the result in the debugger after running the program is “0.” Do not make the transition or change of 0-1 at any time, for even putting inevitably show quite different patterns as a result of trace the number 0 (zero).
Please, if any response will be very grateful about his speeches and comments.
Thank you in advance .-
Top