MAMEWorld >> EmuChat
View all threads Index   Flat Mode Flat  

uman
MAME Fan
Reged: 04/15/12
Posts: 455
Send PM
Re: GLSL Shader compile errors.
06/14/15 12:47 AM


> Hi uman!
>
> Did you ever see R.Belmont's conversion of the NTSC shader MooglyGuy wrote? It was
> posted here:
>
> http://forums.bannister.org/ubbthreads.php?ubb=showflat&Number=94686#Post94686
>
> It works pretty well from what I remember. The version on my PC has been edited so
> much that I'm not sure I remember how the default version worked. Note that for the
> most accurate effect, you'll need to set at least the color subcarrier frequency
> (just 3.579545 for NTSC), and then the ScanTime variable based on how many pixels the
> system outputs per period.
>
> So you'd want to use something like 44.6984 (=640/3.579545/4) for ScanTime to get
> correct artifact colors out of a PC with composite CGA. OR 39.911112
> (=560/3.579545/4) for an APPLE IIe. Don't know about consoles. Probably you'll
> "divide by 2" instead of "4". So the genesis (not always 320 width but...) should
> probably be 320/3.579545/2 and you'll get the same answer as for CGA. Or something
> like that.
>
> Also, many systems will need an extra phase shift added for correct colors. The
> setting is called "OValue" in the HLSL version but missing from the GLSL I linked.
>
> I'll take a look at separating some of the CRT shader out into separate passes. I
> started doing this before and ended up making things slower but maybe I'll have more
> luck this time.

Hi SoltanGris42,

not exactly what I meant, but what I had looked for , so i thank you for posting this link. Also nice to see, how small the shader-scene world can be. I will try Belmonts conversion with really old consoles, like Atari 2600, Coleco, NES and for the first time, I will do it with MAME . I really like that Belmonts conversion uses the glsl-pipeline. People should really see the benefit of this concept. The more deconstructed shaders are available, the more this concept will bring out good examples.

The changes we would like to do for vector stuff, will be on the vector driver/renderer level. I am not sure, but I guess this will not affect OpenGL , as i currently see no vector parameters available, other than anti-alias and flicker, if Opengl is enabled as videomode in MAME.
Even if the planned options will be available for OpenGL, vector-bloom, phosphor etc. will still be missing and it would be only half the fun .







Entire thread
Subject Posted by Posted on
* GLSL Shader compile errors. Luke Nukem 06/12/15 01:40 PM
. * Re: GLSL Shader compile errors. SoltanGris42  06/12/15 08:50 PM
. * Re: GLSL Shader compile errors. Luke Nukem  06/12/15 10:19 PM
. * Re: GLSL Shader compile errors. SoltanGris42  06/12/15 11:43 PM
. * Re: GLSL Shader compile errors. Luke Nukem  06/13/15 12:06 AM
. * Re: GLSL Shader compile errors. SoltanGris42  06/13/15 12:46 AM
. * Re: GLSL Shader compile errors. Ville Linde  06/13/15 07:57 PM
. * Re: GLSL Shader compile errors. R. Belmont  06/13/15 08:34 PM
. * Re: GLSL Shader compile errors. joey35car  06/15/15 12:23 AM
. * Re: GLSL Shader compile errors. B2K24  06/15/15 02:02 AM
. * Re: GLSL Shader compile errors. SoltanGris42  06/15/15 03:13 AM
. * Re: GLSL Shader compile errors. Vas Crabb  06/15/15 04:39 AM
. * Re: GLSL Shader compile errors. Luke Nukem  06/15/15 05:21 AM
. * Re: GLSL Shader compile errors. Dullaron  06/15/15 06:35 AM
. * Re: GLSL Shader compile errors. Luke Nukem  06/15/15 07:20 AM
. * Re: GLSL Shader compile errors. uman  06/15/15 01:55 PM
. * To uman Dullaron  06/16/15 07:04 AM
. * Re: To uman uman  06/16/15 11:08 AM
. * Re: To uman Dullaron  06/16/15 08:04 PM
. * Re: To uman uman  06/16/15 08:41 PM
. * Re: To uman Dullaron  06/16/15 08:47 PM
. * Re: To uman uman  10/01/15 05:55 PM
. * Re: To uman Dullaron  10/02/15 04:22 AM
. * Re: GLSL Shader compile errors. Luke Nukem  06/15/15 10:18 PM
. * Re: GLSL Shader compile errors. joey35car  06/15/15 05:13 AM
. * Re: GLSL Shader compile errors. B2K24  06/15/15 04:31 AM
. * Re: GLSL Shader compile errors. Luke Nukem  06/14/15 09:13 AM
. * Re: GLSL Shader compile errors. SoltanGris42  06/13/15 10:32 PM
. * Re: GLSL Shader compile errors. Luke Nukem  06/13/15 05:55 AM
. * Re: GLSL Shader compile errors. uman  06/13/15 11:44 AM
. * Re: GLSL Shader compile errors. SoltanGris42  06/13/15 10:08 PM
. * Re: GLSL Shader compile errors. Luke Nukem  06/14/15 01:06 AM
. * Re: GLSL Shader compile errors. uman  06/14/15 12:47 AM
. * Re: GLSL Shader compile errors. Luke Nukem  06/13/15 01:36 PM
. * Re: GLSL Shader compile errors. Mamesick  06/13/15 08:36 PM
. * Re: GLSL Shader compile errors. B2K24  06/13/15 08:10 PM
. * Re: GLSL Shader compile errors. B2K24  06/13/15 06:29 PM
. * Re: GLSL Shader compile errors. silkove  06/13/15 08:11 PM

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