OBS Studio colour blindness simulation shader?

If it's not ZDoom, it goes here.
User avatar
doomfiend
Posts: 526
Joined: Sun Aug 27, 2006 6:10 am
Location: some where

OBS Studio colour blindness simulation shader?

Post 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.
User avatar
Redneckerz
Spotlight Team
Posts: 970
Joined: Mon Nov 25, 2019 8:54 am
Discord: Redneckerz#8399
Operating System: Windows 10/8.1/8/201x 64-bit
Graphics Processor: Intel (Modern GZDoom)

Re: OBS Studio colour blindness simulation shader?

Post 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?
User avatar
doomfiend
Posts: 526
Joined: Sun Aug 27, 2006 6:10 am
Location: some where

Re: OBS Studio colour blindness simulation shader?

Post 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.
User avatar
Rachael
Admin
Posts: 12892
Joined: Tue Jan 13, 2004 1:31 pm
Discord: Rachael#3767
Twitch ID: madamerachelle
Github ID: madame-rachelle

Re: OBS Studio colour blindness simulation shader?

Post by Rachael »

Post the shader, it's possible someone might be able to update it for you.
User avatar
doomfiend
Posts: 526
Joined: Sun Aug 27, 2006 6:10 am
Location: some where

Re: OBS Studio colour blindness simulation shader?

Post by doomfiend »

https://www.dropbox.com/s/spp37d3s7vmc4 ... n.pk3?dl=0

Here you go, I can't make out any of it lol
User avatar
Rachael
Admin
Posts: 12892
Joined: Tue Jan 13, 2004 1:31 pm
Discord: Rachael#3767
Twitch ID: madamerachelle
Github ID: madame-rachelle

Re: OBS Studio colour blindness simulation shader?

Post by Rachael »

Here's the fixed version:
colorblind_Emulation.pk3
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.
You do not have the required permissions to view the files attached to this post.
User avatar
NeuralStunner
 
 
Posts: 12298
Joined: Tue Jul 21, 2009 12:04 pm
Discord: NeuralStunner#4201
Operating System: Windows Vista/7/2008 64-bit
Graphics Processor: nVidia (Modern GZDoom)
Location: capital N, capital S, no space

Re: OBS Studio colour blindness simulation shader?

Post by NeuralStunner »

I've heard of shaders to compensate for colorblindness, but this is a neat idea. :)
User avatar
doomfiend
Posts: 526
Joined: Sun Aug 27, 2006 6:10 am
Location: some where

Re: OBS Studio colour blindness simulation shader?

Post by doomfiend »

Ah thank you kindly friend
User avatar
Rachael
Admin
Posts: 12892
Joined: Tue Jan 13, 2004 1:31 pm
Discord: Rachael#3767
Twitch ID: madamerachelle
Github ID: madame-rachelle

Re: OBS Studio colour blindness simulation shader?

Post by Rachael »

You're welcome

Return to “Off-Topic”