Hi!
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,
Regards
Multiple Frame Markers interaction
Hi, as you recognize, this is really a matter of programming and application logic.
Concerning your question about Java vs C++; yes, it is possible to code everything in Java, if you use the latest version of the SDK (2.8.7).
Multiple Frame Markers interaction
Great!, thanks, I'll move to Java later. I'm trying to solve this problem in c++ in the meantime.
Multiple Frame Markers interaction
Hi,
Multiple Frame Markers interaction
You need to run state.getNumTrackableResults() because the list of active trackables might change at every frame;
Multiple Frame Markers interaction
Thanks,
Actually the thing I need is to know when a marker is tracked or not, I was trying something like:
Multiple Frame Markers interaction
No, that does not work because in the getTrackableResult() you need to pass an index between 0 and state.getNumTrackaleResults()-1.