Log in or register to post comments

Adding Multi Target info to XML fails tracking

May 3, 2018 - 11:00am #1

Hey!

I'm stuck trying to set up multi image tracking but whatever I do it fails whenever I add these lines:

<MultiTarget name="4Markeriai">

<Part name="M4"  translation="-0.5  0.5 0"  rotation="AD: 0 0 0 0"/>

<Part name="M3" translation="-0.5 -0.5 0" rotation="AD: 0 0 0 0"/>

       <Part name="M2" translation=" 0.5 -0.5 0"  rotation="AD: 0 0 0 0"/>

       <Part name="M1" translation=" 0.5  0.5 0"   rotation="AD: 0 0 0 0"/>

   </MultiTarget>

The entire XML looks like this:

<?xml version="1.0" encoding="UTF-8"?>

<QCARConfig xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="qcar_config.xsd">

  <Tracking>

    <ImageTarget name="M4" size="0.5 0.5" />

    <ImageTarget name="M3" size="0.5 0.5" />

    <ImageTarget name="M2" size="0.5 0.5" />

    <ImageTarget name="M1" size="0.5 0.5" />

  <MultiTarget name="4Markeriai">

   <Part name="M4"  translation="-0.5  0.5 0"  rotation="AD: 0 0 0 0"/>

       <Part name="M3" translation="-0.5 -0.5 0" rotation="AD: 0 0 0 0"/>

       <Part name="M2" translation=" 0.5 -0.5 0"  rotation="AD: 0 0 0 0"/>

       <Part name="M1" translation=" 0.5  0.5 0"   rotation="AD: 0 0 0 0"/>

   </MultiTarget>

  </Tracking>

</QCARConfig>

And it works without the multi target info, every marker tracks really well, but whenever I try to do multiple it fails (no object displayed in Unity, no plane placed in front of the AR Camera)

Everything's activated in Unity, I tried multiple versions, reinstalling etc. I know that it worked before just I'm not sure why it doesn't now :(

I've been trying to solve this for a couple of days so any help would be really appreciated thanks!

AttachmentSize
Image icon Xml.JPG67.63 KB

Adding Multi Target info to XML fails tracking

May 7, 2018 - 7:46am #2

The issue was caused by no direction set in the rotation definition. Changing " rotation="AD: 0 0 0 0" To At least  rotation="AD: 1 0 0 0" fixed the problem and now it's all tracking fine. Quite weird.

Log in or register to post comments