Hey! Does anyone know of a shader that mimics old monochrome pixel LCDs, like those found on graphing calculators? Something like this.
The original DMG Game Boy used a similar display, maybe there's a better chance of finding a shader like that out there? I did find this one, which looks pretty much perfect, but I don't know much about shaders so I have no idea if that's easy (or possible) to integrate with LÖVE...
Thanks for any insight!
Monochrome LCD shader?
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Re: Monochrome LCD shader?
I'm a little busy to test it out right now but I believe the Moonshine Library has an effect that mimics gameboys. The effect is called dmg. I found it in this curated list.
Moonshine: https://github.com/vrld/moonshine
curated library list: https://github.com/love2d-community/awesome-love2d
edit: I found some time. here is what the effect looks like before and after.
Moonshine: https://github.com/vrld/moonshine
curated library list: https://github.com/love2d-community/awesome-love2d
edit: I found some time. here is what the effect looks like before and after.
Re: Monochrome LCD shader?
Oh, yeah, I did see that one, but it's not really what I'm after. All it really does is restricting the palette to 4 green colors, but I'm looking for something closer to an actual graphing calculator or DMG screen, more akin to the shader I linked to. Sorry if that wasn't clear.
Specific stuff I'm looking for in addition to the palette is the visible pixel grid on low-resolution monochrome LCDs, drop shadow on the lit pixels, etc.
Like this, from the page I linked to above:
Specific stuff I'm looking for in addition to the palette is the visible pixel grid on low-resolution monochrome LCDs, drop shadow on the lit pixels, etc.
Like this, from the page I linked to above:
- zorg
- Party member
- Posts: 3444
- Joined: Thu Dec 13, 2012 2:55 pm
- Location: Absurdistan, Hungary
- Contact:
Re: Monochrome LCD shader?
There's a löve game on steam called Warlock's Tower that has this style; code's obfuscated though so no luck learning from it, however two things i can add to this conversation:
- Combining the 2-bit/4-color shader with a shader that makes a pixel grid like that could work; not sure if that exists as a moonshine shader yet or not,
- The other thing is that the aforementioned game might have actually been designed (like most gameboy games) to fit the screen and the palette; if you just want to drop this effect on as a shader, stuff might not look right anyway due to multiple reasons like the thresholds not being what you expect, and so on.
- Combining the 2-bit/4-color shader with a shader that makes a pixel grid like that could work; not sure if that exists as a moonshine shader yet or not,
- The other thing is that the aforementioned game might have actually been designed (like most gameboy games) to fit the screen and the palette; if you just want to drop this effect on as a shader, stuff might not look right anyway due to multiple reasons like the thresholds not being what you expect, and so on.
Me and my stuff True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
Re: Monochrome LCD shader?
I'd actually advise against it - beyond aesthetic value, it's a terrible way to display graphics in every conceivable way. Ask anyone who owned a gameboy - they hated its screen.
Re: Monochrome LCD shader?
Hehe, yeah, not going to argue against that. I owned a Game Boy myself, and as a matter of fact I have later modified several Game Boys with backlights to get better screens. But this is for a very specific emulation use case, not for a marketable game.
Thanks, interesting game. The palette isn't really the interesting/hard part though, it's everything else! And there's no Moonshine shader with a pixel grid that I've found.
Maybe I'll have to learn this stuff and see if the shader I linked to can be ported to LÖVE/Moonshine...
- kicknbritt
- Citizen
- Posts: 96
- Joined: Sat May 30, 2015 2:15 am
- Location: Chicago, IL/Anchorage,AK
Re: Monochrome LCD shader?
You could probably use that same gameboy shader and simply draw lines over it (the number of scanlines being width*height of the screen) inside a canvas scaled to the screen resolution.
"I AM THE ARBITER!!!" *Pulls out Energy sword and kills everything*
Who is online
Users browsing this forum: Google [Bot] and 218 guests