PDA

View Full Version : blur any part of image



yasirabbasu123
08-20-2010, 04:08 AM
Hi i want to blur a specific part of image. But dont know how to do this because i am new in opengl. please help me with any sample code.

Regards
yasir

Rosario Leonardi
08-20-2010, 06:28 AM
blur is a post processing effect, in openGL you can only draw on polygons.. and polygons don't have blurred edges. :)

To perform blurring you have to render the scene in a frame buffer object. Then render the buffer object in a full screen quad using a blurring shader. If you need to blur only a part of the scene then you need to use another texture as mask.