We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi,
I am just working on a project where I need a good looking fast blur effect. Currently I am using Mario Klingemann’s StackBlur – a mixture between a box blur and a gaussian blur. I really like how it looks, the only problem is – it’s lagging a bit on my computer, when using in realtime, see the video here: youtube.com/watch?v=ze65pmIH4i8. Do you know if there is a shader implementation of it or a good alternative?
Thanks,
Cheers Tim
Comments
Processing comes with a blur example these days!
Examples > Topics > Shaders > Blurfilter
If you want to modify the shader, press CTRL+K (or CMD+K if you're one a Mac), in the
./data/
folder you will find ablur.gsl
file. Part of that code will look like this:Think you can figure out how to change it to different kernels? Or would you like some help with that too?
I use this one (I preferred it over the one that comes with processing but I can't remember why).
PDE:
Credits go to other people! (Don't know the names).
You can also try this one, it's basically the same as posted above, a two pass blur with horizontal and vertical pass (only horizontal shown in the example)
https://www.shadertoy.com/view/Mtl3Rj