obs-StreamFX icon indicating copy to clipboard operation
obs-StreamFX copied to clipboard

Gaussian Linear Blur effect broken

Open YorVeX opened this issue 3 years ago • 6 comments

Operating System

Windows 10 1903 and higher

OBS Studio Version?

27.1

StreamFX Version

0.11.1

OBS Studio Log

Really doesn't matter

OBS Studio Crash Log

No response

Current Behavior

Adding a Blur effect of "Gaussian Linear" type does nothing, original output stays unchanged.

Expected Behavior

Blur effect being applied.

Steps to Reproduce the Bug

Add "Blur" filter to e.g. an image source, set the type to "Guassian Linear", try various settings like "Subtype" or "Size", they all do nothing. "Gaussian" in comparison works fine.

Any additional Information we need to know?

I tried my previous version StreamFX 0.9.3.0 as a comparison and the filter works fine there. When I go back to 0.11.1 it stops working again.

As an additional test I copied the data\obs-plugins\StreamFX\effects\blur\gaussian-linear.effect over from the StreamFX 0.9.3 package. Interestingly this is working, but needs a higher "Size" settings to achieve the same blur level.

YorVeX avatar Jun 11 '22 05:06 YorVeX

"Linear" variants will become the default in the future, and have been phased out as a separate option. There is a WIP complete rework of the blur filter. Please use Dual Filtering instead of Gaussian or Box blur as well.

Xaymar avatar Jun 11 '22 05:06 Xaymar

The current description indicates that Dual Filtering doesn't fit all use cases though:

Should be preferred if fine control over blur size is not required.

But I appreciate that hint, because actually all of my use cases so far could be covered by Dual Filtering even when controls are not as fine as for the other blur options - and if it's faster at the same time I prefer that of course.

YorVeX avatar Jun 12 '22 00:06 YorVeX

Dual Filtering can only be controlled in 2^N steps, where you control N. After a size of 16px (4 in Dual Filtering), there is practically no practical need for other blur steps. Though it is possible to emulate this, and a lot of software out there does it - downscale the source with linear first to a fraction of the size but no less than 50%, then upscale after blur with linear to original size. 1/100th of the cost of actual Gaussian Blur, for a 95% accurate Gaussian blur approximation.

Xaymar avatar Jun 12 '22 03:06 Xaymar

Personally I find all of the built-in blur options to be way too blurry even on their lowest setting, so I use the gaussian blur shader for more fine grained control. It allows me to add only enough blurring to prevent compression artifacting, without adding more than necessary.

GT500org avatar Jun 13 '22 05:06 GT500org

Yeah, after working through my OBS config I had also found two cases where I apply the blur effect to a Text source to smoothen the overall look after several other effects had been applied to it before. And there if I just go up one small notch with the blur the text just looks plain stupid, so there is no way to use Dual Filtering on that. But Xaymar said "Linear variants will become the default" and I was using Box filter there so I just switched to Box linear and hopefully I am fine now also for future StreamFX updates?

YorVeX avatar Jun 13 '22 10:06 YorVeX

Since the option to select them will be removed entirely and just become the same as selecting "Box" or "Gaussian" (Dual Filtering will also be merged into "Gaussian"!) it won't make much of a difference. StreamFX will attempt to automatically migrate all older settings to the new system anyway, so you won't even notice the change.

Xaymar avatar Jun 21 '22 16:06 Xaymar

Gaussian will be undergoing a rewrite for v0.12, see #1036. Closing as not planned.

Xaymar avatar Mar 14 '23 10:03 Xaymar