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: Question about shader settings in MAMEUIFX  (Read 5463 times)

0 Members and 1 Guest are viewing this topic.

Firepro4Life

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 44
  • Last login:October 14, 2023, 05:30:47 pm
Question about shader settings in MAMEUIFX
« on: December 05, 2015, 04:21:30 pm »
So I am getting back into the MAME game and started using MAMEUIFX. I prefer the look of the Lotte CRT shader that comes with it, but unlike the other shaders, it does not have curvature or rounded screen corners on by default. Anyone know how I can change this? I tried opening the .vsh and .fsh files, but I don't really know what to do. I'm using v 0.165. Thanks in advance for the help.
Arcades:  Big Blue w/Pandora's Box 3, Double DK w/Arcade SD, MVS-U4 w/MAME
In-Progress: Mario Bros.

B2K24

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 216
  • Last login:May 10, 2023, 09:33:05 pm
Re: Question about shader settings in MAMEUIFX
« Reply #1 on: December 05, 2015, 09:18:35 pm »
So I am getting back into the MAME game and started using MAMEUIFX. I prefer the look of the Lotte CRT shader that comes with it, but unlike the other shaders, it does not have curvature or rounded screen corners on by default. Anyone know how I can change this? I tried opening the .vsh and .fsh files, but I don't really know what to do. I'm using v 0.165. Thanks in advance for the help.

It's probably commented out and you simply need to remove the //

Open Lottes_CRT_rgb32_dir.fsh with notepad ++ or w/e you have and find
Code: [Select]
//#define CURVATURE //Screen curvature effect.
Replace with
Code: [Select]
#define CURVATURE //Screen curvature effect.
Code: [Select]
//
// PUBLIC DOMAIN CRT STYLED SCAN-LINE SHADER
//
//   by Timothy Lottes
//
// This is more along the style of a really good CGA arcade monitor.
// With RGB inputs instead of NTSC.
// The shadow mask example has the mask rotated 90 degrees for less chromatic aberration.
//
// Left it unoptimized to show the theory behind the algorithm.
//
// It is an example what I personally would want as a display option for pixel art games.
// Please take and use, change, or whatever.

//Comment these out to disable the corresponding effect.
//#define VERTICAL //rotates shadow mask effect to fix vertical games on landscape monitors
#define CURVATURE //Screen curvature effect.
#define YUV //Tint and Saturation adjustments.  You adjust the settings in Lottes_CRT.vsh now...
#define GAMMA_CONTRAST_BOOST //Expands contrast and makes image brighter but causes clipping.
#define BLOOM //enables a bloom effect
//#define MASK_APERTURE_GRILL //Only uncomment one of the MASK patterns at a time...
#define MASK_TV
//#define MASK_VGA
//#define ORIGINAL_SCANLINES //Enable to use the original scanlines.
//#define ORIGINAL_HARDPIX //Enable to use the original hardPix calculation.

Firepro4Life

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 44
  • Last login:October 14, 2023, 05:30:47 pm
Re: Question about shader settings in MAMEUIFX
« Reply #2 on: December 06, 2015, 09:32:51 am »
ok awesome....thanks for the help. I was able to enable the curvature by deleting the "//" but how do I adjust the amount of curve? Also, what do I have to enable to get the rounded corners on the screen?
Arcades:  Big Blue w/Pandora's Box 3, Double DK w/Arcade SD, MVS-U4 w/MAME
In-Progress: Mario Bros.

B2K24

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 216
  • Last login:May 10, 2023, 09:33:05 pm
Re: Question about shader settings in MAMEUIFX
« Reply #3 on: December 06, 2015, 02:12:33 pm »
ok awesome....thanks for the help. I was able to enable the curvature by deleting the "//" but how do I adjust the amount of curve? Also, what do I have to enable to get the rounded corners on the screen?

That's the weakness of the GLSL shader. It has no adjustable values when it comes to those things. It's either an enable or disable unless you see a number range after the comment like for bloom and such.

This is where HLSL shines because it has adjustable values so you can tweak many things to get exactly what you want.

u-man and Jezze where kind enough to share really nice settings for 0.168
Perhaps give it a try and see if you like them

http://pastebin.com/yyiJ6wrM


Firepro4Life

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 44
  • Last login:October 14, 2023, 05:30:47 pm
Re: Question about shader settings in MAMEUIFX
« Reply #4 on: December 07, 2015, 03:58:48 pm »
Ah ok, I will play around with hlsl when i have a chance. thanks again.
Arcades:  Big Blue w/Pandora's Box 3, Double DK w/Arcade SD, MVS-U4 w/MAME
In-Progress: Mario Bros.