"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

loading two 3d models on the same marker with different textures

Hi, I'm new in developing AR app. I can load two different 3d models (virtualbuttons sample) on a single marker but I don't know how to assign them different textures. Both the models load the banana.png. Any suggestions? thanks

Hi, I would recommend to take a look on VirtualButtons.loadTextures Java method. Once you add new textures there they should show automatically on JNI side too and you can use indices higher than current textureIndex. Which is by default bound to value 4 at maximum.

AlessandroB

Wed, 11/14/2012 - 17:17

Hi realbruz,

in glBindTexture() you can put whatever texture id you want (so you don't have to use mThisTexture->mTextureID);

suppose you have an array with 10 textures (i.e. with 10 elements of class "Texture"); for each 3D model, you can choose one of those texture,