Home Page

How to install a scanline shader with MAME ?

Posted By: Sebiohazard

How to install a scanline shader with MAME ? - 12/24/19 04:57 PM

Good evening everyone !

I've been looking for a while to activate a scanline shader with MAME... I'm a beginner & everything I find on the net doesn't work...

Can you help me please ?

Thanks best regards !
Posted By: Sebiohazard

Re: How to install a scanline shader with MAME ? - 12/25/19 02:02 PM

56 views & no one to help me ?
Posted By: Just Desserts

Re: How to install a scanline shader with MAME ? - 12/25/19 02:21 PM

I don't think anyone here knows what a "scanline shader" is.

MAME already ships with shaders, and you just need to enable them, there's no need to install anything.

What platform are you running MAME on? That would be a good start.
Posted By: Just Desserts

Re: How to install a scanline shader with MAME ? - 12/25/19 02:24 PM

For example, if you're on Windows, try running MAME with "-hlsl" on the command line. Bam, scanlines.
Posted By: Sebiohazard

Re: How to install a scanline shader with MAME ? - 12/25/19 02:27 PM

Hello thank you for your reply.

I am using MAME on Windows 7 & I would like to have a scanline curved rendering but I cannot find the options to activate this ?!
Posted By: Sebiohazard

Re: How to install a scanline shader with MAME ? - 12/26/19 08:15 AM

???
Posted By: Vas Crabb

Re: How to install a scanline shader with MAME ? - 12/26/19 08:34 AM

You're going to have to read the documentation and work it out. Repeatedly bumping your own thread makes you look selfish, impatient and demanding.
Posted By: Sebiohazard

Re: How to install a scanline shader with MAME ? - 12/26/19 01:55 PM

I waited several days without response I do not understand... I have already read the documentation there is nothing indicated...
Posted By: R. Belmont

Re: How to install a scanline shader with MAME ? - 12/26/19 02:45 PM

You waited 18 hours on a major holiday when many of the devs have family obligations. And the documentation explains everything you're asking. Hint: look at the HLSL or BGFX sections. Both of them can do scanlines plus rounded corners.

Also, you gave no useful information. Did you try -hlsl as suggested by Just Desserts? Are you even on Windows? What version of MAME are you using?
Posted By: Sebiohazard

Re: How to install a scanline shader with MAME ? - 12/26/19 03:53 PM

Hello !

Yes I said that I was under Windows 7 with MAME version 0.216... I am a beginner I do not understand much sorry... I do not want the command lines thank you smile
Posted By: Fake Shemp

Re: How to install a scanline shader with MAME ? - 12/26/19 05:09 PM

Then what do you want? No one understands what you want.
Posted By: Sebiohazard

Re: How to install a scanline shader with MAME ? - 12/28/19 11:01 AM

I don't understand how to have the scanline curved filter...
Posted By: belegdol

Re: How to install a scanline shader with MAME ? - 12/28/19 11:32 AM

You can try the following:
Code
mame -video bgfx -bgfx_screen_chains hlsl

or set the two options in mame.ini if you don't want to type them in every time.
Posted By: Dullaron

Re: How to install a scanline shader with MAME ? - 12/28/19 12:00 PM

Make a mame.ini by using this command. mame64 -cc

Then paste these in there over the old settings.

#
# OSD VIDEO OPTIONS
#
video d3d

#
# DIRECT3D POST-PROCESSING OPTIONS
#
hlsl_enable 1

If you want rounded corners. I using these below.

distort_corner 0.02
round_corner 0.10
smooth_border 0.01

Just 0.0 those out. If you don't any of this showing. Should look like this.

distort_corner 0.0
round_corner 0.0
smooth_border 0.0

You will get a hang of the settings. Take a while.
Posted By: Sebiohazard

Re: How to install a scanline shader with MAME ? - 12/29/19 10:29 AM

Hello !

OK thank you for your help I will try... & how we modify the parameters of the scanline, to have a more or less important space between the scan lines ?

Thanks best regards !
Posted By: Sebiohazard

Re: How to install a scanline shader with MAME ? - 12/31/19 01:37 PM

Originally Posted by Just Desserts
For example, if you're on Windows, try running MAME with "-hlsl" on the command line. Bam, scanlines.


Hello smile

In my HLSL folder I have this:

[Linked Image from pix.tdct.org]

I tried the following command:

Code
mame64 gx4000 -nowindow -hlsl distorsion -cart "e:\games\gx4000\tintin on the moon.bin"


But I have this error message:

[Linked Image from pix.tdct.org]

I tried with another filter & I still get this error message ?!

Code
mame64 gx4000 -nowindow -hlsl scanline -cart "e:\games\gx4000\tintin on the moon.bin"


No filter works !!!
Posted By: R. Belmont

Re: How to install a scanline shader with MAME ? - 12/31/19 01:57 PM

There is no argument to -hlsl. So:

Code
mame64 gx4000 -nowindow -hlsl -cart "e:\games\gx4000\tintin on the moon.bin"

Posted By: Sebiohazard

Re: How to install a scanline shader with MAME ? - 12/31/19 02:11 PM

OK but then how to choose the filter in this folder ?

[Linked Image from pix.tdct.org]
Posted By: R. Belmont

Re: How to install a scanline shader with MAME ? - 12/31/19 03:09 PM

You go to the sliders (~ key, or Tab and then Slider Controls) to control all the parameters. All of those files are auto-used.
Posted By: Sebiohazard

Re: How to install a scanline shader with MAME ? - 12/31/19 03:54 PM

I am in " Slider controls " but I have no options for the filters ???

[Linked Image from pix.tdct.org]
Posted By: Sebiohazard

Re: How to install a scanline shader with MAME ? - 01/24/20 04:35 PM

Good evening everyone !

I still haven't managed to launch MAME with a sorry CRT curved shader... I can have several different effects like 'scanlines' or 'aperture' with the command:

Code
-effect scanlines


But I want the CRT curved shader how to proceed please? In the MAME folder there is a folder artwork\bgfx\chains\crt-geom in which there are .png files is it the option to have the curved shader ?

Thanks best regards !
Posted By: Sebiohazard

Re: How to install a scanline shader with MAME ? - 01/26/20 10:27 AM

Nobody to answer me ???
Posted By: Edstrom

Re: How to install a scanline shader with MAME ? - 01/28/20 06:56 PM

Maybe nobody knows or have time to spare from their favorite project?!

If you haven't noticed this is a board mainly for *contributors* and *developers* so maybe you as a *user* finds more help if you register on the MAMEWorld forum and ask there?
Posted By: R. Belmont

Re: How to install a scanline shader with MAME ? - 01/28/20 07:18 PM

That and we already told him to -video bgfx, press tab, go to Slider Controls, and select "HLSL" for the "Screen Effect".
© 2020 Forums