English Amiga Board

English Amiga Board (https://eab.abime.net/index.php)
-   support.FS-UAE (https://eab.abime.net/forumdisplay.php?f=122)
-   -   xBRZ... shaders for FS-UAE (https://eab.abime.net/showthread.php?t=87030)

guest.r 29 June 2017 14:21

2 Attachment(s)
As CRT shaders seem to be well used with UAE emulators i coded one myself and it looks quite nice.
Feedback is welcome, maybe it can be made even better. :)

Edit: new versions here (1.7.2017)

Retro-Nerd 29 June 2017 15:07

Looks quite nice in lores. Is there are value which could make the colors more vibrant/more saturated? :great

crt-guest (lores)

https://abload.de/thumb/ruffntumble-real-170619rn5.png


Frode's non-linear scanlines CRT shader (vibrant colors - hires)

https://abload.de/thumb/ruffntumblefs-usetkqmz.png

One thing though is annoying with lores shaders. All the interlace (e.g. Lionheart game menu) stuff looks awful then. I guess there is no way around to fix this?

guest.r 29 June 2017 16:57

Thanks for very constructive comments!
I added an option to set the saturation via a #define parameter and increased it by default. Should look more authentic now.

The best option to deal with games which require hi-res/double line mode is a special version.

I guess seasoned users will have no problems to use it correctly.:)

Edit: download new version from the top of the page.

Retro-Nerd 29 June 2017 17:23

Great. Colours looks good enough to me now. The hires shader looks awesome too. The last extra-mile would be a non-linear scanline setting. Real scanlines are nearly non-existent on brighter colours. Check the screenshot on post 22 again.

One thing i noticed: In some games with single-coloured backgrounds (like the Turrican blue sky) you can see that some scanlines looks darker than others. But only during the horizontal/vertical scrolling. Thought first it had something to do with the scaling. It distracts a bit. Is this somehow fixable? Or it this a graphics driver issue on my side?

edit: sometimes it's visible in static screens too.

https://abload.de/thumb/turrican-real-1706291s0o88.png

guest.r 29 June 2017 18:27

Sometimes it can become apparent with non-integer scaling, especially with harder scanlines. I uploaded new versions which use some softer lines.

The solution for now is to use integer scaling. The problem is also that brighter areas utilize more narrow scanlines. If this is dropped then scanlines are also more even.

To use integer scaling, add following lines to custom config window (if anyone has problems figuring it out):

Code:

scale_x = 6.0
scale_y = 5.0

The scaling numbers should reflect users game/screen resolution ofc..

Retro-Nerd 29 June 2017 18:40

Quote:

Since you use 1920×1080, one good alternative is to use a new zoom in the recent development version: 704×540. 1080 / 540 = 2, so this will get sharp pixels in the vertical direction. If you then also use the keep_aspect option, the pixels will be scaled by the same factor horizontally so you’ll end up with a sharp 1408×1080 output centered on your 1920×1080 screen.

TL;DR: a good choice for 1080P: zoom = 704x540, keep_aspect = 1
Ah, found it in the FS-UAE site document comments. For 1080p a 704x540 Zoom works fine with you shaders. :great

https://abload.de/thumb/turrican-real-1706291coqwd.png

guest.r 29 June 2017 20:20

Thanks for testing it. :)
I am still with 2.6.2, therefore integer scaling worked for me.
Nevertheless, FS-UAE can be very nerdy so i guess the users will cope with it np.

Also uploaded an improved version, which mitigates non-integer scaling a bit more.

Retro-Nerd 29 June 2017 20:36

Yeah, looks a bit better in non-integer scaling but not perfect like the 704x540 Zoom. I'm pretty satisfied with it now. Could you have a look at the non-linear scanlines algorithm that Frode used for some of his CRT shaders? :)

nobody 29 June 2017 22:23

Judging from screenshots that I see, it's good but not perfect. It doesn't take into account the lightness of the pixel to make scanlines smaller or nearly visible there. And the aperture grille is not so visible in reality.

It looks more like an " lcd screen" filter now. Like those screens of gba, Atari lynx etc.

Retro-Nerd 29 June 2017 22:56

The latest update looks a bit better but imo the scanline visibilty on e.g. white is still too strong. Any chance to tweak this more? :)

nobody 29 June 2017 23:10

Found this photo that is very close to what it really looks like.

http://www.sixfortyfive.com/temp/xrgb3genesis2.jpg

Retro-Nerd 29 June 2017 23:18

Well, it depends on the TV/Monitor though. Some have really strong visible scanlines, even on brighter colors.

Frode vs Guest current

http://screenshotcomparison.com/comparison/214071

guest.r 29 June 2017 23:42

1 Attachment(s)
I managed to fix non-integer scanlines, saves a lot of tinkering with code or settings.

The beam width with brighter colors was also altered a bit but if you guys want it more apparent it's cool with me also.

Anyway, here is the newest version...(test version)

Retro-Nerd 29 June 2017 23:48

Mmh, this one doesn't work for me. Only a black screen (while the game works in background as it seems).

guest.r 30 June 2017 00:14

OK i found the bug, it was fixed automatically with my compiler.
I updated the shader above.

Retro-Nerd 30 June 2017 00:23

It works but it's now a completely different scanline look on the brighter colors. Looks like dots now. Not bad but i think i would prefer a very soft full scanline. :)

guest.r 30 June 2017 00:48

OK, no problem, i have updated the shader.
You can edit the values:

Code:

#define beam_min  1.4          // dark area beam min - wide
#define beam_max  2.1  // bright area beam max - narrow

to find the best combo.

Retro-Nerd 30 June 2017 00:55

Ah, thanks. I will tinker with it later. :great

edit: Ok, tried many value combos but nothing looks right enough to me. I think the older approach looks better (with less strong scanlines on brighter colours if possible somehow).

guest.r 30 June 2017 15:11

I've uploaded new versions on the top of the page. Now the "bright thinning" works better, but i didn't want the scanlines to dissolve completely.

Retro-Nerd 30 June 2017 16:08

Mmh, looks still the same to me. More like dots in a line, instead of a weak visible scanline (fully consistent). Or does the value combo works better here? Left it on default for the screenshots.

https://abload.de/thumb/turrican-real-17063012yxby.png

https://abload.de/img/turrican200nalef.png


All times are GMT +2. The time now is 03:58.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.

Page generated in 0.17136 seconds with 11 queries