transition effects using opengl es 2

Hi,

I’m targetting Android and iOS OpenGL ES 2.

How can i create a transition effect using double-buffering? I would like to change from a screen to another one using something like stripes.

Maybe i could get the current backbuffer using glGetPixels and save it in 1. Then, i would draw the new screen in the backbuffer and save it in 2. Then i would recover the saved buffer 1, then draw the saved buffer 2 using the stripes… would this work? Or maybe using eglCopyBuffers?

Any help is greatly appreciated.

thank

guich

Render to a texture and then you can do whatever you want with it. Apply the texture to strips or whatever.

How can i render directly to a texture instead of rendering to the buffer? I’m using EGL.

thanks!

guich

Have you tried using a Framebuffer Object? The link uses an ARB extension, but since the framebuffer methods were promoted to the core spec in ES 2, you’ll be able to use them normally.