MAMEWorld >> EmuChat
View all threads Index   Flat Mode Flat  

R.Coltrane
MAME user since 0.11
Reged: 08/07/05
Posts: 495
Send PM
Re: BGFX - CRT-GEOM-DELUXE feature request
01/12/18 04:55 PM


> > > I would like to know if it is possible to include a new feature in BGFX
> > > (CRT-GEOM-DELUXE shader) to adjust the darkness of the scanlines similar to what
> we
> > > already have in HLSL.
> > >
> > > I decided to open this request because I feel that our current CRT-GEOM-DELUXE
> > > scanlines are too dark (I know they are supposed to look that way) and I would
> like
> > > to soften the image a little bit by reducing the amount of black in scanlines, or
> > by
> > > making the scanlines less dark.
> > >
> > > When I play at night, my eyes get hurt with these 100% black scanlines! And I've
> > read
> > > somewhere that in a real CRT monitor, the scanlines are less noticeable because
> of
> > > the luminosity of the CRT tube, which makes the scanlines less dark and you even
> > have
> > > the illusion that the scanlines are thinner because of that, so the final image
> is
> > > smoother than what we achieve using this shader.
> > >
> > > But since I love this particular shader, I want to keep using it, I just would
> like
> > > to have this extra feature to adjust.
> >
> > I haven't had the tools to compile mame set up in probably a year. But assuming I
> can
> > get the tools updated to the point where I can compile bgfx shaders again, I'll
> post
> > a hacked up version for you here.
> >
> > Who knows, if I offend cgwg enough with the poor quality of the changes, he may
> even
> > pop up to make some kind of official update. Probably not though.
>
> I'm attaching a zip file with a "bgfx" folder to merge with the one in MAME 0.193. I
> can't guarantee other versions work. You can also get the zip file on my google drive
> here: Zip File on Google Drive
>
> crt-geom-deluxe has a scanline profile controlled by two paramters.
>
> I hooked them up to MAME bgfx sliders and changed the default for the first parameter
> to lighten the scanline slightly. The new shader is called crt-geom-deluxe-HACK so
> that nobody thinks it's official or from the real author.
>
> If you want to brighten the scanlines more you should:
>
>
> Use the sliders in the TAB menu to find the values for "Scanline Width Parameters X"
> and "Scanline Width Parameters Y" that you prefer.
> Edit the "MAME\bgfx\chains\crt-geom-deluxe-HACK.json". Near the top of the file
> you'll see
>
> { "type": "vec2",
> "name": "scanWidth",
> "text": "Scanline Width Parameters ",
> "default": [ 0.35, 0.1 ],
> "max" : [ 0.5, 0.5 ],
> "min" : [ 0.0, 0.0 ],
> "step" : 0.01,
> "format": "%1.2f",
> "screen": "raster" },
>
> You want to change the line that starts with "default" to the values you noted in
> step 1.
>
>
> Please note that the first parameter is the most important. The default in
> crt-geom-deluxe is 0.30. I'm using 0.35. But you can experiment with both parameters
> if you want to.
>
> Let me know if you have any problems

Very cool!! I'll give it a try and post the results here later. Thanks a lot man!!







Entire thread
Subject Posted by Posted on
* BGFX - CRT-GEOM-DELUXE feature request R.Coltrane 01/10/18 10:16 PM
. * Re: BGFX - CRT-GEOM-DELUXE feature request SoltanGris42  01/11/18 01:00 AM
. * Re: BGFX - CRT-GEOM-DELUXE feature request SoltanGris42  01/11/18 04:16 AM
. * Re: BGFX - CRT-GEOM-DELUXE feature request R.Coltrane  01/12/18 04:55 PM
. * Re: BGFX - CRT-GEOM-DELUXE feature request R.Coltrane  01/13/18 06:07 PM
. * Re: BGFX - CRT-GEOM-DELUXE feature request SoltanGris42  01/14/18 04:09 AM
. * Re: BGFX - CRT-GEOM-DELUXE feature request R.Coltrane  01/15/18 03:05 PM
. * Re: BGFX - CRT-GEOM-DELUXE feature request anikom15  01/11/18 12:27 AM
. * Re: BGFX - CRT-GEOM-DELUXE feature request R.Coltrane  01/11/18 01:09 AM
. * Re: BGFX - CRT-GEOM-DELUXE feature request anikom15  01/11/18 03:17 AM
. * Re: BGFX - CRT-GEOM-DELUXE feature request SoltanGris42  01/11/18 01:08 AM

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