MAMEUIFX

A full-of-features version of MAME designed for LCD monitors
It is currently 15/07/2018, 21:26

All times are UTC+02:00




Forum locked  This topic is locked, you cannot edit posts or make further replies.  [ 11 posts ]  Go to page 1 2 Next
Author Message
 Post subject: OpenGL GLSL shaders
PostPosted: 30/10/2015, 20:47 
Offline
Admin
Admin
User avatar

Joined: 17/09/2014, 16:04
Posts: 695
Location: Italy
From MAMEUIFX 0.167 we currently support 5 different shaders. Here are some pics of them in use.
NOTE: I'm using an LCD monitor and I have enabled "Widescreen Stretch" option. Also, I disabled curvature in the shaders to better show the final result. Though I'm a fan of this "flat" monitor effect and I currently use it to play games. The game used for tests is the well-known Black Tiger.

CRT Geom HQ (high CPU/GPU resources demanding)
Image

CRT Geom MQ (medium CPU/GPU resources demanding, very small loss in image quality)
Image

CRT Geom LQ (low CPU/GPU resources demanding, very big loss in image quality)
Image

CRT Geom Bloom (medium CPU/GPU resources demanding, derived from CRT Geom MQ)
Image

Lottes CRT (original version is very high CPU/GPU resources demanding, here is a modified light-weight version)
Image

All these shaders are distributed with MAMEUIFX package. You simply have to do:
1) Select "OpenGL" in Video Mode section of Display tab
2) Enable "Use GLSL" in OpenGL tab
3) Select the desired shader in the MAME Shader 0 slot under OpenGL Shaders tab
For CRT Geom Bloom shader, which is a multiple one, you have to do the following setup in OpenGL Shaders:
Image
All shaders have also their "Vertical" version which have to be used with Vertical oriented games.

That's all, feel free to post comments, questions, etc.


Top
   
 Post subject: Re: OpenGL GLSL shaders
PostPosted: 04/11/2015, 15:19 
Offline
Fan
Fan

Joined: 11/05/2015, 19:29
Posts: 63
Location: Brasil
Mamesick, how do I completely remove the scanlines shader? On what line of sahder .vsh should I set?


Top
   
 Post subject: Re: OpenGL GLSL shaders
PostPosted: 04/11/2015, 20:10 
Offline
Admin
Admin
User avatar

Joined: 17/09/2014, 16:04
Posts: 695
Location: Italy
rodridie wrote:
Mamesick, how do I completely remove the scanlines shader? On what line of sahder .vsh should I set?


I don't know what are you meaning... scanlines in the shaders cannot be disabled, they are the main feature of them. If instead you have an effect enabled that overlays the shaders, go to "Advanced" tab of options and click "Reset Effect". then Apply and Ok.


Top
   
 Post subject: Re: OpenGL GLSL shaders
PostPosted: 06/11/2015, 0:17 
Offline
Fan
Fan

Joined: 11/05/2015, 19:29
Posts: 63
Location: Brasil
Hello Mamesick! See this image the crt-geom, does not have the correct curvature of the two sides. The right side of this unequal to the left! This happens in all vertical games. The horizontal are perfect! What will be what happens in vertical?


Attachments:
crtgeom.jpg
crtgeom.jpg [ 18.37 KiB | Viewed 10424 times ]
Top
   
 Post subject: Re: OpenGL GLSL shaders
PostPosted: 06/11/2015, 9:03 
Offline
Admin
Admin
User avatar

Joined: 17/09/2014, 16:04
Posts: 695
Location: Italy
Open the related .vsh file with a text editor, and search this text:
Code:
  // tilt angle in radians
  // (behavior might be a bit wrong if both components are nonzero)
  const vec2 angle = vec2(0.0,0.01);

Verify that vec2 is the same as above, otherwise correct it.

This bug doesn't happen with the shaders I distribute. Though I know there are places where it's possible find modified versions of CRT GEOM and LOTTES CRT that are buggy.


Top
   
 Post subject: Re: OpenGL GLSL shaders
PostPosted: 06/11/2015, 15:42 
Offline
Fan
Fan

Joined: 11/05/2015, 19:29
Posts: 63
Location: Brasil
Thank Mamesick, now it's all perfect! :P


Top
   
 Post subject: Re: OpenGL GLSL shaders
PostPosted: 16/01/2016, 5:41 
Offline
Fan
Fan

Joined: 11/05/2015, 19:29
Posts: 63
Location: Brasil
Mamesick, it is possible to remove these artifacts (effects) that are on the lines of scanlines? Thank you!


Attachments:
crt-geom.jpg
crt-geom.jpg [ 32.39 KiB | Viewed 9950 times ]
Top
   
 Post subject: Re: OpenGL GLSL shaders
PostPosted: 19/01/2016, 9:41 
Offline
Admin
Admin
User avatar

Joined: 17/09/2014, 16:04
Posts: 695
Location: Italy
I guess no. I don't know what should be changed in the shader. Really. Sorry.


Top
   
 Post subject: Re: OpenGL GLSL shaders
PostPosted: 27/01/2016, 9:43 
Offline
Novice
Novice

Joined: 18/09/2014, 19:25
Posts: 6
Hi Mamesick how I can disabled curvature ??? :oops:


Top
   
 Post subject: Re: OpenGL GLSL shaders
PostPosted: 27/01/2016, 11:06 
Offline
Admin
Admin
User avatar

Joined: 17/09/2014, 16:04
Posts: 695
Location: Italy
Pulky wrote:
Hi Mamesick how I can disabled curvature ??? :oops:


Open with a text editor the .fsh file related to shader you are using and find this line:
Code:
// Enable screen curvature.
#define CURVATURE // comment out this line, if you dont want curvature and if you want a FLAT CRT.
the c
Simply put two // in front of the #define statement. Save the changes and verify you have now a FLAT display


Top
   
Display posts from previous:  Sort by  
Forum locked  This topic is locked, you cannot edit posts or make further replies.  [ 11 posts ]  Go to page 1 2 Next

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Limited