Hi everybody,
I'm a newbie playing few weeks with Vuforia for iOS. I slightly modified ImageTarget example to play video instead 3D objects using a Queue that stores each video frame and renderFrameQCar method in EAGLView.mm binds 25 frames per second.
My problem, instead, relies on recognizing different trackables. In ImageTargetsAppDelegate's applicationdidFinishLaunchingWithOptions: I added this
[qUtils addTargetName:@"page_1" atPath:@"page_1.xml"];
[qUtils addTargetName:@"page_2" atPath:@"page_2.xml"];
But only the first one (page_1) get recognized (the default as they say). If I swap those two lines of code than only the second page gets recognized.
The problem is that in renderFrameQCar's for cycle:
state.getNumActiveTrackables();
returns 0 while capturing the second trackable and 1 while capturing the first. Can anyone could figure out why?
I didn't even understood which is the method that actually recognizes the trackable because I couldn't find any. It would be great to have some more infos about writing an iOS program from scratch that uses Vuforia .
Thanks for anyone's time.
Cheers.
Unable to recognize multiple trackables not simultaneously
Hi nodelay
In EAGLView.mm have you tried setting the following:
QCAR::setHint(QCAR::HINT_MAX_SIMULTANEOUS_IMAGE_TARGETS, 2);
...in the PostInitQCAR function
HTH
N
Unable to recognize multiple trackables not simultaneously
[quote=NalinS]
Hi nodelay
In EAGLView.mm have you tried setting the following:
QCAR::setHint(QCAR::HINT_MAX_SIMULTANEOUS_IMAGE_TARGETS, 2);
...in the PostInitQCAR function
HTH
Unable to recognize multiple trackables not simultaneously
Hi nodelay
In that case can I suggest you look at the video playback sample we posted up:
https://ar.qualcomm.at/content/video-playback-sample-app-posted
https://ar.qualcomm.at/content/video-playback-sample-guidelines
Unable to recognize multiple trackables not simultaneously
Actually, looking at your code again you can only have one active dataset at a time :)
This is the problem...
What you need to do is to put all the images you want to track into a single dataset, and then set #simultaneousTargets and it should work...
HTH
Unable to recognize multiple trackables not simultaneously
[quote=NalinS]
Hi nodelay
In that case can I suggest you look at the video playback sample we posted up:
https://ar.qualcomm.at/content/video-playback-sample-app-posted
https://ar.qualcomm.at/content/video-playback-sample-guidelines
Unable to recognize multiple trackables not simultaneously
Great - glad to be of help :)