Author Topic: At-The-Arcade Multi-Cab [Release] - Updated 20 February 2021  (Read 82352 times)

Yaron2019

  • Guest
Re: At-The-Arcade Multi-Cab [Relased]
« Reply #30 on: January 30, 2021, 01:43:23 AM »
I notice we're only seeing about half the width of the bezel on each side, so I assume the aspect ratio of those bezel images doesn't match what those cabinets are expecting. Have you tried tweaking the rendering to squish the width? I suppose something like that would require separate handling of the left/right sides.

Using the vertical bezels as-is leave a very narrow snap video which doesn't look good and is hard to see.
So I opted to cut the sides of the bezels via code - which is what coinops did as well btw. My "punishing" had to be exact  ;D

Yaron2019

  • Guest
Re: At-The-Arcade Multi-Cab [Relased]
« Reply #31 on: January 30, 2021, 01:48:41 AM »
I had a theme like this called Boardwalk I never released that was like this with the bezels and all... it just didn't have the luxury of the coinops cabinets to finish it.

Sure thing - The artist who made these cabs, Gavin, did a brilliant job.
« Last Edit: January 30, 2021, 11:19:19 PM by Yaron2019 »

mahuti

  • Administrator
  • Sr. Member
  • *****
  • Posts: 252
    • View Profile
    • Github Repositories
Re: At-The-Arcade Multi-Cab [Relased]
« Reply #32 on: January 30, 2021, 07:29:45 PM »
With or without those... yours is better in any case  ;D ;D ;D

manzarek

  • Sr. Member
  • ****
  • Posts: 147
    • View Profile
    • YouTube
Re: At-The-Arcade Multi-Cab [Relased]
« Reply #33 on: January 30, 2021, 07:57:08 PM »
Hello to see all the bezels what should I do?

what do I have to set to see them all, I have set it up this way

i put all bezels in bezels folder as per instruction, and then i gave them this path
Code: [Select]
H: \ Arcade \ attract \ menu-art \ mame \ bezels
« Last Edit: January 30, 2021, 08:00:44 PM by manzarek »
Mame Fighting

Yaron2019

  • Guest
Re: At-The-Arcade Multi-Cab [Relased]
« Reply #34 on: January 30, 2021, 11:50:15 PM »
make sure to add it also in your mame.cfg file:
artwork    bezels          $PROGDIR/menu-art/Mame/bezels

manzarek

  • Sr. Member
  • ****
  • Posts: 147
    • View Profile
    • YouTube
Re: At-The-Arcade Multi-Cab [Relased]
« Reply #35 on: February 01, 2021, 09:07:01 AM »
make sure to add it also in your mame.cfg file:
artwork    bezels          $PROGDIR/menu-art/Mame/bezels
you can't see them, now I've set Preserve Video Aspect to yes
but I only see the vertical bezels the horizontal ones do not  ???
Mame Fighting

Yaron2019

  • Guest
Re: At-The-Arcade Multi-Cab [Relased]
« Reply #36 on: February 01, 2021, 09:32:17 AM »
make sure to add it also in your mame.cfg file:
artwork    bezels          $PROGDIR/menu-art/Mame/bezels
you can't see them, now I've set Preserve Video Aspect to yes
but I only see the vertical bezels the horizontal ones do not  ???

That is the way it should be, bezels are shown only for vertical games instead of just empty black space on both sides.
Even the option is called "Enable game snap VERTICLE bezels"

manzarek

  • Sr. Member
  • ****
  • Posts: 147
    • View Profile
    • YouTube
Re: At-The-Arcade Multi-Cab [Relased]
« Reply #37 on: February 01, 2021, 10:07:26 AM »
you are right, but i would have liked all the bezels to be seen, you can add this? and thanks for your support  :)
Mame Fighting

tsaylor

  • Full Member
  • ***
  • Posts: 58
    • View Profile
Re: At-The-Arcade Multi-Cab [Relased]
« Reply #38 on: February 01, 2021, 10:11:37 AM »
Showing bezels for horizontal games seems possible (and those bezels are usually fairly thin), but I think it would also require checking the resolution of the 'snap' image, and reducing its size a bit if it is already full width.

manzarek

  • Sr. Member
  • ****
  • Posts: 147
    • View Profile
    • YouTube
Re: At-The-Arcade Multi-Cab [Relased]
« Reply #39 on: February 01, 2021, 10:18:44 AM »
Right I think so too, but there would be no way to resize videos to automatically fit you have bezels?
Mame Fighting

jclampy69

  • Full Member
  • ***
  • Posts: 86
    • View Profile
