Scanlines scaling filter in GTK Snes9x port

This is for people involved in the developement of Snes9x, or SNES emulators in general.
BUG REPORTS BELONG IN TECH SUPPORT/BUG TRACKING!
Post Reply
mark_k
Snes9x White Belt
Posts: 8
Joined: Sun Mar 23, 2014 12:51 pm

Scanlines scaling filter in GTK Snes9x port

Post by mark_k »

I've been experimenting with the scanlines scaling filter in the Snes 9x GTK port (on Linux). It's pretty strange and I'm wondering what the advantage of it is supposed to be.

In the Windows port there's a simple scanlines output mode which just makes every other row black. That's nice and can give a TV-like effect, at the expense of the brightness being reduced by half.

I assume the GTK port scanlines filter is intended to work around the reduced-brightness issue. However makes colours look washed-out and can cause strange graphical artifacts. In particular, white areas don't have any visible scanlines because the GTK scanlines code makes the intermediate lines white also.

Would there be any interest in my modifying the current scanlines filter to be simpler, like the Windows one except with variable intermediate line brightness? (You could have intermediate lines at 50% brightness so as not to reduce the overall brightness as much.)
Attachments
Super Mario All-Stars, scanlines 25%
Super Mario All-Stars, scanlines 25%
SMAllStars_Scanlines25_pngout.png (51.19 KiB) Viewed 26413 times
Super Mario All-Stars, scanlines 100%
Super Mario All-Stars, scanlines 100%
SMAllStars_Scanlines100_pngout.png (38.48 KiB) Viewed 26413 times
Super Mario All-Stars, no scanlines
Super Mario All-Stars, no scanlines
SMAllStars_NoScanlines_pngout.png (29.39 KiB) Viewed 26413 times
mark_k
Snes9x White Belt
Posts: 8
Joined: Sun Mar 23, 2014 12:51 pm

Re: Scanlines scaling filter in GTK Snes9x port

Post by mark_k »

Notice the artifacts with 100% scanlines vs no scanline effect. See the top of the larger BITMAP BROTHERS text.
Attachments
Bitmap Bros logo with 100% scanlines
Bitmap Bros logo with 100% scanlines
GodsBitmapBrosScanlines100.png (14.32 KiB) Viewed 26412 times
Bitmap Bros logo with no scanlines
Bitmap Bros logo with no scanlines
GodsBitmapBrosNoScanlines.png (12.84 KiB) Viewed 26412 times
WalMartCartPusher
Snes9x White Belt
Posts: 32
Joined: Thu May 02, 2013 2:33 pm

Re: Scanlines scaling filter in GTK Snes9x port

Post by WalMartCartPusher »

This can be done with using multiple shader passes in Windows as well ;-)
Post Reply