By Silitonga
on Fri, 10/04/2013 - 05:02
I had success change the teapot 3D with 2D image. i follow the instruction in this linkhttps://developer.vuforia.com/forum/android/could-i-use-jpg-or-others-2d-picture-replace-3d-object&sort=2 .But when i add a image with transparent background it automaticly become black backgroud.
How i make the backgroud transparent?
Sorry for my bad english.
Background when change teapot into 2D image
You need to enable blending in the OpenGL state, by adding:
glEnable( GL_BLEND );
right before rendering your rectangle
and then restore the original state with glDisable( GL_BLEND );
after rendering the rectangle.