When you detect one of the markers you get his transformation matrix
(ie.MATRIX1) from arGetTransMat which is use to draw the object on the
marker, right?. If you want to move the object to another point you just
have to measure the real distance in mm between that point and the center of
the marker i.e (a,b,c) and create a constant matrix like
MATRIX2=(1,0,0,a;0,1,0,b;0,0,1,c). Before you draw yo have to get the final
matrix, so you'll have to do this (wmat1 is a middle matrix):
finally use the new matrix ''wmat'' to draw the object.
Hope this helps
Anyways you can take a look about this topic in the mailing list...search
for ''relation between markers''
De: owner-artoolkit@h ..................
[mailto:owner-artoolkit@h ..................]En nombre de
Enviado el: martes, 17 de agosto de 2004 10:02
Para: artoolkit@h ..................
Asunto: How to draw between two markers
I am working with the VRML version of ARToolkit and I would like draw a VRML
animation between two markers. I know how to get the coordinates to the two
markers and how to find a point between them. But how do I draw an animation
this point and how do I rotate it correctly?
Any help will be appreciated.