Page 1 of 1
OBS Studio colour blindness simulation shader?
Posted: Fri May 29, 2020 9:37 pm
by doomfiend
So I’ve been looking high and low for a filter / shader that simulates what I see (Tritanopia) has anyone run into an obs widget / filter? I’m not looking for a shader that assists with my colour deficiency. Just replicate it for those with normal vision. I used to have a shader in my autoload but unfortunately it’s no longer compatible with the current build of GZDoom. I figure it would be interesting for my followers to view games with this shader where almost everything is shades of blue and pink. Any help would be greatly appreciated.
Re: OBS Studio colour blindness simulation shader?
Posted: Sat May 30, 2020 1:17 am
by Redneckerz
This is not something that would be default in GZ. The best bet is if that particular shader gets updated.
Why does it not work, by the way?
Re: OBS Studio colour blindness simulation shader?
Posted: Sat May 30, 2020 5:50 pm
by doomfiend
well the GZDoom shader used to work. but here's the error that shows up upon launching the game.
Code: Select all
Shader 'colorblind.glsl' could not be compiled:
ERROR: 0:79: 'sampler/image' : cannot construct this type
ERROR: 0:79: '' : compilation terminated
ERROR: 2 compilation errors. No code generated.
Re: OBS Studio colour blindness simulation shader?
Posted: Sat May 30, 2020 6:02 pm
by Rachael
Post the shader, it's possible someone might be able to update it for you.
Re: OBS Studio colour blindness simulation shader?
Posted: Sat May 30, 2020 10:53 pm
by doomfiend
Re: OBS Studio colour blindness simulation shader?
Posted: Sun May 31, 2020 6:53 am
by Rachael
Here's the fixed version:
It seems extremely probable that you were using Vulkan to test this, and the SPIR-V compiler included in GZDoom choked on this.
For some reason, it didn't like Texture2D. I changed it to Texture instead, and it worked.
This did not happen in OpenGL, at least on NVidia.
Re: OBS Studio colour blindness simulation shader?
Posted: Sun May 31, 2020 9:53 am
by NeuralStunner
I've heard of shaders to compensate for colorblindness, but this is a neat idea.

Re: OBS Studio colour blindness simulation shader?
Posted: Sun May 31, 2020 7:15 pm
by doomfiend
Ah thank you kindly friend
Re: OBS Studio colour blindness simulation shader?
Posted: Sun May 31, 2020 10:55 pm
by Rachael
You're welcome