Log in or register to post comments

MultiTarget not working in a non cubic mode

November 10, 2016 - 12:55am #1

Vuforia SDK Version: 6-0-117 -

Description with steps to reproduce: Hi Vuforia community ! I read documention for a specific project, including AR on 4 targets (at the same time) for just 1 scene. So I tried the sample app (cereal box) working fine. But I need someting different : Instead of a cube, I need 4 targets on the ground (It's for a perfume project, and one the perfume is unboxed, we have 4 sides on the ground, around the bottle. And I need to track these sides to have an animation all around the bottle. Here's a picture of what I tired : https://postimg.org/image/66wjnrdrd/ It doesn't work because the script brings me back to the initial position of the 4 faces. Thanks guys ! -

Development OS (Mac OS X, Windows, Linux): Windows 10 -

Mobile OS and Version: Android 7.0 -

Mobile Device Manufacturer and Model name: Nexus 6 -

Do the Vuforia Sample Applications show the same behavior?: Yes

 

Edit, Oh I found I by my own, I needed to edit the XML file, to get this :

Quote:

<?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="4" size="5.000000 5.000000" />

    <ImageTarget name="2" size="5.000000 5.000000" />

    <ImageTarget name="3" size="5.000000 5.000000" />

    <ImageTarget name="1" size="5.000000 5.000000" />

<MultiTarget name="Prada">

      <Part name="4" translation="0 -5 0" rotation="AD: 1 0 0 0"/>

      <Part name="2" translation="5 0 0" rotation="AD: 0 1 0 0"/>

      <Part name="3" translation="-5 0 0" rotation="AD: 0 1 0 0"/>

      <Part name="1" translation="0 5 0" rotation="AD: 0 1 0 0"/>

    </MultiTarget>

  </Tracking>

</QCARConfig>

Log in or register to post comments