"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

Switch texture

Hello everyone,

I'm looking for a solution in order to switch the texture of my model. I already changed the 3D model that appears on the tracked object, and everything looks fine.

My textures are loaded here:

    const char* textureFilenames[] = {
        "cuir1.jpg",
        "cuir2.jpg",
        "grinfin.jpg"
    };

Like I previously said, I'm trying to switch, on the fly, the current and first texture loaded (cuir1.jpg). Is it possible to achieve this ?

Thanks in advance for your help, 

I found the answer. 

If it can help someone trying to do the same thing, you just need to edit this line: 

glBindTexture(GL_TEXTURE_2D, augmentationTexture[targetIndex].textureID);

in method renderFrameQCAR.