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: Best way to get games like Metal Slug to fill the screen?  (Read 7344 times)

0 Members and 1 Guest are viewing this topic.

Paradroid

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 687
  • Last login:Yesterday at 05:20:15 am
    • SCART Hunter
Best way to get games like Metal Slug to fill the screen?
« on: May 05, 2019, 09:37:30 pm »
Please excuse the embarrassingly n00b question but how do people go about getting games with inbuilt black borders (e.g. Metal Slug) to fill the screen without resorting to funky stretching?

Is there a way to make GM calculate a modeline with different dimensions to what MAME reports? E.g. "MAME says game is 320 px wide but please calculate a mode as if it was it 304 px wide and center it within that frame"?
My MAME/SCART/CRT blog: SCART Hunter

Titchgamer

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4222
  • Last login:December 17, 2023, 08:05:48 am
  • I have a gaming addiction.....
Re: Best way to get games like Metal Slug to fill the screen?
« Reply #1 on: May 06, 2019, 02:45:21 am »
You will always have some kind of border unless you stretch it one way or the other.

The neo geos native resolution was 320×224.

Recapnation

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 332
  • Last login:December 01, 2023, 07:39:55 pm
    • Eiusdemmodi
Re: Best way to get games like Metal Slug to fill the screen?
« Reply #2 on: May 06, 2019, 05:06:31 am »
Long ago Calamity suggested shortening the porch values in your custom CRT range if I recall, but I'd use the hardware way without hesitation. Weren't you the one who even managed to develope external potentiometers for an everyday TV set?

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7414
  • Last login:April 10, 2024, 02:02:31 pm
  • Quote me with care
Re: Best way to get games like Metal Slug to fill the screen?
« Reply #3 on: May 06, 2019, 11:41:43 am »
Please excuse the embarrassingly n00b question but how do people go about getting games with inbuilt black borders (e.g. Metal Slug) to fill the screen without resorting to funky stretching?

Is there a way to make GM calculate a modeline with different dimensions to what MAME reports? E.g. "MAME says game is 320 px wide but please calculate a mode as if it was it 304 px wide and center it within that frame"?

E.g. you want to force mslug to run at 304x224 by chopping off the borders.

No need to say, you first need to add that mode to Windows (VMMaker). Once you have 304x224 available in your system, run:

mame64 mslug -r 304x224 -noues -intoverscan

That should do the trick.

By defaut, GM will refuse to launch a game in a resolution smaller than the native one. If you force it to do so, that will trigger fractional scaling, in a desperate attempt to push the whole frame through your smaller resolution. To avoid that, you use -noues (-nounevenstretch). Here, in this example, -intoverscan would not really be required, but to clarify the concept, I added it, since it tells GM its ok to crop if required to keep integer scaling.

Place those options in a system specific ini, of course.
Important note: posts reporting GM issues without a log will be IGNORED.
Steps to create a log:
 - From command line, run: groovymame.exe -v romname >romname.txt
 - Attach resulting romname.txt file to your post, instead of pasting it.

CRT Emudriver, VMMaker & Arcade OSD downloads, documentation and discussion:  Eiusdemmodi

buttersoft

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1758
  • Last login:April 21, 2024, 08:06:32 am
  • Is running at 15kHz
Re: Best way to get games like Metal Slug to fill the screen?
« Reply #4 on: May 06, 2019, 08:29:48 pm »
Useful commandline info there! Thanks Calamity :)

Paradroid

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 687
  • Last login:Yesterday at 05:20:15 am
    • SCART Hunter
Re: Best way to get games like Metal Slug to fill the screen?
« Reply #5 on: May 07, 2019, 10:17:55 pm »
Long ago Calamity suggested shortening the porch values in your custom CRT range if I recall, but I'd use the hardware way without hesitation. Weren't you the one who even managed to develope external potentiometers for an everyday TV set?

Hehe... yeah, that was me. :)

However, most 20 inch TVs don't have a width control. Plus, I'm big into cabinets now and the players don't want to know about adjusting things on a per-game basis. I just want it to load up and be ready to rock.

That should do the trick.

That is really neat, Calamity, but surely you knew I was going to come back and say "I don't want to have to create separate modelines, I want to use super resolutions and have GM take care of the clipping on-the-fly".

How hard would it be to add something like clip_x and clip_y settings that take the MAME-reported resolution, applies the clipping and then passes the new dimensions off to the modeline engine to calculate requirements as it does?

