"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

Background when change teapot into 2D image

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.

AlessandroB

Fri, 10/04/2013 - 07:45

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.