ARToolKit | Mailing List Archive |
![]() |
From: | Alexandre Gillet <gillet@s ..........> | Received: | Mar 19, 2007 |
To | artoolkit <artoolkit@h ..................> | ||
Subject: | problem with distance calculation between marker of different size | ||
Hi All, I am trying to display the distance between 2 markers. When the markers are the same size, I have no problem to get the correct distance in the world coordinate. If I try to use 2 markers with different size then I get a wrong distance. I pass the correct pattern size to the function arGetTransMat, and then use the gl_para matrix to calculate the distance between markers. I used gl_para[12] gl_para[13] gl_para[14] as the x,y,z coordinate of my point for each marker,and calculate the distance. Is there a bug in the ARToolKit code or am I not doing the distance calculation correctly? Any advices, Thanks Alex -- o Alexandre Gillet email: gillet@s .......... / The Scripps Research Institute, o Dept. Molecular Biology, MB-5, \ 10550 North Torrey Pines Road, o La Jolla, CA 92037-1000, USA. / tel: (858) 784-2053 o fax: (858) 784-2860 web: http://mgl.scripps.edu/projects/tangible_models/ |
From: | Alexandre Gillet <gillet@s ..........> | Received: | Mar 19, 2007 |
To | Daniel Wagner <daniel@i ...............> | ||
Subject: | Re: problem with distance calculation between marker of different size | ||
I doubled check that I was passing the correct size marker which I did not for one of the marker. It does indeed work fine. Thanks Alex On Mon, 2007-03-19 at 20:08 +0100, Daniel Wagner wrote: > hi Alexandre, > > Generally this should work. > > Do you actually tell ARToolKit that those markers have different size? > If would be helpful if you could give more details on what is going wrong... > > Daniel > |
From: | Daniel Wagner <daniel@i ...............> | Received: | Mar 19, 2007 |
To | ARToolKit Mailinglist <artoolkit@h ..................> | ||
Subject: | Re: problem with distance calculation between marker of different size | ||
hi Alexandre, Generally this should work. Do you actually tell ARToolKit that those markers have different size? If would be helpful if you could give more details on what is going wrong... Daniel |