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: Some questions about scanlines in MAME  (Read 15643 times)

0 Members and 1 Guest are viewing this topic.

Firepro4Life

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 44
  • Last login:October 14, 2023, 05:30:47 pm
Some questions about scanlines in MAME
« on: January 14, 2012, 11:30:23 am »
I am working on tweaking MAME v144 for use with my Makvision 2929 monitor and I am running into an issue involving scanlines. I can get them to work using the scanlines png image effect, but the problem is 1) I don't want them to be used on certain (mostly vertical) games and 2) it seems like the scanlines look like crap on all Capcom games (they look fine on many other games). I've also messed around with the hlsl settings but they don't seem to do anything after I changed them (and yes, I did install the DirectX 9 end user runtime).

So my questions are:

1. Is there a way to have MAME use scanlines for only certain games?
2. Anyone know how to get better looking scanlines for Capcom games in MAME? I've played around with Winkawaks, which uses alternate scanlines, and these games look perfect. The only problem is that Winkawaks doesnt seem to be the most stable program and I would like to avoid have to configure yet another emulator and get it to work with hyperspin if I can.
3. Is there anything simple I've overlooked that could be causing this? Please help!
Arcades:  Big Blue w/Pandora's Box 3, Double DK w/Arcade SD, MVS-U4 w/MAME
In-Progress: Mario Bros.

nexusmtz

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 489
  • Last login:June 01, 2022, 03:14:22 am
Re: Some questions about scanlines in MAME
« Reply #1 on: January 15, 2012, 02:29:29 am »
If you enabled scanlines by changing your mame.ini to include:
effect     scanlines

You can disable scanlines in a particular game by adding a line to its ini, e.g. dkong.ini:
effect    none

It also works the other way around. (none by default, and scanlines in the game ini)

If you don't like the effect that scanlines.png produces, and you can't get HLSL working, you can add other png effect files to your artwork directory, and specify those instead.
http://www.google.com/?q=mame+overlay+effects+png+download

When trying different settings, I find it easiest to enter them on the command line, e.g. mame dkong -effect none until I find the settings I like, instead of changing mame.ini or gamename.ini each time.

--nexusmtz

Firepro4Life

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 44
  • Last login:October 14, 2023, 05:30:47 pm
Re: Some questions about scanlines in MAME
« Reply #2 on: January 15, 2012, 06:02:10 am »
Ahhh......thanks, that definitely helps part of the problem. I knew there had to be a way to switch scanline preferences by game. As for the other overlay effects out there, I tried those previously as well, but for some reason, nothing looks right when it comes to capcom games, so I was just curious if anyone else had that same problem or if there was a very specific overlay needed to compliment them.

Arcades:  Big Blue w/Pandora's Box 3, Double DK w/Arcade SD, MVS-U4 w/MAME
In-Progress: Mario Bros.

keysta75

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 3
  • Last login:July 26, 2012, 07:38:36 pm
Re: Some questions about scanlines in MAME
« Reply #3 on: April 11, 2012, 02:30:56 am »
did you ever solve this problem because I'm having a similar problem. Scanlines in fba looks good for capcom  games and so on but when it comes to vertical  I can't games to stay at it's correct aspect ratio while maintaining scanlines in full screen. Every vertical game is stretch and they look horrible. And fba runs a tab bit slow.

MacGyver

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 317
  • Last login:December 18, 2023, 12:49:00 am
    • Project Build
Re: Some questions about scanlines in MAME
« Reply #4 on: April 11, 2012, 02:48:05 am »
The way I use scanlines and avoid having them on Taito (games that don't work at all with hlsl) and other games that don't work well with scanlines is to have a copy of mame.ini that doesn't have scanlines enabled renamed to the game rom (ie. carnevil1.ini) and stuck in the mame->ini directory.  When mame runs that game, it will use the custom ini it finds instead of the mame.ini.  The method works well if you have only a few games that need different configs, if you need a lot of games changed, I would either use a script to create the vanilla ini files (Romlister makes nice batch files), or create a batch file that works from rom lists to run mame against different configs (for in loops).

Gray_Area

  • -Banned-
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3363
  • Last login:June 23, 2013, 06:52:30 pm
  • -Banned-
Re: Some questions about scanlines in MAME
« Reply #5 on: April 12, 2012, 04:19:15 pm »
I cut the ---That which is odiferous and causeth plants to grow--- and use MAMEUI or MAMEPGUI, so I [mostly] don't have to mess with ini files.

Now, MAME has a heirarchy of ini: mame.ini, [type].ini (genre, vertical, horizontal, vector, etc), and then finally game ini. What's wonky is the 'type' will sometimes over-ride 'game'.


On scanline effects:

- png effects are drawn, hence they correspond to certain resolutions. If you can re-draw them, they'll fit for other games. I tend to use scan scanrez2, which fit 224 resolution games, horitonal and vertical. For 288 games, I run at 800x600 and use 'scanlines' or 'real_scanlines'.

-hlsl: you need to at least set the scanline_alpha to 1.0 . There's a thread at MAMEWorld that's an archive of settings people have created. I think it looks great. However, with vertical games run horizontally, I've found you need to run at least 1280x1024, and maybe need a much higher dot pitch, to not get the moireffect.
« Last Edit: April 16, 2012, 10:31:33 pm by Gray_Area »
-Banned-

Firepro4Life

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 44
  • Last login:October 14, 2023, 05:30:47 pm
Re: Some questions about scanlines in MAME
« Reply #6 on: April 13, 2012, 08:18:18 pm »
did you ever solve this problem because I'm having a similar problem. Scanlines in fba looks good for capcom  games and so on but when it comes to vertical  I can't games to stay at it's correct aspect ratio while maintaining scanlines in full screen. Every vertical game is stretch and they look horrible. And fba runs a tab bit slow.

No, I never did quite get it perfect. I ended up making two separate configurations of MAME on my system (and in hyperspin), one for games that need scanlines and one for games that dont/look bad with them. Basically the only games that could still use them, again, are all the capcom games. They still look great running on a CRT monitor and all, but just a tad off (maybe I am being picky). Maybe the next time I have to take my system out of the cab for something I will try some of the ideas posted here or use FBA for capcom games and see how that goes. I really hated all the configuration that went into the setting this system up and now I just want to play it when I can.
Arcades:  Big Blue w/Pandora's Box 3, Double DK w/Arcade SD, MVS-U4 w/MAME
In-Progress: Mario Bros.