Hyllian shaders and presets

Macumba voodoo is more appropriate if we want to use technical terms.

1 Like

New release: hspack-24-03-13-r1

  • Improved horizontal filtering on downsampling presets (you must delete old folder before installing this pack);
  • Fix LUT paths in guests presets (it was loading other luts);

One screen for comparison:

6 Likes

I see that the hyllian down sampling is 5x while the guest is 4x?

1 Like

You can change this option inside user params. It’s just an example. It’s configured for 4x, but you can change to whatever you like.

Ok, for some reason thought that it was because of a limitation.

New release: hspack-24-03-24-r2

  • Added some naked presets of downsampling-2x. 2D backgrounds and elements are filtered using any of these: bilinear, bicubic, jinc, spline16, lanczos3 or reverse-aa. For these to work it’s necessary to increase internal resolution by 2x.

High Res Detections is working well. There’s an user param to see the detection in blue color:

Resident-Evil-3-Nemesis-USA-240317-102957 Resident-Evil-3-Nemesis-USA-240317-102934 Resident-Evil-3-Nemesis-USA-240317-102846 Resident-Evil-3-Nemesis-USA-240317-102831 Resident-Evil-3-Nemesis-USA-240317-102459 Resident-Evil-3-Nemesis-USA-240317-102449 Resident-Evil-3-Nemesis-USA-240317-102401 Resident-Evil-3-Nemesis-USA-240317-102350 Resident-Evil-3-Nemesis-USA-240317-102135 Resident-Evil-3-Nemesis-USA-240317-102124

6 Likes

How do you do the detections?

2 Likes

I look for a pattern present only in low res pixels that were blown up: they’re in clusters of 4 of equal colors. So, what isn’t lowres, then… you know.

It won’t detect all high res portions of an object though, but the most important ones for filtering.

Sometimes it fails to detect when the game abuse of transparency effects and blend lowres 2D with highres 3D in the same spot.

2 Likes

New release: hspack-24-03-24-r2

  • Added presets for downsampling 3x and 4x (inside naked folder). It’s necessary to run a core with internal resolution increased.

Resident-Evil-3-Nemesis-USA-240322-163014-240322-165231 Resident-Evil-3-Nemesis-USA-240322-163014-240322-165140 Resident-Evil-3-Nemesis-USA-240322-163014-240322-172940 Resident-Evil-3-Nemesis-USA-240322-163014-240322-172920 Resident-Evil-3-Nemesis-USA-240322-163014-240322-172859 Resident-Evil-3-Nemesis-USA-240322-163014-240322-172848 Resident-Evil-3-Nemesis-USA-240322-163014-240322-172827 Resident-Evil-3-Nemesis-USA-240322-163014-240322-172814 Resident-Evil-3-Nemesis-USA-240322-163014-240322-172754 Resident-Evil-3-Nemesis-USA-240322-163014-240322-172727 Resident-Evil-3-Nemesis-USA-240322-163014-240322-172655

6 Likes

Forgot to add a preset I was working too. I have experimented to use reverse-aa as a horizontal filter inside crt-hyllian and liked the results. It’s very good for pixel art so I named it crt-hyllian-pixel-art (inside 1080p->aperture-grille->hyllian). It’s very sharp visual that looks like a pvm. So I just added to the pack below:

hspack-24-03-24-r2

10-Yard-Fight-240323-070022 10-Yard-Fight-240323-065818 10-Yard-Fight-240323-065634 10-Yard-Fight-240323-065205 10-Yard-Fight-240323-065105 10-Yard-Fight-240323-065023 10-Yard-Fight-240323-065009 10-Yard-Fight-240323-064948 10-Yard-Fight-240323-064934 10-Yard-Fight-240323-064801 10-Yard-Fight-240323-064744 10-Yard-Fight-240323-064652 10-Yard-Fight-240323-064557 10-Yard-Fight-240323-064530 10-Yard-Fight-240323-064512 10-Yard-Fight-240323-064503 10-Yard-Fight-240323-064456 10-Yard-Fight-240323-064427

It may look like a simple scanline shader, but when you put some high color palette game you can see its powerfull blending bringing some hidden details from the backgrounds:

005-220727-092516-240323-081608 005-220727-092516-240323-081327

7 Likes

New release: hspack-24-03-24-r2

  • Added a cheap sharpen shader to all naked downsampling presets. It can be adjusted through param.

Before:

Resident-Evil-3-Nemesis-USA-240324-123317 Resident-Evil-3-Nemesis-USA-240324-123134 Resident-Evil-3-Nemesis-USA-240324-123038

After:

Resident-Evil-3-Nemesis-USA-240324-123330

