This crash is actually due to a bug in OBS Studio itself. The shader parser in OBS has a number of quirks that can cause it to crash hard, and mismatched brackets/parens are one of them. Another one is putting a pre-processor statement on the first line of a shader file, such as a #define or #include. I make sure every shader file has at least a one line comment at the very top to avoid that bug. There are various other bugs in OBS's shader parser also. All of these bugs will affect every one of the various Shader plugins available for OBS as they all read the shader files, optionally add templated elements to them, and then pass it right to OBS.I hit on a bug that lead to OBS crashing whilst I tried to develop a small shader for this plugin. My code had an incorrectly closed { } pair and this lead to the whole of OBS crashing. It's easily reproducible with the following code:
C-like:float4 render(float2 uv) { { return image.Sample(builtin_texture_sampler, uv); }
While I could fix my code by removing the spurious { is it possible to report the syntax error without a crash?
I just exported Halsu's Despill shaderfilter to a Lua by hacking away at the rainbow shader port that @khaver put together. It works so I'm sharing it. Load the Halsu Despill.lua file and you should now find a Halsu Despill filter to add to your sources.I stumbled upon a Keyer Filter for an older version of the ShaderFilter. It looks pretty awesome, but it doesn't work in the ShaderFilter Plus: https://drive.google.com/drive/folders/1BroWQ7qG0mSdUfo87UFhxOHe-t0C7x7r?usp=sharing It is by @Eki Halkka here in the forums:
Eki Halkka
Has anyone taken a stab at converting that to the new file format used by ShaderFilter Plus?
Cool. Halkka's filter was impressive and powerful, lots of stuff beyond despill. I still find that my hair is always twinkling on any use of OBS chromakey.I just exported Halsu's Despill shaderfilter to a Lua by hacking away at the rainbow shader port that @khaver put together. It works so I'm sharing it. Load the Halsu Despill.lua file and you should now find a Halsu Despill filter to add to your sources.
I'm in the same situation.I have the previous version of the Shaderfilters plugin and it works flawlessly. I am trying to help some friends add the new one to their OBS since the previous version is no longer available. The filter options shows but no actual filters are in the repository. Is there any way to convert the old filters to the new format or do they have to be individually recreated?