Is there any way to make an entire Android OpenGL ES scene transparent? This would be useful for widgets and wallpapers.
There is one Android-specific answer here. But my understanding is that this technique creates a transparent background, upon which one could furthermore draw transparent shapes.
I am looking for a way to make the entire scene transparent after it has been drawn. For instance, is there any way to change the alpha of the entire color buffer after the scene has been drawn?
Yes, and it’s quite easy. You need to blend the values in the color buffer, by covering the whole view with a quad using the right color and blending function. I think this will do the trick:
glBlendFunc(GL10.GL_ZERO, GL10.GL_SRC_COLOR)This should scale the alpha of the colorbuffer with a, which I think is what you want.