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

SoltanGris42
MAME Fan
Reged: 11/16/13
Posts: 134
Send PM
Re: Questions about crt-geom and crt-geom-deluxe bgfx shaders
07/30/16 09:13 PM


> Is the aperture mask built-in to the shaders or do we pick the mask like this...
>
> bgfx_path bgfx
> bgfx_screen_chains crt-geom-deluxe,crt-geom-deluxe,crt-geom-deluxe
> bgfx_shadow_mask shadow_mask.png
>
> or...
>
> bgfx_path bgfx
> bgfx_screen_chains crt-geom-deluxe,crt-geom-deluxe,crt-geom-deluxe
> bgfx_shadow_mask scanlines.png
>
>
> Does the aperture mask auto-rotate based on the games orientation, horizontal or
> vertical ?

crt-geom doesn't get its shadow mask texture from the "-bgfx_shadow_mask" commandline option (afaik). So once you know which aperture mask you like the best from experimenting with the sliders you'll have to edit the "crt-geom.json" or "crt-geom-deluxe.json" in mame/bgfx/chains to point to the texture you want to use. This is generally true if you want to change (any of) the defaults in any of the bgfx shaders btw since they can't save options to a file.

Look for this line near the bottom of the file to change:


Code:

{ "sampler": "mask_texture", "texture": "bgfx/chains/crt-geom/aperture_1_2_bgr.png", "selection": "Shadow mask" }


Also I believe that for vertical games, crt-geom just renders the whole thing like normal and then its output is turned on its side. I think this is actually what we want it to do... For aperture/shadow mask patterns that depend on the subpixel arrangement of your display, this will look weird. For patterns that don't, it will look good. You might need to keep a second copy of the crt-geom.json around for vertical games if you need different options for them. You can just copy/paste "mame/bgfx/chains/crt-geom.json" and give the new version a different name. Then you can edit it as you like.

This kind of thing is necessary until (if?) there is a a way to read/save shader parameters from/to a file.







Entire thread
Subject Posted by Posted on
* Questions about crt-geom and crt-geom-deluxe bgfx shaders Mr Ric 07/30/16 06:20 PM
. * Re: Questions about crt-geom and crt-geom-deluxe bgfx shaders SoltanGris42  07/30/16 09:13 PM
. * Re: Questions about crt-geom and crt-geom-deluxe bgfx shaders Mr Ric  07/31/16 04:29 PM
. * Re: Questions about crt-geom and crt-geom-deluxe bgfx shaders SoltanGris42  08/01/16 03:04 AM
. * Re: Questions about crt-geom and crt-geom-deluxe bgfx shaders anikom15  02/13/17 05:34 AM
. * Re: Questions about crt-geom and crt-geom-deluxe bgfx shaders SoltanGris42  02/13/17 05:50 AM
. * Re: Questions about crt-geom and crt-geom-deluxe bgfx shaders Elispalta  02/03/17 10:22 PM
. * Re: Questions about crt-geom and crt-geom-deluxe bgfx shaders CiroConsentino  02/03/17 11:50 PM
. * Re: Questions about crt-geom and crt-geom-deluxe bgfx shaders Elispalta  02/04/17 12:31 AM

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