0

I am currently working on the FFT-based bloom effect. With the help of a paper from GPU Gems, it works fine.

But it turned out that if the sparse point is near the edge of the screen, the bloom effect would wrap on the screen like this:

wrap effect

How to handle this please?

Noah Zuo
  • 98
  • 12
  • By making sure that the sparse point is never on an edge, or more precisely never on an edge you care about. I.e. simply double the size of the input image (by replicating horizontally & vertically), and crop away the extra area after processing. – SleuthEye Sep 07 '17 at 03:19
  • No... Actually the sparse point is not on the edge. It still got 40 pixels away from the edge.@SleuthEye – Noah Zuo Sep 07 '17 at 03:31
  • Same applies if the sparse point is near an edge, so long as the bloom is less than the size of the image. – SleuthEye Sep 07 '17 at 03:58

1 Answers1

0

If you don't want circular convolution artifacts, then pad the data on the 4 edges by the width & height of the effect before applying the effect. Remove the padded areas after. Zero-pading and mirroring the image are common padding choices.

hotpaw2
  • 70,107
  • 14
  • 90
  • 153