Dear all. i found a key point, when i execute the clear color and depth buffer only in StaticTriangleRenderer. (glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT)) it will make the screen flicker. would you please provide your experience about this issue? thanks a lot.
Luke On 11月3日, 上午2時16分, Luke <vagrant...@gmail.com> wrote: > Dear all, > I want to implement the transition effect ( transparent with Z axis ) > when user slip the android home to change home page. > therefore, I plan to launch the new activity that is implemented by > OpenGL ES to perform this effect. > However, i encounter a problem that the screen/display is dark > momentarily when launching the OpenGL ES activity. > would you please share your experience about this issue? > thanks a lot. > > BTW, here is my implement procedure for your reference. > 1. Create a new activity and new a GLSurfaceView. > 2. Set the theme parameter in AndroidManifest.xml to make a > transparent background for activity (android:theme="@android:style/ > Theme.Translucent") > 3. Make transparent background for GLSurfaceView (refer the API demo > source - setEGLConfigChooser) > 4. Implement the setRenderer function for GLSurfaceView. > 5. in render calss, I just refer the StaticTriangleRenderer.java of > API demo to add a texture on triangle and rotate. > > Any help would be appreciated. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en