"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

Simple Question.

Hello there, It is possible to swap or change objects or assets in runtime if they havent been previously loaded? lets see this scenario: i have an object, lets say a cube, when i start the app the cube is binded to an trackable image. ok now, when the app starts, it connects to a server and download new objects, lets say a sphere. now, its possible to remove the cube and put the sphere? in order that, when i scan the image the cube no longer appears, but the sphere? i've been trying like for hours and i cant get it done.. i do everything but even when i replace the cube with the sphere, it seems like the cube stays in some temporal memory because every single time i scan the trackable image, its the cube what i get, even when is not active any longer. any thoughts? thank you!

You should be swapping out the vertices, texcoords, etc. in the native code. Try adding some log lines to confirm that your changes are taking effect. You can see the log using the DDMS perspective in Eclipse. - Kim

Hello ksiva, thank you for your answer. I don't use Eclipse, however i think i can get the log you mention from the DDMS tool from the Android SDK ToolKit. The thing that leave me a little lost is the part where you said i should have to be swapping out the vertices, texcoords, etc. Do you mean i

Ah, you didn't mention this is using Unity. If it's posted in the Android forum we'll assume native Android unless stated otherwise. Adding the object as a child of the ImageTarget should be enough, are you scaling it to match the scale of the target?

hehe my bad, im sorry.. i forgot to mention i was using Unity3D ok im going to try right away, in fact i think the sphere is being instanced far away from the trackable image, i didn't thought it was important. Thank you again! i'll let you know how it goes. -Brian.