Hello Folks!
I'm trying to integrate the ARToolKit into Virtools Dev 3.0, a solution
for developing exceptional interactive applications. But when I run my
application and the ARToolKit recognize an object, the transformation of
this object is wrong. First of all this y-axis (up-down movement) is
inverted, and also rotating around the z-axis is inverted. ( It seems
when flipping the image vertically the transformation is correct, but
this is not the case :-( )
I've tried to invert the y-axis of the camera parameter with:
arParam.mat[1][1] = -arParam.mat[1][1];
After this the up-down movement is correct and also the rotation around
the z-axis is correct. But now the object is not sticking on the
pattern. I'm not 100% sure that the camera distortion is set right from
Virtools, but relative movement between pattern and object is much to
large for just a incorrect camera distortion. (For testing I disabled
the camera parameter in the "simple"-example from ARToolKit , and the
movement between pattern and object was minimal)
I do not know how to calculate the correct transformation matrix, maybe
someone has the same problems when trying to integrate ARToolKit in
other 3D-Applications. Besides, the same problem occur when integration
the ARToolKit into Java3D, but the transformation errors aren't as big
as here in Virtools (And I also do not have a solution for the Java3D
problem).
Regards
Jörg Stöcklein
--
____________________________________________________________________
Dipl.-Inf. Jörg Stöcklein ~ Fon: (+49) (0) 5251-60 6622
Paderborn University ~ Fax: (+49) (0) 5251-60 6502
Fakultaet EIM, HNI, AG-Rammig ~ Office: F2.114
Fuerstenallee 11 ~ e-mail: ozone@u .....
D-33102 Paderborn, Germany ~ www.upb.de/cs/ag-rammig
____________________________________________________________________
|