Hi paolo, did you got the answer to you question. i am also facing the same problem. can you help me? i am also trying to overlay 3d model loaded in glsurfaceview and camera preview on surfaceview. so finally i am trying to overlay glsurfaceview over surfaceview .
Shared.renderer(r); _glSurfaceView = new GLSurfaceView(this);//open gl surface is created //_glSurfaceView.setEGLContextClientVersion(2); _glSurfaceView.setEGLConfigChooser(8, 8, 8, 8, 16, 0); //_glSurfaceView.setRenderMode(GLSurfaceView.RENDERMODE_WHEN_DIRTY); _glSurfaceView.getHolder().setFormat(PixelFormat.TRANSLUCENT); //_glSurfaceView.setRenderMode(GLSurfaceView.RENDERMODE_WHEN_DIRTY); _glSurfaceView.setZOrderMediaOverlay(true); _glSurfaceView.setRenderer(r); //setContentView(_glSurfaceView); addContentView(_glSurfaceView, new ViewGroup.LayoutParams(ViewGroup.LayoutParams.FILL_PARENT, ViewGroup.LayoutParams.FILL_PARENT)); cameraView = new CameraView(this, mCamera); //cameraView.mHolder.setFormat(PixelFormat.TRANSLUCENT| WindowManager.LayoutParams.FLAG_BLUR_BEHIND); addContentView(cameraView, new ViewGroup.LayoutParams(ViewGroup.LayoutParams.FILL_PARENT, ViewGroup.LayoutParams.FILL_PARENT)); thanks -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/1b7b5c59-c40c-463e-8334-a1a63b73f248%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

