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

    Using MAME Overlays/Bezels and shaders with RetroArch in RetroPie

    Scheduled Pinned Locked Moved General Discussion and Gaming
    124 Posts 29 Posters 130.1k 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.
    • pjftP
      pjft @Manguan
      last edited by

      @Manguan

      Ah, got it.

      Unsure about how to do exactly that in Retroarch.

      What you may try is what I recommended earlier on scaling the overlay accordingly. I honestly don't know how it's currently working on your resolution (I'm assuming it doesn't take up the entire screen real estate, but rather has scaled proportionally to its original size, restricted by your screen's resolution).

      Open the Retroarch menu, > Settings/Options > Display Overlays

      Then turn on/off the option that shows/hides the overlay in the menu so that you can see it.

      Then change the scaling factor (which is currently at 1.00x I imagine) until it stretches to fit your game area as intended.

      I don't recall the exact option names, but hopefully this helps.

      1 Reply Last reply Reply Quote 0
      • M
        Manguan
        last edited by

        Not exactly. This is my problem... 0_1478285013641_screen.jpg

        pjftP 1 Reply Last reply Reply Quote 0
        • pjftP
          pjft @Manguan
          last edited by pjft

          @Manguan

          That's... weird. When the overlay is not showing, is the game screen not centered?

          I suspect that may be because of you using the current config files which are configured to screen resolutions of 1080p. It seems there's an offset to the play area that would be the right one for those screens.

          You may need to open the config file and figure out what the right numbers would be for that, and multiply by that formula for the X and Y coordinates - and then maybe apply some scaling.

          For now, if you want to test it out manually in concept, turn on the overlay in the menu, and then go to Settings/Options > Video

          There should be something with Viewport X and Y. Note down those two values.
          Then Reduce X until it looks fine - the viewport (play area) should start to move to the left. Take note of the new number when it looks fine (to compare with the original one, and see what a formula might be to convert between the resolutions).

          See if it needs to be tweaked on the Y axis as well. Do the same - take note.

          See if the overlay is hiding any of the play area, and if so, now go scale it. Take note of the new number.

          In this particular case, I suspect the viewport X needs to be subtracted by either 120 or 240, and Y by 15 or 30 (depends on how it actually works).

          You may try to adapt the previous script shared by Rion with that formula - instead of multiplying, subtracting - to batch fix that.

          You may need to add the line to scale the overlay, if needed. I don't recall the exact parameter, but you may be able to get it from one of the original retroarch.cfg files.

          Have a great weekend!

          1 Reply Last reply Reply Quote 1
          • K
            krull
            last edited by

            I hope somebody can answer some noob questions.

            Ive got the program up and running, and everything works great.....except no overlays on the N64 or Mame show up. Any obvious things to look into?

            Any easy way to add overlay files to the manager?

            Thx

            1 Reply Last reply Reply Quote 0
            • C
              clintmo @Rion
              last edited by

              @Rion Did you get around to completing this? The resolution of my monitor is 1366x768 and I have successfully changed the resolution in all .zip.cfg files except for the ones that don't contain this information.

              RionR 1 Reply Last reply Reply Quote 0
              • RionR
                Rion @clintmo
                last edited by

                @clintmo No sorry kind of forgot about it. But if you start up the game that don't have these settings and follow my post here you can manually do it yourself if you hook up your pi to a 1080p source or change the resolution of your monitor.

                Maybe the bug is fixed in Windows now i don't know?

                FBNeo rom filtering
                Mame2003 Arcade Bezels
                Fba Arcade Bezels
                Fba NeoGeo Bezels

                1 Reply Last reply Reply Quote 0
                • GraboidG
                  Graboid @Zigurana
                  last edited by

                  @Zigurana said in Using MAME Overlays/Bezels and shaders with RetroArch in RetroPie:

                  I finished my set of 1024x768 bezels and cfg's a while back. Just as batch crop followed by a resize action. Wrote a little script to recalculate the viewport size & position.

                  I haven't tested them all, but I am willing to share them anyways, if there is an interest.

                  Hi @Zigurana I'm just looking into this now and use a 1024x768 screen, if you could share your files that would be great. Thank you!

                  Built Space Invaders Themed Bartop - Check it out here:- https://retropie.org.uk/forum/topic/5593/space-invaders-themed-bartop-arcade-uk-completed

                  Z 1 Reply Last reply Reply Quote 1
                  • Z
                    Zigurana @Graboid
                    last edited by

                    @Graboid :
                    Hey, you can Graboid them here, or at least once it finishes uploading (~3hrs for 126MB, sigh).

                    If tetris has thought me anything, it's that errors pile up and that accomplishments dissappear.

                    GraboidG K 3 Replies Last reply Reply Quote 0
                    • GraboidG
                      Graboid @Zigurana
                      last edited by

                      @Zigurana Thank you! These are great. I can't see the invaders.png included though. Could you send this across. As my bartop is invaders themed, this would complete it! :)

                      Built Space Invaders Themed Bartop - Check it out here:- https://retropie.org.uk/forum/topic/5593/space-invaders-themed-bartop-arcade-uk-completed

                      UDb23U 1 Reply Last reply Reply Quote 0
                      • GraboidG
                        Graboid @Zigurana
                        last edited by

                        @Zigurana said in Using MAME Overlays/Bezels and shaders with RetroArch in RetroPie:

                        @Graboid :
                        Hey, you can Graboid them here, or at least once it finishes uploading (~3hrs for 126MB, sigh).

                        I modified the ones below as they were too cropped. I added some detail back in, not original's but customised for myself. I plan to do some more also, especially for the vertical games.

                        0_1487004946684_commando.png
                        0_1487004978695_centiped.png
                        0_1487004993623_zaxxon.png

                        Built Space Invaders Themed Bartop - Check it out here:- https://retropie.org.uk/forum/topic/5593/space-invaders-themed-bartop-arcade-uk-completed

                        Z 1 Reply Last reply Reply Quote 2
                        • Z
                          Zigurana @Graboid
                          last edited by

                          @Graboid nice!
                          I'll try and find the space invaders one, when I get a chance.

                          If tetris has thought me anything, it's that errors pile up and that accomplishments dissappear.

                          GraboidG 1 Reply Last reply Reply Quote 1
                          • UDb23U
                            UDb23 @Graboid
                            last edited by

                            @Graboid Here's a Space Invaders overlay (+ other classics).
                            It's intended for 1080p and maximum playable area but it shouldn't be difficult to adapt to 1024.

                            GraboidG 1 Reply Last reply Reply Quote 1
                            • GraboidG
                              Graboid @UDb23
                              last edited by

                              @UDb23 said in Using MAME Overlays/Bezels and shaders with RetroArch in RetroPie:

                              @Graboid Here's a Space Invaders overlay (+ other classics).
                              It's intended for 1080p and maximum playable area but it shouldn't be difficult to adapt to 1024.

                              Thank you! If you don't mind I'll try and convert your awesome creations to fit 4:3

                              Built Space Invaders Themed Bartop - Check it out here:- https://retropie.org.uk/forum/topic/5593/space-invaders-themed-bartop-arcade-uk-completed

                              UDb23U 1 Reply Last reply Reply Quote 1
                              • UDb23U
                                UDb23 @Graboid
                                last edited by

                                @Graboid Sure! Glad you find them useful.

                                1 Reply Last reply Reply Quote 0
                                • GraboidG
                                  Graboid @Zigurana
                                  last edited by

                                  @Zigurana Do you have a copy of the 1943.zip.cfg file that resides in the ROMS folder? Mine doesn't fit properly, mainly the top and bottom are not fitting properly.

                                  Built Space Invaders Themed Bartop - Check it out here:- https://retropie.org.uk/forum/topic/5593/space-invaders-themed-bartop-arcade-uk-completed

                                  GraboidG 1 Reply Last reply Reply Quote 0
                                  • GraboidG
                                    Graboid @Graboid
                                    last edited by

                                    @Zigurana Can you test this Donkey Kong overlay on your 4:3 screen, I want to make sure it's consistent across all 4:3 screen as I am creating my own 4:3 based on @UDb23 excellent work.

                                    How it looks on my 4:3 screen
                                    0_1487755610567_dkong photo.JPG

                                    Overlay
                                    0_1487755670813_dkong.png

                                    Built Space Invaders Themed Bartop - Check it out here:- https://retropie.org.uk/forum/topic/5593/space-invaders-themed-bartop-arcade-uk-completed

                                    1 Reply Last reply Reply Quote 3
                                    • S
                                      space invader
                                      last edited by space invader

                                      Hi!

                                      So I installed the rp-video-manager and the arcade overlays work well.

                                      Only one question, I would like to apply that but without the scratches and reflections, so could it be posible to download the artwork in psd format or whatever where I could eliminate some layers and mantain the ones I want?

                                      Many thanks for the hard work!

                                      1 Reply Last reply Reply Quote 0
                                      • J
                                        joelf
                                        last edited by joelf

                                        Hi @Floob

                                        I have a 4:3 and want to have a few for vertical games.

                                        Is there some way I can make the overlay to maintain proportions, center the image?

                                        Maybe something to do with overlay0_rect ?

                                        EDIT: yup, that was it.

                                        This looks ok on my 1280x1024 monitor:

                                         overlay0_rect = "-0.22,0,1.44,1" 
                                        

                                        That is the positioning left, top, right, bottom. note that the padding on the right should be twice the positioning on the left to center the image. The unit is screen lengths or heights, "0,0,1,1" is default - the left side starts at the 0column of the screen, the top starts at the 0 row, and ends at the row that is 1 full screen length down, and 1 full screen right. If I placed "-1,0,2,1" I am telling the png to start at the column that is -1 screen to the left (1 full screen away) and the 2 is 1 screen length past the right side (the actual screen legnth is 1 plus 1 extra is 2).

                                        This will be added to each of the CFG files found in \\RETROPIE\configs\all\retroarch\overlay\arcade-bezel-overlays

                                        In the rom.zip.cfg, found in the roms folder, I am playing around with the height and width. so it looks ok. I found that

                                        custom_viewport_width = "656"
                                        custom_viewport_height = "875"
                                        

                                        works well for this screen, when you are in a vertical game like 1943. Then to center the CRT monitor take the screen rez, subtract the width and height, then divide it by two.

                                        I'm hoping there's a proportional/center toggle, so I don't have to do this.

                                        J 1 Reply Last reply Reply Quote 1
                                        • J
                                          joelf @joelf
                                          last edited by joelf

                                          I use my machine on two screens - a 16:9 and 4:5

                                          I created 2 folders in /arcade-bezel-overlays /4by5 and /16by9 i added the game.cfg files in there and referenced ../game.png either as overlay0_rect = "-0.22,0,1.44,1" or overlay0_rect = "-0,0,1,1" to stretch the same 16:9 ong to fit one monitor or the other.

                                          In the retroarch CFG I just add in the subfolder depending on the screen I am using, and adjust the placement of the center of the screen (I really wish there was a center token)

                                          I then need a script the adjusts all the game.zip.cfg files to recenter them too. This is the guts of this script, but I'll have ti do a regex find and replace I think. https://pastebin.com/fnf4HCnS

                                          1 Reply Last reply Reply Quote 0
                                          • P
                                            phulshof
                                            last edited by

                                            Has anyone created a script yet to convert MAME .lay files to RetroArch format? Is it even possible to do so?

                                            I'm sitting on a ton of 16:9 MAME bezels (I converted practically every bezel I could find from RocketLauncher (Krakerman, Griffin518, Derek Moore, Ashurax, etc.) to MAME format), and I've been sharing the results via MEGA and EmuMovies, and I thought it might be interesting to have them converted for use in RetroArch as well.

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