A while back I did create a script that took that read the monitor specs in mame.ini and applied a percentage multiplier to the horizontal porches (per-game) and saved to individual .inis.

The problem was that it was trial and error (percentage increase/decrease on timing values, not actual calculating the timing difference according to pixel value requirements... my modeline math wasn't good enough for that!)
My MAME/SCART/CRT blog: SCART Hunter

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7414
  • Last login:April 10, 2024, 02:02:31 pm
  • Quote me with care
Re: Best way to get games like Metal Slug to fill the screen?
« Reply #6 on: May 09, 2019, 07:59:03 am »
Well, if you're using super resolutions, things are quite simple. Since you're already stretching horizontally, just change the slider from the default value of 1.0 to 1.052 and you're done. The sliders are saved so you only need to do it once.

I don't know if this accounts for funky stretching but it definitely works.

Important note: posts reporting GM issues without a log will be IGNORED.
Steps to create a log:
 - From command line, run: groovymame.exe -v romname >romname.txt
 - Attach resulting romname.txt file to your post, instead of pasting it.

CRT Emudriver, VMMaker & Arcade OSD downloads, documentation and discussion:  Eiusdemmodi

haynor666

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1471
  • Last login:April 22, 2024, 03:17:30 am
  • retro maniac
Re: Best way to get games like Metal Slug to fill the screen?
« Reply #7 on: June 03, 2019, 01:56:41 am »
Sliders inside mame are using integer scalling before passing picture to OSD so the result is really nasty line doubling. That's why I using some patches from ARCADE32/64 for neo-geo resolutions. Another option is naturally custom mode.

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7414
  • Last login:April 10, 2024, 02:02:31 pm
  • Quote me with care
Re: Best way to get games like Metal Slug to fill the screen?
« Reply #8 on: June 03, 2019, 07:31:48 am »
Sliders inside mame are using integer scalling before passing picture to OSD so the result is really nasty line doubling. That's why I using some patches from ARCADE32/64 for neo-geo resolutions. Another option is naturally custom mode.

This is not true. I tested it myself before posting my answer above, and it was working nicely. The key here is the special scaling method used by super resolutions (-unevenstretchx).
Important note: posts reporting GM issues without a log will be IGNORED.
Steps to create a log:
 - From command line, run: groovymame.exe -v romname >romname.txt
 - Attach resulting romname.txt file to your post, instead of pasting it.

CRT Emudriver, VMMaker & Arcade OSD downloads, documentation and discussion:  Eiusdemmodi

keilmillerjr

  • Trade Count: (+5)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1847
  • Last login:October 06, 2023, 10:20:39 pm
  • Web Developer.
Re: Best way to get games like Metal Slug to fill the screen?
« Reply #9 on: June 03, 2019, 07:50:12 am »
I believe the haynor666 patch removes neo geo garbage.

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7414
  • Last login:April 10, 2024, 02:02:31 pm
  • Quote me with care
Re: Best way to get games like Metal Slug to fill the screen?
« Reply #10 on: June 03, 2019, 08:24:38 am »
I believe the haynor666 patch removes neo geo garbage.

Sure, but the point of my answer was that his negative comment to my method is false.
Important note: posts reporting GM issues without a log will be IGNORED.
Steps to create a log:
 - From command line, run: groovymame.exe -v romname >romname.txt
 - Attach resulting romname.txt file to your post, instead of pasting it.

CRT Emudriver, VMMaker & Arcade OSD downloads, documentation and discussion:  Eiusdemmodi

Paradroid

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 687
  • Last login:Yesterday at 05:20:15 am
    • SCART Hunter
Re: Best way to get games like Metal Slug to fill the screen?
« Reply #11 on: June 07, 2019, 03:36:22 am »
The key here is the special scaling method used by super resolutions (-unevenstretchx).

Very interesting... assume there is a post somewhere explaining how this works behind the scenes?
My MAME/SCART/CRT blog: SCART Hunter

Paradroid

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 687
  • Last login:Yesterday at 05:20:15 am
    • SCART Hunter
Re: Best way to get games like Metal Slug to fill the screen?
« Reply #12 on: June 07, 2019, 03:38:44 am »
Very interesting... assume there is a post somewhere explaining how this works behind the scenes?

This one, I guess.
My MAME/SCART/CRT blog: SCART Hunter

haynor666

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1471
  • Last login:April 22, 2024, 03:17:30 am
  • retro maniac
Re: Best way to get games like Metal Slug to fill the screen?
« Reply #13 on: June 10, 2019, 05:12:44 am »
I believe the haynor666 patch removes neo geo garbage.

Sure, but the point of my answer was that his negative comment to my method is false.

I'll try this when I put my hardware back to working state. Perhaps it's not too visible with super resolutions but when I used this method with standard resolutions it was tragic. If this will ok it still can be applied on horizontal as for vertical (ie. 224 to 288) it will be visible just like I see it right now on LCD.

Originally neo-geo patch was to remove garbage/color bars on sides using LCD monitor as mentioned. But I've found this usefull also on CRT when I used standard resolutions. Back then using sliders with 320x240 clearly produced nasty double lines just like on LCD. I never used this method with super resolutions.
« Last Edit: June 10, 2019, 05:17:04 am by haynor666 »

Professor Jones

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 29
  • Last login:February 09, 2021, 02:24:19 pm
  • Ain't nothing like the real thing
Re: Best way to get games like Metal Slug to fill the screen?
« Reply #14 on: June 10, 2019, 12:30:54 pm »
I use the horizontal slider to stretch the picture for these games and there are no visual artefacts or anything else that could let you know that the image has been stretched.

Jontox

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 45
  • Last login:November 07, 2023, 04:38:10 pm
  • I've built my own arcade cabinet!
    • See Arcadeus Project Blog!
Re: Best way to get games like Metal Slug to fill the screen?
« Reply #15 on: September 03, 2021, 02:11:05 am »
Well, if you're using super resolutions, things are quite simple. Since you're already stretching horizontally, just change the slider from the default value of 1.0 to 1.052 and you're done. The sliders are saved so you only need to do it once.

I don't know if this accounts for funky stretching but it definitely works.

This is indeed a neat solution and really easy to implement. Thanks

Is there a way or another to set up this slider for all neo geo games using a neogeo.ini?

Any help on this is more than welcomed, otherwise it shall be amended for all MVS games a time consuming job but possible.

haynor666

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1471
  • Last login:April 22, 2024, 03:17:30 am
  • retro maniac
Re: Best way to get games like Metal Slug to fill the screen?
« Reply #16 on: September 03, 2021, 09:10:18 am »
modeline could be put in source\neogeo.ini I think but sliders are stored in .cfg files which are per game as I remember.

Jontox

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 45
  • Last login:November 07, 2023, 04:38:10 pm
  • I've built my own arcade cabinet!
    • See Arcadeus Project Blog!
Re: Best way to get games like Metal Slug to fill the screen?
« Reply #17 on: September 03, 2021, 02:51:31 pm »
That is indeed true.

I thought it would be a "secret" parameter to call the slider setting directly like the bios selection for example:

#
# CORE MISC OPTIONS
#
bios                      0

 where the bios are numbered as followed:

0   Europe MVS (Ver. 2) (default bios)
1   Europe MVS (Ver. 1)
2   Asia NEO-MVH MV1C
3   Asia MV1B
4   US MVS (Ver. 2?)
5   US MVS (Ver. 1)
6   US MVS (4 slot, Ver 2)
7   US MVS (U4)
8   US MVS (U3)
9   Japan MVS (Ver. 3)
10   Japan MVS (Ver. 2)
11   Japan MVS (Ver. 1)
12   Japan MV1B
13   Japan MVS (J3, alt)
14   Japan NEO-MVH MV1C
15   Custom Japanese Hotel
16   Universe Bios (Hack, Ver. 3.3)
17   Universe Bios (Hack, Ver. 3.2)
18   Universe Bios (Hack, Ver. 3.1)
19   Universe BIOS (Hack, Ver. 3.0)
20   Universe BIOS (Hack, Ver. 2.3)
21   Universe BIOS (Hack, Ver. 2.3, older?)
22   Universe BIOS (Hack, Ver. 2.2)
23   Universe BIOS (Hack, Ver. 2.1)

Rion

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 69
  • Last login:Yesterday at 09:27:21 pm
  • 240p, 480i
Re: Best way to get games like Metal Slug to fill the screen?
« Reply #18 on: September 13, 2021, 10:30:17 am »
Would it be possible that someone would be so kind to supply a neogeo.ini sample file on how it should look?

Edit:

Figured it out

Code: [Select]
resolution 304x224
unevenstretch 0
intoverscan 1
« Last Edit: September 14, 2021, 05:06:28 pm by Rion »