Log in or register to post comments

Tacking two targets

March 5, 2011 - 10:18am #1

Hello
i want to track two different targets, when target one is seen i load one object and when target two is seen then another.
i use in the renderframe this trackable->getname() to set which one is seen.
i have this in the config




why the getname never gives me neither pc1 nor pc2.
Is there anything i miss?
Thanks!

Re: Tacking two targets

March 6, 2011 - 6:54pm #2

Make sure that "pc1" and "pc2" are the names you used when creating targets in the My Trackables systems. You can't change the names in the config.xml after downloading the files.

What happens when you try printing the trackable name in the log?

LOG("found trackable: %s", trackable->getName());

You can see the log by switching to the DDMS perspective in Eclipse.

- Kim

Log in or register to post comments