Log in or register to post comments

How can i detect the current frame marker?

February 24, 2012 - 9:11am #1

Hi.

I want to program a system where i can relocate the center of the world depending of what marker is detected by the camera (i'm working with frame markers).

My markers are going to be put in line with a separation of about 1 meter between them, i configure the camera to detect just one marker at a time, and i want to assign a coordinate delta the the worl center depending what's the marker detectec in that moment.

For example, if i detect the frame marker numebr 1 i want the center of the word world in my (3D) framer marker 1, if i detect the framer marker 2 i want the center of the world to be located at the (3D again) framer marker 2 - 100 units... etc etc.
That way i can maintain the coordinates of the world without having to have the same frame marker always in the screen.

To do that i need to detect the current marker and i need to change the current world coordinate.

Some clues please?

Thanks.

Cheers.

Re: How can i detect the current frame marker?

March 6, 2012 - 8:02pm #3

You can find all the objects of type MarkerBehaviour and query their status. Do this in the TrackerEventHandler's OnTrackablesUpdated callback:

[CODE]
using UnityEngine;

// A custom handler that implements the ITrackerEventHandler interface.
public class TrackerEventHandler2 : MonoBehaviour,
ITrackerEventHandler
{

private MarkerBehaviour[] markerBehaviours;

void Start()
{
TrackerBehaviour trackerBehaviour = GetComponenthttp://ar.qualcomm.at/node/2001030https://ar.qualcomm.at/arforums/showthread.php?t=1030

- Kim

Re: How can i detect the current frame marker?

March 6, 2012 - 7:19am #2

That can't be true... there is no way to know what markers are detected at every cycles?

There is no array with that information, or anything?

Cheers.

Log in or register to post comments