How to Separate RGB in OBS?

fullmagic

New Member
Hi.
I'm trying to make "Color Shift" effect in OBS like example.

example: https://gyazo.com/4f501408d06af0030f8166b125c6de56

I tried using the color correction filter and the streamFX color grading filter, but it didn't work.

I think, To make "Color Shift" effect on video source, I need to separate RGB channel from video.
But I don't know how to separate RGB.

Thank you for your advices.
 

norihiro

Member
I think you can use Shaderfilter.

gamma_correction.shader in the examples would be the best place to start writing a shader to retrieve each channel.
You can just retrieve R channel for example as below.
float4 mainImage(VertData v_in) : TARGET
{
float4 color = image.Sample(textureSampler, v_in.uv);
return float4(color.x, 0, 0, 1);
}

You should put your source to multiple scenes similarly. Then, apply the filter to each scenes with different color channel settings so that each scene has each color channel. Then, you can combine with `Blending mode` = `Additive`, which is available in the next release 27.2.0. Or, you can use my plugin Multi Source Effect.
 
Top