Xaymar/obs-StreamFX

SDF Effects - Outside effects affecting transparent border #245

reteo posted onGitHub

Description

When using the SDF filters on transparent elements, such as the "Text" source, it seems to consider the border of the element as opaque for the purpose of generating outer shadows, outer glows, or outlines. This results in a transparent element showing a border around it when all that's wanted is to have the effect surround the internal elements, such as the aforementioned text.

System Information

<!-- Either fill out the following or attach a DxDiag file. -->

  • Software Version: 0.8.0 as well as current Github source
  • Operating System: Gentoo Linux
  • Kernel Version: 5.4.13-rt (realtime kernel)
  • CPU: AMD Ryzen 5 1600 Six-Core Processor
  • GPU: GeForce GTX 1050 Ti
  • RAM: 16GB

SDF Effects Issue - 2020-06-14 @ 10-32-43 SDF Effects Issue - 2020-06-14 @ 10-34-13 SDF Effects Issue - 2020-06-14 @ 10-35-03


Which Graphics driver are you using? The outside is supposed to be treated as "infinite distance", instead of "zero distance" which is the default when a graphics driver does not support border sampling.

posted by Xaymar over 4 years ago

I'm using the nVidia proprietary driver, version 440.82.

posted by reteo over 4 years ago

I'm on a Macbook Pro 2019.

image

image

image

posted by tofutim over 4 years ago

I've looked into the OBS code, the OpenGL subsystem in OBS does not set the border color at all. This is an upstream bug that I can't fix, but it might be possible to have a workaround.

posted by Xaymar over 4 years ago

Any update on this issue? I have mitigated it by just expanding the edges with a crop/pad filter before SDF and cropping them back out with another filter after SDF, but this solution is a bit silly.

posted by Techjar over 4 years ago

This is still an upstream libOBS issue, the plugin uses the proper libOBS APIs but gets a different result on OpenGL only.

posted by Xaymar over 4 years ago
posted by Xaymar over 4 years ago

Closing as a fix has been submitted upstream.

posted by Xaymar over 4 years ago

Fund this Issue

$0.00
Funded

Pull requests