Hi, You should take a look at the api demo which is in the samples given with the android sdk : http://developer.android.com/intl/de/resources/samples/get.html
Under Graphics/OpenGL Es/Translucent GLSurfaceView You'll find out how it is done. Yahel On 12 avr, 14:35, "A.TNG" <[email protected]> wrote: > On Mon, Apr 12, 2010 at 5:11 PM, Yahel <[email protected]> wrote: > > Why don't you create your glsurface from the beginning make it > > transparent and already on top of your image and simply render your 3d > > objects when the user touches the screen ? > > > The initialization would occurs before the user is presented the image > > and you would avoid the flickering. > > > Yahel > > Tried several times, still cannot make transparent glsurface work. I > use setEGLConfigChooser(8, 8, 8, 8, 16, 0) before I setRender(), then > use setFormat(PixelFormat.TRANSLUCENT), and use glClearColor(0, 0, 0, > 0) in onDrawFrame. I thought this three is the key part of transparent > glsurface (I compare the samples in ApiDemo). > > But I still cannot get what I want. Could anybody give me a hand? > > Thanks a lot. > > -- > Best Regards, > TANG Jiyu > Blog:http://jiyu.wordpress.com.cn/ > ezkeypad:http://ezkeypad.tool100.com/ -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe, reply using "remove me" as the subject.

