I need help for width vertical slotmask for non integer

I need help for width vertical slotmask for non integer scale

Example slotmask width for megadrive 320p on 1465x1080 resolution

2pixels = 732 line vertical

3pixel = 488 line

4pixel = 366 line

5pixel = 293 line

6pixel = 244 line

Now I want to

How to draw 320 line vertical on 1465x1080?

How to draw 640 line vertical like my crt on 1465x1080?

What are more accurate 320 line or 640 line ?

My screen resolution is 2460 x1080

Sorry for my bad English.

Please, clarify: you want a CRT shader sporting a slotmask?

If so, you can get decent results for 1080p non-integer, but not identical to an actual CRT screen. Still good, nonetheless. Shaders to look for, in order of complexity: crt-hyllian, crt-royale-fast, crt-guest-advanced.

1 Like

Thank you for reply ,Sorry for not explained

Yes I want to shader for realistic slotmask

I will try your suggestions and I will searching on Google for understanding mask and scanline.

Masks need more resolution to be properly represented. At 1080p, they’re okay, already usable, but not ideal; although slotmasks are less likely to be good at resolutions below 4K. Nonetheless, good approximations exist. I commend crt-hyllian for taking it simple, yet effective, achieving results compatible with 1080p.

About scanlines, basic knowledge is: the brighter a segment is, the more light it will receive and become thicker. And vice-versa. It happens on a per-line basis, so a scanline can start thin, then thicker, then back to thin, depending on the picture representes. Finally, the closer a CRT screen is to being professional grade, the more scanlines it can vertically have at once, leaving thick and noticeable black gaps for lower resolution content (like 240p).

Here’s one of the presets I use, it’s using crt-royale-fast, with a slotmask, targeting 1080p: https://files.catbox.moe/z43mjv.zip Just put the .slangp file in your shader directory, alongside (not inside) the shaders_slang folder.

1 Like

Thanks for many information, You are the best.

Now I am understanding and your preset impressive .

but I have last question sorry

What is game resolution on this image 320 or 640 pixel ?

1 Like

CRTs don’t have a set resolution, like modern screens. What you had were the number of individual lines it could scan in a single field (what comprises the whole picture) and the pitch of the mask (smaller the better, but this mattered more for computer monitors). Consumer TVs were expected to do 480i, but accepted 240p just fine. That was their scope.

I think your question is “how can I get results similar to the screenshot I posted?”. Is that it? If so, you need a bigger resolution on your current screen, not on the game or shader. Getting a 4K monitor would help you to draw more accurate masks. The preset I shared with you can’t reach that level (although the shader it uses can, provided you have the appropriate hardware).

1 Like

Normal CRTs were 640 pixels wide, so if you use 1080p and 4:3 you’ll have around 1450p horizontal, you must use 2 pixels wide slot masks for an approximately similar result. If you had 1440p vertical you should use 3

1 Like

Thank you very much, I learned a lot from you. Sorry for the many questions. The reason is that I love retrogaming and I want my games to be the best they can be.

1 Like

Thanks for the reply . I think you mean the gm colors mask I’ll try that. I use your shaders for low end on android .you make my life easy thanks

2 Likes

If you look carefully at a single game pixel there are 2 crt pixels (and a bit left and right due to bloom). I guess that’s sonic, Megadrive is 320p wide so the CRT has 640. And 2 pixels vertical so around 450-480 vertical CRT resolution

1 Like

Yes, upon closer inspection, I found that my crt TV was displaying two vertical lines for every one pixel,But is the screen resolution accurate or is it better to simulate 320 pixels ?

You can get decent looking Slot Masks at 1080p using CRT-Guest-Advanced Mask 6, Size 1.

This is an example from CyberLab Megatron miniLED which uses Sony Megatron Color Video Monitor among other shaders.

This is Koko-AIO’s take on a Slot Mask at 1080p.

1 Like

Thank for your suggestion, I have your presets and koko presets on my device. I will try all the suggestion .

2 Likes