PDA

View Full Version : Getting the Color Buffer



12-29-2003, 01:31 PM
How do you get the color buffer into an array/pointer?

PanzerSchreck
12-29-2003, 01:46 PM
glReadPixels, but beware that this isn't going to be very fast.

12-31-2003, 07:26 PM
I know; I am trying to use it to do antialiasing in real-time but glReadPixels runs about 2 FPS.

PanzerSchreck
01-01-2004, 03:58 AM
Current GPUs haven't been designed with readbacks in mind, that's the cause of glReadPixels being so slow, tilebased renderes do much better there.

So the best choice for doing AA by yourself would be to render the whole scene to a texture and then apply a shader to that texture where you do your own AA and then output that texture to screen.