Re: At-The-Arcade Multi-Cab [Relased]
« Reply #40 on: February 01, 2021, 12:35:02 PM »
Right I think so too, but there would be no way to resize videos to automatically fit you have bezels?
In the way of coding, anything is possible. Overall it comes down to the amount of time and effort required.

mahuti

  • Administrator
  • Sr. Member
  • *****
  • Posts: 252
    • View Profile
    • Github Repositories
Re: At-The-Arcade Multi-Cab [Relased]
« Reply #41 on: February 02, 2021, 02:02:33 AM »
Quote
Right I think so too, but there would be no way to resize videos to automatically fit you have bezels?   

If one knows the inside dimensions of the bezels its possible. I have code for this already that I wrote for a layout i'm working on that uses RetroArch bezels and their CFG files to correctly reposition and scale videos to fit the bezels, regardless of differing aspect or xy placement values

If its just a question of using one size for horizontal and one for vertical then it's much simpler. In that case one just has to look at the snap.subimg_width to height ratio to determine the aspect and then adjust positioning and scaling in a transition callback.

Yaron has my WIP layout already, and he can feel free to use whatever bits of that code that he needs. I owe him for all of the shader code of his that I've borrowed.

Yaron2019

  • Guest
Re: At-The-Arcade Multi-Cab [Relased]
« Reply #42 on: February 02, 2021, 08:41:26 AM »
- Update 4 -
Updated visuals for all arcade cabs
Added ability to play background music
Added "Bezels with Separator" and "Bezels without Separators" to the layout options

Musical demo:
https://www.youtube.com/watch?v=Fr_BJJNhIKs

manzarek

  • Sr. Member
  • ****
  • Posts: 147
    • View Profile
    • YouTube
Re: At-The-Arcade Multi-Cab [Relased]
« Reply #43 on: February 02, 2021, 09:17:53 AM »
Quote
Right I think so too, but there would be no way to resize videos to automatically fit you have bezels?   

If one knows the inside dimensions of the bezels its possible. I have code for this already that I wrote for a layout i'm working on that uses RetroArch bezels and their CFG files to correctly reposition and scale videos to fit the bezels, regardless of differing aspect or xy placement values

If its just a question of using one size for horizontal and one for vertical then it's much simpler. In that case one just has to look at the snap.subimg_width to height ratio to determine the aspect and then adjust positioning and scaling in a transition callback.

Yaron has my WIP layout already, and he can feel free to use whatever bits of that code that he needs. I owe him for all of the shader code of his that I've borrowed.
Well I'm not good at these things, but could you pass me the code so I have the bezels for all the games?
Mame Fighting

mahuti

  • Administrator
  • Sr. Member
  • *****
  • Posts: 252
    • View Profile
    • Github Repositories
Re: At-The-Arcade Multi-Cab [Relased]
« Reply #44 on: February 02, 2021, 11:32:13 AM »
Quote
could you pass me the code so I have the bezels for all the games?
Sure. Code below

That said... Yaron, do you have any interest in looking into the horizontal bezel thing? Or would you want me to? Or does your latest version handle horizontal bezels already? I haven't had a chance to look

This is the simple version that just looks for the snap width to height ratio. It doesn't look for cfg files or anything. I tried to boil this down to the basics... this code is untested as I cut it out and simplified it, but it should be pretty close

Code: [Select]
local bezel = fe.add_artwork("bezel", 0,0, 640, 480))
bezel.trigger = Transition.EndNavigation

local snap_scaling_finished = false

//change x/y values as neeeded
local h_snap_x = 10
local h_snap_y = 20
local v_snap_x = 20
local v_snap_y = 10
   
function artwork_transition( ttype, var, ttime )
{
    if ( ttype == Transition.EndNavigation || ttype == Transition.StartLayout || ttype==Transition.ToNewList || ttype==Transition.FromGame )
    {
        if ( !snap_scaling_finished )
        {
            // check if vertical
            if (snap.subimg_width !=0 && snap.subimg_height !=0)
            {
                if (snap.subimg_width/snap.subimg_height < 1)
                {
                    // vertical
                    snap.x= v_snap_x
                    snap.y= v_snap_y

                    snap_scaling_finished = true
                    return true // redraw
                }
                else
                {
                    // horizontal
                    snap.x = h_snap_x
                    snap.y = h_snap_y
                    snap_scaling_finished = true
                    return true // redraw
                }
            }
            else
            {
                // only happens if there's no snap video or for some reason can't get subimg values
                snap_scaling_finished = true
                return false
            }
        }
        return false
   }
   if (ttype== Transition.FromOldSelection)
   {
        if (snap_scaling_finished)
        {
            // set back to defaults
            snap.x = h_snap_x
            snap.y = h_snap_y
            snap_scaling_finished = false
            return true // redraw
        }
   }
   return false
}
fe.add_transition_callback("artwork_transition")