This project is read-only.

Equivalent function to artag_project_between_objects()

May 6, 2009 at 3:00 PM
Hi there,
Since the WorldTransformation of a marker gives me the position of the objects relative to the camera, I was wondering if there is any function equivalent to artag_project_between_objects() of ARTag which gives the relative position between to objects.
Also, in an array of 4 markers, how do i get the position of each one, instead of the position of the array (if there is a way)..


Laetitia Mendes
May 7, 2009 at 5:18 PM
Hi Laetitia,

I'm not sure what exactly artag_project_between_objects() return since I've never used it, but if you just want to know the position different between two ARTag markers, you can simply take the difference between WorldTransformation. If you're taking the difference, then it does not matter what the transformation is relative to. 

If 4 markers are in the same array (assuming they are planner), then the position of each marker is simply the difference between the transformation of the array, and the shifted transformation of each marker from (0, 0) defined in the ARTag coordinate file. 

May 7, 2009 at 5:27 PM
Hi Ohan,
I haven't thought of that... =)

Thanks a lot !
Oct 7, 2009 at 5:22 AM

I found the artag_project_between_objects() function in goblin, I'm not sure if it works tho.