Resident-Evil-3-Nemesis-USA-240324-123144 Resident-Evil-3-Nemesis-USA-240324-123051

5 Likes

\0-hspack\1080p\aperture-grille\hyllian\crt-hyllian-pixel-art.slangp

Fails to load on my set up. :thinking:

Got to say that we might have a similar behaving monitor (or taste) because your presets are the only ones around here that look and feel good on my set up: not too bright and not too dark! I especially like the “normal” hillyan-rgb ones!

1 Like

Can you, please, post the log here so I may fix it?

Nice. I have an IPS monitor calibrated to sRGB colors. Maybe yours is similar.

[ERROR] [slang]: Failed to open shader file: "D:\EMU\RetroArch\shaders\shaders_slang\cubic\shaders\bicubic-x.slang".
[ERROR] [GLCore]: Failed to compile shader: "D:\EMU\RetroArch\shaders\shaders_slang\cubic\shaders\bicubic-x.slang".
[ERROR] [GLCore]: Failed to create preset: "D:\EMU\RetroArch\shaders\shaders_slang\0-hspack\1080p\aperture-grille\hyllian\crt-hyllian-pixel-art.slangp".
[ERROR] [GLCore]: Failed to create filter chain: "D:\EMU\RetroArch\shaders\shaders_slang\0-hspack\1080p\aperture-grille\hyllian\crt-hyllian-pixel-art.slangp". Falling back to stock.
1 Like

Thanks for the log! Here’s the fix: hspack-24-03-24-r2

I forgot to update some paths that changed recently on repo.

3 Likes

tried crt-hyllian-pixel-art.slangp, now it works and it looks nice and sharp! :+1:

2 Likes

New release: hspack-24-03-31-r1

  • Added nnedi3 and super-xbr presets in downsampling folder for 2x, 3x and 4x internal scalings;
  • HiRes detection optimized with new algorithm reducing from 12 to just 2 samplings;
  • Some curvature bugs fixed;
  • LUTs changed again. Now a grade-composite with deeper blacks is available;
  • slotmasks (from crt-hyllian) tweaked for better contrast.

nnedi3 with downsampling:

Resident-Evil-2-Dual-Shock-Ver-USA-Disc-2-240330-212037 Resident-Evil-2-Dual-Shock-Ver-USA-Disc-2-240330-211919 Resident-Evil-2-Dual-Shock-Ver-USA-Disc-2-240330-211850 Resident-Evil-2-Dual-Shock-Ver-USA-Disc-2-240330-211815 Resident-Evil-2-Dual-Shock-Ver-USA-Disc-2-240330-211550 Resident-Evil-2-Dual-Shock-Ver-USA-Disc-2-240330-211524 Resident-Evil-2-Dual-Shock-Ver-USA-Disc-2-240330-211432 Resident-Evil-2-Dual-Shock-Ver-USA-Disc-2-240330-211410 Resident-Evil-2-Dual-Shock-Ver-USA-Disc-2-240330-211246 Resident-Evil-2-Dual-Shock-Ver-USA-Disc-2-240330-211145 Resident-Evil-Director-s-Cut-USA-240330-204645 Resident-Evil-Director-s-Cut-USA-240330-202913

Slotmask better contrast:

megamanx-1-240330-214311

10 Likes

Great work, Hyllian! Your shaders are among a few favorites I have. Personally, I liked the new grade-composite with deeper blacks, because it doesn’t crush blacks like the default grade-composite. I’d rather use something that preserves black levels and then tweak to make things brighter, so it’s good to have this new option. Thanks!

3 Likes

Those downsampling presets combining 2D and 3D elements were named to “mixed-res” shaders and were uploaded to official repo: https://github.com/libretro/slang-shaders/tree/master/downsample/mixed-res

So, they won’t be in next versions of hspack. The repo will have latest versions of them from now on.

BTW, I just uploaded the latest advancements combining them with new bilateral shaders (from @guest.r) to get rid of compression noise artifacts present in pre-rendered psx games, mostly.

Lanczos3 now with bilateral and deblur-luma:

Resident-Evil-3-Nemesis-USA-240322-163014-240519-125123 Resident-Evil-3-Nemesis-USA-240322-163014-240519-125052 Resident-Evil-3-Nemesis-USA-240322-163014-240519-125036

Lanczos3 before:

Resident-Evil-3-Nemesis-USA-240322-163014-240519-124959 Resident-Evil-3-Nemesis-USA-240322-163014-240519-124938 Resident-Evil-3-Nemesis-USA-240322-163014-240519-124915

6 Likes

Mixed-res-crt already on slang_shaders repo.

Screens from 4x only version:

More in this album:

9 Likes