My Realistic Arcade Bezels

In the default.lay the x,y,width,height values have to be modified with the hoffset, hstretch, voffset and vstretch values of the digdug.cfg

Only the values in the <view></view> element between
<screen></screen>
<overlay></overlay>
<backdrop></backdrop>

The values between <bezel></bezel> must remain untouched


digdug.cfg:

<?xml version="1.0"?>
<!-- This file is autogenerated; comments and unknown tags will be stripped -->
<mameconfig version="10">
    <system name="digdug">
        <video>
            <screen index="0" hoffset="0.004000" hstretch="0.580000" voffset="0.008000" vstretch="0.678000" />
        </video>
        <counters>
            <coins index="0" number="49" />
        </counters>
        <input>
            <port tag=":DSWA" type="DIPSWITCH" mask="192" defvalue="128" value="192" />
        </input>
    </system>
</mameconfig>

This is the calculation:

new_width = old_width*vstretch
new_height = old_height*hstretch
new_x = ((old_width-new_width)/2)-(old_width*voffset)+old_x
new_y = ((old_height-new_height)/2)+(old_height*hoffset)

default.lay:

<!-- digdug.lay -->

<mamelayout version="2">

<element name="bezel">
    <image file="digdug_bezel.png" />
</element>

<element name="bezel_alt1">
    <image file="digdug_bezel_alt1.png" />
</element>

<element name="bezel_alt2">
    <image file="digdug_bezel_alt2.png" />
</element>

<element name="screen_bezel">
    <image file="vert_screen_bezel.png" />
</element>

<element name="screen_mask">
    <image file="vert_screen_mask.png" />
</element>

<view name="Cab Artwork">
    <screen index="0">
    <bounds x="555" y="0" width="810" height="1080" />
    </screen>

    <overlay element="screen_mask">
    <bounds x="554" y="0" width="812" height="1080" />
    </overlay>

    <backdrop element="screen_bezel">
    <bounds x="518" y="0" width="884" height="1080" />
    </backdrop>

    <bezel element="bezel">
    <bounds x="0" y="0" width="1920" height="1080" />
    </bezel>
</view>

<view name="No Monitor Screen (alt1)">
    <screen index="0">
    <bounds x="555" y="0" width="810" height="1080" />
    </screen>

    <overlay element="screen_mask">
    <bounds x="554" y="0" width="812" height="1080" />
    </overlay>

    <backdrop element="screen_bezel">
    <bounds x="518" y="0" width="884" height="1080" />
    </backdrop>

    <bezel element="bezel_alt1">
    <bounds x="0" y="0" width="1920" height="1080" />
    </bezel>
</view>

<view name="Unused (alt2)">
    <screen index="0">
    <bounds x="555" y="0" width="810" height="1080" />
    </screen>

    <overlay element="screen_mask">
    <bounds x="554" y="0" width="812" height="1080" />
    </overlay>

    <backdrop element="screen_bezel">
    <bounds x="518" y="0" width="884" height="1080" />
    </backdrop>

    <bezel element="bezel_alt2">
    <bounds x="0" y="0" width="1920" height="1080" />
    </bezel>
</view>

</mamelayout>

The result should look like this:

<view name=“Cab Artwork”>
<screen index=“0”>
<bounds x=“679” y=“231” width=“549” height=“626” />
</screen>

<overlay element=“screen_mask”>
<bounds x=“678” y=“231” width=“551” height=“626” />
</overlay>

<backdrop element=“screen_bezel”>
<bounds x=“653” y=“231” width=“599” height=“626” />
</backdrop>

<bezel element=“bezel”>
<bounds x=“0” y=“0” width=“1920” height=“1080” />
</bezel> </view>

1 Like

Can you send me a completed digdug.zip file to inspect it.

Is there maybe a recent link where you can download a pack of these?

Also, can these be used as RetroArch overlays instead of MAME artwork?

Yeah, but I gotta update it.

2 Likes

@GemaH: not so easily. Mame artworks supports blend modes, which overlays doesn’t.

blend modes
                                                ____
    1. layer:   bezel (blend mode: normal)      \____\  ══╗
    ------------------------------------------  ____      ║
    2. layer:   backdrop (blend mode: screen)   \____\  ══╣
    ------------------------------------------  ____      ║
    3. layer:   overlay (blend mode: multiply)  \____\  ══╣
    ------------------------------------------  ____      ║
    4. layer:   game screen                     \____\  ══╝

Also it involves a bit of image manipulation. Mame artworks can have parts of the image that go over the monitor screen or are smaller, but overlays stretch the image to either completly fit your monitor screen (if overlay0_full_screen = true) or the hole game screen (if overlay0_full_screen = false)
To maintain the aspect ratio you have to resize the images (cropping or adding borders)

In the case of Orionangels artworks, i think they are all in 16:9 ar, so no clipping is needed, but if your monitor is 4:3 or 16:10, than you have to do some work…

For the overlay, mask, backdrop elements you have to tinkering a lot, to make them look like in the artworks.

2 Likes

Ok, got it.

The issue is i can’t use these with the MAME core in retroarch because the crt shaders apply to the whole image, including the artwork.

You can use the bezel image as overlay and set a custom aspect ratio in the video options.
e.g. x,y,width,height.

The biggest problem is, that while the image can be made to fit the usual aspect ratios (16:9, 16:10, 4:3…)
the game override config for the custom aspect ratio must be calculated for every screen resolution:

1024x768
1360x768
1366x768
1280x720
1280x800
...etc

Here is a realistic Arcade bezel for the game Chase H.Q. for use on Mame.

You can download it here - https://bit.ly/2neGJAC

5 Likes

Here is a realistic Arcade bezel for the game Pengo for use on Mame.

You can download it here - https://bit.ly/2mIuMmz

5 Likes

Here is a realistic Arcade bezel for the game Legendary Wings for use on Mame.

You can download it here - https://bit.ly/2ojmBNT

4 Likes

Here is a realistic Arcade bezel for the game Dragon Breed for use on Mame.

You can download it here - https://bit.ly/32ZHDjz

4 Likes

Donations are welcome - https://www.paypal.me/orionsangel

As a side note: MAME Classic with BGFX/CRT-GEOM shader applying a 0.5 vertical tilt. This is very inspiring, many thanks!

Of course only experimental. I am also wondering whether this triggers a performance hit.

3 Likes

Oh nice. Can you hit me up with Mame classic with the BGFX/CRT-GEOM shader?

[email protected]

1 Like

Definitely I will, a pleasure. It is a workaround currently, but nice to try. Please bear with me, it will take me til mid next week to be back on my Mac.

Okay, no problem. Thank you.

Could you add these to the Chase HQ overlays please mate

1 Like

And these to Outrun

1 Like

Here is a realistic Arcade bezel for the game Two Crude for use on Mame.

You can download it here - https://bit.ly/2MnXbao

2 Likes

Here is a realistic Arcade bezel for the game P.O.W. Prisoners of War for use on Mame.

You can download it here - https://bit.ly/2p7ZAxE

5 Likes