RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    Updated crt-pi shader

    Scheduled Pinned Locked Moved Help and Support
    72 Posts 16 Posters 50.7k 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.
    • caver01C
      caver01 @davej
      last edited by

      @davej Thanks Davej and Bravo! I am really liking the results.

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

      1 Reply Last reply Reply Quote 0
      • FloobF
        Floob @davej
        last edited by

        @davej Thanks for the update!

        I guess the best way to apply these would be on a per rom cfg basis? (unless the vertical and horizontal games were split into their own folder/emulator settings)
        If thats the case, a script could potentially parse a mame .dat file that contained the rom orientation then output a .cfg file with the correct .glslp file referenced for each game?

        Please read the Docs before asking a new question.
        RetroPie Help Guides: https://goo.gl/3gcNsT

        dankcushionsD davejD 2 Replies Last reply Reply Quote 0
        • dankcushionsD
          dankcushions Global Moderator @Floob
          last edited by

          @Floob said in Updated crt-pi shader:

          @davej Thanks for the update!

          I guess the best way to apply these would be on a per rom cfg basis? (unless the vertical and horizontal games were split into their own folder/emulator settings)

          this is what i've been doing! eg:
          donpachi.zip.cfg

          video_shader = "/opt/retropie/emulators/retroarch/shader/crt-pi-vertical.glslp"
          video_shader_enable = "true"
          
          # Never save-on-exit after an override config
          # or the override will make into the core config.
          config_save_on_exit = false
          

          If thats the case, a script could potentially parse a mame .dat file that contained the rom orientation then output a .cfg file with the correct .glslp file referenced for each game?

          great idea! i guess you could build a specific dat/gamelist using romlister, of all vertical games. i don't think the dats themselves hold information about the screen orientation (?)

          i'll update the common-shaders repo with the new shaders soon. i have a few ideas for variants that i'm bouncing around the other thread.

          FloobF 1 Reply Last reply Reply Quote 0
          • FloobF
            Floob @dankcushions
            last edited by Floob

            @dankcushions Thats a good point - yes, I dont think it is in the mame dat.
            From memory I think romlister has a very flexible .bat editor - so it could generate these .cfg itself!

            It is bugging me I cant remember exactly how romlister/mame etc.. know which game has what screen orientation.

            Please read the Docs before asking a new question.
            RetroPie Help Guides: https://goo.gl/3gcNsT

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

              i think it's in the various files you merge in to the dat via romlister, to add metadata to help searching. eg controls.dat/xml has a 'cocktail' field, which seems to be set to true for vertical games: http://controls.arcadecontrols.com/

              however, the file doesn't seem to be complete. eg, i couldn't find donpachi listed at all, which is definitely a vertical game. might be a start, though!

              1 Reply Last reply Reply Quote 0
              • davejD
                davej @Floob
                last edited by

                @Floob said in Updated crt-pi shader:

                I guess the best way to apply these would be on a per rom cfg basis? (unless the vertical and horizontal games were split into their own folder/emulator settings)
                If thats the case, a script could potentially parse a mame .dat file that contained the rom orientation then output a .cfg file with the correct .glslp file referenced for each game?

                If you are going to implement this keep in mind that people who have vertically oriented screens need the opposite shaders to those who have horizontal screens. An option to use the opposite shaders would be needed for those people.

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

                  the shaders in retropie have been updated to these latest versions. here's some pretty screenshots:

                  crt-pi
                  alt text

                  crt-pi-curvature
                  alt text

                  crt-pi-vertical
                  alt text

                  crt-pi-curvature-vertical
                  alt text

                  reinstall retroarch via retropie-setup to get the new ones.

                  PS @davej - i added pre-modified curvature versions with the mask + curve + scanlines turned on. hope that's ok? can always remove if not :)

                  1 Reply Last reply Reply Quote 2
                  • RiverstormR
                    Riverstorm
                    last edited by

                    Just to clarify will the new shaders make their way into the RetroPie distribution package or will we need to download and manually install them from here on out?

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

                      @Riverstorm said in Updated crt-pi shader:

                      Just to clarify will the new shaders make their way into the RetroPie distribution package or will we need to download and manually install them from here on out?

                      they are in. a reinstall of retroarch would get them, or i presume the just released version of retropie :)

                      RiverstormR 1 Reply Last reply Reply Quote 0
                      • RiverstormR
                        Riverstorm @dankcushions
                        last edited by

                        @dankcushions said in Updated crt-pi shader:

                        @Riverstorm said in Updated crt-pi shader:

                        Just to clarify will the new shaders make their way into the RetroPie distribution package or will we need to download and manually install them from here on out?

                        they are in. a reinstall of retroarch would get them, or i presume the just released version of retropie :)

                        Oh, thanks Dank, I didn't see the new release. This will give me something to setup over the holiday weekend! ;)

                        BuZzB 1 Reply Last reply Reply Quote 0
                        • BuZzB
                          BuZz administrators @Riverstorm
                          last edited by

                          @Riverstorm would need to install retroarch from source if the shader was updated after the last binaries were built. I will split out the overlays and shaders for retropie 4.0 so they can be updated independently

                          To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

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

                            oh, careful installing retroarch from source as it currently breaks mame2003! i'm trying to fix that at the moment.. hopefully tomorrow

                            1 Reply Last reply Reply Quote 1
                            • RiverstormR
                              Riverstorm @BuZz
                              last edited by

                              @BuZz said in Updated crt-pi shader:

                              @Riverstorm would need to install retroarch from source if the shader was updated after the last binaries were built. I will split out the overlays and shaders for retropie 4.0 so they can be updated independently

                              Thanks Buzz, shaders made me a Libretro core convert. It's like art in motion on my screen, simply beautiful! Have a great weekend! ;)

                              @dankcushions Thanks Dank for the heads up!

                              1 Reply Last reply Reply Quote 0
                              • RiverstormR
                                Riverstorm
                                last edited by

                                Is anyone using the shader with Atari 2600 (lr-stella) games? It looks great to me with MAME, FBA, NES and SNES but the Atari seems off or touch to blurry. I've been using River Raid as my test game and looking at the word FUEL and the text on the bottom it looks like it goes from blue to white with slight lighter shading until it soft blurs out to much and not really artifact-ish. Could the rendering engine of Stella be creating a different effect with the Shader?

                                davejD 1 Reply Last reply Reply Quote 0
                                • G
                                  gt4chuck
                                  last edited by gt4chuck

                                  @Riverstorm is your mask type set to 0 in the config file?

                                  1 Reply Last reply Reply Quote 0
                                  • davejD
                                    davej @Riverstorm
                                    last edited by

                                    @Riverstorm The Atari 2600 has a very low horizontal resolution. By default, crt-pi just uses linear filtering horizontally - which, in combination with the low resolution, is what is causing it to look blurry. You can make it sharper by uncommenting the SHARPER line so it reads.

                                    #define SHARPER

                                    RiverstormR 1 Reply Last reply Reply Quote 0
                                    • RiverstormR
                                      Riverstorm @davej
                                      last edited by

                                      @davej said in Updated crt-pi shader:

                                      @Riverstorm The Atari 2600 has a very low horizontal resolution. By default, crt-pi just uses linear filtering horizontally - which, in combination with the low resolution, is what is causing it to look blurry. You can make it sharper by uncommenting the SHARPER line so it reads.

                                      #define SHARPER

                                      Perfect! That was the ticket! Is it best to duplicate the files to accommodate the Atari Shader? I duplicated crt-pi.glslp and crt-pi.glsl adding -atari to the name. Then modified the shader 0 line to point to the newly named glsl while uncommenting #define SHARPER or how are people doing per emulator tweaks.

                                      Should I do anything with the mask or leave as is?

                                      davejD 1 Reply Last reply Reply Quote 0
                                      • davejD
                                        davej @Riverstorm
                                        last edited by davej

                                        @Riverstorm said in Updated crt-pi shader:

                                        Perfect! That was the ticket! Is it best to duplicate the files to accommodate the Atari Shader? I duplicated crt-pi.glslp and crt-pi.glsl adding -atari to the name. Then modified the shader 0 line to point to the newly named glsl while uncommenting #define SHARPER or how are people doing per emulator tweaks.

                                        That sounds a reasonable approach. I tend to use just one shader unless I'm working on them so I'm not the best person to ask.

                                        Should I do anything with the mask or leave as is?

                                        It's pretty much an aesthetic decision as to which mask to use so whichever you think looks best.

                                        RiverstormR 1 Reply Last reply Reply Quote 0
                                        • RiverstormR
                                          Riverstorm @davej
                                          last edited by

                                          @davej said in Updated crt-pi shader:

                                          That sounds a reasonable approach. I tend to use just one shader unless I'm working on them so I'm not the best person to ask.

                                          Thanks Dave, I didn't want to mess up how MAME and other emulators looked so I duplicated it with the tweak for Atari but out of curiosity would leaving #define SHARPER on effect how the other emulators look or would they still be the same?

                                          davejD 1 Reply Last reply Reply Quote 0
                                          • davejD
                                            davej @Riverstorm
                                            last edited by

                                            @Riverstorm said in Updated crt-pi shader:

                                            Thanks Dave, I didn't want to mess up how MAME and other emulators looked so I duplicated it with the tweak for Atari but out of curiosity would leaving #define SHARPER on effect how the other emulators look or would they still be the same?

                                            Images will look a bit more pixelated with SHARPER enabled. The reasons for having the default as linear filtering is a) it's needed to get 1080P @ 60Hz on a Pi1/Pi2 (I don't know about a Pi3) and b) I think it looks better for games that try to create smooth transitions with limited palettes.

                                            Ultimately, it's down to personal preference.

                                            The image below shows some example differences. Default on the left, sharper on the right.
                                            crt-pi default/sharper comparison

                                            RiverstormR 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.