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
    Commented Dec 10, 2020 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
    Commented Dec 10, 2020 at 13:28
  • \$\begingroup\$ Ah, then I'll convert that comment to an answer. \$\endgroup\$
    – DMGregory
    Commented Dec 10, 2020 at 13:31

1 Answer 1

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
    Commented Dec 11, 2020 at 9:38

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .