I'm working alongside an iOS developer who's using Unity and Vuforia, only he's off sick today.
Our project uses three markers - each one triggering a different 3D model. However, we only want one model to appear at a time, even if there are multiple markers visible within the camera view.
We've managed to do this with image markers (as it seems that only one of those can be tracked at once). It might be simpler for the graphic design team if we used frame markers, but I've been led to believe that those will all be recognised and tracked simultaneously.
Is there a way to use frame markers, but still limit the number of simultaneously tracked markers to 1, so that we don't get multiple models shown?
I'm going to have another dig through the documentation but I wanted to know whether anyone on here could help me with this.
Many thanks in advance.
Limiting the number of recognised frame markers to one
hi amv
In the Unity project click on the ARCamera and go to the inspector.
Look for Max Simultaneous Image Targets and you can set this number accordingly if required, so more than one image can be tracked.
The same applies to frame markers.
HTH
N
Limiting the number of recognised frame markers to one
Thanks so much for your prompt and helpful reply. I'll go check out that setting.
Much appreciated!
Limiting the number of recognised frame markers to one
Hi Nalin,
My colleague is now back and we've had a go changing the setting you mentioned but it still seems to recognise several frame markers at once, projecting the models for each of them all at the same time (if they're all in view).
Limiting the number of recognised frame markers to one
Here's the relevant part of the script:
[SerializeField]
Limiting the number of recognised frame markers to one
Hi amv
Sorry it does apear that this setting has no bearing on Framemarkers.
Limiting the number of recognised frame markers to one
Hi,
Is it possible to create a multi-target from 6 frame markers, or is that only possible with image markers?
Limiting the number of recognised frame markers to one
No, multitargets is only posible with Image Markers,
...and the pose/matrix only returns the center of the multitarget not the image target of each side.
Limiting the number of recognised frame markers to one
Any update on this? If it is tracking one frame marker, I want it to stop looking for other frame markers. When there's more than one frame marker in view, it throws off the orientation of the objects and the direction of gravity is messed up.
Limiting the number of recognised frame markers to one
Multitargets don't provide an API for determining the facing child targets. As Nalin stated, you'd have to determine this by analyzing their orientation.
Limiting the number of recognised frame markers to one
[quote=DavidBeard]If you'd like to limit tracking on a set of framemarkers, set your Max Simultaneous target value to 1. This will restrict tracking to a single target instance.
[/quote]
Limiting the number of recognised frame markers to one
Oops, Double-Posted.
See next post :- )
Schwaaa
Limiting the number of recognised frame markers to one
[quote=JTown]
[quote=DavidBeard]If you'd like to limit tracking on a set of framemarkers, set your Max Simultaneous target value to 1. This will restrict tracking to a single target instance.
[/quote]
Limiting the number of recognised frame markers to one
Yes this is correct as I said earlier in the thread.
Max sim targets has no bearing on frame markers.
N
Limiting the number of recognised frame markers to one
Another quick fix is getting the number of active trackables and then limiting your for loop to the target number like this:
int numActiveTrackables = state.getNumActiveTrackables();
Limiting the number of recognised frame markers to one
Yes you'll need to accommodate this sort of constraint in the event handler. I was mistaken regarding the affect of MSIT on FrameMarkers :P