Log in or register to post comments

Image instead of render

August 17, 2017 - 10:15am #1

Hi, 

 

I need to show an image instead of the Teapot after the recognition of the target. I can show the texture of the image, but the I still have the Teapot. I'm using the ImageTargetsEAGLView.mm.

 

I don't use Unity...

 

Thanks. 

Image instead of render

August 21, 2017 - 8:40am #3

Thanks!!

I'm almost there, just need to get the good Coordinate for my image. I need to link the vertexHandle to my image size. Can you help?

 

Thanks again!

Image instead of render

August 17, 2017 - 4:12pm #2

Hello marcBalado,

In that file (ImageTargetsEAGLView.mm) the function renderFrameWithState is drawing a teapot model with OpenGL when an image is tracked. If you would like to remove the teapot, delete the code related to this drawing.

For example:

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);


Hope this helps!

Thanks,

-Vuforia Support

Log in or register to post comments