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

Pages: 1

crazy46guy
MAME Fan
Reged: 06/28/13
Posts: 15
Send PM


xBRZ shaders in BGFX
#360520 - 11/22/16 03:02 PM Attachment: attachment.zip 234 KB (82 downloads)


I converted the GLSL xBRZ shaders to BGFX. The 6xBRZ shader does not compile under DX9 because its too complicated. I had to fiddle with the make file to get the 6xBRZ shader to compile with the other backends.

The files in bgfx directory of the attachment go in the bgfx directory next to your mame executable.

The files in source directory of the attachment go in /mame/src/osd/modules/render/bgfx/shaders/chains/xbrz.



vio
MAME Fan
Reged: 09/30/14
Posts: 8
Send PM


Re: xBRZ shaders in BGFX new [Re: crazy46guy]
#360522 - 11/22/16 05:35 PM


Works wonderfully, thanks!



StilettoAdministrator
They're always after me Lucky ROMS!
Reged: 03/07/04
Posts: 6472
Send PM


Re: xBRZ shaders in BGFX new [Re: crazy46guy]
#371875 - 12/14/17 04:33 AM


> I converted the GLSL xBRZ shaders to BGFX. The 6xBRZ shader does not compile under
> DX9 because its too complicated. I had to fiddle with the make file to get the 6xBRZ
> shader to compile with the other backends.
>
> The files in bgfx directory of the attachment go in the bgfx directory next to your
> mame executable.
>
> The files in source directory of the attachment go in
> /mame/src/osd/modules/render/bgfx/shaders/chains/xbrz.

It's a year late, but thanks for this. I had a support request come in today about xBRZ and needed something to point them to.

Discussion with the MAME team today on IRC indicated some (certainly reasonable) refusal to absorb GPLv3 code into the MAME source code, and xBRZ, as it turns out, is GPLv3. I'm not certain that rewriting as MAME BGFX shaders is enough of a rewrite, so this likely remains under GPLv3. So this will likely need to remain external as an optional download, unless some other licensing arrangement is come to with the original developer of xBRZ, which isn't a priority.

Dunno if it will continue working with MAME 0.193 since we've updated to current BGFX, but I'm not enough of an expert on BGFX to theorize reasons why not.

- Stiletto



luismasp
MAME Fan
Reged: 04/01/14
Posts: 27
Send PM


Re: xBRZ shaders in BGFX new [Re: Stiletto]
#372642 - 01/02/18 01:10 AM


> > I converted the GLSL xBRZ shaders to BGFX. The 6xBRZ shader does not compile under
> > DX9 because its too complicated. I had to fiddle with the make file to get the
> 6xBRZ
> > shader to compile with the other backends.
> >
> > The files in bgfx directory of the attachment go in the bgfx directory next to your
> > mame executable.
> >
> > The files in source directory of the attachment go in
> > /mame/src/osd/modules/render/bgfx/shaders/chains/xbrz.
>
> It's a year late, but thanks for this. I had a support request come in today about
> xBRZ and needed something to point them to.
>
> Discussion with the MAME team today on IRC indicated some (certainly reasonable)
> refusal to absorb GPLv3 code into the MAME source code, and xBRZ, as it turns out, is
> GPLv3. I'm not certain that rewriting as MAME BGFX shaders is enough of a rewrite, so
> this likely remains under GPLv3. So this will likely need to remain external as an
> optional download, unless some other licensing arrangement is come to with the
> original developer of xBRZ, which isn't a priority.
>
> Dunno if it will continue working with MAME 0.193 since we've updated to current
> BGFX, but I'm not enough of an expert on BGFX to theorize reasons why not.
>
> - Stiletto

I just updated today from MAME 0.190 to 0.193 and this xbrz pack for BGFX doesnīt work anymore :S do you know if there are plans to re-add support in MAME for this pack? I love 6xbrz and itīs a shame that we canīt use it with 0.193...



