( 1 trackable) datasets stones and chips including 2 images : Stones and Chips
If i'm tracking a stone image will show brass teapot then a chips image will show blue teapot.
n i try to upload images into my project to create 1 trackable (tree image and leaf image) , but why?? when i'm tracking 'tree' show brass teapot and 'leaf' too ,, i want 'leaf' show blue teapot ,, tell me why?? how to setting datasets like Stone and Chips? i wanna create more than 5 images in 1 dataset
Have you revised the _renderFrame method in ImageTargets.cpp to recognize the tree and leaf Trackables by name?
@ ln 341
// Choose the texture based on the target name:
int textureIndex;
if (strcmp(trackable->getName(), "chips") == 0)
{
textureIndex = 0;
}
else if (strcmp(trackable->getName(), "stones") == 0)
{
textureIndex = 1;
}
else
{
textureIndex = 2;
}
^ be sure to replace stones and chips with the names of your Trackables.