PDA

View Full Version : Accessing the Rendering buffer..



rIO
08-30-2000, 01:26 AM
Hi *.*
I wonder if there is a way to access the final OGL render before it's drawn wit the SwapBuffers call.
I'll explain, I need to do a some kind of radial blur on the final render, I have my own (old ASM dos) routines to do it.
Can I apply them without using DrawPixels routines ?? (They sound slow to me)

Thanks...

Bob
08-30-2000, 02:17 AM
Nope, no way to access the doublebuffer, aswell as ANY buffer. But as you say, use glReadPixels, do the motionblur, and then use glDrawPixels.

john
08-30-2000, 03:50 AM
I did distorion by copying the frame to tex mem and drawing a distorted mesh back to the frame buffer. Faster.

cheers,
John

rIO
08-30-2000, 03:56 AM
Maybe the final solution is to generate a rendering, reading back the render result to a texture, applying the 2D fx and then draw a quad using the result as a texture....