Jump to content
Psynaptik

Installing GLSL shaders in Mame

Recommended Posts

I've spent several hours on this but making no headway.

I have MAME 0.215 installed.

I downloaded shaders from here: https://github.com/libretro/glsl-shaders/tree/master/crt/shaders

I put them in a folder called 'glsl' inside my main MAME folder.

GLSL is activated in my mame.ini as per instructions here: https://docs.mamedev.org/advanced/glsl.html

BUT, everytime I try to specify a path MAME won't boot up and just hangs. If I specify 'none' for the shader it loads, and there's SOME kind of smoothing applied, but I can't seem to access any settings in the MAME menu using the tilde key.

This is what the relevant bit of my mame.ini looks like at the moment:

#
# OpenGL-SPECIFIC OPTIONS
#
gl_forcepow2texture       0
gl_notexturerect          0
gl_vbo                    1
gl_pbo                    1
gl_glsl                   1
gl_glsl_filter            1
glsl_shader_mame0         "C:\HyperSpin\Emulators\MAME\glsl\crt\shaders\crt-geom"

Where have I gone wrong?

(BTW, can't use BGFX or HLSL shaders currently because I have an old graphics card in the PC and they're proving too demanding for it, hence the drop back to GLSL).

Share this post


Link to post
Share on other sites

May or may not help, but the ini files have a hierchy. So mame.ini is used by default but if you use vertical and/or horizontal.ini they will take precedence... and "gamename".ini will take precedence over those.

Sent from my SM-A520W using Tapatalk

Share this post


Link to post
Share on other sites

To configure shaders on a new mame I just put "arcade64.exe" in mame folder and configure it from A64's GUI. You need also "plugins" folder from Arcade64.

  • Like 1

Share this post


Link to post
Share on other sites

Hi @spawk, there are no seperate .ini files other than mame.ini. It's a dedicated vertical cabinet, so no need!

@dark13 - what is arcade64.exe? I've got a mame64.exe. I have a plugins folder with mame64.exe, do I put glsl in there?

Thanks!

Share this post


Link to post
Share on other sites

Arcade64 is no longer compiled for HS downloads, grab it here. Even mameUI should work, anyway. The good thing about A64 is it don't list mechanical, casino and other sh*ts 😛

64 bit https://onedrive.live.com/?authkey=!ANMY0z9h8rgPH9w&cid=8F1E2E1B27C9F920&id=8F1E2E1B27C9F920!8035&parId=8F1E2E1B27C9F920!8031&action=locate

32bit https://onedrive.live.com/?authkey=!AIV5NRFZV2oIsIU&cid=8F1E2E1B27C9F920&id=8F1E2E1B27C9F920!8036&parId=8F1E2E1B27C9F920!8031&action=locate

 

Share this post


Link to post
Share on other sites

Thanks for the links, will check those out (64 bit).

I'll use your advice earlier and let you know how I get on. Cheers!

Share this post


Link to post
Share on other sites

Hey @dark13, thanks for that download - that was really helpful and I didn't know that it existed. Is this a continuation of MameUI? I had the 0.170 version, good to update.

I decided to bite the bullet and buy a cheap second-hand graphics card for my arcade cab. Some of my PC shooters that I want on there (e.g. Danmaku Unlimited 3, Dodonpachi Resurrection etc.) weren't running at speed either, so I'm back to just using BGFX for ease of use now (easier than GLSL anyway!).

However, really useful to know for my next build if that has lower hardware. Thanks!

Share this post


Link to post
Share on other sites

MameUi still exists, the problem is right now there's just too much unplayable stuff in "official" mame releases (mechanical, screenless, pinball, casino) and if you use the official GUI it's a real mess. That stuff is removed in Arcade64. It's just another compiled version of mame with "no nag" (the official version still give screen advice when you launch an "imperfect" game) , it was compiled also from a board member and uploaded in download section, he told me he don't compile it anymore as very few people use it and gave me that link :) . I think it might be a "modern" version of mameFX as it has the same "clones" structure.

Share this post


Link to post
Share on other sites

Hey @dark13, I have a feeling that that download that you pointed me to won't work with HyperSpin - the latest .ahk file I could fine (212) won't work with it. 😞

 

Share this post


Link to post
Share on other sites

Mame has changed something lately, in RocketLaunche the old AHK (0.186 i think) works with 0.214 but you have to set it this way.

image.thumb.png.7810f18f15ab674758afa46ebf8fa10a.png

 

 

Share this post


Link to post
Share on other sites

Okay, so the good news is that the option changes for the mame.ahk in Rocket Launcher as recommended by @dark13 worked and I can launch Mame with RL with my nice BGFX settings!

The bad news is that that .ahk alteration doesn't work for 0215, so I've reverted to the 210 no-nag that @dark13 supplied me earlier.

I *thought* I was doing the clever thing by updating my romset to the latest...seems that wasn't so clever! Should have checked the latest version that works in HyperSpin/RL first - which appears to be 214 according to @gigapig

I'll have to wait till the AHK is updated for 215. Strange though, 216 is out already so it's no longer bleeding edge! But my roms for 215 seem to all work fine with 210, so there's no problem for now.

Now I just need to configure the controls to all work nicely with each other and add PC games...wish me luck!

Thanks all for your help.

Share this post


Link to post
Share on other sites

Tested right now, 0.216 works with RocketLauncher. Setting up RL might be a good idea, also because you can keep .iso in .rar4 and decompress it on the fly before launch (I use a ramdisk to avoid HD strain).

Share this post


Link to post
Share on other sites

I've got to confess I have no idea what that post was about! I've got RL installed alongside HyperSpin. Used the GameRoomsolutions.com tutorials to get it all setup. But what's that bit about .iso and .rar4?

Share this post


Link to post
Share on other sites

I keep Playstation, saturn, 3d0, etc cd images compressed in rar5, RL can decompress and load the game automatically. Space savings. I mentioned rar5 (5, not 4, my fault) as it's really fast in decompressing archives.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...