FAQ_FLARtoolkit

How to add FlarToolkit and Papervision libraries to project

Hi,

I have downloaded FlarToolkit and Papervision. But I can't figure out how to add the libraries to my project. I have created an eclipse actionscript project. How do I add the libraries and compile the project?

Can I load Google 3D Warehouse model (.kmz) in the FLARToolkit?

Can I load Google 3D Warehouse model (.kmz) in the FLARToolkit? It's not a problem to load (.kmz) in the Flash 3d (PaperVision 3D).

How to Solve THIS?

Hi there,
Can anyone help me out?I read many posts, blogs and tutorials.I have basic knowledge about papervision3d.I tried to create a small model in blender and exported it in .DAE format. When i am testing my movie then i just simply cannot see anything on the marker(the problem is for sure with the co-ordinates).I have no idea where my object is in 3D co-ordinates. Can someone suggest a way, so that after exporting any collada.dae one can see it easily(or have atleast any idea) where the model is present in the 3D co-ordinates.
Thanks alot

how to control the marker rotation from flartoolkit?

QUESTION by Shachar Oz

How can I get the marker's rotation values without any manager? only
with flartoolkit?

ANSWER by Eric Socolofsky

or var fm:FLARDoubleMatrix34 --
rotationX = Math.atan2(fm.m20, fm.m22);

Can I load animations on DAE models?

original thread here

QUESTION by Mikhail I. Tsybizov

Can FLARManager read the animation of the DAE file? I do export including animation from 3ds Max2010 to DAE. But it is not displayed.
Is it the right way, or there is some other way?

ANSWER by Eric Socolofsky

Can I map one object on multiple markers?

e.g.  image on 4 markers, so smaller marker can be used without having too much jittering?

ANSWER BY MAKC

if all 4 markers are of same size and not rotated relative to each other, for example in corners of invisible square, you could simply average their resulting matrices - and that would place your model into square center.

that is, if they are ALL detected :)

Can I use color markers?

No. Right now FLARtoolkit doesn't support color markers. If you have seen some company examples and they use color markers, that's other technology but no FLARtoolkit.

Getting the screen coordinates of a marker

Here is the sample code to get the screen coordinates of the marker. (Originally from Makc's post)

 

var i:int, sq:FLARSquare = detector.getSquare (); 
for (i = 0; i < 4; i++) { 
        var ix:int = sq.sqvertex[i].x; 
        var iy:int = sq.sqvertex[i].y; 
        var c:uint = 0xFFFF0000; 
        bd.setPixel (ix + 0, iy + 0, c); 
        bd.setPixel (ix - 1, iy + 0, c); 
        bd.setPixel (ix + 1, iy + 0, c); 
        bd.setPixel (ix + 0, iy - 1, c); 
        bd.setPixel (ix + 0, iy + 1, c);