Uborder shaders

Just tried and it seems to work very well!

here with backdrop

this one stitching (roughly) together: invad169, invadbd and invaders_moon_taito

:+1:

3 Likes

That looks excellent and just what I’m looking for! Are you planning to add tilt parameters?

1 Like

When I port crt-geom again to uborder. It has built in tilt features.

2 Likes

again, using resources from mr.do, I just reduced contrast and brightness of the background image

Any suggestion on how to handle vector games? used crt-nobody here just to do a quick try!

2 Likes

Indeed, a crt shader isn’t recommended for vector games. I’ll see if I can use my lego skills and mount a preset compatible with uborder using libretro’s repo motion blur shaders (glow-trails seems a good candidate for this).

EDIT: I tested glow-trails, but it’s not that simple. It only works with a black background. I’ll have to figure out another solution. Without trails, it works easily with simple bilinear or any other interpolation shader.

3 Likes

What’s the issue?

Just add game content to backdrop (at least that’s what I did in koko-aio).

From the screenshots, it seems you are doing some kind of mixing/complex compositing instead, but things are simpler than that.

Those games have a black background because they were made to work that way, and black acts a a sort of natural alpha for the game content in an add(+) operation, so try to just sum them.

-edit-

See those fancy transparency effects obtained for free too (picture taken from @estefan3112 github repo)

6 Likes

Yes, I was coming to the conclusion that adding should be the only solution. It’s that mixing is very easy and I always fall in this pit. :face_with_hand_over_mouth:

I’ll change it to adding. It’s just not so simple because I’m doing many checkings in the same shader. Thanks for the tip!

EDIT: maybe letting the user switch the method, as the mix works for some cases.

2 Likes

I think the following might be missing in uborder-bezel-reflections.slangp to change the base preset:

#reference "base_presets/uborder-bezel-reflections/uborder-bezel-reflections-newpixie-crt.slangp" 

It looks super good by the way.

1 Like

I’m getting these weird black overlays on the sides:

This happens with this particular preset only, and after the recent updates.

1 Like

Which driver are you using? And is it using crt-nobody or other base shader? (I couldn’t reproduce here using vulkan.)

EDIT: Ok, I’ve got it on glcore. On vulkan is OK.

Please, do some test for me (I can’t right now), open “crt-nobody-bezel-reflections.slang” and change this line:

FragColor = vec4(mix(border.rgb, mix(border.rgb, frame_content, baoc), 1.0-step(1.0,fcTex.x*fcTex.y)), 1.0);

by this:

FragColor = vec4(mix(border.rgb, mix(border.rgb, frame_content, baoc), float((fcTex.x*fcTex.y) <= 1.0)), 1.0);

And see if it fix.

1 Like

I tried with Vulkan and glcore, both show the same problem, but only on the “Silent Hill TV” preset, not the other Spooky TVs. My default is newpixie, so crt-nobody is not the culprit. I am guessing it’s the background image?

Edit: Something to do with “fr_aspect_y”, since setting it to about 4.400000 makes it fullscreen on my setup. The rest of the params need to be calibrated though

2 Likes

This is another issue with newpix-crt port. This shader does some internal scalings on its own and is conflicting with uborder. I’ll look into that eventually. The other issue is general and affects all shaders. Anyway, I think that line change fix it.

4 Likes

Yo everyone, thought I’d join in on the fun by bringing my presets over to the uborder project. I switched some mask settings around to help scale them down to fit better within the screen space for 1080p,1440p and 4k presets, I think things came out pretty good.

Slot Mask:

Aperture Grille:

Shadow Mask:

Download the pack here. Place the unzipped pack in the shaders_slang folder the same way you would my standard pack.

@Hyllian thank you for helping me in putting things together. Thought I’d share the link here first since this is your project.

8 Likes

Hey, great shots @sonkun! And, feel free to post wherever you like. The pack is yours. Thank you for dedicating some time tweaking even more your presets.

3 Likes

Sonkun Shaders + uborder is truly a wonderful collaboration: it’s great to see new projects grow through hard work, positive collaboration and sharing with others. Thanks for your work guys !

4 Likes

I get the following error:

[INFO] [slang]: Compiling shader: "/var/games/emu/retroarch/shaders/shaders_slang/crt/shaders/guest/hd/crt-guest-advanced-hd-pass1.slang".
[ERROR] [Vulkan]: Duplicate parameters found for "internal_res", but arguments do not match.
[ERROR] [Vulkan]: Failed to create preset: 
"/var/games/emu/retroarch/shaders/shaders_slang/sonkun-uborder/aperture-grille/flat-screen/1080p/01-1080p-crt-guest-advanced-hd-aperture-grille-u-normal-rf.slangp".
1 Like

See if your crt-guest-advanced is the latest released in his thread. Sonkun’ shaders always demand the latest guest. Do not use update online in this case.

2 Likes

Thank you, that fixed it

2 Likes

I appreciate it and you’re welcome. Thank you as well for porting my presets over, I think this collaboration came out pretty clean for the most part.

I’ll share with everyone some information I talked with you in private about. So while Hyllian took the time to port my presets over to uborder I noticed that the mask looked a bit “bulky” looking on the smaller screen from doing a 1 to 1 translation over so I went into the lab and thought a simple scale down of the crt masks (lowering the “crt mask zoom” parameter setting) would do the trick.

While it indeed scaled the mask down to properly fit the smaller screen better I noticed right away the “vividness” of the colors got stripped away. I assumed since I mainly use mask 6 and 10 for my presets that somehow shrinking the “RGB” subpixels down so small was possibly the reason for it so I had to get creative.

I switched all presets over to mask 9 as I noticed simply switching to that mask brought the “vividness” of the colors back, I also had to reduce both light and dark “Slot Mask Strength” settings from 1.00 to .50 for Slot Mask presets to gain color back as well. @guest.r mask 9 literally saved my life lol, first time ever using that mask. I don’t think it’s a “RGB” mask but it works for scaling down crt masks for “smaller screens” indeed.

All in all this was a fun side project and I hope you guys enjoy it. In the event I update my presets with new settings I’ll also update the uborder presets as well to keep everything new, up to date and fresh.

3 Likes

Thank you for your work. This is the first time I try your shaders, and even if my hardware isn’t beefy enough to run them well I think they look really good.

1 Like