RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login

    New CRT/LCD shaders for RPI3. They run at 60fps at higher resolutions and are configurable.

    Scheduled Pinned Locked Moved General Discussion and Gaming
    crtpixel shaderslcd
    75 Posts 26 Posters 45.2k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • robertvb83R
      robertvb83
      last edited by

      with the shaders everything looks really nice but i have a problem as soon as i apply the zfast curvature vertical shader. The image becomes very washy... very very different sharpness compared to the standard without curvature! Anyone else observed this?

      My full size arcade cabinet Robotron vs. Octolyzer

      ClydeC 1 Reply Last reply Reply Quote 0
      • ClydeC
        Clyde @robertvb83
        last edited by Clyde

        @robertvb83 I can't verify this on my system with zfast_crt_curve at 1600x1200. Which screen resolution are you using? Did you try to change the shader parameters? (Although I don't remember any that would make the picture more or less blurry.)

        robertvb83R 1 Reply Last reply Reply Quote 0
        • thelostsoulT
          thelostsoul @NightRune
          last edited by thelostsoul

          @nightrune said in New CRT/LCD shaders for RPI3. They run at 60fps at higher resolutions and are configurable.:

          Have tried this on 2 different Raspberry Pis with Retropie 4.3.15 @1080p

          Any ideas?

          You could decrease the resolution to 720p. But I read, those shaders are made for 1080p and in my experience, the result isnt't perfect then. But I am not 100% to which resolution it is meant to. There are 2 different video modes you can select from, if you go to run command by pressing button while starting a game:

          1. Select default video mode for emulator
            I think, this one is for output mode for displaying the final image and for compatibility with the monitor or tv. I think, this one don't make much difference in performance, its more like specifying the format. This way your monitor or tv don't need to rescale the image format to native 1080p.

          2. Select RetroArch render res for emulator
            This one is actually what matters I think. Changing the resolution should have a big impact on performance. This is to what my understand is, the pixel work done before its going to output.

          As said above, I am not entirely sure if I am correct here and how the shaders correlate to each of these settings and where they apply on the pipeline. You could reduce render resolution to 720p and chose default video mode to 1080p. I don't know how this looks like and how it performs. I moved to a real CRT pc monitor and set both settings to 640*480px (480p) (and still use some sort of filters) and overclocked it. So, I can't verify anymore. Just wanted bring up this for discussing.

          You don't want overclock right? Maybe it would help a little.

          📜 RE/SET: 100 SNES Games for your RetroPie, 🎁 Share your hidden gems and insider tips

          1 Reply Last reply Reply Quote 0
          • ProxyCellP
            ProxyCell
            last edited by

            the GBA gamma settings are a nice touch - are they enabled for ALL systems which would use the zfast_LCD? How would I disable this option?

            RPi3b+ - No overclock
            RetroPie - latest from Github, as always
            2x SF30 Pro 8Bitdo controllers

            1 Reply Last reply Reply Quote 0
            • robertvb83R
              robertvb83 @Clyde
              last edited by

              @clyde maybe i missed something completely with the resolution... i use 1280*1024 4:3 Monitor.
              Only with this curved version of the shader i have this blurryness... Is this shader only for higher res?

              My full size arcade cabinet Robotron vs. Octolyzer

              caver01C 1 Reply Last reply Reply Quote 0
              • caver01C
                caver01 @robertvb83
                last edited by

                @robertvb83 If nobody gets to it before I do, I can give a look at curved vs. non-curved on my 1280x1024 display. I have been running the curved version since I switched to this shader.

                One thing I will say is that I will not be surprised if I confirm that curved gets a little blurry. One of the problems with curvature at lower resolutions is that sharp stair-stepping as the lines curve will result in severe moire patterns. That problem can get pretty bad for some games using the CRT-PI shader at our resolution, but it is noticeably improved with zfast. I now wonder if the smoothing you are noticing is perhaps the silver lining.

                Anyway, I will try to check on my system to see if I can confirm what you are seeing.

                My 4-player cocktail style cabinet built as a custom "roadcase"

                robertvb83R 1 Reply Last reply Reply Quote 0
                • robertvb83R
                  robertvb83 @caver01
                  last edited by

                  @caver01 i tried this in 1942 and found it to be terribly blurry with zfast_curvature.

                  My full size arcade cabinet Robotron vs. Octolyzer

                  caver01C 1 Reply Last reply Reply Quote 0
                  • caver01C
                    caver01 @robertvb83
                    last edited by

                    @robertvb83 Here are two screenshots, paused at about the same place:

                    WITH CURVATURE:
                    0_1525744163711_IMG_4985.jpg

                    WITHOUT CURVATURE:
                    0_1525744214479_IMG_4988.jpg

                    It definitely gets a little softer with curvature, but for me it is not horrible at all. In fact, it is quite acceptable for what you get I think.

                    Now, I run in fullscreen 'tate' mode, so if I ran this game rotated, it being vertical, the effect would probably be worse as there would be few pixels available to create the scanlines.

                    My 4-player cocktail style cabinet built as a custom "roadcase"

                    caver01C 1 Reply Last reply Reply Quote 0
                    • caver01C
                      caver01 @caver01
                      last edited by

                      @caver01 Here it is again, CURVE/No CURVE:
                      0_1525744519938_IMG_4985.jpg

                      My 4-player cocktail style cabinet built as a custom "roadcase"

                      robertvb83R 2 Replies Last reply Reply Quote 0
                      • B
                        Beldar
                        last edited by

                        I just wanted to drop a thank you to everyone making these rather nice shaders for the community. They are appreciated.

                        I wish the authors of SNES9x and PSXrearmed would incorporate the Component/SVideo/RGB shaders into the emulators similarly to the NES and Sega emulators. Between those and these scanline shaders I'm like a pig in 8-bit poo.

                        dankcushionsD 1 Reply Last reply Reply Quote 0
                        • dankcushionsD
                          dankcushions Global Moderator @Beldar
                          last edited by dankcushions

                          @beldar said in New CRT/LCD shaders for RPI3. They run at 60fps at higher resolutions and are configurable.:

                          I wish the authors of SNES9x and PSXrearmed would incorporate the Component/SVideo/RGB shaders into the emulators similarly to the NES and Sega emulators

                          ? shaders can be used any libretro emulator. are you talking about colour palettes?

                          thelostsoulT B 2 Replies Last reply Reply Quote 0
                          • thelostsoulT
                            thelostsoul @dankcushions
                            last edited by

                            @dankcushions How I undestood him is, that the original developers should integrate shaders like libreto do.

                            📜 RE/SET: 100 SNES Games for your RetroPie, 🎁 Share your hidden gems and insider tips

                            1 Reply Last reply Reply Quote 0
                            • robertvb83R
                              robertvb83 @caver01
                              last edited by robertvb83

                              @caver01 cool, thanks for the pics. that looks good to me. in my case it is much more blurry i think. i am not at home but will try do make the comparison next week

                              could it have something to do with the custom resolution of crt shader still in use?

                              My full size arcade cabinet Robotron vs. Octolyzer

                              caver01C 1 Reply Last reply Reply Quote 0
                              • caver01C
                                caver01 @robertvb83
                                last edited by

                                @robertvb83 I am not sure what you mean by the custom resolution. I know CRT-PI and zfast are designed to look best on HDTV resolutions, but I am running 1280x1024 and they look great. The more pixels you have, likely the more convincing the effect will be.

                                Since I can run vertical games in rotated mode, they still take up the whole screen on my system (1024x1280) where as, if I did not have cocktail controls on the vertical sides of my display, like, say I was using a bartop cabinet with the LCD mounted in landscape orientation, I would have to run 1941 in vertical mode centered in my display and it would only be using a maximum resolution of 768x1024. In other words, I would be losing 40% of my pixels. Yet, even at this resolution we have enough to generate convincing scanlines (and we would need to use the VERTICAL version of the shader).

                                I would love to see some screenshots of yours for comparison.

                                My 4-player cocktail style cabinet built as a custom "roadcase"

                                robertvb83R 1 Reply Last reply Reply Quote 0
                                • robertvb83R
                                  robertvb83 @caver01
                                  last edited by

                                  @caver01 i mean i use these cfg files from.
                                  here
                                  it applies rom specific custom resolution. means integer scaling only for x axis with full height, to optimize picture qiality. not sure if this has a negative effect if curved shaderd are used because cfgs are only required for non curved shaders according to this posting

                                  i use a normal 4:3 monitor in my upright cabinet , so only part of the screen is used in vertical games.

                                  My full size arcade cabinet Robotron vs. Octolyzer

                                  caver01C 1 Reply Last reply Reply Quote 0
                                  • B
                                    Beldar @dankcushions
                                    last edited by

                                    @dankcushions I'm not talking about color palettes, but those are cool too. Some of the lr cores have what it calls "blargs" (or something similar) shaders that add distortion as if you were playing via composite, s-video, or component video. I would assume they are they are just shaders built into the core, but feel free to educate me if I am incorrect.

                                    1 Reply Last reply Reply Quote 0
                                    • caver01C
                                      caver01 @robertvb83
                                      last edited by caver01

                                      @robertvb83 Of course. I don't use the configs, as they really make the most difference when running vertical games on a horizontal display (I run in rotated mode fullscreen). I know it can still help on all games but since I started using zfast, the rainbow artifacts and moire patterns aren't as bad.

                                      My 4-player cocktail style cabinet built as a custom "roadcase"

                                      1 Reply Last reply Reply Quote 0
                                      • R
                                        RedToasty
                                        last edited by

                                        I'm not sure if this will be of any use to anyone, I've been looking for a quick nice looking crt/lcd shader for a while for use in a Unity project, I ported a couple of these across to the Unity CG shader setup.

                                        https://www.dropbox.com/s/7s33ewmzdzf1741/zfast_unity.zip?dl=0

                                        Feel free to grab, if these are of any use to anyone else scouring the net looking for the same :) They run fantastically on phone, I avoided anything with branching and may have been a bit OTT with fixed in the fragment shader.

                                        1 Reply Last reply Reply Quote 0
                                        • T
                                          tekn0
                                          last edited by

                                          I'm really enjoying this shader after some setting tweaks. Thank you for sharing them!

                                          1 Reply Last reply Reply Quote 0
                                          • robertvb83R
                                            robertvb83 @caver01
                                            last edited by

                                            @caver01 sorry for the delay... here come my screenshots. there is only too much blur with the curved version of zfast... all others are OK

                                            zfast
                                            0_1527410745618_zfast.jpg

                                            zfast curved
                                            0_1527410759495_zfast_curve.jpg

                                            crt_pi curved
                                            0_1527410775607_crt_pi_curvature.jpg

                                            My full size arcade cabinet Robotron vs. Octolyzer

                                            caver01C 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

                                            Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.