Log in or register to post comments

Making custom multiple target

April 11, 2012 - 1:54pm #1

I have a feeling like there is an obvious solution to this, but I have not been able to get it to work.

I am trying to make a custom multiple target tracker in Unity based off of the StonesAndChips.dat. I've modified StonesAndChips.xml to have the 2 images laid out next to each other on the same plane. I based this off of the FlakesBox xml file.

I add a MultiTarget prefab to Unity, and select the Data Set / Multi Target for StonesAndChips. I select the ARCamera and tell it to load StonesAndChips.

When running the program, adb says that there is 1 absolute trackable, and that it gets lost as soon as the program starts. However, when holding the camera up to the image, the trackable is never found.

Am I missing something obvious here?

On a related note, in order to make my own Multiple Target, is it just a matter of making my own data set comprised of different Image Targets with the online tool, and then arranging their positions with XML file?

Re: Making custom multiple target

April 24, 2012 - 4:09pm #10

Excellent, such a simple fix. Thanks for the help.

Re: Making custom multiple target

April 23, 2012 - 12:25pm #9

Try this..

<?xml version="1.0"?>
<QCARConfig xsi:noNamespaceSchemaLocation="qcar_config.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <Tracking>
        <ImageTarget name="myChips" size="247 172.707031"/>
        <ImageTarget name="myStones" size="247 172.707031"/>
      <MultiTarget name="multiTargetChipsStones">
			<Part name="myChips" translation="0 0 0" rotation="AD: 1 0 0 0"/>
			<Part name="myStones" translation="247 0 0" rotation="AD: 1 0 0 0"/>
    </MultiTarget>
  </Tracking>
</QCARConfig>

It appears that the problem was simply your rotation definition.

Re: Making custom multiple target

April 23, 2012 - 11:56am #8

I'm still debugging this. If you'd like, I can send you a working example of a MultiTarget developed using the same method - i.e. by modifying the config after export from the TMS.

Re: Making custom multiple target

April 23, 2012 - 11:14am #7

I was wondering if there was any update on this, or advice on how to work around the problem.

Re: Making custom multiple target

April 13, 2012 - 5:28am #6

I'll take a look at your project.

Re: Making custom multiple target

April 12, 2012 - 8:02pm #5

Thanks for the help.

After a little more research on my end, the multi target seems to work as long as I do not change the layout of the individual image targets in the xml file.

For instance, I made a cube multi target with the online tool. Everything works as expected. If I remove half of the Image targets, and their corresponding parts, everything still works. However, if I change the translation or rotation of a part, then it breaks.

Re: Making custom multiple target

April 12, 2012 - 7:35pm #4

I can confirm the problem. The config file looks okay... We'll investigate further ASAP.

- Kim

Re: Making custom multiple target

April 11, 2012 - 11:42pm #3

Yes, I've tried the MultiTarget I've made myself. I've even used the MultiTarget example, which I can get to work, and replaced the data set with the one I've created. Then it stops working.

So I'm not sure if I got a bad data file from the online tool, or something related to that?

Any help is much appreciated, and if it will help at all, the entire project can be found here:
http://ffsmultimedia.com/Unity/myMultiTargetProject.rar

Re: Making custom multiple target

April 11, 2012 - 3:53pm #2

Yes. Have you tried the same using a version of your MultiTarget derived from the TMS?

Log in or register to post comments