Log in or register to post comments

Interaction between markers

January 17, 2014 - 1:10am #1

Hi, I had search in this forum but I could not find an answer, where:

- when marker A is detected, A object is rendered, same with B marker, but when both of these marker put side-by-side, C object ir rendered.

How is this done bu using unity?

Interaction between markers

January 17, 2014 - 1:39am #3

Sorry, i am not so clear about your answer. I am not so familiar with this.

Can u explain it more clearly?

thanks.

Interaction between markers

January 17, 2014 - 1:20am #2

You can achieve this in many ways; for instance, whenever a Traget is found, you could update a global data structure (e.g. a list) where you keep track of the targets currently detected, and the ones that are not.

 

Another possibility is to query the StateManager to obtain the list of active trackables at any given time, using code like this:

StateManager sm = TrackerManager.GetStateManager();

IEnumerable<TrackableBehaviour>  activeTrackables = sm.GetActiveTrackables();

 

The rest is just application logic, and is up to you.

 

Log in or register to post comments