ARToolKit | Mailing List Archive |
![]() |
From: | Alexandre Gillet <gillet@s ..........> | Received: | Mar 28, 2002 |
To | artoolkit <artoolkit@h ..................> | ||
Subject: | relation between two markers | ||
Hi All, I am trying to get the transformation matrix between two markers. Is there in Artoolkit any already implemented function that return the transformation matrix between two detected markers? Matrix that would have the same format has gl_para so I can use it in OpenGL. I want to display my 3D geometry not on the marker but at a position translated from it. Any advices would be greatly appreciate as I am just beggining in AR. Thanks Alex -- ********************************** Alexandre Gillet The Scripps Research Institute, tel: (858) 784-2053 Dept. Molecular Biology, MB-5, fax: (858) 784-2860 10550 North Torrey Pines Road, email: gillet@s .......... La Jolla, CA 92037-1000, USA. |
From: | Hirokazu Kato <kato@s ........................> | Received: | Mar 31, 2002 |
To | Alexandre Gillet <gillet@s ..........> | ||
Subject: | Re: relation between two markers | ||
Hi, >I am trying to get the transformation matrix between two markers. >Is there in Artoolkit any already implemented function that return the >transformation matrix between two detected markers? Matrix that would >have the same format has gl_para so I can use it in OpenGL. >I want to display my 3D geometry not on the marker but at a position >translated from it. Please look at 'examples/relation/relationTest.c'. double wmat1[3][4], wmat2[3][4]; arUtilMatInv(object[0].trans, wmat1); arUtilMatMul(wmat1, object[1].trans, wmat2); where object[0].trans is a transformation matrix from marker#0 to the camera, object[1].trans is a transformation matrix from marker#1 to the camera, and wmat2 is a a transformation matrix from marker#1 to marker#0. -- ------------------------------------------------------------------ Hirokazu Kato Faculty of Information Sciences Hiroshima City University Phone: 082-830-1705 Email: kato@s ........................ Fax: 082-830-1435 URL: http://www.sys.im.hiroshima-cu.ac.jp/people/kato/ |