MAMEWorld >> EmuChat
View all threads Index   Threaded Mode Threaded  

Pages: 1

MooglyGuy
Renegade MAME Dev
Reged: 09/01/05
Posts: 2261
Send PM


Shader effects from other emulators?
#351761 - 03/21/16 07:37 AM


Can someone point me at some shader effects that are supplied with other emulators, or just available in general, that implement various effects that people seem to like?

CRT, HQ2x, HQ3x, doesn't really matter, I'm just looking for things to port over to the BGFX shader system.



B2K24
MAME @ 15 kHz Sony Trinitron CRT user
Reged: 10/25/10
Posts: 2663
Send PM


Re: Shader effects from other emulators? new [Re: MooglyGuy]
#351762 - 03/21/16 09:37 AM


puNES has Filter and Palette options.

Not sure if this is what you're looking for but it's first thing that I thought of.

http://forums.nesdev.com/viewtopic.php?t=6928

http://imgur.com/16lGu6T



uman
MAME Fan
Reged: 04/15/12
Posts: 455
Send PM


Re: Shader effects from other emulators? new [Re: MooglyGuy]
#351763 - 03/21/16 10:15 AM


> Can someone point me at some shader effects that are supplied with other emulators,
> or just available in general, that implement various effects that people seem to
> like?
>
> CRT, HQ2x, HQ3x, doesn't really matter, I'm just looking for things to port over to
> the BGFX shader system.

Hi MooglyGuy,

i know that you all dont like RetroArch, but regarding shaders, they have a huge and i would say best arsenal of shaders comparing to other emulators.

http://buildbot.libretro.com/stable/1.3.0/windows/x86_64/

there is a shader-folder after installation, that contains hundreds of shaders, i just dont know if you can use/convert them with their format/language. I know that there is another source, where they kept the old versions, which where in a more compatible GLSL format, but i can give you the link only later this evening, as i dont have time, to search for it now . sorry.

i have some other links here, that might help:

http://libretro.com/forums/showthread.php?t=1628
https://github.com/hizzlekizzle/glsl-shaders



Trebor
MAME Fan
Reged: 01/18/05
Posts: 509
Send PM


Re: Shader effects from other emulators? new [Re: MooglyGuy]
#351764 - 03/21/16 01:33 PM


> Can someone point me at some shader effects that are supplied with other emulators,
> or just available in general, that implement various effects that people seem to
> like?
>
> CRT, HQ2x, HQ3x, doesn't really matter, I'm just looking for things to port over to
> the BGFX shader system.

The Kega Fusion homepage has well over a dozen of them for Mac, Linux, and Win platforms:
http://www.carpeludum.com/kega-fusion/

There's also Pete's Plugins for a variety of platforms, primarily used for psx emulation:
http://www.pbernert.com/html/gpu.htm

Based on OpenGL 3.3 / GLSL 1.5, there are the Quark (Bsnes/Higan) Shaders; close to 40 of them:
https://github.com/hizzlekizzle/quark-shaders



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


Re: Shader effects from other emulators? new [Re: Trebor]
#351766 - 03/21/16 05:06 PM


I'll second the Pete's thread - most of the early SDLMAME GLSL demos (back before mainline had HLSL) came from ports of stuff found there. And since most of them were written for 2005-era GPUs they run quickly even on low-spec hardware nowadays.



SoltanGris42
MAME Fan
Reged: 11/16/13
Posts: 134
Send PM


Re: Shader effects from other emulators? new [Re: MooglyGuy]
#351771 - 03/21/16 07:23 PM


I agree with uman that retroarch has a ton of shaders you can look at.

They have a message board here: http://libretro.com/forums/forumdisplay.php?f=9

and the shaders are on github here:
https://github.com/libretro/common-shaders

a lot of them are GPL licensed so you could distribute them with MAME now, I guess.



uman
MAME Fan
Reged: 04/15/12
Posts: 455
Send PM


Re: Shader effects from other emulators? new [Re: SoltanGris42]
#351773 - 03/21/16 08:20 PM


There are two problems with the RetroArch shaders:

1st.) I am pretty sure they changed the syntax/language of the shaders lately. The android ones are the closest to GLSL, thats why i posted one of the links, that have a dropbox-link with all the shaders in GLSL style.

