Log in or register to post comments

Replacing ImageTarget trackers

July 28, 2011 - 4:30am #4

Hi all.

I'm download all SDK and every example works fine, but now in ImageTargets example I want to replace chips and stones for my own generates images with Target Management Tool.

I've generated my target (xml & dat) for a image with 4 star rating, and replace config.xml and dat files into the original project, compiling and running OK on the device the app is not able to track the image and show the teapot.

Has someone tried that and works for there?

Thanks in advance.

Re: Replacing ImageTarget trackers

July 28, 2011 - 5:59am #3

Hi,

Are you using the native SDK, or the Unity extension?

If your trackables have different names than "stones" and "chips" then you need to tell the system those new names. In Unity this is done via the Inspector pane when the trackable is selected within the Scene window; look for the section "Image Target Behaviour (Script)" and in there there's a drop-down labelled "image target". If you have imported new trackable package then the names of your trackable(s) will be available in this drop-down. Just select the right one. See Step 2 of the Unity Getting Started guide for more info on this.

In the native SDK you will need to edit the function "renderFrameQCAR" where you will see code like strcmp(trackable->getName(), "stones") - you'll need to alter this to suit your new trackable name.

-- Steve

Re: Replacing ImageTarget trackers

January 20, 2012 - 4:23am #2

Hello Steve,

I did it but does not work... are you sure the only change is to replace the string with the name ("stones") in renderFrameQCAR? I checked the code and did not find any other place to replace with my own trackable, but maybe I am missing something

Thank you!!

Replacing ImageTarget trackers

April 21, 2013 - 5:45pm #1

I tried the following and this issue was solved:

After changing the name from stones to yours, rebuild the ndk, Clean the project and finally re-build it =)

 

Best of luck

Log in or register to post comments