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??
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