MAMEWorld >> EmuChat
Previous thread Previous  View all threads Index   Next thread Next   Flat Mode Flat  

"The Manuel"
Old Fart
Reged: 10/08/03
Posts: 244
Loc: Michigan, USA
Send PM
Re: Vsync/Frameskip Causing Horizontal Motion Blur
01/23/19 01:54 AM


Man, you've made my day. My posts are seldom helpful to anyone but knowing that at least I was able to help someone warms my heart.

For completeness, I had made a few modifications to crt-geom-deluxe for my own use, mostly related to simulated screen curvature and I really like how it looks when framed by artwork with bezels. It's just something to check out but you may prefer the default. To try it, you can create a backup copy of the D:\MAME\bgfx\chains\crt-geom-deluxe.json file, then replace its contents with the code below.


Code:

{
"name": "CRT-geom",
"author": "cgwg",
"sliders": [
{ "type": "float",
"name": "aperture_strength",
"text": "Shadow mask strength",
"default": 0.4,
"max" : 1.0,
"min" : 0.0,
"step" : 0.05,
"format": "%1.2f",
"screen": "raster" },
{ "type": "float",
"name": "phosphor_power",
"text": "Phosphor decay power",
"default": 1.2,
"max" : 3.0,
"min" : 0.5,
"step" : 0.05,
"format": "%1.2f",
"screen": "raster" },
{ "type": "float",
"name": "phosphor_amplitude",
"text": "Phosphor persistence amplitude",
"default": 0.04,
"max" : 0.2,
"min" : 0.0,
"step" : 0.01,
"format": "%1.2f",
"screen": "raster" },
{ "type": "float",
"name": "halation",
"text": "Halation amplitude",
"default": 0.1,
"max" : 0.3,
"min" : 0.0,
"step" : 0.01,
"format": "%1.2f",
"screen": "raster" },
{ "type": "float",
"name": "blurwidth",
"text": "Halation blur width",
"default": 2.0,
"max" : 4.0,
"min" : 0.1,
"step" : 0.1,
"format": "%1.1f",
"screen": "raster" },
{ "type": "float",
"name": "curvature",
"text": "Enable curvature",
"default": 1.0,
"max" : 1.0,
"min" : 0.0,
"step" : 1.0,
"format": "%1.0f",
"screen": "raster" },
{ "type": "float",
"name": "R",
"text": "Radius of curvature",
"default": 3.5,
"max" : 10.0,
"min" : 0.5,
"step" : 0.1,
"format": "%1.1f",
"screen": "raster" },
{ "type": "float",
"name": "d",
"text": "Distance to screen",
"default": 2.0,
"max" : 10.0,
"min" : 0.1,
"step" : 0.1,
"format": "%1.1f",
"screen": "raster" },
{ "type": "vec2",
"name": "angle",
"text": "Tilt ",
"default": [ 0.0, 0.0 ],
"max" : [ 1.0, 1.0 ],
"min" : [-1.0,-1.0 ],
"step" : 0.01,
"format": "%1.2f",
"screen": "raster" },
{ "type": "float",
"name": "cornersize",
"text": "Rounded corner size",
"default": 0.01,
"max" : 0.10,
"min" : 0.00,
"step" : 0.01,
"format": "%1.2f",
"screen": "raster" },
{ "type": "float",
"name": "cornersmooth",
"text": "Border smoothness",
"default": 1000,
"max" : 2000,
"min" : 100,
"step" : 100,
"format": "%1.0f",
"screen": "raster" },
{ "type": "vec2",
"name": "overscan",
"text": "Overscan ",
"default": [ 1.0, 1.0 ],
"max" : [ 1.2, 1.2 ],
"min" : [ 0.8, 0.8 ],
"step" : 0.02,
"format": "%1.2f",
"screen": "raster" },
{ "type": "float",
"name": "CRTgamma",
"text": "Gamma of simulated CRT",
"default": 2.4,
"max" : 4.0,
"min" : 0.7,
"step" : 0.05,
"format": "%1.2f",
"screen": "raster" },
{ "type": "float",
"name": "monitorgamma",
"text": "Gamma of output display",
"default": 2.2,
"max" : 4.0,
"min" : 0.7,
"step" : 0.05,
"format": "%1.2f",
"screen": "raster" },
{ "type": "vec2",
"name": "aspect",
"text": "Aspect ratio ",
"default": [ 1.0, 0.75 ],
"max" : [ 1.0, 1.0 ],
"min" : [ 0.3, 0.3 ],
"step" : 0.01,
"format": "%1.2f",
"screen": "raster" }
],
"targets": [
{ "name": "internal1",
"mode": "guest"
},
{ "name": "internal2",
"mode": "guest"
},
{ "name": "blur",
"mode": "guest"
},
{ "name": "phosphor",
"mode": "guest"
}

],
"passes": [
{
"effect": "crt-geom/phosphor_apply",
"name": "phosphor apply",
"uniforms": [
{ "uniform": "u_phosphor_power", "slider": "phosphor_power" },
{ "uniform": "u_phosphor_amplitude","slider": "phosphor_amplitude" },
{ "uniform": "u_gamma", "slider": "CRTgamma" }
],
"input": [
{ "sampler": "s_screen", "target": "screen" },
{ "sampler": "s_phosphor", "target": "phosphor" }
],
"output": "internal1"
},
{
"effect": "crt-geom/phosphor_update",
"name": "phosphor update",
"uniforms": [
{ "uniform": "u_phosphor_power", "slider": "phosphor_power" },
{ "uniform": "u_phosphor_amplitude","slider": "phosphor_amplitude" },
{ "uniform": "u_gamma", "slider": "CRTgamma" }
],
"input": [
{ "sampler": "s_screen", "target": "screen" },
{ "sampler": "s_phosphor", "target": "phosphor" }
],
"output": "phosphor"
},
{
"effect": "crt-geom/gaussx",
"name": "Gaussian blur x",
"uniforms": [
{ "uniform": "u_width", "slider": "blurwidth" },
{ "uniform": "u_aspect","slider": "aspect" },
{ "uniform": "u_gamma", "slider": "CRTgamma" }
],
"input": [
{ "sampler": "s_tex", "target": "internal1" }
],
"output": "internal2"
},
{
"effect": "crt-geom/gaussy",
"name": "Gaussian blur y",
"uniforms": [
{ "uniform": "u_width", "slider": "blurwidth" },
{ "uniform": "u_aspect","slider": "aspect" },
{ "uniform": "u_gamma", "slider": "CRTgamma" }
],
"input": [
{ "sampler": "s_tex", "target": "internal2" }
],
"output": "blur"
},
{
"effect": "crt-geom/crt-geom-deluxe",
"name": "CRT",
"uniforms": [
{ "uniform": "curvature", "slider": "curvature" },
{ "uniform": "R", "slider": "R" },
{ "uniform": "d", "slider": "d" },
{ "uniform": "angle", "slider": "angle" },
{ "uniform": "cornersize", "slider": "cornersize" },
{ "uniform": "cornersmooth","slider": "cornersmooth" },
{ "uniform": "overscan", "slider": "overscan" },
{ "uniform": "aspect", "slider": "aspect" },
{ "uniform": "CRTgamma", "slider": "CRTgamma" },
{ "uniform": "monitorgamma","slider": "monitorgamma" },
{ "uniform": "aperture_strength","slider": "aperture_strength" },
{ "uniform": "halation", "slider": "halation" }
],

"input": [
{ "sampler": "mpass_texture", "target": "internal1" },
{ "sampler": "mask_texture", "texture": "bgfx/chains/crt-geom/aperture_1_2_bgr.png", "selection": "Shadow mask" },
{ "sampler": "blur_texture", "target": "blur" }
],

"output": "output"
}
]
}








