The NEW Build Your Own Arcade Controls
Main => Software Forum => Topic started by: Firepro4Life 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.
-
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 //#define CURVATURE //Screen curvature effect.
Replace with #define CURVATURE //Screen curvature effect.
//
// 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.
-
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?
-
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 (http://pastebin.com/yyiJ6wrM)
http://i.imgur.com/3c056Yz.jpg (http://i.imgur.com/3c056Yz.jpg)
-
Ah ok, I will play around with hlsl when i have a chance. thanks again.