Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: How to position a horizontal game on vertical screen  (Read 2694 times)

0 Members and 1 Guest are viewing this topic.

Felsir

  • Wiki Master
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 875
  • Last login:July 09, 2025, 03:34:33 am
  • Creating cab artwork
    • Felsir's World
How to position a horizontal game on vertical screen
« on: March 22, 2013, 08:10:28 am »
I'm trying to move the display of the horizontal games in MAME. So far I was only able to move the display of the game inside the viewport (thus if you move the game down using the MAME sliders the display gets cropped but the bottom boundary stays in the same position).
So is it possible to move the viewport?


For extra info, this is what my setup looks like. I have a cocktail table where I'm trying to get the MAME display to move to the bottom of my display.

This is a topdown view of my 16:9 display in ASCII art with the O representing the player positions. The _ is the bottom of  the screen in windows.

O[____]O

In cocktail mode the display looks like this (MAME is set to cocktail rotated 90 degrees):

O[1_|_2]O

In singleplayer vertical games it looks like this:

O[1____]  <- the game takes up most of the screen's real-estate. It is almost aligned to the bottom of the player 1 position.

In singleplayer horizontal game is where the problem is:

O[__1__] <- the game is centered in the display, this way the player is removed too far from the game display to comfortably play the game.


Felsir

  • Wiki Master
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 875
  • Last login:July 09, 2025, 03:34:33 am
  • Creating cab artwork
    • Felsir's World
Re: How to position a horizontal game on vertical screen
« Reply #1 on: March 23, 2013, 01:46:46 pm »
I solved it by making a layout file. In case someone running into a similar issue this is the code in the default.lay file:
Code: [Select]
<mamelayout version="2">
   <element name="bezel">
      <image file="black.png" />
   </element>

   <view name="Bottomview">
      <screen index="0">
         <bounds left="0" top="0" right="500" bottom="500" />
 <orientation rotate="90"/>
      </screen>
      <screen index="0">
         <bounds left="500" top="0" right="1000" bottom="500" />
 <orientation rotate="270"/>
      </screen>

      <bezel element="bezel">
         <bounds left="499" top="-1" right="1001" bottom="501" />
      </bezel>
   </view>
</mamelayout>

black.png is a square 500x500 pixel png all black pixels.

After some tweaking with the numbers and graphic, this is the result:


There may be a more elegant way of doing this, but so far this seems to work.
« Last Edit: March 23, 2013, 02:19:24 pm by Felsir »

cmoses

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 718
  • Last login:July 27, 2023, 05:19:00 pm
How to position a horizontal game on vertical screen
« Reply #2 on: March 23, 2013, 02:38:27 pm »
That looks very interesting. I am currently building a cocktail cabinet and might want to include a couple of horizontal games on it. I am using a 19" 5:4 aspect ratio monitor. Currently the games just show up in the middle as you said. It doesn't look to bad but it's not a widescreen monitor so not as long vertically.

It's hard to tell from the picture but is that some standard graphic in your overlay or are you incorporating the games marque artwork?  I thought I might do that on mine.

Sent from my iPad Mini using Tapatalk HD

Felsir

  • Wiki Master
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 875
  • Last login:July 09, 2025, 03:34:33 am
  • Creating cab artwork
    • Felsir's World
Re: How to position a horizontal game on vertical screen
« Reply #3 on: March 23, 2013, 04:58:31 pm »
I have made a Game King graphic (the name of my cabinet) with blue bokeh background. Since I have to create a .lay file for each game anyway I might add the game's marquee there as well.

rCadeGaming

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1256
  • Last login:April 13, 2025, 12:14:40 pm
  • Just call me Rob!
Re: How to position a horizontal game on vertical screen
« Reply #4 on: March 23, 2013, 05:46:25 pm »
If you're putting up static images like that, you might want to shift them around a few pixels from game to game to reduce burn-in.

Gray_Area

  • -Banned-
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3363
  • Last login:June 23, 2013, 06:52:30 pm
  • -Banned-
Re: How to position a horizontal game on vertical screen
« Reply #5 on: March 24, 2013, 04:35:21 pm »
I'm surprised the position shifting in MAME is display field-dependent, rather than display area-dependent, otherwise why have it?

Is there a batch command that would generate a custom sort of lay file per game at run-time?  **Edit: like maybe this?  'real-time photoshop art generation in front end'

I wouldn't be worried about burn on a late/current model LCD, especially in-game unless he's playing the same game for hours on end every day.
« Last Edit: March 24, 2013, 05:36:18 pm by Gray_Area »
-Banned-