I've a problem with a frame markers sample. I'm replacing the models for a new one when two markers are close together. I've managed to make it work with one pair of markers, however I need to do the same for multiple pairs of markers and change a different models accordingly only when two corresponding markers are together, otherwise don't show anything (or show another model).
The functionality, so far, works only when two markers are being tracked but when I have more pairs in the rendering scene the models are not showing accordingly. I guess its a matter of logic but I have run out of options. Do you have any ideas on how to face this problem?
I'm doing everyhting linearly in the renderFrame function on FrameMarkers.cpp. I'm wondering if is there any other way to implement a functionality of this kind and if its possible to work directly in Java rather than C++.
Thanks in advance for your help,