hei!
today I was looking at this: http://wiki.openframeworks.cc/index.php?title=OpenGL-in-openFrameworks
I wanted to show some image with transparency (png) and then set a dynamic alpha (basically I was wondering if I could do some transitions with alpha for my menus).
But this code doesn’t work as the images show.
void testApp::draw(){
// enable blending
glEnable(GL_BLEND);
// set blend mode
glBlendFunc(GL_SRC_ALPHA,GL_ONE);
// set to 50% alpha
glColor4f(1.0f,1.0f,1.0f,0.5f);
// draw the picture
myPicture.draw(0, 0);
// draw the picture again
myPicture.draw(53, 40);
// turn off alpha blending
glDisable(GL_BLEND);
}
It multiplies the image color, tinting it and making it completely white.
Is it because of Android OpenGl??
Have anyone figured out how to work with dynamic alphas in Android?
thks!!