Koko-aio shader discussions and updates

Currently working on a post-sharpening filter to be used with composite chroma bleed function:

…ok ideally one would prefer a clean image, but we are a masochist community.

Color is all smeared because of composite, oh no.

Let’s patch it with a sharpening filter:

It needs to be refined as it interacts badly with some other functions like selective ntsc waterfall® blending and probably others, but the first commit has been pushed.

8 Likes

The G&Ws were not backlit, so the MAME image looks about right.

1 Like

Exactly. Tests show me that MAME official, with handling of dual screens and backdrop, is the better solution for G&W. LCD preset in bgfx is good enough. It even emulates the buttons. Absolutely fine to stay there :blush:.

I’m a bit confused. How does Mame present dual screens?

If it already puts a gap between the screens, then it is just a matter of aligning the overlay and the backdrop.

MAME layouts take a different, very literal approach. For example, the Donkey Kong layout shown above, first view only. It starts with the description of the elements (for some reason, the bezel is defined as “Backdrop” without being a backdrop imho). Then comes the first view, as MAME can switch between different views. I this view, the location of the two screens are defined exactly with the pixel x and y coordinates. Same with the backdrops.

So while this can be very cumbersome for normal bezels, it seems to work very well for the multiple display screens.

1 Like

Ops sorry, I meant MAME cores in Retroarch, I Think they won’t allow for such customizations (?)

There once was a ‘video layout’ option in RetroArch that allowed loading the mame.lay files. But that one was very buggy and I annot find it any longer, that’s where your shader definitely came to the rescue :-).

Color smearing due to limited composite bandwidth received a big code update.

Control parameters and names changed, as a result any preset that referenced them will need to be updated; I already did that for the ones shipped with the shader.

The bleed falloff curve is much more natural and the look of the effect is easier to change now.

Also, I’ve added a new “Use coarse sampling” that it is useful to emulate lower bandwidths while keeping the number of samples low.

1 Like

Is it stable now? I’m holding out on this update because I heavily depend on blending and dedithering features.

Yes, at least I think so, but you’re always welcome to report bugs :wink:

1 Like

After this commit I can’t get the ambilights to show up from behind the translucent speakers like before:

After commit 70493f4

Before commit 70493f4

Here’s a comparison of what the ambilights look like beneath the bg_over:

After commit 70493f4

Before commit 70493f4

I may be able to “fix” this by lowering the opacity more, but that can gradually ruin the look of the speakers when the ambilights are off…

1 Like

I pushed a possible fix in a separate branch.

Please, check here, it should fix the issue with light passing through the image, but since it touches the very same code that fixed the previous ambientlight issues you reported, can I ask you to check if they are still fixed?

1 Like

I’ll check this out asap. Sorry for all the fuss.


Edit: All works perfectly now! I also checked the other presets, and they are still fixed, no recurring issues at all. @kokoko3k thank you very much.

1 Like

I just refactored some old 4.1 ntsc presets which were not so faithful, badly named and redundant.

Namely,

Presets-4.1/tv-NTSC-1-classic_take.slangp
Presets-4.1/tv-NTSC-1-selective-classic_take.slangp
Presets-4.1/tv-NTSC-1-selective.slangp
Presets-4.1/tv-NTSC-1.slangp
Presets-4.1/tv-NTSC-2.slangp

Are all gone, now there are just 2 new ones:

tv-NTSC-Megadrive-Genesis.slangp:

and tv-NTSC-Generic.slangp:

7 Likes

I just downloaded the latest .zip archive from GitHub: https://github.com/kokoko3k/koko-aio-slang/archive/refs/heads/main.zip

And something’s not right here. The new Mega Drive presets are missing. I can’t find them anywhere. It’s a shame about the NTSC presets; in my opinion, they were good and there was no need to remove them. I was hoping more NTSC presets would be created, and they wouldn’t be deleted.

1 Like

I forgot to add them, sorry, it’s now fixed.

Please, take a look, I think they look objectively better.

Several issues on old presets like too dark gamma, too much visible scanline (for a “TV” preset), and heavy slotmask made them too dirty considering the intrinsic dirtiness that composote signal already brings.

But tastes are tastes, I might bring back 2 tweaked ones, if really needed.

Let me know.

2 Likes

First of all, thank you for the correction and for adding the presets. I’ve been looking for them for quite a while and thought there was something wrong with me :slight_smile:

In my opinion, the new presets for Genesis/Mega Drive are too bright, too sharp, and more washed out. I don’t want to complain, because I’m sure someone will like them, but for me personally, they’re definitely something different from the old presets.

The composite NTSC effect itself is great in the new presets. I moved its settings to the tv_pal_my_old preset, and it looks great.

I also really like the new post sharpness filter effect. I’m testing it with a 0.50 setting for both NES and Genesis, and it looks very good.

Thanks for the good work.

1 Like

Ok then.

The last commit brings back NTSC-1 and NTSC-2 presets, they are now named: tv-NTSC-Megadrive-Genesis-old (this comes with waterfall blending enabled) and tv-NTSC-Generic-old

The new presets have been moved from the Presets-4.1 folder to the Presets-NG one.

4 Likes

@kokoko3k I was wondering which Monitor-SlotMask preset do you recommend for 3rd-4th gen consoles?

Hi @kokoko3k - another question for old Arcades with overlay pictures. Take this example - War of the Worlds - wotw in MAME - the video

This is no backdrop, but a transparent overlay that is provided over the vector screen, so that the vectors are colored “RGB multiplicative blending”. MAME can do this by defining overlay instead of backdrop. Is there a way to achieve this in koko-aio as well? As always, many thanks! PS: The arwork already looks quite nice in koko-aio with backdrop, except that the vectore are not colorized.