"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

Replace teapot with banana

Hi,

I managed to setup the default examples for image target, and I am able to see the teapot. 

I am trying to replace the teapot object with the banana object for image targets, but can't see the banana. Don't see any console errors either.

I have gone through most of the related posts in this forums and other places, but couldn't figure out why.

Here are what I have changed in code:

- Updated the scale factor

//    const float kObjectScaleNormal = 0.003f;     const float kObjectScaleNormal = 100.f;

- Updated the render function renderFrameWithState:(const Vuforia::State&) state projectMatrix:(Vuforia::Matrix44F&) projectionMatrix

//            glVertexAttribPointer(vertexHandle, 3, GL_FLOAT, GL_FALSE, 0, (const GLvoid*)teapotVertices); //            glVertexAttribPointer(normalHandle, 3, GL_FLOAT, GL_FALSE, 0, (const GLvoid*)teapotNormals); //            glVertexAttribPointer(textureCoordHandle, 2, GL_FLOAT, GL_FALSE, 0, (const GLvoid*)teapotTexCoords);             glVertexAttribPointer(vertexHandle, 3, GL_FLOAT, GL_FALSE, 0, (const GLvoid*)bananaVerts);             glVertexAttribPointer(normalHandle, 3, GL_FLOAT, GL_FALSE, 0, (const GLvoid*)bananaNormals);             glVertexAttribPointer(textureCoordHandle, 2, GL_FLOAT, GL_FALSE, 0, (const GLvoid*)bananaTexCoords);

- and

//            glDrawElements(GL_TRIANGLES, NUM_TEAPOT_OBJECT_INDEX, GL_UNSIGNED_SHORT, (const GLvoid*)teapotIndices);             glDrawArrays(GL_TRIANGLES, 0, bananaNumVerts);

 

I am running VuforiaSamples-7-0-47 on iOS. 

 

Any help is appreciated!