Dullaron
Diablo III - Dunard #1884
Reged: 07/22/05
Posts: 6125
Loc: Fort Worth, Tx
Send PM


Re: xBRZ shaders in BGFX new [Re: luismasp]
#372666 - 01/02/18 06:10 PM


BGFX is broken on the 0.193. MooglyGuy told me while back don't use it.



W11 Home 64-bit + Nobara OS / AMD Radeon RX 5700 XT / AMD Ryzen 7 3700X 8-Core 3.59 GHz / RAM 64 GB



crazy46guy
MAME Fan
Reged: 06/28/13
Posts: 15
Send PM


Re: xBRZ shaders in BGFX new [Re: Stiletto]
#372719 - 01/04/18 12:31 PM


Since there was little interest in the xBRZ shaders in BGFX,
I went back to using the xBRZ shaders in GLSL. I don't even use BGFX anymore.

Do you need me to do something?



R. Belmont
Cuckoo for IGAvania
Reged: 09/21/03
Posts: 9716
Loc: ECV-197 The Orville
Send PM


Re: xBRZ shaders in BGFX new [Re: Dullaron]
#372730 - 01/04/18 08:41 PM


> BGFX is broken on the 0.193. MooglyGuy told me while back don't use it.

BGFX is broken for games with certain kinds of artwork in 0.193 (mostly LCD handhelds). It's fine for other stuff, and the artwork problem is fixed in current GIT.



R. Belmont
Cuckoo for IGAvania
Reged: 09/21/03
Posts: 9716
Loc: ECV-197 The Orville
Send PM


Re: xBRZ shaders in BGFX new [Re: crazy46guy]
#372731 - 01/04/18 08:41 PM


> Since there was little interest in the xBRZ shaders in BGFX,
> I went back to using the xBRZ shaders in GLSL. I don't even use BGFX anymore.
>
> Do you need me to do something?

You need to rebuild all the shaders with current MAME so people can continue to use them.



luismasp
MAME Fan
Reged: 04/01/14
Posts: 27
Send PM


Re: xBRZ shaders in BGFX new [Re: R. Belmont]
#372732 - 01/04/18 08:50 PM


Yes please, rebuild 6xbrz shader for MAME 0.193!



crazy46guy
MAME Fan
Reged: 06/28/13
Posts: 15
Send PM


Re: xBRZ shaders in BGFX new [Re: luismasp]
#372843 - 01/07/18 12:39 PM


luismasp -

Please look at the post:

http://www.mameworld.info/ubbthreads/sho...part=1&vc=1

These are the xBRZ shaders in GLSL. They do not have to be rebuilt. The GLSL shaders produce the same output as the BGFX shaders. Follow the instructions in the Attachment. If you have any problems, write back and I'll help you.



Dullaron
Diablo III - Dunard #1884
Reged: 07/22/05
Posts: 6125
Loc: Fort Worth, Tx
Send PM


Re: xBRZ shaders in BGFX new [Re: R. Belmont]
#372848 - 01/07/18 06:07 PM


> > BGFX is broken on the 0.193. MooglyGuy told me while back don't use it.
>
> BGFX is broken for games with certain kinds of artwork in 0.193 (mostly LCD
> handhelds). It's fine for other stuff, and the artwork problem is fixed in current
> GIT.

Will check out the videopin then. It did work when it was broken. bgfx crt may not be working after the fix. bgfx hlsl should be fine though.

Edit: By the way. bgfx hlsl seem to be working a lot better for some reason. No more red lines showing. But the plain hlsl still got that though. Sticking to the bgfx hlsl instead of the hlsl.



W11 Home 64-bit + Nobara OS / AMD Radeon RX 5700 XT / AMD Ryzen 7 3700X 8-Core 3.59 GHz / RAM 64 GB



luismasp
MAME Fan
Reged: 04/01/14
Posts: 27
Send PM


Re: xBRZ shaders in BGFX new [Re: crazy46guy]
#372851 - 01/07/18 09:30 PM


