arToolkit and papervision3d
September 25th, 2008 • ar, creative, flash, hot, papervision3d
Too sad that my french and japanese is really bad. I recently found a great arToolkit demo for flash called FlarToolkit. After randomly clicking all the links I could find on the page, I found the svn :-)
I had a compile error using flex sdk and eclipse. after changing a private to public property it worked.
It performes really well but you can also see that I is still not really stable. I think the major bottleneck is the bad webcam quality compared to a dv cam.
What I don’t get:
When the FlarToolkit has found the rectangle in the “2d” image, how can I transform this data in the papervision3D room. If you have a 2d->3d math for dummies link – please drop me a line.
What I would love to do:
As you can see there are some serious tracking precision issues. In my opinion the major problem is the pixelbased tracking. It’s a waste of performance. This could be solved by an Idea Mario Klingemann presened on the FFK08 called blobdetection.
Well this is my theory:
- Blur the camera image and convert it in black / white image
- With getcolorBoundsRect and floodfill detect all black rectangles in the image
- Find the marker rectangle
- Use an edge detection
- You should be done
So you only need to analyse a small amount of pixels directly for the edge detection. The other stuff can be done by “internal” flash functions which are really fast. Maybe I’ll try it – someday.
Responses (Add Your Comment)
-
-
Ha, i did the same thing. Just clicked randomly till in found the svn link.
I just started looking at the code, not too familiar with Augmented reality, but if you happen to know of any tutorials using this lib please let me know. Thanks!
-
“after changing a private to public property it worked.”
which line did you change?
thanks
-
You probably found this out already, but i just wanted to mention that the public/protected thing is mentioned here:
http://www.mikkoh.com/blog/?p=182
This guy supposedly found out himself :)
actually it’s named Flartoolkit, this is an adaptation of Artoolkit in AS3 for flash made by two japanese developpers (they are genius ;) )