2nd.) Many of the shaders are multi-pass shaders and I dont know how far MooglyGuy has come with the JSON and BGFX stuff and if BGFX can support such a feature now. It was a main reason for me, why I decided to wait, because GLSL of MAME couldnt support multi-pass shader properly (for example pass shader 1 results to shader 4, etc.).

PS: SoltanGris42, please check for my PM to you at Emuversal



SoltanGris42
MAME Fan
Reged: 11/16/13
Posts: 134
Send PM


Re: Shader effects from other emulators? new [Re: SoltanGris42]
#351775 - 03/21/16 08:33 PM


> I agree with uman that retroarch has a ton of shaders you can look at.
>
> They have a message board here: http://libretro.com/forums/forumdisplay.php?f=9
>
> and the shaders are on github here:
> https://github.com/libretro/common-shaders
>
> a lot of them are GPL licensed so you could distribute them with MAME now, I guess.

EDIT: Oops. I replied to myself

Edited by SoltanGris42 (03/21/16 08:34 PM)



SoltanGris42
MAME Fan
Reged: 11/16/13
Posts: 134
Send PM


Re: Shader effects from other emulators? new [Re: uman]
#351776 - 03/21/16 08:35 PM


> There are two problems with the RetroArch shaders:
>
> 1st.) I am pretty sure they changed the syntax/language of the shaders lately. The
> android ones are the closest to GLSL, thats why i posted one of the links, that have
> a dropbox-link with all the shaders in GLSL style.
>
> 2nd.) Many of the shaders are multi-pass shaders and I dont know how far MooglyGuy
> has come with the JSON and BGFX stuff and if BGFX can support such a feature now. It
> was a main reason for me, why I decided to wait, because GLSL of MAME couldnt support
> multi-pass shader properly (for example pass shader 1 results to shader 4, etc.).
>
> PS: SoltanGris42, please check for my PM to you at Emuversal

I think the system MooglyGuy is writing is very general. That doesn't mean every shader will be able to be ported (I haven't looked in detail at the new system yet), but surely many will be able to work.

The syntax doesn't matter much. Whatever they use (cg?) is perfectly readable still. Moogly's smart, he'll figure it out. Even the current GLSL and HLSL shaders need rewriting to work with the new system.

Also, I replied to your PM. Sorry for the delay. I just never log in because I only very rarely post anything.



uman
MAME Fan
Reged: 04/15/12
Posts: 455
Send PM


Re: Shader effects from other emulators? new [Re: SoltanGris42]
#351780 - 03/21/16 09:05 PM


> Also, I replied to your PM. Sorry for the delay. I just never log in because I only
> very rarely post anything.

I know, i know , you are a silent reader .

> The syntax doesn't matter much. Whatever they use (cg?) is perfectly readable still.
> Moogly's smart, he'll figure it out.

I hope you are right, i had issues with the "new" format. Dont be fooled with .cg (single shader) or .cgp (multi-shaders), as this is still the same ending like before, its more what is inside that caused me headaches.
But yeah, Moogly will surely smile and think "what a idiot" .



MooglyGuy
Renegade MAME Dev
Reged: 09/01/05
Posts: 2261
Send PM


Re: Shader effects from other emulators? new [Re: uman]
#351788 - 03/21/16 10:26 PM


> > Can someone point me at some shader effects that are supplied with other emulators,
> > or just available in general, that implement various effects that people seem to
> > like?
> >
> > CRT, HQ2x, HQ3x, doesn't really matter, I'm just looking for things to port over to
> > the BGFX shader system.
>
> Hi MooglyGuy,
>
> i know that you all dont like RetroArch, but regarding shaders, they have a huge and
> i would say best arsenal of shaders comparing to other emulators.
>
> http://buildbot.libretro.com/stable/1.3.0/windows/x86_64/
>
> there is a shader-folder after installation, that contains hundreds of shaders, i
> just dont know if you can use/convert them with their format/language. I know that
> there is another source, where they kept the old versions, which where in a more
> compatible GLSL format, but i can give you the link only later this evening, as i
> dont have time, to search for it now . sorry.
>
> i have some other links here, that might help:
>
> http://libretro.com/forums/showthread.php?t=1628
> https://github.com/hizzlekizzle/glsl-shaders

