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: Hlsl settings in mame  (Read 7156 times)

0 Members and 1 Guest are viewing this topic.

Blueic5

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 92
  • Last login:December 16, 2018, 05:31:20 pm
  • I want to build my own arcade controls!
Hlsl settings in mame
« on: January 20, 2015, 12:30:22 pm »
Hi, just discovered in mame a setting/filter called hlsl and wondered if there was a general consensus on best settings and if someone could post them for me?   I tried the default and had to turn the brightness down but that's all I've tried . Definitely gives my lcd a old school look :)

B2K24

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 216
  • Last login:June 10, 2025, 10:17:56 am
Re: Hlsl settings in mame
« Reply #1 on: January 20, 2015, 12:42:34 pm »
Here's my latest settings that look good to me for both vertical as well as horizontal games. Be sure to change filter to 0 under DIRECT3D-SPECIFIC OPTIONS and set gamma to 0.750

http://pastebin.com/XUVTdvnQ

It also requires changing the post.fx file in the hlsl folder to this

http://pastebin.com/5XtKGHPi

Last thing to to throw crt_slot_mask.png in artwork folder

https://dl.dropbox.com/u/5414984/mslug-mame-filter/crt_slot_mask.png

lamprey

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 636
  • Last login:January 17, 2019, 07:03:11 pm
Re: Hlsl settings in mame
« Reply #2 on: January 20, 2015, 12:44:28 pm »
I'd suggest getting a modified post.fx file that "sets" the shadow mask U and V size for you. Additiaonlly, it can do rounded corners, vignetting and light reflection, if you desire:
http://www47.zippyshare.com/v/95165141/file.html

Here is a link to some more info on that modified post.fx file (It's in German, so you may need to translate it.):
http://www.aep-emu.de/PNphpBB2-file-viewtopic-t-18991.html

I tend to use Jezze's settings (from the german forum) with some slight tweaks depending on which computer I'm on. But, here is a link to the Shmups forum discussing HLSL:
http://shmups.system11.org/viewtopic.php?f=6&t=45026

One thing that seems to be the new hotness is Timothy Lottes' CRT Shader for SDL Mame (opengl).
http://www.mameworld.info/ubbthreads/showflat.php?Cat=&Board=mamechat&Number=332320

BadMouth

  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 9269
  • Last login:Yesterday at 06:04:37 am
  • ...
Re: Hlsl settings in mame
« Reply #3 on: January 20, 2015, 02:17:30 pm »
Hi, just discovered in mame a setting/filter called hlsl and wondered if there was a general consensus on best settings and if someone could post them for me?   I tried the default and had to turn the brightness down but that's all I've tried . Definitely gives my lcd a old school look :)

Best settings vary depending on the resolution of the original game currently being played IMO.
Here are my adventures.  (unfinished.....I still have some resolutions without HLSL settings on my cab)
http://forum.arcadecontrols.com/index.php/topic,135430.msg1398759.html#msg1398759

Blueic5

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 92
  • Last login:December 16, 2018, 05:31:20 pm
  • I want to build my own arcade controls!
Re: Hlsl settings in mame
« Reply #4 on: January 20, 2015, 02:31:11 pm »
Should the snap too be the resolution of my display which is 1024 x 768 I think maybe higher.

lamprey

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 636
  • Last login:January 17, 2019, 07:03:11 pm
Re: Hlsl settings in mame
« Reply #5 on: January 20, 2015, 02:31:49 pm »
Best settings vary depending on the resolution of the original game currently being played IMO.
Have you tried using that modified Post.fx file I posted (or one like it)? It, pretty much, eliminates the need to make any adjustments due to different game resolutions. Certain games still require tweaking though. I think it's the "high" resolution games that need the tweaking, like Popeye and Toobin, etc..

lamprey

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 636
  • Last login:January 17, 2019, 07:03:11 pm
Re: Hlsl settings in mame
« Reply #6 on: January 20, 2015, 02:32:45 pm »
Should the snap too be the resolution of my display which is 1024 x 768 I think maybe higher.
Snap doesn't really matter, it's only for taking screen shots. I'd suggest it be set to the resolution your screen is at.

BadMouth

  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 9269
  • Last login:Yesterday at 06:04:37 am
  • ...
Re: Hlsl settings in mame
« Reply #7 on: January 20, 2015, 02:37:53 pm »
Best settings vary depending on the resolution of the original game currently being played IMO.
Have you tried using that modified Post.fx file I posted (or one like it)? It, pretty much, eliminates the need to make any adjustments due to different game resolutions. Certain games still require tweaking though. I think it's the "high" resolution games that need the tweaking, like Popeye and Toobin, etc..

