OBS Studio colour blindness simulation shader?

If it's not ZDoom, it goes here.
Post Reply
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: 1052
Joined: Mon Nov 25, 2019 8:54 am
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
Posts: 13542
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

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
Posts: 13542
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: OBS Studio colour blindness simulation shader?

Post by Rachael »

Here's the fixed version:
colorblind_Emulation.pk3
(2.14 KiB) Downloaded 70 times
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.
User avatar
NeuralStunner
 
 
Posts: 12326
Joined: Tue Jul 21, 2009 12:04 pm
Preferred Pronouns: He/Him
Graphics Processor: nVidia with Vulkan support
Location: capital N, capital S, no space
Contact:

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
Posts: 13542
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: OBS Studio colour blindness simulation shader?

Post by Rachael »

You're welcome
Post Reply

Return to “Off-Topic”