0
\$\begingroup\$

I'm changing to bilateral blur for my SSAO implementation, just wondering how people usually combine the two passes - do you just add them together, or average, or something else?

I happen to be using Vulkan but don't think that should affect the answer too much.

\$\endgroup\$
3
  • \$\begingroup\$ You apply one pass with your source image as input to get an intermediate image, then you apply the second pass using the intermediate image as input to get your output, no? Or am I misunderstanding the sense of "combining" that you mean? \$\endgroup\$ – DMGregory Dec 10 '20 at 12:26
  • \$\begingroup\$ hmm I thought you blurred your source twice, once in each direction and then combined. I'll try what you're suggesting! \$\endgroup\$ – mike Dec 10 '20 at 13:28
  • \$\begingroup\$ Ah, then I'll convert that comment to an answer. \$\endgroup\$ – DMGregory Dec 10 '20 at 13:31
1
\$\begingroup\$

You apply one pass with your source image as input to get an intermediate image.

Then you apply the second pass using the intermediate image as input to get your output.

   Input Image
       ↓
     1st Pass
       ↓
Intermediate Image
       ↓
     2nd Pass
       ↓
   Output Image
\$\endgroup\$
1
  • \$\begingroup\$ Works great as well, thanks! \$\endgroup\$ – mike Dec 11 '20 at 9:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.