Hi,
I'm using the ARToolkit and in my application I would like to know what
the orientation and position of the marker cards so I can manipulate the
objects on the card.
The marker card position is fairly easy to get to following one of the
example programs (collideTest I think):
x = object[i].trans[0][3];
y = object[i].trans[1][3];
z = object[i].trans[2][3];
Is this right? Or is there a better way to do it?
What about orientation in each axis? For example to know what the angle in
the x axis is. Is it possible to decompose the trans matrix to discover
this (and if so how?) or is it accessible when the marker is recognised.
Thanks
Patrick Sinclair
|