Entire thread
Subject Posted by Posted on
* Vsync/Frameskip Causing Horizontal Motion Blur Kilo 01/18/19 05:53 PM
. * Re: Vsync/Frameskip Causing Horizontal Motion Blur John IV  01/19/19 08:35 AM
. * Re: Vsync/Frameskip Causing Horizontal Motion Blur Kilo  01/19/19 05:16 PM
. * Re: Vsync/Frameskip Causing Horizontal Motion Blur TafoidAdministrator  01/19/19 06:11 PM
. * Re: Vsync/Frameskip Causing Horizontal Motion Blur Kilo  01/19/19 06:29 PM
. * Re: Vsync/Frameskip Causing Horizontal Motion Blur "The Manuel"  01/22/19 05:34 PM
. * Re: Vsync/Frameskip Causing Horizontal Motion Blur Kilo  01/22/19 05:38 PM
. * Re: Vsync/Frameskip Causing Horizontal Motion Blur "The Manuel"  01/22/19 05:45 PM
. * Re: Vsync/Frameskip Causing Horizontal Motion Blur Kilo  01/22/19 05:51 PM
. * Re: Vsync/Frameskip Causing Horizontal Motion Blur "The Manuel"  01/23/19 12:39 AM
. * Re: Vsync/Frameskip Causing Horizontal Motion Blur Kilo  01/23/19 01:23 AM
. * Re: Vsync/Frameskip Causing Horizontal Motion Blur "The Manuel"  01/23/19 01:54 AM
. * Re: Vsync/Frameskip Causing Horizontal Motion Blur Kilo  01/23/19 05:01 AM
. * Re: Vsync/Frameskip Causing Horizontal Motion Blur "The Manuel"  01/23/19 06:17 AM
. * Re: Vsync/Frameskip Causing Horizontal Motion Blur Kilo  01/23/19 06:45 AM
. * Re: Vsync/Frameskip Causing Horizontal Motion Blur "The Manuel"  01/23/19 04:16 PM
. * Re: Vsync/Frameskip Causing Horizontal Motion Blur Envisaged0ne  01/23/19 03:08 AM
. * Re: Vsync/Frameskip Causing Horizontal Motion Blur "The Manuel"  01/23/19 06:14 AM
. * Re: Vsync/Frameskip Causing Horizontal Motion Blur Envisaged0ne  01/23/19 10:46 AM

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