> 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];
>
Hi, I had a similar problem with a swapped y-axis. But I
used a rotation matrix like this:
arParam.mat[0][1] = -arParam.mat[0][1];
arParam.mat[1][1] = -arParam.mat[1][1];
arParam.mat[2][1] = -arParam.mat[2][1];
This is a 180 degree rotation around z....
Hope that helps,
Toni
|