"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

How to draw different 3D object on press different Menu?

Hello, I created some menu (typical android GUI menu) in qcar. just like the new sdk's toggle flash, auto focus menu in imagetargets. Now I want to draw different 3D object when I click specific menu.suppose teapot menu press will draw teapot object on marker and cube menu press will draw cube object. I already created some 3D object and tested. Now, how i configure/ link my menu to draw this 3D object? Any suggestion/hint most welcome? Thanks Rassall

rassall_jubair

Tue, 08/23/2011 - 07:30

Thanks Kim for information to do this.. Now I m trying to follow the flash menu way in imagetargets example. For that i written following coding in imagetargets.cpp: public boolean onOptionsItemSelected(MenuItem item) { if(item.getTitle().equals("Menu")) {

rassall_jubair

Tue, 09/06/2011 - 08:46

Hi Kim, I am trying to implement sound here in my menu functions with the help of Domineos example. i already added the coding in java src file and jni file. but facing problem on repeating sound during detect marker. Basically sound clip should play only one time for each menu function.

This is a basic coding problem at this point. I'll just give you a bit of pseudo code, the rest is up to you! [CODE] // global int shouldPlaySound = 0; // on menu press shouldPlaySound = 1; // in renderFrame if (shouldPlaySound == 1) { // play sound shouldPlaySound = 0; } [/CODE] - Kim