Log in or register to post comments

multitarget bug

February 15, 2017 - 2:13pm #5

Trying to get multitarget working, and I realized that the first target in the database is no longer recognized if I include it in a multitarget group. For example, these targets all work fine:

<QCARConfig xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="qcar_config.xsd"><br>
	  <Tracking><br>
	   <ImageTarget name="leftspine" size="2.000000 0.600000" /><br>
	    <ImageTarget name="rightspine" size="2.000000 0.600000" /><br>
	    <ImageTarget name="bumper" size="1.800000 0.400000" /></p>
<p>  </Tracking><br>
	</QCARConfig>

But as soon as I add the multitarget tag:

<QCARConfig xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="qcar_config.xsd"><br>
	  <Tracking><br>
	   <ImageTarget name="leftspine" size="2.000000 0.600000" /><br>
	    <ImageTarget name="rightspine" size="2.000000 0.600000" /><br>
	    <ImageTarget name="bumper" size="1.800000 0.400000" /></p>
<p>    <MultiTarget name="chassistest"><br>
	      <Part name="rightspine" translation="0 0 0.015" rotation="AD: 0 0 0 0"/><br>
	      <Part name="bumper" translation="1 -.5 0" rotation="AD: 0 1 0 90"/><br>
	      <Part name="leftspine" translation="0 0 -0.015" rotation="AD: 0 1 0 180"/>  <br>
	</MultiTarget></p>
<p>  </Tracking><br>
	</QCARConfig>

Then the first target in the database (which happens to be "rightspine" if you are looking in the Target Manager online) stops working. Even if I just try to attached it to the ImageTarget prefab, Unity throws an exception:

Could not associate DataSetTrackableBehaviour 'rightspine' - no matching Trackable found in DataSet!<br>
	UnityEngine.Debug:LogError(Object)<br>
	Vuforia.StateManagerImpl:AssociateTrackableBehavioursForDataSet(DataSet)<br>
	Vuforia.DataSetImpl:Load(String, StorageType)<br>
	Vuforia.DataSetImpl:Load(String)<br>
	Vuforia.DatabaseLoadARController:LoadDatasets()<br>
	Vuforia.VuforiaARController:Start()<br>
	System.Delegate:DynamicInvoke(Object[])<br>
	Vuforia.DelegateHelper:InvokeDelegate(Delegate, Object[])<br>
	Vuforia.DelegateHelper:InvokeWithExceptionHandling(Action)<br>
	Vuforia.VuforiaAbstractBehaviour:Start()

Anybody else have this problem? Is this a bug? Is there a workaround??

multitarget bug

February 15, 2017 - 8:09pm #4

Are you trying to use the image target independently still (with an ImageTargetBehaviour)?

From what I've observed, once an image target is included in a MultiTarget it's no longer usable as a standalone ImageTarget. At least if you list all the trackable in the dataset, you'll find a MultiTarget in place of all it's parts.

You have to use a MultiTargetBehaviour to use the MultiTarget.

Hope it helps!

-Sam

multitarget bug

February 17, 2017 - 1:46pm #3

I figured it out. In my application, two of the targets are back to back. The problem was that even though I left a gap between the two back to back markers, Vuforia doesn't seem to like them to be closer than a certain amount. Once I increased the distance between the markers to 0.05 the problem went away.

multitarget bug

May 21, 2018 - 12:35pm #2

Why no one wants to answer the questions related to custom multi target?

I'm facing a similar issue as fasteffect and others in this forum.

Is this feature working or not? It looks from the documentation and from the unanswered posts that this feature is not working as expected an no one knows why.

Thanks

multitarget bug

May 21, 2018 - 2:40pm #1

Hello edoardoo,

It looks like fasteffect resolved their issue. If you are facing an issue with MultiTargets I suggest you open a new thread with detailed information on what you are experience and include any relevant data (e.g. devices, Vuforia version, Unity or Native, screenshots).

Thanks,

Vuforia Support

Log in or register to post comments