Open JitenNumberTank opened 8 years ago
I got the same problem too, ask for help.
me too,help.
please help !
surfaceView.setZOrderOnTop(true);
gpuImage = new GPUImage(TestActivity.this); gpuImage.setGLSurfaceView(surfaceView);
setZOrderOnTop to true can be transparent
same issue,ask for help.
anyone has solution now :(
@JitenNumberTank You can set it some thing as below.
public class MyRenderer implements GLSurfaceView.Renderer {
@Override
public void onSurfaceCreated(GL10 gl, EGLConfig config) {
gl.glDisable(GL10.GL_DITHER);
gl.glHint(GL10.GL_PERSPECTIVE_CORRECTION_HINT, GL10.GL_FASTEST);
gl.glClearColor(0,0,0,0);
gl.glEnable(GL10.GL_CULL_FACE);
gl.glShadeModel(GL10.GL_SMOOTH);
gl.glEnable(GL10.GL_DEPTH_TEST);
...
public class MySurface extends GLSurfaceView {
....
public MySurface() {
setEGLContextClientVersion(2 or 3);
setEGLConfigChooser(8, 8, 8, 8, 16, 0);
getHolder().setFormat(PixelFormat.TRANSLUCENT);
}
}
mMyRenderer = new MyRenderer(getContext(), MySurface);
@monxarat can u share us a complete demo :)
I have used this GpuImageView. I have tried to show Ic_launcher in that. I got image but transparent are converted into Black are. I have attached image here. How to remove this black transparent are and set Orignal transparent image.