Custom Target in ImageTargets?

April 22, 2015 - 3:53am #1

Hi all,

I was using Vuforia 2.0 and I was able to customise the target I was using, but after I upgraded to Vuforia 4.0 it seems impossible.

I logged on to the Target Manager and I saw it said "Legacy Database", so I created a new Target Database and downloaded it and tried for several hours to use it in my code with no luck.

Can you please tell me the steps I should follow about editing ImageTargets to use my custom Target?

Thanks!

 

 

Custom Target in ImageTargets?

May 14, 2015 - 4:22pm #5

In Unity, Select ARCamera, and look if on propriety "Data Set Load Behaviour" the Option, "Load data  xxx" and "Activete" is checked.

Custom Target in ImageTargets?

April 29, 2015 - 8:07pm #4

What is the specific error you are receiving when trying to load your dataset? Yes, the "stones" target is the one in the Stones/Chips dataset. The standard Vuforia target images can be found in the media folder for iOS projects.

Custom Target in ImageTargets?

April 28, 2015 - 8:14am #3

Hi! Thanks for your response!

1.  I added the database to my project's files and modified the following method accordingly:

- (bool) doLoadTrackersData {

    dataSetStonesAndChips = [self loadObjectTrackerDataSet:@"StonesAndChips.xml"];
    dataSetTarmac = [self loadObjectTrackerDataSet:@"Tarmac.xml"];

    if ((dataSetStonesAndChips == NULL) || (dataSetTarmac == NULL)) {
        NSLog(@"Failed to load datasets");
        return NO;
    }
    if (! [self activateDataSet:dataSetStonesAndChips]) {
        NSLog(@"Failed to activate dataset");
        return NO;
    }

    // ---------- MY CODE STARTS HERE ---------
    MyTarget = [self loadObjectTrackerDataSet:@“My-Target-Database.xml"];
    [self activateDataSet:MyTarget];
  
    if (! [self activateDataSet:MyTarget]) {
        NSLog(@"Failed to activate dataset");
        return NO;
    }
    // ---------- MY CODE ENDS HERE -----------
    
    return YES;
}

... without success (only the default targets keep working).

2. Where can I find the "stones" ( I assume it's different from StonesAndChips? ) target so that I can add it in my database?

 

 

Custom Target in ImageTargets?

April 23, 2015 - 7:07pm #2

A couple things:

  • Can you provide more info on what wasn't working with DataSet?
  • Could you add the "stones" target to your new 4.x DB and then try in your app?

 

Log in or register to post comments