Jump to content
  • Advertisement
Sign in to follow this  
Jonas B

Multi-pass blur settings

This topic is 4474 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Has anyone got a good implementation of Kawase's multi-pass blur algorithm, as described in http://www.daionet.gr.jp/~masa/archives/GDC2004/GDC2004_PIoHDRR_SHORT_EN.ppt pages 34-37? With the filter kernel and the blend factors I use for each pass, the filter is too "spiky". How should these be set in order to approximate a Gaussian distribution? For an arbitrary blur size? I've experimented a bit and improved the results, but I'd like a mathematically derived solution instead of one based on guesswork...

Share this post


Link to post
Share on other sites
Advertisement
Unfortunately, no; that article describes a standard 1-pass blur. Kawase's blur uses N passes:
(pseudo)
for (i=0;i<N;i++)
surface = originalTexture.mipmap(i)
blur(surface, kernel)
resize(surface, pow(2,i))
blend(surface, finalSurface, blendFactor)

The idea is to simulate blurs with very large kernels.

I'm hoping someone has a way to calculate kernels and blendFactors to achieve better filter shapes than the one I've currently got.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!