PDA

View Full Version : How to Blur in OGL



zyb0515
04-19-2002, 06:48 PM
I just want to know how to blur after i draw a scene.

jwatte
04-19-2002, 06:54 PM
Draw to an offscreen buffer that's smaller than the screen, bind it to a texture, and render to screen with interpolation. There's two ways of doing this:

1) using pbuffer/render_texture extensions
2) drawing to framebuffer, then doing CopyTexSubImage

HFAFiend
04-24-2002, 08:15 AM
Also, you could try using an accumulation buffer, to make it look cool (but eat up fill rate).

davepermen
04-24-2002, 11:50 AM
http://www.ati.com/developer/sdk/RadeonSDK/Html/Samples/Direct3D/RadeonLightGlare.html

there you get infos about very fast extreme blurring, even if they only blur the glow, and they use directx, the idea is all you need (i've coded it for gl with wgl_arb_render_texture for blurring everything (thought buggy because of driver issues on nvidiaboards)

or nutty has a glow-demo made by this, with sourcecode.. www.nutty.org (http://www.nutty.org)