MAMEWorld >> EmuChat
View all threads Index   Threaded Mode Threaded  

Pages: 1

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


cgwg MAME GLSL/OpenGL shader. (Another one got out.)
#344715 - 09/03/15 09:32 AM Attachment: CRT-geom-halation-20150903.zip 6 KB (38 downloads)


http://forums.bannister.org//ubbthreads.php?ubb=showflat&Number=101434&#Post101434


Code:

mame -glsl_shader_mame0 gaussx -glsl_shader_mame1 gaussy -glsl_shader_mame2 CRT-geom-halation



Please thank him too.



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



Mamesick
Troll Lamer
Reged: 09/21/03
Posts: 1649
Loc: Italy
Send PM


Re: cgwg MAME GLSL/OpenGL shader. (Another one got out.) new [Re: Dullaron]
#344716 - 09/03/15 09:54 AM


Seems good, do you have time to post some screenshots?

Thanks.



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


Re: cgwg MAME GLSL/OpenGL shader. (Another one got out.) new [Re: Mamesick]
#344717 - 09/03/15 10:14 AM Attachment: s1-glow.png 1094 KB (2 downloads)


> Seems good, do you have time to post some screenshots?
>
> Thanks.

Snapshot. (Note: I edited the CRT-geom-halation file. The files that I post isn't touch by me.)

By the way. I'm replacing the old files for this.

Don't want that glow then use this file alone.


Code:

mame -glsl_shader_mame0 CRT-geom-halation



[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



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


Re: cgwg MAME GLSL/OpenGL shader. (Another one got out.) new [Re: Dullaron]
#344718 - 09/03/15 10:53 AM


Be sure, we want that glow



CiroConsentino
Frontend freak!
Reged: 09/21/03
Posts: 6211
Loc: Alien from Terra Prime... and Brazil
Send PM


Re: cgwg MAME GLSL/OpenGL shader. (Another one got out.) new [Re: Dullaron]
#344726 - 09/03/15 01:44 PM


WOW! Sweat shader...
Yes, we definitely want that glow



Emu Loader
Ciro Alfredo Consentino
home: http://emuloader.mameworld.info
e-mail: [email protected]



Envisaged0ne
MAME Fan
Reged: 08/29/06
Posts: 543
Send PM


Re: cgwg MAME GLSL/OpenGL shader. (Another one got out.) new [Re: Dullaron]
#344730 - 09/03/15 04:11 PM


That looks amazing. I'm sorry to ask, but how exactly do I make it look like that?



Windows 11 64 bit OS
Intel Core i7-10700
Nvidia GeForce RTX 2060 6GB
32GB DDR4 RAM



R.Coltrane
MAME user since 0.11
Reged: 08/07/05
Posts: 495
Send PM


Re: cgwg MAME GLSL/OpenGL shader. (Another one got out.) new [Re: uman]
#344735 - 09/03/15 07:26 PM


> Be sure, we want that glow

"The Glow"...this reminds me "The Last Dragon" the movie for some reason...



Mr Ric
MAME Fan
Reged: 09/25/05
Posts: 252
Send PM


Re: cgwg MAME GLSL/OpenGL shader. (Another one got out.) new [Re: Dullaron]
#344737 - 09/03/15 11:28 PM


> http://forums.bannister.org//ubbthreads.php?ubb=showflat&Number=101434&#Post101434
>
> mame -glsl_shader_mame0 gaussx -glsl_shader_mame1 gaussy -glsl_shader_mame2
> CRT-geom-halation
>
> Please thank him too.

These don't appear to work for vector games. Is there another setting that I am missing?



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


Re: cgwg MAME GLSL/OpenGL shader. (Another one got out.) new [Re: Mr Ric]
#344740 - 09/04/15 02:19 AM


GLSL shaders dont work with vector games, only HLSL does

Edited by uman (09/04/15 02:19 AM)



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


Re: cgwg MAME GLSL/OpenGL shader. (Another one got out.) new [Re: Mr Ric]
#344748 - 09/04/15 03:58 AM


> >
> http://forums.bannister.org//ubbthreads.php?ubb=showflat&Number=101434&#Post101434
> >
> > mame -glsl_shader_mame0 gaussx -glsl_shader_mame1 gaussy -glsl_shader_mame2
> > CRT-geom-halation
> >
> > Please thank him too.
>
> These don't appear to work for vector games. Is there another setting that I am
> missing?

vector games doesn't support it yet.



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



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


Here is my glow setting. new [Re: Dullaron]
#344753 - 09/04/15 08:29 AM


I drop the glow down.

// strength of halation or "bloom" effect - e.g. 0.1 for 10%
halation = 0.015;

I was playing Defender and I notice the hills have that thick blur brightness. I fix it on my end to make it less blur brightness instead of thick blur brightness. Doesn't like a brown water color now.

Find that setting in the CRT-geom-halation.vsh file.

Use what you want.

/Edit

In the mame.ini

brightness 1.05
contrast 1.05
gamma 1.05

Edited by Dullaron (09/12/15 01:30 PM)



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



invincibility
MAME Fan
Reged: 12/04/12
Posts: 8
Send PM


Re: Here is my glow setting. new [Re: Dullaron]
#344755 - 09/04/15 11:37 AM


Nice, but please tell me how to remove the screen curvature effect?

I edited CRT-geom-halation.vsh file, but the curvature effect can not be removed.



Mamesick
Troll Lamer
Reged: 09/21/03
Posts: 1649
Loc: Italy
Send PM


Re: Here is my glow setting. new [Re: invincibility]
#344758 - 09/04/15 01:37 PM


comment out "Define CURVATURE" line in the .FSH file. It should work



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


Re: cgwg MAME GLSL/OpenGL shader. (Another one got out.) new [Re: Envisaged0ne]
#344783 - 09/05/15 10:01 PM


> That looks amazing. I'm sorry to ask, but how exactly do I make it look like that?

Tilt? Start from there on the 0.01. Increase the 1 to tilt more.

Vertical

const vec2 angle = vec2(0.01,0.0);

and

Horizontal

const vec2 angle = vec2(0.0,-0.01);



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



Mr Ric
MAME Fan
Reged: 09/25/05
Posts: 252
Send PM


Re: cgwg MAME GLSL/OpenGL shader. (Another one got out.) new [Re: Dullaron]
#346126 - 10/18/15 06:46 PM


> http://forums.bannister.org//ubbthreads.php?ubb=showflat&Number=101434&#Post101434
>
> mame -glsl_shader_mame0 gaussx -glsl_shader_mame1 gaussy -glsl_shader_mame2
> CRT-geom-halation
>
I like the Pincushion effect. However, the effect is "crooked" towards the right on some games...puckman and galaga for example. It's "crooked" to left on others such as 005, and on some, the bottom edge is flat (no pincushion at all), such as mpatrol on the Atari 5200.

Is there a setting that would make this effect more symmetrical across the different games and systems?



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


Re: cgwg MAME GLSL/OpenGL shader. (Another one got out.) new [Re: Mr Ric]
#346138 - 10/20/15 04:19 AM


> I like the Pincushion effect. However, the effect is "crooked" towards the right on
> some games...puckman and galaga for example. It's "crooked" to left on others such as
> 005, and on some, the bottom edge is flat (no pincushion at all), such as mpatrol on
> the Atari 5200.
>
> Is there a setting that would make this effect more symmetrical across the different
> games and systems?

Open up the .vsh file with the WordPad and then find this line.

const vec2 angle = vec2

replace the last part of it to this.

Rename to Vertical.vsh

const vec2 angle = vec2(0.0011,-0.0);

Rename to Horizontal.vsh

const vec2 angle = vec2(0.0,-0.0011);

=====================================

If you want to turn bloom effect up or down. Find this line.

halation = 0.1;

=====================================

If you want take out the curved corners. Use this setting. Copy and then paste over the old setting.

cornersize = 0.001;



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



Mr Ric
MAME Fan
Reged: 09/25/05
Posts: 252
Send PM


Re: cgwg MAME GLSL/OpenGL shader. (Another one got out.) new [Re: Dullaron]
#346150 - 10/21/15 02:22 AM


> Open up the .vsh file with the WordPad and then find this line.
>
> const vec2 angle = vec2
>
> replace the last part of it to this.
>
> Rename to Vertical.vsh
>
> const vec2 angle = vec2(0.0011,-0.0);
>
> Rename to Horizontal.vsh
>
> const vec2 angle = vec2(0.0,-0.0011);
>
> =====================================
>
I'm a bit confused. In CRT-geom-halation.vsh, there is one line...const vec2 angle = vec2(0.0,-0.05);

Are you saying to make two copies of this file? Call one vertical.vsh and change the line to const vec2 angle = vec2(0.0011,-0.0). Call the other horizontal.vsh and change the line to const vec2 angle = vec2(0.0,-0.0011). Then instead of using CRT-geom-halation.vsh, use these two new files and gaussx and gaussy?



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


Re: cgwg MAME GLSL/OpenGL shader. (Another one got out.) new [Re: Mr Ric]
#346153 - 10/21/15 06:04 AM


> I'm a bit confused. In CRT-geom-halation.vsh, there is one line...const vec2 angle =
> vec2(0.0,-0.05);
>
> Are you saying to make two copies of this file? Call one vertical.vsh and change the
> line to const vec2 angle = vec2(0.0011,-0.0). Call the other horizontal.vsh and
> change the line to const vec2 angle = vec2(0.0,-0.0011). Then instead of using
> CRT-geom-halation.vsh, use these two new files and gaussx and gaussy?

Yep. Keep the CRT-geom-halation.vsh for back up just in case. You will need to make copies of the _rgb32_dir.fsh files as well. vertical_rgb32_dir.fsh and horizontal_rgb32_dir.fsh



Mr Ric
MAME Fan
Reged: 09/25/05
Posts: 252
Send PM


Re: cgwg MAME GLSL/OpenGL shader. (Another one got out.) new [Re: Dullaron]
#346162 - 10/21/15 04:17 PM


> Yep. Keep the CRT-geom-halation.vsh for back up just in case. You will need to make
> copies of the _rgb32_dir.fsh files as well. vertical_rgb32_dir.fsh and
> horizontal_rgb32_dir.fsh

These changes do make it more symmetrical. Thanks!



Traso
MAME Fan
Reged: 01/15/13
Posts: 2687
Send PM


Re: cgwg MAME GLSL/OpenGL shader. (Another one got out.) new [Re: Mr Ric]
#346219 - 10/23/15 09:45 PM


> > Yep. Keep the CRT-geom-halation.vsh for back up just in case. You will need to make copies of the _rgb32_dir.fsh files as well. vertical_rgb32_dir.fsh and horizontal_rgb32_dir.fsh

> These changes do make it more symmetrical. Thanks!


Shit, sounds like someone needs to contact the author and submit the changes.....



Mr Ric
MAME Fan
Reged: 09/25/05
Posts: 252
Send PM


Re: cgwg MAME GLSL/OpenGL shader. (Another one got out.) new [Re: Traso]
#346235 - 10/24/15 03:00 AM


> Shit, sounds like someone needs to contact the author and submit the changes.....

After some more experimentation, I found that just by changing this one line in crt-geom-halation.vsh...

const vec2 angle = vec2(0.0,-0.05);

to

const vec2 angle = vec2(0.0,-0.0);

gives me the best results...without the need of having to use two files.



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


Re: cgwg MAME GLSL/OpenGL shader. (Another one got out.) new [Re: Mr Ric]
#346236 - 10/24/15 05:02 AM Attachment: blackscreen.png 9 KB (1 downloads)


> After some more experimentation, I found that just by changing this one line in
> crt-geom-halation.vsh...
>
> const vec2 angle = vec2(0.0,-0.05);
>
> to
>
> const vec2 angle = vec2(0.0,-0.0);
>
> gives me the best results...without the need of having to use two files.

Yea but... Some cards can't handle that setting. Put into black screen and start having sound issue. 0.0011 will fix that issue. For example. AMD Radeon R9 200 Series can't handle it. 0.0 will fucked with it.

[ATTACHED IMAGE - CLICK FOR FULL SIZE]

Attachment



Mr Ric
MAME Fan
Reged: 09/25/05
Posts: 252
Send PM


Re: cgwg MAME GLSL/OpenGL shader. (Another one got out.) new [Re: Dullaron]
#346241 - 10/24/15 04:46 PM


> Yea but... Some cards can't handle that setting. Put into black screen and start
> having sound issue. 0.0011 will fix that issue. For example. AMD Radeon R9 200 Series
> can't handle it. 0.0 will fucked with it.

I was getting some artifacts using the two files. Small black lines along the left and right sides. Good to know about the AMD Radeon series. I'm using an NVIDIA GeForce GT 705 which seems to be okay.


Pages: 1

MAMEWorld >> EmuChat
View all threads Index   Threaded Mode Threaded  

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