Xaymar/obs-StreamFX

DynamicMask: add an additional source input and blend modes. #656

acorderob posted onGitHub

Explain the Feature/Enhancement

Adding a second (optional) input source (with corresponding channels) and blend modes (at the very least, addition).

The use case i am interested in is just to add an animated border/frame to the webcam source, by blending the webcam with the border source using the mask as an alpha channel for the webcam and its reverse for the border source. This would make it unnecessary to create a scene just for this.

But this would also allow a lot more effects than that, and even blending more sources.

Or maybe this could be a different Blending filter instead of adding the functionality to the Dynamic Mask.

What makes this feature/enhancement useful for StreamFX and its users?

StreamFX already has a number of effects filters and this would expand its capabilities. The Image Mask/Blend filter only allows for images and it is very limited.

Checklist

  • I am offering a monetary bounty/reward for the implementation of this Feature/Enhancement.
  • There is no other way to currently do this in StreamFX or OBS Studio.

Any additional Information we need to know?

No response


Dynamic Mask is complex enough as it is.

posted by Xaymar over 3 years ago

Then create a new filter just for blending the current source with another one?

posted by acorderob over 3 years ago

Are you willing to implement and maintain it? Otherwise it'll just sit here, as it is possible to implement this with the Shader filter already.

posted by Xaymar over 3 years ago

I wish i could do it myself, but i'm not a C++ developer.

Can a shader access other OBS sources? I will look into it.

posted by acorderob over 3 years ago

At the moment, you need to vertically or horizontally stack sources in a group and apply the filter to the group. 0.11 will have texture inputs for shaders.

posted by Xaymar over 3 years ago

You can now do this entirely within shaders. Closing since the feature request has been fulfilled through a different feature.

posted by Xaymar over 3 years ago

Fund this Issue

$0.00
Funded

Pull requests