"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

Replaceing the Teapot in sample imagetarget

Hi everyone. So I am trying to replace the teapot with a flat image and I am having problems. I assumed (maybe incorrectly) that I needed to create a plane in a 3d model and attach my image as a texture to get the effect I am looking for. I created the .obj file and then used the perl script that I found referenced on this board to create the .h file. However when I look at the teapot.h file and the plane.h file I created, I am seeing a number of differences in variable definitions that I don't know how to reconcile. Every attempt I have made just throws errors and I am at a total loss. Any help would be appreciated! Thanks.

If you want the plane to exist in 3D then yes, you need to use a 3D model. The main difference when using that perl script is that it does not create indexed arrays. You won't have an indices array, but that's okay.

First thank you for all the help. Now I have replaced the vertices info in Teapot.h with the plane that you did by hand. I then built the project with ndk-build and refreshed my eclipse project. Everything goes great but when I use the app the teapot still shows up.

http://stackoverflow.com/questions/5897042/how-to-load-maya-models-exported-to-wavefront-obj-with-android-gl) but now it's triangulated (done with maya) and it's still broken. I added a file to my post which contains the header, the model and screenshots.

So it looks like the model is being rendered with the camera image as a texture instead of your texture image. First off, try resizing your texture to 1024x1024, 2000 is probably too large, and power-of-two textures are sure to work on all devices.

[QUOTE=ksiva]Finally, it looks like you may have some triangles winding in the wrong direction, which would create holes in parts of your model. If that's the case, try disabling culling with glDisable(GL_CULL_FACE);[/QUOTE] Thank you very much, glDisable(GL_CULL_FACE) did the trick.

PROMJENI_NICK

Tue, 05/31/2011 - 21:26

Hi all! I'm trying to replace teapot in the virtual buttons sample. everything is ok except of size. but resizing in SampleUtils::scalePoseMatrix is not working. Does anyone know what could be the problem? Thanks in advance!