Wednesday, February 26, 2014
android opengl GLSurfaceView transparent background issues
In an activity I added a LinearLayout, and then on the LinearLayout add a custom GLSurfaceView to achieve a 3d effect, I want my drawing objects, in addition to the GLSurfaceView, the other all is transparent, which means it's The background is LinearLayout, in reference to the official demo examples TranslucentGLSurfaceViewActivity, but can not be achieved, TranslucentGLSurfaceViewActivity below to see implemented in an activity, and I want to see the following effect GLSurfaceView transparent a view, I do not know how to achieve, consult experts < br /><-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
I have encountered similar problems. How to do: GLSurfaceView does not cover LinearLayout background image? Ask experts
Reply:
Has been resolved. Need to call about GLSurfaceView methods setZOrderOnTop, LinearLayout background image can be displayed out
Reply:
Learn new techniques
Comes to ask you to play OPENGL play in what circumstances? ANDROID simulator? That version? 1.6/2.2?, Or play on a real machine?
I Simulator 2.2 does not go under the textures are posted ah! Do not understand how it is.
Reply:
Textures are posted under 2.2 simulator does not go ah?
I have to get me this, I recently busy, back I wrote a blog you can see
Reply:
thanks, give points
Reply:
GLSurfaceView methods setZOrderOnTop
Reply:
You and I encountered the same problem, I setZOrderOnTop, but still does not work, could you help me solve Kazakhstan
Reply:
mGLSurfaceView.setZOrderOnTop (true);
mGLSurfaceView.setEGLConfigChooser (8, 8, 8, 8, 16, 0);
mGLSurfaceView.getHolder () setFormat (PixelFormat.TRANSLUCENT);.
That three of the above plus full ok.
Reply:
I do not line ah
Reply:
mGLSurfaceView.setZOrderOnTop (true);
mGLSurfaceView.setEGLConfigChooser (8, 8, 8, 8, 16, 0);
mGLSurfaceView.getHolder () setFormat (PixelFormat.TRANSLUCENT);.
After practice, the correct
Reply:
Why should I add
mGLSurfaceView.setZOrderOnTop (true);
mGLSurfaceView.setEGLConfigChooser (8, 8, 8, 8, 16, 0);
mGLSurfaceView.getHolder () setFormat (PixelFormat.TRANSLUCENT);.
On the error?
Reply:
mGLSurfaceView.setZOrderOnTop (true);
mGLSurfaceView.setEGLConfigChooser (8, 8, 8, 8, 16, 0);
. mGLSurfaceView.getHolder () setFormat (PixelFormat.TRANSLUCENT); in mGLSurfaceView.setEGLConfigChooser (8, 8, 8, 8, 16, 0); sentence to write in setRenderer (mRenderer); before not being given.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment