FiniteSingularity / obs-composite-blur

A comprehensive blur plugin for OBS that provides several different blur algorithms, and proper compositing.
GNU General Public License v2.0
325 stars 27 forks source link

[BUG] - source size wrong when using background source for compositing #23

Closed exeldro closed 10 months ago

exeldro commented 10 months ago

Describe the bug filtered source changes size when background source for compositing is used

To Reproduce

  1. Have a full scene background source for compositing
  2. Add a text source on top
  3. Add blur filter on the text source
  4. Set background source for compositing

Expected behavior Only correct compositing when the source is top left, but always correct source size.

Screenshots Without Background Source for Compositing: image With Background Source for Compositing: image

Environment

GPU

Additional context

FiniteSingularity commented 10 months ago

When creating the texture used for background in composite.effect, I was setting the orthographic projection to the background width and height, but wasn't setting it back to the source projection before calling composite.effect. Once this was added, it works correctly. Please give #24 a quick test and make sure it is fixing things for you as well.

FiniteSingularity commented 10 months ago

The PR should have fixed this. Reopen if it is still an issue.