First of all, thanks for your reply and your help : )

I have that shader pack too, but only works with other video backends such as Opengl. The main reason to want your pack, is because is BGFX compatible, and for me is the fastest, most compatible, and stable video backend. (And if the MAME devs keeps updating this backend is for some reason)

PS: Sorry for my bad english.



anikom15
Instigator/Local CRT Guru
Reged: 04/11/16
Posts: 287
Send PM


Re: xBRZ shaders in BGFX new [Re: Dullaron]
#372852 - 01/07/18 11:51 PM


What do mean by red lines?



Dullaron
Diablo III - Dunard #1884
Reged: 07/22/05
Posts: 6125
Loc: Fort Worth, Tx
Send PM


Re: xBRZ shaders in BGFX new [Re: anikom15]
#372853 - 01/08/18 12:40 AM Attachment: bgfx_hlsl.png 1523 KB (3 downloads)


> What do mean by red lines?

Actually showing from the bgfx hlsl not the hlsl this time around. Was worst many MAME ago from the hlsl side.

bgfx hlsl vs hlsl.

Seem like there is a problem with the pixel size from the hlsl. Look longer. Maybe that is why the colors blending in a lot more than what the bgfx hlsl is showing,

[ATTACHED IMAGE - CLICK FOR FULL SIZE]

Attachment



W11 Home 64-bit + Nobara OS / AMD Radeon RX 5700 XT / AMD Ryzen 7 3700X 8-Core 3.59 GHz / RAM 64 GB



anikom15
Instigator/Local CRT Guru
Reged: 04/11/16
Posts: 287
Send PM


Re: xBRZ shaders in BGFX new [Re: Dullaron]
#372854 - 01/08/18 12:42 AM


Does it go away when you turn off the shadow mask?



Dullaron
Diablo III - Dunard #1884
Reged: 07/22/05
Posts: 6125
Loc: Fort Worth, Tx
Send PM


Re: xBRZ shaders in BGFX new [Re: anikom15]
#372855 - 01/08/18 12:59 AM Attachment: bgfx_hlsl.png 991 KB (1 downloads)


> Does it go away when you turn off the shadow mask?

Yep on the bgfx hlsl. Also turn it off on the hlsl as well.

[ATTACHED IMAGE - CLICK FOR FULL SIZE]

Attachment



W11 Home 64-bit + Nobara OS / AMD Radeon RX 5700 XT / AMD Ryzen 7 3700X 8-Core 3.59 GHz / RAM 64 GB



luismasp
MAME Fan
Reged: 04/01/14
Posts: 27
Send PM


Re: xBRZ shaders in BGFX new [Re: crazy46guy]
#373550 - 01/31/18 04:56 AM


@crazy46guy

Hi crazy46guy! Mame 0.194 is out, please, would you release the updated version of your 6xbrz shader (In my case i only need the 6xbrz) for BGFX? I need it like a drug xD

Thanks a lot, and i apologize for my bad english.



crazy46guy
MAME Fan
Reged: 06/28/13
Posts: 15
Send PM


Re: xBRZ shaders in BGFX new [Re: luismasp]
#378832 - 10/06/18 06:10 PM Attachment: New Version of xBRZ Shaders.zip 21 KB (79 downloads)


luismasp -

I've attached a zip file containing a new version of the xBRZ shaders for MAME. They are more efficient than the old version. Maybe you'll find them useful.



paxton
MAME Fan
Reged: 06/11/19
Posts: 1
Send PM


Re: xBRZ shaders in BGFX new [Re: crazy46guy]
#382731 - 06/11/19 09:33 PM


thanks for the xbrz shaders in mame. works perfect with opengl + 6xbrz on latest mame .210



Shader
MAME Fan
Reged: 07/19/23
Posts: 1
Send PM


Re: xBRZ shaders in BGFX new [Re: crazy46guy]
#396708 - 07/20/23 08:39 PM


Thank you very much!


Pages: 1

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

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