obs-shaderfilter

obs-shaderfilter 2.3.2

Zalioris

New Member
Last edited:

Trenaldi

New Member
Hello, I'm trying to replicate how a StreamFX filter looked with it's Exeldro approved equivalent.

The scan line filter I've got mostly the same. To get both a big rollbar and smaller lines like I could do before, it takes 2 instances instead of the previous one instance...

But the big difference is the old filter would be visible on a black empty background, while this new one is not. Anybody got any suggestions about that?

I don't know shader code from a hole in my head but I'm open to being given edits for it.
 

Dayset

New Member
Hello. This shader code works fine on the ShaderToy website.
Made it with chatGPT, how can it be converted to use with OBS shader filter?
I need a simple slider to skip frames and send previous duplicated frames.
Thanks.

C:
void mainImage( out vec4 fragColor, in vec2 fragCoord ) {
    vec2 uv = fragCoord / iResolution.xy;
    
    // Calculate a frame toggle based on time assuming 60fps animation
    int frameIndex = int(mod(iTime * 60.0, 60.0));

    // Only update once every 6 frames (reduces to 10fps)
    if (frameIndex % 6 == 0) {
        fragColor = texture(iChannel0, uv); // Draw the frame
    } else {
        discard; // Skip the frame
    }
}
 

Dayset

New Member
@Exeldro This is almost the perfect plugin for my needs.
My goal is to capture exactly 30 frames out of 60. Its behavior is pretty strange while 17 ms pauses instead of 16.67 ms.
There is no support or possibility for floating point numbers?
 

Dayset

New Member
@Dayset obs-shaderfilter has floating point numbers. What shader are you using and what are you trying to do with it?
@Exeldro I am using the FREEZE plugin. There are no floating points, sorry for discussing FREEZE here.
I created several zones to capture - the outer range is low FPS, while the central area is high FPS.

My initial idea was to use as many 'circular zones' as possible to gradually decrease the framerate from the center. But after trying the whole integer zone I noticed that it is not working as simply as "16.67 ms ~ 17ms no worries". I even have to use 120 fps OBS capture to precisely use FREEZE timings.

Here is a demo of 2 distinctly visible zones https://www.twitch.tv/videos/2288882204
(8 ms pause: Approximately 61.22 fps and 40 ms pause: Approximately 20.69 fps.) - while aiming and shooting
and 3rd special zone of 26 ms pause: Approximately 29.13 fps - while running around in an FPS game.
 

Attachments

  • images.jpg
    images.jpg
    44 KB · Views: 9
Top