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

verion

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 861
    • View Profile
    • new projects
Re: Showing off GLSL Mame.
« Reply #30 on: June 12, 2015, 12:01:00 AM »
Same on my side. And it is the same without CRT-Geom shader - so I think it is "by design" and those sides supposed to be covered with bezel. You know - now we are "recreating" round corners because of nostalgia, but the original design could be oposite - like "cover the sides to get pointy corners"

---

But my goal is to have the same look for all games.
Additionaly some parts of the screen are not cut completely - like bottom corners in mslug, or in mutnat the "cutted" parts are showing when screen flashes.

I've came up with idea how we can overcome this - since it is kinda ruining the overall experience.
I can make an overlay + .lay file to add fake round corners and mask the sides properly - for those misbehaving games.

Luke_Nukem

  • Sr. Member
  • ****
  • Posts: 135
    • View Profile
    • Blogging about Rust lang
Re: Showing off GLSL Mame.
« Reply #31 on: June 12, 2015, 02:23:24 AM »
Halation shader in AM, grab it from the git. https://github.com/Luke-Nukem/attract-extra

This can also be used in Mame directly. Probably not the final version, needs some cleaning up and optimization.

verion

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 861
    • View Profile
    • new projects
Re: Showing off GLSL Mame.
« Reply #32 on: June 12, 2015, 02:27:49 AM »
This is sweet!
How this can be applied to AM?

Luke_Nukem

  • Sr. Member
  • ****
  • Posts: 135
    • View Profile
    • Blogging about Rust lang
Re: Showing off GLSL Mame.
« Reply #33 on: June 12, 2015, 02:36:38 AM »
This is sweet!
How this can be applied to AM?

Look at the example in the GitHub link I provided.

verion

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 861
    • View Profile
    • new projects
Re: Showing off GLSL Mame.
« Reply #34 on: June 12, 2015, 03:32:58 AM »
Great! Got it working!

You make my dreams come true! Just like that!
If you want - I can make a nice intro for your business in return.

Luke_Nukem

  • Sr. Member
  • ****
  • Posts: 135
    • View Profile
    • Blogging about Rust lang
Re: Showing off GLSL Mame.
« Reply #35 on: June 12, 2015, 04:21:45 AM »
Great! Got it working!

You make my dreams come true! Just like that!
If you want - I can make a nice intro for your business in return.

That would be totally awesome!!!!

Aww man. Mame is being a complete basterd with formatting of shaders. Somehow I keep ending up with garbage like "syntax error, unexpected $end, expecting "::" at token "<EOF>""
I modified a number, and got that. Works fine in AM though.

verion

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 861
    • View Profile
    • new projects
Re: Showing off GLSL Mame.
« Reply #36 on: June 12, 2015, 05:44:10 AM »
I'll send you PM and we can arrange that.

Luke_Nukem

  • Sr. Member
  • ****
  • Posts: 135
    • View Profile
    • Blogging about Rust lang
Re: Showing off GLSL Mame.
« Reply #37 on: June 12, 2015, 05:59:11 AM »
I think I've finally fixed the $EOF error for Mame. The shaders in the git should be completely universal now.

omegaman

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 880
    • View Profile
Re: Showing off GLSL Mame.
« Reply #38 on: June 12, 2015, 07:35:11 AM »
Luke-

Looks great man. How much does this tax your system? When I was playing around with HLSL using d3d or GL there was a noticeable performance hit. I was running a decent rig as well. And, I think my video card at the time was nvidia which supposedly handles opengl better than ATI cards or is that backwards? Anyway, I probably need to get caught back up on this stuff.

You probably already know about this but here is a great site for info on shaders and real time shaders with lots of code examples.

http://www.ogre3d.org/tikiwiki/tiki-index.php?page=JaJDoo+Shader+Guide+-+Part+1+-+The+Basics&structure=Cookbook

verion

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 861
    • View Profile
    • new projects
Re: Showing off GLSL Mame.
« Reply #39 on: June 12, 2015, 07:39:40 AM »
on i5 1.3 Ghz and on-chip intel HD5000 there is no performance hit at all - in every (a few) game that I've tried.

omegaman

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 880
    • View Profile
Re: Showing off GLSL Mame.
« Reply #40 on: June 12, 2015, 08:56:44 AM »
That is good to know. I'll have to check it out.

Luke_Nukem

  • Sr. Member
  • ****
  • Posts: 135
    • View Profile
    • Blogging about Rust lang
Re: Showing off GLSL Mame.
« Reply #41 on: June 12, 2015, 12:47:11 PM »
Forgot about Ogre3d site. I'm old enough to remember when it first started out. (and the crystal space portal engine).

What are you guys load times?
On my MSI GS70 Stealth 2od laptop, I can switch between Intel graphics or Nvidia. Nvidia loads around 3 times faster.
Running Linux only, btw.

And on the test arcade cab, that runs an Nvidia GF 8600gt, an M2N-MX SE motherboard + Athlon 64 x2. No performance hit at all.
The bare minimum spec I've found is p4 3ghz for mame, 8600gt for shaders. <<< runs everything except 3d games like Tekken.
And to run mame 3d games at full speed, you need a modern dual core, like an AMD Bulldozer cored cpu.

verion

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 861
    • View Profile
    • new projects
Re: Showing off GLSL Mame.
« Reply #42 on: June 12, 2015, 01:23:12 PM »
game load time? about 3 sec to boot screen. but this is from pci ssd disk.

omegaman

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 880
    • View Profile
Re: Showing off GLSL Mame.
« Reply #43 on: June 12, 2015, 04:02:46 PM »
My MAME cabinet is still running on a core duo 3 GHz with nvidia 8500 GT card in it. HLSL ran on it but there was some performance issues with certain games etc...

This was around 2013 though, so I'm sure there have been improvements since then. I just got my raspberry PI, so it should be fun testing some of this stuff out. Though, I am a little skeptical this will work efficiently on the PI2. 

verion

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 861
    • View Profile
    • new projects
Re: Showing off GLSL Mame.
« Reply #44 on: June 12, 2015, 04:19:44 PM »
I've read that RPi is doing all GL stuff as software layer - not gpu accelerated. It doesn't sound good.

I've got tired with RPi after trying to run XBMC on it. It kinda worked, but interface slow-downs were annoying (but HD content was played flawlessly).
So the RPi was covering dust since. A few weeks ago I've made Wordpress server out of it for local websites development.
« Last Edit: June 12, 2015, 04:29:09 PM by verion »