"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 do this ?? (Virtualbuttons)

I want to use buttons to change object. when i press the Red button i want to show banana on market, blue button to show spider, yellow button to show robot and green buttons to show vase. -so sorry about my bad English-

Did you remove the teapot rendering code at the end of that function? If not, you'll end up rendering the teapot over your model, most likely hiding it. As always, make sure you're running ndk-build and refreshing (or cleaning) the Eclipse project after making changes to the native code. - Kim

Did you define kSpiderScale? Make sure you do it before it is used in the file. We're getting into basic coding problems now. You'll need to conditionally render the teapot when buttons aren't pressed. - Kim

mychocolate

Thu, 02/09/2012 - 07:22

I already define kSpiderScale. It not error right now but noting appear on my trackables. I know about c++ a little bit . Thus can you tell me how to write conditionally render the teapot when buttons aren't pressed or guide me a little bit. thank a lot:o

Basic coding skills are a requirement for working with the SDK. Pick apart that renderFrame method until you understand it, then you should be able to work with it to conditionally render the model you want. You may also want to look at the FrameMarkers sample.

mychocolate

Sun, 03/04/2012 - 19:09

Now, I can use the buttons to change object but I have some problem. The first object that show on maker when I don't press the button is banana. I want it to disapear when I press the button to change object. the new object will show instead of banana.>>>this part I can do. I want when I don't pr

mychocolate

Sun, 03/04/2012 - 19:11

this is code [CODE]#ifdef __cplusplus extern "C" { #endif int statebutton=0; // Textures: int textureCount = 0; Texture** textures = 0;[/CODE] [CODE]if (button->isPressed()) { // Run through button name array to find texture index

mychocolate

Tue, 03/06/2012 - 06:46

Thank you Kim I set statebutton = 0 at these point. [CODE]// We only render if there is something on the array if (vbCounter>0) { statebutton=0; // Render frame around button glUseProgram(vbShaderProgramID); glVertexAttribPointer(vbVertexHand