MAMEWorld >> EmuChat
View all threads Index   Flat Mode Flat  

SoltanGris42
MAME Fan
Reged: 11/16/13
Posts: 134
Send PM
Tried to get Timothy Lottes' CRT Shader working with SDLMAME.
08/25/14 04:50 AM Attachment: Lottes_CRT_Shader_Updated.zip 3 KB (236 downloads)


EDIT: Attached an updated file on 08/26

Hi Guys,

Timothy Lottes (worked for nvidia, created fxaa...) posted a public domain CRT Shader up on Shadertoy the other day:

http://timothylottes.blogspot.com/2014/08/scanlines.html

I tried to get it working in SDLMame/SDLMess. There are probably bugs (for sure there are because I don't think it works with the NTSC shader...), but it works pretty well any way. They may be fundamental errors because I'm not a programmer, don't really know how the GLSL system in MAME/MESS works, and I am easily confused by texture coordinates.

The shader's best features, IMO, are an aperture pattern that looks better than others I've seen and a sharpness parameter that is easily tweaked to your liking.

It also supports tweakable screen curvature, scanline darkness, and aperture pattern brightness.

I added a few possibly stupid things to the original shader: scanline varies with pixel intensity, contrast/gamma boost to help offset the natural image darkening of the aperture effect, a modification to the way sharpness works so that it is a little more consistent between drivers, and YUV saturation and tint settings.

If you use SDLMAME or SDLMESS with GLSL shaders, then you might want to check it out.







Entire thread
Subject Posted by Posted on
* Tried to get Timothy Lottes' CRT Shader working with SDLMAME. SoltanGris42 08/25/14 04:50 AM
. * Re: Tried to get Timothy Lottes' CRT Shader working with SDLMAME. mjnman  04/06/17 01:53 PM
. * Re: Tried to get Timothy Lottes' CRT Shader working with SDLMAME. R. Belmont  04/06/17 07:40 PM
. * Taking a poll MooglyGuy  09/25/14 12:15 AM
. * Re: Taking a poll Mr. DoAdministrator  09/25/14 10:51 AM
. * The simplest answer is no.... Traso  09/25/14 05:38 AM
. * Re: The simplest answer is no.... SoltanGris42  09/25/14 08:15 AM
. * Re: The simplest answer is no.... R. Belmont  09/25/14 02:38 PM
. * Re: The simplest answer is no.... Mamesick  09/25/14 03:12 PM
. * Re: The simplest answer is no.... Traso  09/26/14 07:27 PM
. * Re: The simplest answer is no.... Mamesick  09/27/14 08:11 AM
. * Re: The simplest answer is no.... lamprey  09/25/14 06:44 AM
. * Re: Taking a poll B2K24  09/25/14 01:53 AM
. * Re: Taking a poll Arnold101  09/25/14 01:31 AM
. * Re: Taking a poll Sune  09/25/14 01:30 AM
. * Re: Tried to get Timothy Lottes' CRT Shader working with SDLMAME. bigbluefe  09/15/14 02:24 AM
. * Re: Tried to get Timothy Lottes' CRT Shader working with SDLMAME. B2K24  09/15/14 03:12 AM
. * Re: Tried to get Timothy Lottes' CRT Shader working with SDLMAME. R. Belmont  09/15/14 04:15 AM
. * EDITED: Re: Tried to get Timothy Lottes' CRT Shader working with SDLMAME SoltanGris42  09/15/14 04:36 AM
. * Re: EDITED: Re: Tried to get Timothy Lottes' CRT Shader working with SDLMAME R. Belmont  09/15/14 04:50 PM
. * Re: EDITED: Re: Tried to get Timothy Lottes' CRT Shader working with SDLMAME lamprey  09/15/14 07:42 PM
. * Re: EDITED: Re: Tried to get Timothy Lottes' CRT Shader working with SDLMAME B2K24  09/15/14 08:09 PM
. * Re: EDITED: Re: Tried to get Timothy Lottes' CRT Shader working with SDLMAME SoltanGris42  09/15/14 08:27 PM
. * Re: EDITED: Re: Tried to get Timothy Lottes' CRT Shader working with SDLMAME B2K24  09/22/14 08:05 PM
. * Re: EDITED: Re: Tried to get Timothy Lottes' CRT Shader working with SDLMAME SoltanGris42  09/22/14 10:42 PM
. * Re: EDITED: Re: Tried to get Timothy Lottes' CRT Shader working with SDLMAME torturedutopian  09/26/14 12:43 AM
. * Re: EDITED: Re: Tried to get Timothy Lottes' CRT Shader working with SDLMAME Traso  09/16/14 12:55 AM
. * Re: EDITED: Re: Tried to get Timothy Lottes' CRT Shader working with SDLMAME Arnold101  09/22/14 07:37 PM
. * Re: EDITED: Re: Tried to get Timothy Lottes' CRT Shader working with SDLMAME Traso  09/23/14 06:56 AM
. * Re: EDITED: Re: Tried to get Timothy Lottes' CRT Shader working with SDLMAME Arnold101  09/24/14 08:07 PM
. * Re: EDITED: Re: Tried to get Timothy Lottes' CRT Shader working with SDLMAME Traso  09/25/14 06:59 AM
. * Re: Tried to get Timothy Lottes' CRT Shader working with SDLMAME. Dullaron  09/15/14 05:09 AM
. * Re: Tried to get Timothy Lottes' CRT Shader working with SDLMAME. B2K24  09/15/14 05:25 AM
. * Re: Tried to get Timothy Lottes' CRT Shader working with SDLMAME. bigbluefe  09/15/14 03:17 PM
. * Re: Tried to get Timothy Lottes' CRT Shader working with SDLMAME. Dullaron  09/15/14 02:45 AM
. * Update on Aug 30 - Alpha works now... SoltanGris42  08/30/14 10:06 PM
. * Re: Update on Aug 30 - Alpha works now... Dullaron  08/31/14 01:53 AM
. * Re: Update on Aug 30 - Alpha works now... SoltanGris42  08/31/14 02:06 AM
. * Re: Update on Aug 30 - Alpha works now... Arnold101  09/03/14 09:04 PM
. * Re: Update on Aug 30 - Alpha works now... R. Belmont  09/03/14 10:03 PM
. * Re: Update on Aug 30 - Alpha works now... Arnold101  09/03/14 10:39 PM
. * Re: Update on Aug 30 - Alpha works now... Dullaron  09/04/14 12:05 AM
. * Re: Update on Aug 30 - Alpha works now... Arnold101  09/04/14 04:01 AM
. * Re: Update on Aug 30 - Alpha works now... Anonymous  09/04/14 08:27 AM
. * Re: Update on Aug 30 - Alpha works now... mac1202  09/04/14 08:54 PM
. * Re: Update on Aug 30 - Alpha works now... SoltanGris42  09/04/14 11:29 PM
. * Re: Update on Aug 30 - Alpha works now... Arnold101  09/05/14 03:06 AM
. * Re: Update on Aug 30 - Alpha works now... SoltanGris42  09/05/14 03:59 AM
. * Re: Update on Aug 30 - Alpha works now... (Edit.) Dullaron  09/04/14 06:51 AM
. * Re: Update on Aug 30 - Alpha works now... (Edit.) Arnold101  09/04/14 09:09 PM
. * Re: Update on Aug 30 - Alpha works now... (Edit.) Dullaron  09/05/14 03:21 AM
. * Re: Update on Aug 30 - Alpha works now... (Edit.) Arnold101  09/05/14 04:37 AM
. * Re: Update on Aug 30 - Alpha works now... (Edit.) Dullaron  09/05/14 04:59 AM
. * Re: Update on Aug 30 - Alpha works now... (Edit.) Arnold101  09/05/14 01:53 PM
. * Re: Update on Aug 30 - Alpha works now... CiroConsentino  08/31/14 02:19 AM
. * Updated again with a small bloom effect and 2 alternate shadow mask patterns SoltanGris42  08/30/14 04:06 AM
. * Re: Updated again with a small bloom effect and 2 alternate shadow mask patterns Dullaron  08/30/14 05:46 AM
. * Re: Updated again with a small bloom effect and 2 alternate shadow mask patterns SoltanGris42  08/30/14 06:17 AM
. * Re: Updated again with a small bloom effect and 2 alternate shadow mask patterns Dullaron  08/30/14 06:28 AM
. * Re: Updated again with a small bloom effect and 2 alternate shadow mask patterns SoltanGris42  08/30/14 04:21 AM
. * Updated the shader file to work with my laptop's Intel Graphics driver SoltanGris42  08/27/14 03:43 AM
. * Re: Updated the shader file to work with my laptop's Intel Graphics driver R. Belmont  08/28/14 05:21 PM
. * Re: Updated the shader file to work with my laptop's Intel Graphics driver SoltanGris42  08/29/14 03:55 AM
. * Re: Updated the shader file to work with my laptop's Intel Graphics driver R. Belmont  08/29/14 08:06 PM
. * Re: Updated the shader file to work with my laptop's Intel Graphics driver Dullaron  08/28/14 06:40 AM
. * Re: Updated the shader file to work with my laptop's Intel Graphics driver SoltanGris42  08/29/14 04:02 AM
. * Re: Updated the shader file to work with my laptop's Intel Graphics driver Dullaron  08/29/14 07:39 AM
. * Re: Tried to get Timothy Lottes CRT Shader working with SDLMAME. R. Belmont  08/26/14 03:45 AM
. * Re: Tried to get Timothy Lottes CRT Shader working with SDLMAME. bigbluefe  08/27/14 04:25 AM
. * Re: Tried to get Timothy Lottes CRT Shader working with SDLMAME. lamprey  08/27/14 11:03 PM
. * By the way. Dullaron  08/27/14 11:47 PM
. * Re: Tried to get Timothy Lottes CRT Shader working with SDLMAME. TafoidAdministrator  08/27/14 04:39 AM
. * Re: Tried to get Timothy Lottes CRT Shader working with SDLMAME. bigbluefe  08/27/14 05:16 AM
. * Re: Tried to get Timothy Lottes CRT Shader working with SDLMAME. MooglyGuy  08/26/14 12:07 PM
. * Re: Tried to get Timothy Lottes CRT Shader working with SDLMAME. lamprey  08/27/14 10:50 PM
. * Re: Tried to get Timothy Lottes CRT Shader working with SDLMAME. SoltanGris42  08/27/14 03:35 AM
. * Re: Tried to get Timothy Lottes CRT Shader working with SDLMAME. TimothyLottes  08/27/14 06:46 PM
. * Re: Tried to get Timothy Lottes CRT Shader working with SDLMAME. MooglyGuy  08/29/14 11:14 AM
. * Re: Tried to get Timothy Lottes CRT Shader working with SDLMAME. Dullaron  08/29/14 12:42 AM
. * Screenshot with the shader's default settings SoltanGris42  08/25/14 04:52 AM
. * Trying MESS on my projector SoltanGris42  08/27/14 05:32 AM
. * Re: Trying MESS on my projector Dullaron  08/27/14 10:34 AM
. * Re: Trying MESS on my projector SoltanGris42  08/27/14 10:59 AM
. * Re: Trying MESS on my projector Dullaron  08/27/14 12:32 PM
. * Re: Trying MESS on my projector B2K24  08/27/14 05:52 AM
. * Re: Screenshot with the shader's default settings Ramirez  08/25/14 07:57 PM
. * Re: Screenshot with the shader's default settings B2K24  08/25/14 05:56 AM
. * Re: Screenshot with the shader's default settings SoltanGris42  08/25/14 06:00 AM
. * Re: Screenshot with the shader's default settings Dullaron  08/25/14 05:30 AM
. * Re: Screenshot with the shader's default settings Traso  08/25/14 07:20 PM

Extra information Permissions
Moderator:  Robbbert, Tafoid 
0 registered and 26 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 23660