Author Topic: Showing off GLSL Mame.  (Read 72571 times)

liquid8d

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 442
    • View Profile
Re: Showing off GLSL Mame.
« Reply #60 on: June 13, 2015, 09:17:45 AM »
Shit. Must be in my .gitignore list.
Attached now. (can open with 7zip or similar)

I knew I wasn't crazy! :) Trying these now..

MBP/Intel HD 3000:

Halation in Mame works - very slow on this one as expected :) I probably need to play around with the settings. Tried SF2 and didn't like the overall look.

Lottes in Mame worked great, looked great and very fast!

i7 / Nvidia GTX 570

Both seem to work great speed-wise, but I get that same issue where it is shrunk in the middle of the screen for both Lottes and Halation. I took a mame snapshot and it comes out at 384x224. This may not be specific to your shaders, I need to try some other ones on that PC. Pretty sure I updated to the newest drivers after the issue last time but I'll double check.

I don't know if these will help you or if you have already seen them.. at least one has the actual CRT curvature on the picture, not sure if you are interested in doing that. It looked a bit overdone in the one I tried:

http://www.mameau.com/mame-glsl-shaders-setup/ has a pack of shaders (this is from 2013)

https://github.com/douglaslassance/mame/tree/master/glsl (also around 2013)
« Last Edit: June 13, 2015, 10:47:01 AM by liquid8d »

verion

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 861
    • View Profile
    • new projects
Re: Showing off GLSL Mame.
« Reply #61 on: June 13, 2015, 11:19:58 AM »
Quote
http://www.mameau.com/mame-glsl-shaders-setup/ has a pack of shaders (this is from 2013)

This is the CRT-Geom shader that Luke-Nukem and I were using initialy.
It is also the only one that was working with SDL 1.2 libraries - so maybe a good shot for RPi and mame4all

Quote
Lottes in Mame worked great, looked great and very fast!

I can't get it to work - what version of mame you are using on OS X?
I'm using SDLmame 0.161 and SDL libraries 2.0.3
« Last Edit: June 13, 2015, 11:43:29 AM by verion »

liquid8d

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 442
    • View Profile
Re: Showing off GLSL Mame.
« Reply #62 on: June 13, 2015, 12:02:28 PM »
Sorry, I'm on Windows... Mame 0.162. Maybe I can try booting into OSX, but I don't have anything setup, so might take me a bit :)
« Last Edit: June 13, 2015, 12:06:31 PM by liquid8d »

verion

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 861
    • View Profile
    • new projects
Re: Showing off GLSL Mame.
« Reply #63 on: June 13, 2015, 12:07:25 PM »
ha... my assumption was that on MBP you are using OS X :D

That's too bad - because I was happy to see that you are using OS X - so maybe you can test (and hopefully fix) that full/fill screen bug on OS X.
Also on OS X AM crashes from time to time - I have to post it with crash report on forum or Github.

Luke_Nukem

  • Sr. Member
  • ****
  • Posts: 135
    • View Profile
    • Blogging about Rust lang
Re: Showing off GLSL Mame.
« Reply #64 on: June 13, 2015, 01:09:42 PM »
The Lottes shader is basically the same thing as the Halation shader. Just doesn't have bloom in it.

Also I'm doing everything on Linux, and testing with Intel and Nvidia.

Can you guys please play with the settings for Halation before saying that you don't like it. Adjusting bloom and aperture settings has the greatest impact on the looks.
You need to open the vsh file. Everything is commented.

And also, run AM and Mame from a console/terminal so you can see any errors getting thrown up.

Lastly, use Mame 1.62.

verion

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 861
    • View Profile
    • new projects
Re: Showing off GLSL Mame.
« Reply #65 on: June 13, 2015, 01:37:31 PM »
I like the current halation version - a lot. I is crisp again. And it suits me out-of-the-box without any tweaking.
I tweaked it a little bit - but returned to standard settings eventually.

Quote
The Lottes shader is basically the same thing as the Halation shader. Just doesn't have bloom in it.

