Scanlines while scrolling
Scanlines while scrolling
That’s why I would prefer something like the MAME bgfx crt-geom or at least something similar with which every pixel could be converted into a specific shape (like round dots and not square). Not only a mask over the picture without any correlation to the resolution.
- Chris23235
- Top Contributor
- Posts: 982
- Joined: Sun May 24, 2020 8:45 pm
- Has thanked: 127 times
- Been thanked: 197 times
Re: Scanlines while scrolling
Re: Scanlines while scrolling
- Kitrinx
- Core Developer
- Posts: 187
- Joined: Sat May 23, 2020 2:14 am
- Location: NYC
- Has thanked: 1 time
- Been thanked: 149 times
- Contact:
Re: Scanlines while scrolling
More technically it has to do with how your brain and eyes process the image when it is drawn all at once like that. The scanlines are there, but your eyes just blur it together in your brain.Hellz wrote: ↑Fri Feb 25, 2022 1:10 pm Scanlines dissapearing while scrolling has to do with the way your screen processes the image. If you turn on black frame insertion on a tv/monitor capable of this you'll see it gets less. Ive yet to find a good solution on the mister to keep the lines on screen while scrolling.
- neogeo81
- Top Contributor
- Posts: 445
- Joined: Fri Apr 16, 2021 1:52 pm
- Has thanked: 34 times
- Been thanked: 47 times
Re: Scanlines while scrolling
why should the scanlines disapear no a CRT? it's a fix part how a CRT works.
-
- Posts: 261
- Joined: Sun May 24, 2020 10:06 pm
- Has thanked: 136 times
- Been thanked: 78 times
Re: Scanlines while scrolling
I think this is a response to the suggestion that it’s our eyes playing tricks on us that causes the scanlines to disappear, rather than the display technology.
Also of note for this discussion, we are talking about vertical scrolling. With purely horizontal scrolling you should not have this issue of course.
-
- Posts: 172
- Joined: Sun Mar 07, 2021 12:28 pm
- Has thanked: 31 times
- Been thanked: 48 times
Re: Scanlines while scrolling
1. Is he using the same scanline thickness/intensity in both MAME and MiSTer?
2. Is he using the same screen resolution? For example if he's using a non-native resolution of the display for MiSTer, the monitor's upscaler might be doing something funky that blends the scanlines?
3. Could MiSTer's interpolation filters cause this? Like what if the scanlines are applied first, but then smoothed out when scrolling up/down by whatever interpolation filter is selected?
-
- Core Developer
- Posts: 459
- Joined: Wed May 26, 2021 9:35 pm
- Has thanked: 59 times
- Been thanked: 383 times
Re: Scanlines while scrolling
From my limited experience with cores such as SNES and Arcade games like 1943 using adaptive scanlines on a 55" 4k TV set at 1080p in Mister.ini I don't see any of these disappearing scanlines.
As a side note, on my TV I do have it in "game" mode otherwise it may be smoothing out the picture possibly causing those lines to disappear (and adds lag).
- Sigismond0
- Posts: 339
- Joined: Mon May 25, 2020 2:21 am
- Has thanked: 1 time
- Been thanked: 66 times
Re: Scanlines while scrolling
-
- Posts: 221
- Joined: Sun May 24, 2020 7:59 pm
- Has thanked: 16 times
- Been thanked: 28 times
Re: Scanlines while scrolling
-
- Top Contributor
- Posts: 1441
- Joined: Mon May 25, 2020 7:54 pm
- Has thanked: 496 times
- Been thanked: 467 times
Re: Scanlines while scrolling
This might well be the problem seeing as there are so many option permutations available for MiSTer atm. I'm a consumer CRT TV user but recently have tried the new shadowmasks/scanlines on my VGA monitor, and gave up very quickly since the results were rather messy.AtomicShroom wrote: ↑Fri Feb 25, 2022 4:09 pm What's interesting is that he mentions this doesn't happen with MAME, so this brings about the following questions:
1. Is he using the same scanline thickness/intensity in both MAME and MiSTer?
2. Is he using the same screen resolution? For example if he's using a non-native resolution of the display for MiSTer, the monitor's upscaler might be doing something funky that blends the scanlines?
3. Could MiSTer's interpolation filters cause this? Like what if the scanlines are applied first, but then smoothed out when scrolling up/down by whatever interpolation filter is selected?
Is there a write up and/or example somewhere, explaining how to get a basic shadowmasks/scanlines combo going? This could also be used as a reference point, because otherwise such discussion is a little bit pointless.
CRT SCR$ Project - building a collection of high-quality photos of CRT displays
CRT ART Books - retro-gaming books with authentic CRT photos
- Sigismond0
- Posts: 339
- Joined: Mon May 25, 2020 2:21 am
- Has thanked: 1 time
- Been thanked: 66 times
Re: Scanlines while scrolling
Just load a preset from the video processing menu if you just want to get your feet wet. The PVM preset is a great starting point, and a nice way to ensure that people are comparing apples to apples.
-
- Top Contributor
- Posts: 1441
- Joined: Mon May 25, 2020 7:54 pm
- Has thanked: 496 times
- Been thanked: 467 times
Re: Scanlines while scrolling
Ok, I might try it tomorrow. Are you sure this is all that's needed though, ie nothing else to change in .ini or OSD? (assuming that I connect with a default mister.ini to a 1440p monitor via HDMI)Sigismond0 wrote: ↑Fri Feb 25, 2022 5:52 pm Just load a preset from the video processing menu if you just want to get your feet wet. The PVM preset is a great starting point, and a nice way to ensure that people are comparing apples to apples.
CRT SCR$ Project - building a collection of high-quality photos of CRT displays
CRT ART Books - retro-gaming books with authentic CRT photos
- Chris23235
- Top Contributor
- Posts: 982
- Joined: Sun May 24, 2020 8:45 pm
- Has thanked: 127 times
- Been thanked: 197 times
Re: Scanlines while scrolling
Which resolution do you use. Best to use a 1440p 4:3 resolution as the higher the resolution the better the scanlines and shadow masks will look. This applies even more to the adaptive scanlines added lately. And be sure to use integer scaling. The 10bit coefficient filters added earlier this week should help with non-integer scaling and scanlines but it has to be implemented on each core individually.akeley wrote: ↑Fri Feb 25, 2022 6:12 pmOk, I might try it tomorrow. Are you sure this is all that's needed though, ie nothing else to change in .ini or OSD? (assuming that I connect with a default mister.ini to a 1440p monitor via HDMI)Sigismond0 wrote: ↑Fri Feb 25, 2022 5:52 pm Just load a preset from the video processing menu if you just want to get your feet wet. The PVM preset is a great starting point, and a nice way to ensure that people are comparing apples to apples.
-
- Top Contributor
- Posts: 1441
- Joined: Mon May 25, 2020 7:54 pm
- Has thanked: 496 times
- Been thanked: 467 times
Re: Scanlines while scrolling
Resolution? I thought MiSTer just syncs to the display's native one. On my PC that's 2560x1440.Chris23235 wrote: ↑Fri Feb 25, 2022 6:19 pm Which resolution do you use. Best to use a 1440p 4:3 resolution as the higher the resolution the better the scanlines and shadow masks will look.
Black magic Let's pretend I've only just got MiSter and am completely green (which is somewhat true for HDMI, I think I've only had it connected once like that in 1.5 years I have this box, and that was only for 5 minutes to check something).And be sure to use integer scaling. The 10bit coefficient filters added earlier this week should help with non-integer scaling and scanlines but it has to be implemented on each core individually.
I can go and load a preset, but if there's anything else that needs to be changed - even something really trivial - I'd need to be told. Imagine you're writing a wiki step-by-step guide...
CRT SCR$ Project - building a collection of high-quality photos of CRT displays
CRT ART Books - retro-gaming books with authentic CRT photos
- Sigismond0
- Posts: 339
- Joined: Mon May 25, 2020 2:21 am
- Has thanked: 1 time
- Been thanked: 66 times
Re: Scanlines while scrolling
MiSTer uses whatever resolution you set in your mister.ini file. If you've never touched that, it's probably defaulting to 720p.
- Chris23235
- Top Contributor
- Posts: 982
- Joined: Sun May 24, 2020 8:45 pm
- Has thanked: 127 times
- Been thanked: 197 times
Re: Scanlines while scrolling
If you have an unmodified MiSTer.ini file your MiSTer will output 1280*720@60Hz which is not bad as it is exactly 50% of the resolution of your display in both directions so on your Monitor every pixel is simply doubled horizontally and vertically.
To change the resolution your MiSTer displays the screen change:
Code: Select all
video_mode=0
Code: Select all
video_mode=12
Integer scaling: This means the scaling of the simulated system's resolution to the MiSTer resolution. Most 8 and 16 Bit systems output something like 320*240 this has to be scaled to the output resolution and it looks best if the output is something like 2 or 3 or 4 (integer) times of the original in opposition to something like 1.25, 2.7 or 3.4 (non integer) of the original resolution because with integer scaling the single pixel displayed on the original system always occupies the same ammount of pixels on your screen instead varying which would leads e.g. to uneven letters in text and swimming pixels in scrolling images. As the scanlines are added to the picture before scaling non-integer scaling means uneven scanlines.
As in some resolutions scaling leads to a smaller picture it is helpful to use resolutions that scale well integerwise for the system in order to get a fullscreen picutre. You can set the scaling in every core in the video settings. Try the different options to see what works best for you and the resolution the core runs in. Note that you can also set the resolution for every core in the ini if you want.
One last thing, if you never edited your MiSTer.ini you are running your MiSTer with the option
Code: Select all
vsync_adjust=0
Code: Select all
vsync_adjust=2
-
- Top Contributor
- Posts: 1441
- Joined: Mon May 25, 2020 7:54 pm
- Has thanked: 496 times
- Been thanked: 467 times
Re: Scanlines while scrolling
I'd maybe give it a quick go if you could give me a ready-made example for just one core, eg SNES or some such, ie what resolution/integer should I use for my particular scenario.
Going back to the topic at hand, seeing as different resolutions & integers are involved and thus there's even more variables which can be breaking things, OP'd definitely need to post their settings to establish a common ground first for this discussion to make sense.
CRT SCR$ Project - building a collection of high-quality photos of CRT displays
CRT ART Books - retro-gaming books with authentic CRT photos
- Chris23235
- Top Contributor
- Posts: 982
- Joined: Sun May 24, 2020 8:45 pm
- Has thanked: 127 times
- Been thanked: 197 times
Re: Scanlines while scrolling
Re: Scanlines while scrolling
It could really be the interpolation filters. But without the filters the picture does not look that nice. I wonder if the filters could be programmed that way that they do not interfere with the scanlines.
- Chris23235
- Top Contributor
- Posts: 982
- Joined: Sun May 24, 2020 8:45 pm
- Has thanked: 127 times
- Been thanked: 197 times
Re: Scanlines while scrolling
Can you tell us which filter settings you use and which resolution?clarkkent wrote: ↑Fri Feb 25, 2022 9:33 pm The original topic was the disappearing scanlines while scrolling. And yes, they only disappeare when scrolling vertically.
It could really be the interpolation filters. But without the filters the picture does not look that nice. I wonder if the filters could be programmed that way that they do not interfere with the scanlines.
- Sigismond0
- Posts: 339
- Joined: Mon May 25, 2020 2:21 am
- Has thanked: 1 time
- Been thanked: 66 times
Re: Scanlines while scrolling
And if this doesn't work (TV displays nothing) just set video_mode-8 for 1080p for the highest standard resolution supported by MiSTer. That's what I have to use on my 4K display, and scanlines look great.Chris23235 wrote: ↑Fri Feb 25, 2022 8:11 pm Use video_mode=12 and load the preset for SNES. Switch the different integer settings to see what you find works best.
It's two quick tests, and even if you don't end up using scanlines you'll have much better looking output overall.
- Chris23235
- Top Contributor
- Posts: 982
- Joined: Sun May 24, 2020 8:45 pm
- Has thanked: 127 times
- Been thanked: 197 times
Re: Scanlines while scrolling
Try to use the scanline filters they work much better then the regular scanlines.
-
- Top Contributor
- Posts: 1018
- Joined: Thu Dec 10, 2020 5:44 pm
- Has thanked: 315 times
- Been thanked: 238 times
Re: Scanlines while scrolling
- aberu
- Core Developer
- Posts: 1192
- Joined: Tue Jun 09, 2020 8:34 pm
- Location: Longmont, CO
- Has thanked: 247 times
- Been thanked: 411 times
- Contact:
Re: Scanlines while scrolling
https://youtu.be/sLEBzXnyon8
It's an illusion just like @Kitrinx said. You can change the way your tv handles it, but you can't change how your eyes and brain work.
- SuperBabyHix
- Posts: 152
- Joined: Sun May 24, 2020 8:26 pm
- Has thanked: 45 times
- Been thanked: 36 times
Re: Scanlines while scrolling
I personally always saw the black lines disappear even on CRT's. To my eyes it didn't so much look like they completely disappeared, but more that it took on the appearance of 480i content. I even remember the first time I noticed it when using a crt filter on an emulator thinking, oh it looks just like vertical scrolling on a real CRT.
Re: Scanlines while scrolling
Yes, this is a perfect description of how 240p, vertically scrolling MiSTer content looks to me on my consumer CRT. And it's been long enough since I've played my real 240p hardware on it that I wasn't sure if the 480i-lookin', scanlines-going-swimmy, pixels-gettin'-unpleasantly-chunkier effect on vertical moving sprites/backgrounds was correct, or an artifact of MiSTer.SuperBabyHix wrote: ↑Sat Feb 26, 2022 4:07 am I personally always saw the black lines disappear even on CRT's. To my eyes it didn't so much look like they completely disappeared, but more that it took on the appearance of 480i content. I even remember the first time I noticed it when using a crt filter on an emulator thinking, oh it looks just like vertical scrolling on a real CRT.
If 240p on CRTs has always been like this, it surprises me that I never really noticed until now! (And will just have to get used to it. ;)
- SuperBabyHix
- Posts: 152
- Joined: Sun May 24, 2020 8:26 pm
- Has thanked: 45 times
- Been thanked: 36 times
Re: Scanlines while scrolling
It was interesting to play some of the vertical shooters on Genesis that had static side bars. The side bars maintained the scanline look while the scrolling play fields looked interlaced.