I don't think so.  I haven't messed with it much since that other thread.
Will give it a try if I ever get back around to tinkering with HLSL.

Blueic5

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 92
  • Last login:December 16, 2018, 05:31:20 pm
  • I want to build my own arcade controls!
Re: Hlsl settings in mame
« Reply #8 on: January 20, 2015, 02:55:11 pm »
Best settings vary depending on the resolution of the original game currently being played IMO.
Have you tried using that modified Post.fx file I posted (or one like it)? It, pretty much, eliminates the need to make any adjustments due to different game resolutions. Certain games still require tweaking though. I think it's the "high" resolution games that need the tweaking, like Popeye and Toobin, etc..

I can't seem to get that post. Fx file from the link,  it's just a shed load of pop ups and adds... You got it on Dropbox or something?

JDFan

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3448
  • Last login:March 03, 2025, 10:29:54 am
  • I want to build my own arcade controls!
Re: Hlsl settings in mame
« Reply #9 on: January 20, 2015, 03:03:42 pm »
Best settings vary depending on the resolution of the original game currently being played IMO.
Have you tried using that modified Post.fx file I posted (or one like it)? It, pretty much, eliminates the need to make any adjustments due to different game resolutions. Certain games still require tweaking though. I think it's the "high" resolution games that need the tweaking, like Popeye and Toobin, etc..

I can't seem to get that post. Fx file from the link,  it's just a shed load of pop ups and adds... You got it on Dropbox or something?

Using Adblock Plus seems to bypass them -- It was a small download so Downloaded and posted to Dropbox for you (you did mean the JezzeShader posted by Lamprey correct ? ) -- Linkie ( https://www.dropbox.com/s/neebnevy2exlvwa/JezzeShader.zip?dl=0 )

Blueic5

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 92
  • Last login:December 16, 2018, 05:31:20 pm
  • I want to build my own arcade controls!
Re: Hlsl settings in mame
« Reply #10 on: January 20, 2015, 03:11:32 pm »
Yep but the file seems to be corrupt for me,  does the zip extract for you?    I'm on my phone so couldn't block all the ads.
« Last Edit: January 20, 2015, 03:20:29 pm by Blueic5 »

JDFan

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3448
  • Last login:March 03, 2025, 10:29:54 am
  • I want to build my own arcade controls!
Re: Hlsl settings in mame
« Reply #11 on: January 20, 2015, 03:58:52 pm »
Yep but the file seems to be corrupt for me,  does the zip extract for you?    I'm on my phone so couldn't block all the ads.

Unzips fine here -- Try this one attached rather than on dropbox.

Blueic5

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 92
  • Last login:December 16, 2018, 05:31:20 pm
  • I want to build my own arcade controls!
Re: Hlsl settings in mame
« Reply #12 on: January 20, 2015, 04:20:54 pm »
That works thanks....   Just what I do  with all that now lol.   Any ideas where I put all the files and folders?
« Last Edit: January 20, 2015, 04:41:38 pm by Blueic5 »

lamprey

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 636
  • Last login:January 17, 2019, 07:03:11 pm
Re: Hlsl settings in mame
« Reply #13 on: January 20, 2015, 04:51:19 pm »
Basically,

1. take the POST.FX file from either the hlsl_no_reflection or hlsl_with_reflection folders and replace the one in your MAME hlsl folder. (you can comment out sections of you don't want corner rounding and such).
2. Copy the appropriate CRT_xx.png file from the Artwork folder to your mame Artwork folder (if you don't have them already)
3. Then use the MASK_SETTINGS_.txt file to update your mame.ini file in the HLSL section to use one of the mask settings (shadow, slot or aperture).

You'll probably want to tweak more settings as well, but that should get you going.

Blueic5

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 92
  • Last login:December 16, 2018, 05:31:20 pm
  • I want to build my own arcade controls!
Re: Hlsl settings in mame
« Reply #14 on: January 21, 2015, 02:36:57 pm »
So been having a play and liking the results so far thanks all..   How is the post.fx called though or is it always used if you enable hlsl?

Blueic5

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 92
  • Last login:December 16, 2018, 05:31:20 pm
  • I want to build my own arcade controls!
Re: Hlsl settings in mame
« Reply #15 on: January 21, 2015, 02:43:57 pm »
Another issue I have is in games I've noticed I 1" light bar which seems to scroll down the screen...  I've always had this in mame and not sure why,  it's only faint and just curious if it normal