So I can simply skip Lottes - especially when (if) you implement halation on/off switch in .vsh

---

I'm running from console (when testing) and no errors for halation or lottes (but lottes gives me blank screen).

liquid8d

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 442
    • View Profile
Re: Showing off GLSL Mame.
« Reply #66 on: June 13, 2015, 05:08:47 PM »
Just to be clear - I'm NOT one to be asking how it looks so take anything I say about that with a grain of salt :) I can say if it looks good to me, but I don't really have a good idea of what it is 'supposed' to look like.

I'm more testing that it works but I will play around with the settings some to see if I get it to something I like. Working on some updates and will be trying it again in OSX shortly.

liquid8d

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 442
    • View Profile
Re: Showing off GLSL Mame.
« Reply #67 on: June 13, 2015, 07:18:36 PM »
Ok, OSX results. First AM shaders:

Basic CRT works fine.

Halation takes a good while to startup, but once it does it runs pretty smoothly! This is both when you switch to it and hit ESC to go back to the layout and on startup.

Lottes is completely black.

However, all three - when I first start AM are black. I have to switch to a different layout and then back to make it work. Not sure if that's an AM bug, but maybe?

MAME is up next, but I'm having a hell of a time getting it to load my roms for some reason..

liquid8d

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 442
    • View Profile
Re: Showing off GLSL Mame.
« Reply #68 on: June 13, 2015, 08:28:12 PM »
Mame results:
OSX Yosemite 10.10.3
SDLMame 0.162
SDL 2.0.3

Both worked fine, but Halation pretty slow (of course on this machine it will be)


CRT-lottes




CRT-halation






verion

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 861
    • View Profile
    • new projects
Re: Showing off GLSL Mame.
« Reply #69 on: June 14, 2015, 03:56:07 AM »
Hmmm...

Lottes works on your side (OS X)?

I've upped to 0.162 to see if it is the case - and no go. I'm getting black screen with lottes.
With the same setup:
OSX Yosemite 10.10.3
SDLMame 0.162
SDL 2.0.3

Luke_Nukem

  • Sr. Member
  • ****
  • Posts: 135
    • View Profile
    • Blogging about Rust lang
Re: Showing off GLSL Mame.
« Reply #70 on: June 14, 2015, 01:31:37 PM »
I've just tested these shaders after tweaking. Zipped as working.

In CRT-halation.vsh, there is a switch;
Code: [Select]
    // BLOOM ON/OFF SWITCH
    bloom_on = 0.0;

Set that to 1.0 to enable bloom, 0.0 to disable.

verion

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 861
    • View Profile
    • new projects
Re: Showing off GLSL Mame.
« Reply #71 on: June 14, 2015, 01:57:22 PM »
Great!

I'm downloading.

Luke_Nukem

  • Sr. Member
  • ****
  • Posts: 135
    • View Profile
    • Blogging about Rust lang
Re: Showing off GLSL Mame.
« Reply #72 on: June 14, 2015, 02:13:26 PM »
I've also started separating effects into their own screen shaders, so it should be possible to mix/match shaders to get a particular effect.

verion

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 861
    • View Profile
    • new projects
Re: Showing off GLSL Mame.
« Reply #73 on: June 14, 2015, 02:27:25 PM »
hmmm... strange

with bloom_on = 0.0 the fans starts spinning almost right away - as with previous halation.

---

I couldn't tell the difference, so I took 2 screenshots... looks identical with 0 or 1

Luke_Nukem

  • Sr. Member
  • ****
  • Posts: 135
    • View Profile
    • Blogging about Rust lang
Re: Showing off GLSL Mame.
« Reply #74 on: June 14, 2015, 03:29:58 PM »
hmmm... strange

with bloom_on = 0.0 the fans starts spinning almost right away - as with previous halation.

---

I couldn't tell the difference, so I took 2 screenshots... looks identical with 0 or 1

Open up the .fsh file and remove this code block;

Code: [Select]
    if (bloom_on == 1.0){
        gl_FragColor.rgb += Bloom(pos) * bloomAmount;
    }

See if that makes any difference