13
7

is there shader for crt monitor emulation?

10mon 28d ago by lemmy.ml/u/someoneFromInternet in renpy@discuss.tchncs.de

I can't find any good filter for such purpose. Can you help, please?

MAME has some.

kagis

First hit I get:

https://github.com/TheCodeTherapy/MAME-PSGS

thanks, but how exectly I can use it with renpy?

I don't know; I haven't used shaders with Ren'Py. Are you asking how you use shaders with Ren'Py at all or are you okay with that and just asking how to use these in particular?

Honestly, both. I just want to help my friend, that don't have a lot of experience with renpy. If you can try I appreciate it.

Well, I've never written any shader code. Python, yes. And as to Ren'Py, not anything of substance. So I'm probably not going to be the best person to give a step-by-step, but I can try to give a high-level of what I expect.

The shaders I linked to above are written in GLSL. As far as I know, they'll work in Ren'Py.

The Ren'Py guys have documentation on using GLSL shaders in Ren'Py:

https://www.renpy.org/doc/html/model.html#creating-a-custom-shader

If he's going to need help on the datatypes used by GLSL shaders, then he's probably going to have to look at a "how to write shaders" tutorial.

There might be some existing Ren'Py game out there that does use shaders, if what you're hoping for is basically more of a black box. I have no idea how approachable that is.

kagis

It looks like this guy has written a shader that provides at least the interlacing and curvature effects that he's distributing as Ren'Py source:

https://devilspider.itch.io/crt-monitor-shader

That might be sufficient, or if it's not, it may provide enough of an example for your friend to hook another shader up to Ren'Py.

Kinda late to the party but yet, there is a CRT monitor shader by devil spider! There are also retro shader effects from the Make Visual Novels! shader pack that might add interesting effects.

Edit: just saw that tal already linked devil spider's pack >.<

thx!