Page 1 of 1

BGFX effects filter from MAME?

Posted: Wed Jan 05, 2022 4:06 pm
by clarkkent
I wonder if the BGFX effects filter from MAME would be possible on MiSTer? With the shadow masks the realism is higher than before on MiSTer but it can’t compete with BGFX.

Especially with the crt-geom-deluxe filter the video screen looks like a real CRT, maily because each pixel is converted, not only a shadow mask as overlay.

It looks so real that I can not believe it.

Re: BGFX effects filter from MAME?

Posted: Thu Jan 06, 2022 2:20 pm
by Asteld
My uneducated guess is that this is most likely not possible. BGFX uses shaders, so to achieve the same on the Mister, you will somehow have to implement and execute these. The problem with MiSTer is that it does not really have the hardware for that. The ARM CPU can't efficiently calculate shaders so we can eliminate that one as an option. The only remaining possibility is to compute the shaders on the FPGA. This will ALSO most probably not happen, since there is a lot of other important stuff that, one, can only be done on the FPGA, and (2) has more priority, such as driving the SNES core. There is not enough space on the FPGA to also compute shaders. Unfortunately, and very much so.

Not to mention that someone would have to program shader calculation on the FPGA, which probaably is pretty difficult as well.

Anyway, you should most likely disregard this comment because I know barely anything about how this hardware can function.

Re: BGFX effects filter from MAME?

Posted: Thu Jan 06, 2022 2:28 pm
by jlancaster86
It would probably require another device to take the video from MiSTer (via Direct Video) and doing the scaling and shader effects itself before sending the video on to the display. But I wouldn't hold my breath.

Re: BGFX effects filter from MAME?

Posted: Mon Jan 10, 2022 9:56 am
by jlancaster86

Re: BGFX effects filter from MAME?

Posted: Sun Feb 06, 2022 10:29 am
by clarkkent
The closest thing to the ultra realistic MAME bgfx crt-geom-deluxe on MiSTer is the mask Simple(Monochrome)/RetroTink/AG-Coarse.

But the dots in the masks do not represent a dot in the game. Unfortunately.

Re: BGFX effects filter from MAME?

Posted: Mon Feb 07, 2022 2:29 am
by FoxbatStargazer
clarkkent wrote: Sun Feb 06, 2022 10:29 am The closest thing to the ultra realistic MAME bgfx crt-geom-deluxe on MiSTer is the mask Simple(Monochrome)/RetroTink/AG-Coarse.

But the dots in the masks do not represent a dot in the game. Unfortunately.
When is that actually desirable? Real CRT masks almost never align with game pixels. Misalignment is part of the look!

Re: BGFX effects filter from MAME?

Posted: Mon Feb 07, 2022 4:33 pm
by clarkkent
Nevertheless I think the crt-geom-deluxe bgfx should be the threshold.