Hi,
in the renderFrame() function in ImageTargets.cpp, you can find this code:
int textureIndex;
if (strcmp(trackable.getName(), "chips") == 0)
{
textureIndex = 0;
}
else if (strcmp(trackable.getName(), "stones") == 0)
{
textureIndex = 1;
}
else
{
textureIndex = 2;
}
const Texture* const thisTexture = textures[textureIndex];
That code is responsible for selecting the texture in the array of textures (i.e. if index is 0, it will pick the first texture, if index is 1, it will picke the second texture, etc.)
So, you need to change that so to make sure that you select the texture that you want for your model.
Note that the order in which textures are added to the array is defined in the Java code in ImageTargets.java:
private void loadTextures()
{
mTextures.add(Texture.loadTextureFromApk("TextureTeapotBrass.png",
getAssets()));
mTextures.add(Texture.loadTextureFromApk("TextureTeapotBlue.png",
getAssets()));
mTextures.add(Texture.loadTextureFromApk("TextureTeapotRed.png",
getAssets()));
}
I would suggest to also take a look at this tutorial about adding textures in Image targets:
https://developer.vuforia.com/resources/dev-guide/adding-textures
Glad that you managed to sort it out!