FLARManager v0.3 (for FLARToolkit)

been getting started on a new FLARToolkit app, and i’ve been finding myself needing more tools…hence the rapid-fire releases the last couple days.

to make things simpler to update in the future, i moved FLARManager onto svn, and created a separate page for it. you can find all the details, and the source, here:

http://words.transmote.com/wp/flarmanager/

major changes in v0.3 include:

packaged things up proper. was getting to be a respectable pile of classes, so i tidied things up a bit.

added FLARProxy.as. FLARProxy provides a way to test FLARToolkit applications with a mouse and keyboard, instead of using FLARCameraSource or FLARLoaderSource.

30 Comments

  1. Javier Patiño says:

    oh no… I dont have a svn program in my mac…. do you know some one to download you flarmanager?

  2. ericsoco says:

    you don’t have to use SVN to download the latest version, i posted it from the page linked to in this post.

    there aren’t any great SVN options for OSX, in my opinion, but i use Versions. it’s pretty good, tho it has some flaws (including a somewhat ridiculous 50€ price tag). another option is subversion + scplugin (http://scplugin.tigris.org/). last i used scplugin it had a lot of bugs, but maybe it’s gotten better since then.

  3. Danilo says:

    If you have Leopard subversion is already installed. A good free source svn gui is svnx

  4. Javier Patiño says:

    thanks

  5. Splengy says:

    any hints on how to get this running in Flash? please?

  6. ericsoco says:

    fyi, i found out that, by releasing FLARManager under Creative Commons, i was in breach of the GPL under which FLARToolkit was originally released. so, FLARManager is now under the GNU GPL. the source has been modified accordingly.

  7. ericsoco says:

    splengy, you should be able to get FLARManager to compile from the Flash IDE by setting your Document Class to any of the four example main classes in FLARManager (“FLARManagerExample_….as”).

    note that FLARManager targets flash player 10, which means you’d need Flash CS4 to compile. there is a version for FP9 available here:
    http://words.transmote.com/wp/20090312/flarmanager-v01-for-fp9/

    but it’s an older version of FLARManager, and i don’t plan to release an updated version for FP9.

  8. John says:

    hi~ericsoco, is FLARManager free for develop commercial application?

  9. ericsoco says:

    @john — thanks for asking.
    FLARManager is, currently, free for commercial development.
    note that FLARToolkit is not, however, and you have to abide by their license.

    as FLARManager is derived from FLARToolkit, FLARToolkit’s licensing applies to use of FLARManager as well (i.e. you have to either open-source your application, or purchase a license). more info on the ARToolkit license here:

    http://www.hitl.washington.edu/artoolkit/license.html

  10. SMJOHN says:

    Hey Eric,

    Great manager…I just refactored my app from the squidder multiple marker source to your FLARManager….

    I’m getting all these traces on enter frame which is bogging down my app:
    2 1 0.09913204920897555 ( 140 )
    2 1 0.09913204920897555 ( 140 )
    2 1 0.09913204920897555 ( 140 )
    2 1 0.09913204920897555 ( 140 )

    I suspect they’re xyz vals for the flarnode….I tried a search in FDT but I can’t find where you’re tracing this params…Do you know where I can find this trace to comment it out?

    Thanks,

    SMJOHN

  11. ericsoco says:

    hm, not sure what those are — did you just get the latest from SVN? i’ve been doing some work on it lately, and it’s possible you got a revision with some debugging traces left in it. i can’t remember writing any code that would output that stuff, but that doesn’t mean i didn’t do it ;)

    try downloading the latest from SVN and see if it’s still there. in general, the latest revision in SVN is not guaranteed to work; the safest bet is to download from the link in this post.

  12. SMJOHN says:

    I grabbed it from the zip or whatever you had it up as before svn. Will try the svn version…

    Do you have any idea of how to add a cube or any 3d object to the scene when the marker is detected, but not have it added to the flarnode? I don’t need my model to translate with the position of the node.

    I basically want to show my paper marker, spawn my model, then remove the marker and have the model stay in the scene.

  13. ericsoco says:

    sure, just add it like you would add it without FLARToolkit, and don’t apply the transform matrix every frame, and don’t bother handling the marker removed event.

  14. Javier Patiño says:

    Hello.. I have a problem when I try to load a Dae without Collada.as…If I load with DAE.as give me an error… with some doubleside and effects…. why this errors?

  15. Trent Grover says:

    BTW – I noticed that the tracker confidence results are different depending on whether you mirror your camera source or not. It was driving me nuts until I tracked that down. The problem is fixed by mirroring your original pattern.

    Perhaps your pattern loader code can be altered so that it performs a mirror of the pattern array if the camera source is being mirrored? That way I wouldn’t have to keep track of 2 different pattern files.

  16. ericsoco says:

    yep, that’s true. i committed a version a couple weeks ago with mirroring turned off when i found this out, and i thought i posted something about this, but maybe i just wrote it in my revision comments. next released version will address this issue.

  17. [...] of the FLARtoolkit. If you have not look into the internal classes of FLARtoolkit (because the FLARmanager is so much easier to work with ), there are two detectors: FLARSingleMarkerDetector and [...]

  18. William says:

    Is it possible to get the X, Y and rotation values of markers to a trace window, I want to track objects but not use papervision 3d to draw 3d on top. Every flar thing I find has papervision, can we not just put 2d graphics on top?

  19. ericsoco says:

    @william — of course! that’s why i made FLARManager. papervision not required. and, personally, i’m more interested in the 2D applications than the 3D applications. check out FLARManagerExample_2D to see how to get that information, via FLARMarker.x, .y, and, .rotation2D.

  20. William says:

    Ahh, thank you. I will have to look. I own Flex, am saving for Flash (demo has expired) so will try to build it in Flex and learn from there. Thank you for releasing this, I one day hope to be able to be good enough to release code for free.

  21. William says:

    Hmm, I cant get it to work :) If I remove any reference to PV3D I get Matrix errors with a fair few other classes from FLARToolkit. I wonder if you would be so kind as to show code which would simply recognise a marker and trace an x and y value? I’ve looked through your code and tried to replicate it without the outline, simply tracing values, but am stumped. :)

  22. ericsoco says:

    @william — sorry, i should have pointed you to FLARManagerTutorial_2D — it should be pretty obvious from that example how to access x, y, and rotation.

  23. [...] you’re a Flex developer, get the FlarManager toolkit here. The Flex libraries are super cool.  For Flash developers start here with Saqoosha’s jump [...]

  24. Daniel says:

    Hi ericsoco, great work thist flarmanager.

    I was using the V05 in Flash CS4 with papervision3d and other libraries and everthing is good.

    But when I try all examples in V06 I get this errors (sorry this in spanish)

    1044: El método de interfaz attachDestination del espacio de nombres org.libspark.flartoolkit.core.labeling:IFLARLabeling no se implementa con la clase org.libspark.flartoolkit.core.labeling:FLARLabeling_BitmapData.

    1044: El método de interfaz getAttachedDestination del espacio de nombres org.libspark.flartoolkit.core.labeling:IFLARLabeling no se implementa con la clase org.libspark.flartoolkit.core.labeling:FLARLabeling_BitmapData.

    1044: El método de interfaz labeling del espacio de nombres org.libspark.flartoolkit.core.labeling:IFLARLabeling no se implementa con la clase org.libspark.flartoolkit.core.labeling:FLARLabeling_BitmapData.

    Warning: 3594: trap no es un método reconocido de la clase dinámica FLARException. (this error repeat many times in several lines)

    My libraries are good, well the same directory only changing “v05″ for “v06″

    What can I do?

    thanks and keep the hard work!!

  25. Daniel says:

    ahh sorry… my interest is detect marker rotation and move, in the example FLARManagerTutorial_2D.as of FLARManager V05 there is nothing about it, is in the V06… please help me and thanks again!

  26. ericsoco says:

    @Daniel — please look through the comments on the v0.6 page. this is a bug in CS4 with classes that implement multiple interfaces, and others have already solved this problem and posted the solution there.

  27. [...] you’re a Flex developer, get the FlarManager toolkit here. The Flex libraries are super cool.  For Flash developers start here with Saqoosha’s jump [...]

  28. [...] of the FLARtoolkit. If you have not look into the internal classes of FLARtoolkit (because the FLARmanager is so much easier to work with  ), there are two detectors: FLARSingleMarkerDetector and [...]

  29. [...] level of the FLARtoolkit. If you have not look into the internal classes of FLARtoolkit (because theFLARmanager is so much easier to work with  ), there are two detectors: FLARSingleMarkerDetector and [...]

Leave a Reply

Additional comments powered by BackType