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

    Space Invaders backdrop resolution (mame2003-plus)

    Scheduled Pinned Locked Moved Help and Support
    space invadersbackdropmame2003-plus
    24 Posts 6 Posters 4.9k 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.
    • AshpoolA
      Ashpool @jamrom2
      last edited by Ashpool

      @jamrom2 said in Space Invaders backdrop resolution (mame2003-plus):

      Have you tried using another version of Mame?

      So far just on windows to see how Mr.Do's current artwork looks, but if @WeirdH wants to use any libretro shaders with it, newer (counting m2k3+ among old here) mame cores are a nogo due to the way they are dealing with the screens rotation (rotation done in mame and reporting the game as beeing horizontal towards RA).
      Edit: But I haven't taken a look (was unaware of it) into issue #360: Use libretro screen rotation so far, so maybe that ain't such a problem anymore (?).

      1 Reply Last reply Reply Quote 0
      • WeirdHW
        WeirdH @Ashpool
        last edited by WeirdH

        @Ashpool said in Space Invaders backdrop resolution (mame2003-plus):

        @WeirdH -> this is the result from this quick mashup:

        Ah, so it's not just me. Still, isn't it weird that a hi-res image gets pixelated like that? What causes that? Like I said, I initially thought it had to be something in the .art-file that I was messing up, but it seems not. Is it the core? Is it Retroarch? Something in the artwork? Or all of the above?

        And even then, regardless of the cause, why does it seem to work correctly for Clyde in this thread (see post #5)?


        I think one factor to be considered here is, that with the fully fledged mame artwork files, mame is actually rendering the gamefield in a really small area within a much larger artwork dimension based on the bezel(/+control pannel)

        Yeah, I had also considered that, but even images that are easily four times the resolution of my entire screen get like this. I don't think the gamefields in fully bezeled configurations are actually over four times smaller than fullscreen, right? Maybe I'm wrong, but it just doesn't make a lot of sense to me. Then again, I'm by no means an expert, so feel free to take all of my assumptions with multiple grains of salt. ;)

        AshpoolA 2 Replies Last reply Reply Quote 0
        • AshpoolA
          Ashpool @WeirdH
          last edited by Ashpool

          @WeirdH said in Space Invaders backdrop resolution (mame2003-plus):

          And even then, regardless of the cause, why does it seem to work correctly for Clyde in this thread (see post #5)?

          I am not sure that it does, but before i come to that some further thought about the basics ;p

          even if the souce images are highres, that doesn't mean they aren't jagged or pixelated and the taito_moon clyde used is somewhat better in this regards then it is with the midway one.
          furthermore, clyde squeezed the left/right boundaries of that backdrop. Here is a (top/bottom black borders croped) screenshot (on a 1280x960 display) from current lr-mame with everything removed from the layfiles view but the backdrop and screen, together with the brightness raised within mame (to highlight the actual gamescreen):

          Screen_over_Backdrop_(mame254).jpg

          Compare that to the backdrop clyde used and you see that the moons width was squeezed by him to fit his 1600x1200 display. Next is a comparission of 3 settings used on my next mashup using that taito moon (also squeezed in width, though not to the extent clyde had used):
          Top: crt-pi-vertical shader, no bilinear filtering; Middle: Bilinear Filtering enabled in RA menu; Bottom: pure backdrop [mame2k3+]

          pure_bilinear_shader.jpg.

          The screenshot @Clyde used was also with a scanline(gap)-filter, and IMHO that one is pretty much masking the pixelation/jagginess - so, my guess would be that his backdrop would also turn out pixelated without the shader used ;] Edit: Oops, actually the shader is only used on one of his images. You can try his artwork - just use the 1200x1600 image he posted together with the artfile definition mentioned in that thread (or to be sure, resize it to 960x1280 and use the backdrop definition from my mashup below) ;)

          P.S.: that backdrop/artfile i've used above is aimed at 1280x960 (outer boundaries for the artfile calculation/coordinates) and bloody floats, again the resulting gamearea is 671x892 instead of 672x892 (which is the screen resolution the coordinates where calculated from), the backdrop image itself is 2016x2688 (3:4).

          backdrop:
          	file            = moon_squeezed.png
          	layer		= backdrop
          	priority	= -2
          	visible		= 1
          	position	= -0.017857,-0.452361,1.053571,1.452381
          
          WeirdHW 1 Reply Last reply Reply Quote 1
          • AshpoolA
            Ashpool @WeirdH
            last edited by Ashpool

            @WeirdH said in Space Invaders backdrop resolution (mame2003-plus):

            I don't think the gamefields in fully bezeled configurations are actually over four times smaller than fullscreen, right?

            Wouldn't bet on it... here is a resized screenshot (windowed mode, resized to 65%) from current mame on my win PC (monitor: 1920x1200), the actual game screen is somewhat around ~+- 340x450 on that (windowed), ~360x470 (Fullscreen) [Edit: so x4 resolution (x2 on 2 axes) would be ~720x940], resolution/artwork file is from Mr.Do's. (so the Bezel is 4000x4133, the control pannel 3999x1151, starfield 4000x1828 and moon 3420x1279). I guess that is clearly to be used in tate mode with a rotated display :] Don't know what mame is using as filtering method for up/downsizing (assuming that m2k3+ is offering bilinear as an option i would guess that the base resize is nearest neighbour), but welcome to the world of things like nearest neighbour/bilinear/bicubic/lanczos/etc. and the problem how to squeeze n-base pixels into m(<n)-target pixel or how to enlarge n--base px into m(>n)-target px ;>

            Test.jpg

            1 Reply Last reply Reply Quote 1
            • WeirdHW
              WeirdH @Ashpool
              last edited by

              Man, that is a lot to process ;) I do appreciate you taking the time to mess around with it and explain in such detail. Some of the calculations go over my head (not a calculations guy, really), but it all makes sense at least, thank you.

              @Ashpool said in Space Invaders backdrop resolution (mame2003-plus):

              You can try his artwork - just use the 1200x1600 image he posted together with the artfile definition mentioned in that thread (or to be sure, resize it to 960x1280 and use the backdrop definition from my mashup below) ;)

              I will toy around with this. If all else fails, my Space Invaders will just have a regular old black background with nothing in it and even less on it.

              AshpoolA 1 Reply Last reply Reply Quote 0
              • AshpoolA
                Ashpool @WeirdH
                last edited by Ashpool

                @WeirdH Here is an archive of some of the files of my mashups using the taito moon: invaders_testfiles.7z.
                For quick artwork tests in (lr-)mame: remember that the artwork don't need to be in an archive, instead of invaders.zip you can just create a folder "invaders" within the artwork-folder and put the artwork files in there.
                files included: 2x. artwork.art files (one for fullscreen BD, the other one for the 720x960 ones), 2 images for a fullscreen backdrop (original moon, slightly squeezed moon) and another 2 for a backdrop area of (rotated on 4:3) 720x960 (same as above). For the second one, the calculated coordinates are resulting in a 672x896 gamescreen, so no pixels missing/added from that one ;]
                Please report back and say that you either downloaded it, or aren't interested in it. I just created a (temporary) directory for it in a forked repo and want to remove it from there again asap (don't want that one to be included by my next pull request) ;>

                Edit: What you may try, and I haven't tested so far, is to downscale the artwork png file in question to the actual dimension it would occupy on your display and by using a resize filter of your choice (1). As we can't even count on the WYSIWYG from an imager viewer/graphics_app_of_our_choice :/, but have to see what the (retropie)-core used is making of it, it could be worth to try to put in a source with exact targeted px-dimension.

                1: (old school rule of thumbs was bicubic for upscaling, bilinear for downscaling - but that was in times before lanczos and other more modern resize filters came to be) - sadly due to the vertical into horizontal display rotation cannot be avoided, and by downscaling (in older legacy artwork this could also include upscaling), this would still mean that the artwork source image would be processed by mame and are not 1:1 identical to the source we put into it.

                AshpoolA WeirdHW 2 Replies Last reply Reply Quote 1
                • AshpoolA
                  Ashpool @Ashpool
                  last edited by Ashpool

                  Another option would be to use a transparent RA-overlay and that would also work with FBNeo.
                  Drawbacks are mentioned in my asteroids/mame-backdrops/RA-overlays post(s), but there you are on a easy-peasy route to define the viewport and overlay it with a bezel or whatsoever. Otherwise, keep in mind that an within RA overlay definition the viewport part ain't mandatory (?AFAIK?) and you may have a fullscreen mame backdrop with a centered gamefield area together with an libretro/RA overlay on top of it (Mame screen covered by the RA overlay and not squeezed into a ViewPort area of it) though I am not sure on that one right now, but for me it is to late to check this one out.
                  But, at least for me, substituting backdrops with semi-transparent overlays, is much further apart from being the real McCoy then it is with mame backdrops. ... sigh.

                  roslofR 1 Reply Last reply Reply Quote 1
                  • roslofR
                    roslof @Ashpool
                    last edited by roslof

                    @Ashpool said in Space Invaders backdrop resolution (mame2003-plus):

                    Another option would be to use a transparent RA-overlay and that would also work with FBNeo.

                    This is exactly what I'm using. Using an older "bezel" .png from @Orionsangel. Here's a link to his video w/download link in the YouTube description:

                    Used the PNG as a RA overlay for the background and the bezel/cabinet art. For my implementation, I zoomed in and set Overlay Opacity to 0.30 (30%) so the sprite visuals appear brighter than the machine/overlay itself. Can easily brighten to taste...

                    I'm also using lr-mame, which has a color overlay built-in -- so the greens and reds are vibrant. I think this works well.

                    FWIW: For Space Invaders Deluxe (or "Part II") I also used a modified .lay file -- only including the really nice rainbow/color gradient overlay that the arcade supports. The background/cabinet art are rendered with RA. Same basic technique, but since the sprites themselves needed color -- the .lay file was required + a more modern MAME.

                    invaders_ss.jpg

                    invaddlx_ss.jpg

                    Images above are from my Raspberry Pi 4B, but I'm fairly certain that a 3B+ can handle.

                    The RA .png backgrounds w/bezel/cabinet art are in HD resolution (1920x1080) so I wager if you only want the backgrounds and not the cabinet art, just ensure that they're at the same resolution and they should work fine, without pixelation and without influence from the shader.

                    OrionsangelO 1 Reply Last reply Reply Quote 3
                    • WeirdHW
                      WeirdH @Ashpool
                      last edited by

                      @Ashpool said in Space Invaders backdrop resolution (mame2003-plus):

                      Please report back and say that you either downloaded it, or aren't interested in it. I just created a (temporary) directory for it in a forked repo and want to remove it from there again asap (don't want that one to be included by my next pull request) ;>

                      Done, thanks.

                      I don't know how much more time I'll spend on this, as I've been already been at it longer than I wanted to. Also, I'd rather play Return of the Invaders or Super Space Invaders 91. :)


                      @roslof said in Space Invaders backdrop resolution (mame2003-plus):

                      @Ashpool said in Space Invaders backdrop resolution (mame2003-plus):

                      Another option would be to use a transparent RA-overlay and that would also work with FBNeo.

                      This is exactly what I'm using. Using an older "bezel" .png from @Orionsangel.

                      Been thinking about this a well, but I'm kind of done tinkering with it by now.

                      1 Reply Last reply Reply Quote 1
                      • OrionsangelO
                        Orionsangel @roslof
                        last edited by

                        @roslof That looks awesome. I'm glad I could help and be part of it.

                        1 Reply Last reply Reply Quote 1
                        • 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.