Please show off what crt shaders can do!

Hey, if you turn logging on and turn off logging to file so you get the log window to come up. You should see an error message in the retroarch log which should help.

Thanks, I did that.

It works now. Though some artifacts appear on screen when curvature is enabled.

Here’s the code: crt-hyllian + curvature code

Artifacts appear at the edges and at the center of screen. I don’t know how to fix.

1 Like

Dunno about the stuff around the edges, but I think the stuff in the middle is moire lines. Are you warping the mask, too, by chance?

Yes, I’ve swapped the texcoords mask input function by the “pp warped”. Should I revert?

Yeah, leave the mask unwarped. The difference is almost imperceptible, but it avoids a lot of ugly side effects.

2 Likes

It fixed the center artifacts.

The edge ones continue, though:

Looks like the cornersmooth code has some issue.

crt-hyllian + curvature (center artifacts fixed)

4 Likes

Looks good. I’m curious about mask 19? It’s makes my laptop with a 1650 slow down immediately.

After some careful side-by-side comparisons, I think I’d have to say that gaussian looks better for the vertical filter. Sinc yields some unnatural and awkward results when a very dark line is next to a very bright line. Example can be seen circled below.

image

What does sinc horizontal and gaussian vertical look like?

1 Like

Hey! New to the forums here, but you might know me as V15UAL K3YS in the Retroarch discord.

I came across this thread and have been researching and trying out various CRT shaders, trying to find the best one. I particularly like a lot of Nesguy’s configurations thanks to the level of detail, being able to see the phosphor detail amongst the scanlines. I’ve been trying to find a good configuration for crt-guest-dr-venom, since I find it is the best crt shader for handling interlaced content (such as Tekken 3 in 480i). It also works great for PS1 games that swap back and forth between resolutions, such as Gran Turismo and Jet Moto 2 (both which run at 480i in menus but in-game are 240p).

I took one of Nesguy’s more recent configurations for crt-guest-dr-venom in this thread and applied some tweaks. I changed the color settings for NTSC-U and lowered the gamma so it wasn’t as bright. I find that this looks great on my 40" 1080p flat-panel TV, which I have the backlight maxed out on. I also applied mask #2 and I think it looks great.

If anyone has any suggestions or different configurations, I am open to hearing them. I also have a 1440p 27" monitor I test these on as well. NOTE: I took these images with integer scaling disabled, as I find this shader to handle non-integer scaling quite well compared to other shaders like CRT-Aperture.

I just created an account so it won’t let me post more pictures in my post. I’ll post another in a separate post for how it looks via 240p in Wipeout XL.

1 Like

Here is another screenshot showing off the same shader and configuration in Wipeout XL at 240p.

1 Like

Time to update crt-hyllian-glow.

The old crt-hyllian-glow wasn’t very well calibrated. Gamma was totally off. Now it’s fixed and the halation effect is very subtle, as it should be.

I’ve managed to use all files from glow folder, so the hyllian-glow folder is not necessary anymore. It uses default crt-hyllian shader, so no need to duplicate code. The curvature code is reused from resolve.slang inside glow (as all it has inside: masks, noise, etc). Beware that curvature inside resolve.slang is buggy and produce artifacts. So to use crt-hyllian-glow you just need to put the slang preset at the crt folder.

Here’s the preset (included crt-hyllian shader inside zip if you don’t have it):

crt-hyllian-glow

5 Likes

Tried to make as sharp as possible. I used hylian crt shader. Not sure why it looks so dark, looks better in game… fullscreen view is recomended.

It’s normal for screenshots that are properly bright to look overly dark when scaled down; this is a result of scaling the mask/scanlines.

In fact, if a screenshot looks adequately bright in a thumbnail it’s probably way too bright in-game.

Thank you for the explanation mr Nesguy. It looks alright in game, but I really should buy a brighter tv I think … this ones old, even for a lcd.

Ah, I see what’s up. You had the corner function multiplying the coords themselves, which was causing funky stuff at the edges (and beyond; notice the area outside the image is a weird non-black color). Since it spits out a float value, you can just multiply the whole output by it and it will give you nice, clean, fully black edges:

FragColor = vec4(color, 1.0);
FragColor *= (param.CURVATURE > 0.5) ? corner(pp) : 1.0;
5 Likes

I can almost read that code now :yum:

2 Likes

Makes you feel like a big kid don’t it lol

Nah, Iam too far gone for that.

3 Likes

Thanks! It works like a charm!! Do you know why the resolve.slang inside glow shader is buggy??

Anyway, here are some screens:

crt-hyllian-curvature fixed

4 Likes

A gaussian-sinc version, I see. I’ll make that, it should present intermediate results.

2 Likes