How to merge two FBOs?

Posted by DevDevDev on Stack Overflow See other posts from Stack Overflow or by DevDevDev
Published on 2010-03-25T21:32:04Z Indexed on 2010/03/25 21:33 UTC
Read the original article Hit count: 395

OK so I have 4 buffers, 3 FBOs and a render buffer. Let me explain.

I have a view FBO, which will store the scene before I render it to the render buffer.

I have a background buffer, which contains the background of the scene.

I have a user buffer, which the user manipulates.

When the user makes some action I draw to the user buffer, using some blending.

Then to redraw the whole scene what I want to do is clear the view buffer, draw the background buffer to the view buffer, change the blending, then draw the user buffer to the view buffer. Finally render the view buffer to the render buffer.

However I can't figure out how to draw a FBO to another FBO. What I want to do is essentially merge and blend two FBOs, but I can't figure out how! I'm very new to OpenGL ES, so thanks for all the help.

© Stack Overflow or respective owner

Related posts about opengl

Related posts about opengl-es