Topic: CRT Simulation in a GPU Shader, Looks Better Than BFI

Is there anyway to implement this?

https://blurbusters.com/crt-simulation- … -than-bfi/

According to the developer:

Mark Rejhon
It’s an algorithm that needs to be implemented by software developers into apps. Hopefully some media player author implements this for great playback of 60fps content, maybe ask the VLC or MediaPlayerClassic or other people, about implementing this? Possibly could be done as a DirectShow filter, as long as you remember to make it permanently run the shader every Hz (CRT emulation must successfully modify every refresh cycle), indepedently of the video frame rate.

A software developer can change an internal native:emulated Hz ratio dynamically to match content framerate, e.g. for 240Hz displays automatically use a ratio of 5 for 48fps material and a ratio of 4 for 60fps material. The native would stay unchanged (unless you switch your real display Hz), but you can dynamically change the emulated Hz to simulate a 72Hz CRT for 24p material!

So I welcome VLC or MediaPlayerClassic to implement subframe-capable plugins to allow me to do 35mm BFI (ON-OFF-REPEAT-OFF) for double strobing, or for CRT simulation, or other multiple-passes-per-movie-frame feats.

RetroArch just implemented it already into a developer release, it’s likely the next public release of RetroArch will have it.

Re: CRT Simulation in a GPU Shader, Looks Better Than BFI

there's a glsl shader you can probably use with mpv, no?

---
nope, doesn't work in mpv
the shader obviously needs some modifications...

Re: CRT Simulation in a GPU Shader, Looks Better Than BFI

this works in mpv, somehow hmm
works with gpu-api=vulkan, crashes with d3d11, no idea why

vo=gpu-next
gpu-api=vulkan
glsl-shaders-append="d:\crt-simulator.glsl" #fix the path

screen 120 hz, interpolate to 120 fps --> will get 60 hz "crt"
screen 240 hz, interpolate to 240 fps --> edit .glsl file, find FRAMES_PER_HZ value, set it to 4.0

----
personally I don't get it

Post's attachments

crt-simulator.glsl 21 kb, 34 downloads since 2024-12-28