ryandash / Anime4k-obs-upscaling-shaders

Anime4k v0.9 effect shader implementation for obs to improve the quality of the preview and stream
The Unlicense
9 stars 0 forks source link
anime4k hlsl-shader obs-studio shaders

Anime4k V0.9 hlsl obs shaders

These are Anime4k V0.9 hlsl shaders for obs to improve the quality of the preview and stream.

Original shader can be found at bloc97/Anime4k

How to use shaders (This is how I use the shaders with my capture card on obs):

  1. To use these shaders, start by downloading and installing obs
  2. Next install both obs-shaderfilter and obs-shaderfilter plugins.
  3. In sources add a Video Capture Device or capture source of your choice and 4 source clones that clone the Video Capture Device. You can also disable the audio on all the clones except the 4th and final source clone.
  4. Adjust your capture card using the properties to get the best possible balance of resolution and fps that you can.
  5. For the Video Capture Device and the 4 source clones, use a transform -> fit to screen to make all the windows fit the preview screen.
  6. On source clones 1 to 4, add a shader filter, and set each shader filter to use the corresponding numbered shader from the repository.
    • The clones should look something like this: image
  7. On source clones 2 to 4, there should be an option to select the Previous Pass.
    • Using the dropdown select the previous numbered source clone
    • Your Sources should look like this: image
  8. Disable the visibility of the original capture source and everything should now be setup to use your new filters. To do a comparison you can right click the preview and take a "Screenshot(Preview)", disable all the source clones, enable the original capture source, and take another screenshot.

WARNING: Applying filters to the 1st to 3rd shader clones is not advised as it can affect the quality of the final output in a negative way. Instead apply filters to the original capture source or after the 4th and final source clone's filter.

Optional: To apply filters on top of these filters or adjust the final preview size easily without needing to change the preview size each of source clone I recommend

Comparison with and without shader (This is Anime4k v0.9)

Before After
Before After

Updated shaders?