This seems to just be a link to a RetroArch binary. I'm not interested in picking apart some other person's binary. I want links, directly, to effects.



MooglyGuy
Renegade MAME Dev
Reged: 09/01/05
Posts: 2261
Send PM


Re: Shader effects from other emulators? new [Re: R. Belmont]
#351789 - 03/21/16 10:27 PM


> I'll second the Pete's thread - most of the early SDLMAME GLSL demos (back before
> mainline had HLSL) came from ports of stuff found there. And since most of them were
> written for 2005-era GPUs they run quickly even on low-spec hardware nowadays.

I appreciate the sentiment, but I'm honestly looking for suggestions on shader-based implementations of the more "kiddie-friendly" effects.



uman
MAME Fan
Reged: 04/15/12
Posts: 455
Send PM


Re: Shader effects from other emulators? new [Re: MooglyGuy]
#351821 - 03/22/16 11:58 AM Attachment: glsl.zip 16 KB (1 downloads)


> This seems to just be a link to a RetroArch binary. I'm not interested in picking
> apart some other person's binary. I want links, directly, to effects.

Ok, i attached to my post the two GLSL shaders, that we already have for MAME. The CRT-geom and Lotte shaders, those are kiddie-friendly and plug-n-play .

The links i posted previously where done in a hurry, but you only had to dig a little deeper .

https://github.com/libretro/common-shaders/tree/master/crt/shaders

https://github.com/libretro/common-shaders/tree/master/ntsc

and

https://github.com/libretro/common-shaders/tree/master/ntsc/shaders

respectively. There are more shaders, but i guess you understand the structure more now and hope you are able to get the others too.

Edited by uman (03/22/16 11:59 AM)



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


Re: Shader effects from other emulators? new [Re: MooglyGuy]
#351831 - 03/22/16 04:26 PM


> > I'll second the Pete's thread - most of the early SDLMAME GLSL demos (back before
> > mainline had HLSL) came from ports of stuff found there. And since most of them
> were
> > written for 2005-era GPUs they run quickly even on low-spec hardware nowadays.
>
> I appreciate the sentiment, but I'm honestly looking for suggestions on shader-based
> implementations of the more "kiddie-friendly" effects.

AFAIK there's 2XSAI and HQ2X implementations there, or there were last time I trawled the thread (there's multiple pages).



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


Re: Shader effects from other emulators? new [Re: uman]
#351832 - 03/22/16 04:29 PM


> 2nd.) Many of the shaders are multi-pass shaders and I dont know how far MooglyGuy
> has come with the JSON and BGFX stuff and if BGFX can support such a feature now.

AFAIK the JSON file can define arbitrary shader chains, arbitrary buffer-passing between shaders, and even arbitrary sliders to control the whole thing. It's extremely powerful.



MooglyGuy
Renegade MAME Dev
Reged: 09/01/05
Posts: 2261
Send PM


Re: Shader effects from other emulators? new [Re: R. Belmont]
#351836 - 03/22/16 06:10 PM


> > 2nd.) Many of the shaders are multi-pass shaders and I dont know how far MooglyGuy
> > has come with the JSON and BGFX stuff and if BGFX can support such a feature now.
>
> AFAIK the JSON file can define arbitrary shader chains, arbitrary buffer-passing
> between shaders, and even arbitrary sliders to control the whole thing. It's
> extremely powerful.

Correct.



rdayen
MAME Fan
Reged: 02/20/05
Posts: 7
Send PM


Re: Shader effects from other emulators? new [Re: MooglyGuy]
#352578 - 04/06/16 10:15 AM


xbrz

https://sourceforge.net/projects/xbrz/

was in hqMame and is really nice if you prefer a modern rendering of games



LensLarque
MAME Fan
Reged: 02/19/08
Posts: 160
Send PM


Re: Shader effects from other emulators? new [Re: MooglyGuy]
#352580 - 04/06/16 02:05 PM


Is there one simple smoothing shader around that's not as aggressively blurry/muddy as bilinear, but not leaving the picture too sharp as well ?

Something that would be in-between bilinear without prescale, and bilinear with prescale 2 ...



> MAME isn't about playing the games anyway.


Pages: 1

MAMEWorld >> EmuChat
View all threads Index   Threaded Mode Threaded  

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