Log in or register to post comments

Vuforia Unity - Multi Target Rotation Problem / Broken

February 17, 2016 - 2:23pm #1

Hi everyone,

I've created a large MultiTarget object by editing the XML file downloaded from target manager. The sides that have one rotation seem to track properly but sides that have multiple rotations (ie.  AD: 1 0 0 -90; AD: 0 1 0 90;) freak out when tracked. The model that vuforia generates in Unity appears correct, but when tracking it will track wrong angles. 

any help would be greatly appreciated. I am not sure what is going on. The only solution I can think of is to guess and check rotation values which would be a pain.

Here is my XML script:

<MultiTarget name="Table">
        <Part name="table_top1x1" translation="-29.06 2.1 -12.085181" rotation="AD: 1 0 0 -90"/>
        <Part name="table_top1x2" translation="-14.53 2.1 -12.085181" rotation="AD: 1 0 0 -90"/>
        <Part name="table_top1x3" translation="00.000 2.1 -12.085181" rotation="AD: 1 0 0 -90"/>
        <Part name="table_top1x4" translation="014.53 2.1 -12.085181" rotation="AD: 1 0 0 -90"/>
        <Part name="table_top1x5" translation="029.06 2.1 -12.085181" rotation="AD: 1 0 0 -90"/>

        <Part name="table_top2x1" translation="-29.06 2.1 0" rotation="AD: 1 0 0 -90"/>
        <Part name="table_top2x2" translation="-14.53 2.1 0" rotation="AD: 1 0 0 -90"/>
        <Part name="table_top2x3" translation="00.000 2.1 0" rotation="AD: 1 0 0 -90"/>
        <Part name="table_top2x4" translation="014.53 2.1 0" rotation="AD: 1 0 0 -90"/>
        <Part name="table_top2x5" translation="029.06 2.1 0" rotation="AD: 1 0 0 -90"/>

        <Part name="table_top3x1" translation="-29.06 2.1 12.085181" rotation="AD: 1 0 0 -90"/>
        <Part name="table_top3x2" translation="-14.53 2.1 12.085181" rotation="AD: 1 0 0 -90"/>
        <Part name="table_top3x3" translation="00.000 2.1 12.085181" rotation="AD: 1 0 0 -90"/>
        <Part name="table_top3x4" translation="014.53 2.1 12.085181" rotation="AD: 1 0 0 -90"/>
        <Part name="table_top3x5" translation="029.06 2.1 12.085181" rotation="AD: 1 0 0 -90"/>

        <Part name="table_front1" translation="-29.06 0 18.9" rotation="AD: 0 0 0 -90; AD: 1 0 0 -19.44"/>
        <Part name="table_front2" translation="-14.53 0 18.9" rotation="AD: 0 0 0 -90; AD: 1 0 0 -19.44"/>
        <Part name="table_front3" translation="00.000 0 18.9" rotation="AD: 0 0 0 -90; AD: 1 0 0 -19.44"/>
        <Part name="table_front4" translation="014.53 0 18.9" rotation="AD: 0 0 0 -90; AD: 1 0 0 -19.44"/>
        <Part name="table_front5" translation="029.06 0 18.9" rotation="AD: 0 0 0 -90; AD: 1 0 0 -19.44"/>

        <Part name="table_back1" translation="-29.06 0 -18.9" rotation="AD: 1 0 0 -180; AD: 1 0 0 19.44"/>
        <Part name="table_back2" translation="-14.53 0 -18.9" rotation="AD: 1 0 0 -180; AD: 1 0 0 19.44"/>
        <Part name="table_back3" translation="00.000 0 -18.9" rotation="AD: 1 0 0 -180; AD: 1 0 0 19.44"/>
        <Part name="table_back4" translation="014.53 0 -18.9" rotation="AD: 1 0 0 -180; AD: 1 0 0 19.44"/>
        <Part name="table_back5" translation="029.06 0 -18.9" rotation="AD: 1 0 0 -180; AD: 1 0 0 19.44"/> 

        <Part name="table_right1" translation="37.1 0 -12.046154" rotation="AD: 1 0 0 -90; AD: 0 1 0 90; AD: 0 1 0 -19.44"/>
        <Part name="table_right2" translation="37.1 0 0000000000" rotation="AD: 1 0 0 -90; AD: 0 1 0 90; AD: 0 1 0 -19.44"/>
        <Part name="table_right3" translation="37.1 0 012.046154" rotation="AD: 1 0 0 -90; AD: 0 1 0 90; AD: 0 1 0 -19.44"/>

        <Part name="table_left3" translation="-37.1 0 012.046154" rotation="AD: 1 0 0 -90; AD: 0 1 0 -90; AD: 0 1 0 19.44"/>
        <Part name="table_left2" translation="-37.1 0 0000000000" rotation="AD: 1 0 0 -90; AD: 0 1 0 -90; AD: 0 1 0 19.44"/>
        <Part name="table_left1" translation="-37.1 0 -12.046154" rotation="AD: 1 0 0 -90; AD: 0 1 0 -90; AD: 0 1 0 19.44 "/>

    </MultiTarget>
 
Log in or register to post comments