Build Your Own Arcade Controls Forum

Main => Software Forum => Topic started by: Blueic5 on January 20, 2015, 12:30:22 pm

Title: Hlsl settings in mame
Post by: Blueic5 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 :)
Title: Re: Hlsl settings in mame
Post by: B2K24 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 (http://pastebin.com/XUVTdvnQ)

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

http://pastebin.com/5XtKGHPi (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 (https://dl.dropbox.com/u/5414984/mslug-mame-filter/crt_slot_mask.png)
Title: Re: Hlsl settings in mame
Post by: lamprey 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 (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 (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 (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 (http://www.mameworld.info/ubbthreads/showflat.php?Cat=&Board=mamechat&Number=332320)
Title: Re: Hlsl settings in mame
Post by: BadMouth 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 (http://forum.arcadecontrols.com/index.php/topic,135430.msg1398759.html#msg1398759)
Title: Re: Hlsl settings in mame
Post by: Blueic5 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.
Title: Re: Hlsl settings in mame
Post by: lamprey 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..
Title: Re: Hlsl settings in mame
Post by: lamprey 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.
Title: Re: Hlsl settings in mame
Post by: BadMouth 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.
Title: Re: Hlsl settings in mame
Post by: Blueic5 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?
Title: Re: Hlsl settings in mame
Post by: JDFan 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 (https://www.dropbox.com/s/neebnevy2exlvwa/JezzeShader.zip?dl=0) )
Title: Re: Hlsl settings in mame
Post by: Blueic5 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.
Title: Re: Hlsl settings in mame
Post by: JDFan 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.
Title: Re: Hlsl settings in mame
Post by: Blueic5 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?
Title: Re: Hlsl settings in mame
Post by: lamprey 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.
Title: Re: Hlsl settings in mame
Post by: Blueic5 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?
Title: Re: Hlsl settings in mame
Post by: Blueic5 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