Jump to content

MAME setting "sliders"? for HLSL effects?


Nocturnaloner

Recommended Posts

I'm interested in seeing the HLSL effects for vectors in MAME 152/153. I've seen a few mentions that there are 'sliders' to change settings for individual games. Right now I have Jumpstile's compiled mame64.exe. Can I get to these settings in the compiled .exe, or do I need something else?

Link to comment
Share on other sites

  • Replies 70
  • Created
  • Last Reply
  • 2 months later...

I have a question about using the Mame emulator in Hyperlaunch and hlsl. I installed the 0.153 version of mame (downloaded at mamedev.org). The emulator works with my games (SNK NEO GEO).

Now i am trying to get a better video. I used "edit global module settings" in HyperLaunch HQ under installed modules to make use of hlsl. This works, when running a game and pressing "TAB" i can access the hlsl options.

But hlsl prescale is not present as an option? e. How can i make use of the prescale (for better video quality)?

I did make the Mame.ini (using the commandline: MAME64.exe -cc) inside the emulator folder. Within the mame.ini i added the following code:

hlsl_prescale_x 4

hlsl_prescale_y 4

Is this the correct way to do? I do not notice any difference when looking at a game (metalslug 1). And are the any other settings i can use to improve the video quality?

Link to comment
Share on other sites

Hello again grotius.

Did you check out the link to the youtube vid? There are some settings under show more on youtube which you should look at.

Here are my hlsl settings which you can copy and paste into your Mame.ini under....

#
# DIRECT3D POST-PROCESSING OPTIONS
#
hlsl_enable               1
hlslpath                  hlsl
hlsl_prescale_x           4
hlsl_prescale_y           5
hlsl_preset               -1
hlsl_write                1
hlsl_snap_width           2048
hlsl_snap_height          1536
shadow_mask_alpha         0.12
shadow_mask_texture       crt_slot_mask.png
shadow_mask_x_count       320
shadow_mask_y_count       240
shadow_mask_usize         0.18750
shadow_mask_vsize         0.21875
curvature                 0.05
pincushion                0.050000
scanline_alpha            1.5
scanline_size             0.95
scanline_height           1.0
scanline_bright_scale     1.1
scanline_bright_offset    0.6
scanline_jitter           0.00
defocus                   0.005,0.005
converge_x                0.2,0.0,0.0
converge_y                0.0,0.0,0.0
radial_converge_x         0.2,0.0,0.0
radial_converge_y         0.0,0.0,0.0
red_ratio                 0.85,0.15,0.0
grn_ratio                 -0.1,1.1,0.0
blu_ratio                 -0.075,0.0,1.075
saturation                1.0
offset                    -0.15,-0.18,-0.18
scale                     1.15,1.18,1.18
power                     1.1,0.9,0.7
floor                     0.01,0.0,0.01
phosphor_life             0.0,0.0,0.0

Link to comment
Share on other sites

Hello again grotius.

Did you check out the link to the youtube vid? There are some settings under show more on youtube which you should look at.

Here are my hlsl settings which you can copy and paste into your Mame.ini under....

#
# DIRECT3D POST-PROCESSING OPTIONS
#
hlsl_enable               1
hlslpath                  hlsl
hlsl_prescale_x           4
hlsl_prescale_y           5
hlsl_preset               -1
hlsl_write                1
hlsl_snap_width           2048
hlsl_snap_height          1536
shadow_mask_alpha         0.12
shadow_mask_texture       crt_slot_mask.png
shadow_mask_x_count       320
shadow_mask_y_count       240
shadow_mask_usize         0.18750
shadow_mask_vsize         0.21875
curvature                 0.05
pincushion                0.050000
scanline_alpha            1.5
scanline_size             0.95
scanline_height           1.0
scanline_bright_scale     1.1
scanline_bright_offset    0.6
scanline_jitter           0.00
defocus                   0.005,0.005
converge_x                0.2,0.0,0.0
converge_y                0.0,0.0,0.0
radial_converge_x         0.2,0.0,0.0
radial_converge_y         0.0,0.0,0.0
red_ratio                 0.85,0.15,0.0
grn_ratio                 -0.1,1.1,0.0
blu_ratio                 -0.075,0.0,1.075
saturation                1.0
offset                    -0.15,-0.18,-0.18
scale                     1.15,1.18,1.18
power                     1.1,0.9,0.7
floor                     0.01,0.0,0.01
phosphor_life             0.0,0.0,0.0

It's also fair to mention that Gig and I found that the sliders worked to experiment with settings but no matter what we changed in the ini files the slider settings were not saved. The solution working with v152 was to use the sliders and write down the numbers and then manually change the ini file. Hey presto they worked.

Gig did a good tut vid as this is an area which is confusing.

Link to comment
Share on other sites

It's also fair to mention that Gig and I found that the sliders worked to experiment with settings but no matter what we changed in the ini files the slider settings were not saved. The solution working with v152 was to use the sliders and write down the numbers and then manually change the ini file. Hey presto they worked.

Gig did a good tut vid as this is an area which is confusing.

Thanks for clarifying that Sir, and those settings you provided me with, are still the best.

Did you loose the rounded corners on the last Mame update?

Link to comment
Share on other sites

Thanks for clarifying that Sir, and those settings you provided me with, are still the best.

Did you loose the rounded corners on the last Mame update?

I'm in the process of updating to 153 as we speak so I'll find out about the pincushion effect today I guess! Didn't know there were issues with v 153. Hmmm

Link to comment
Share on other sites

I'm in the process of updating to 153 as we speak so I'll find out about the pincushion effect today I guess! Didn't know there were issues with v 153. Hmmm

I lost the curved corners with 0.153, but there is a fix in the show notes of my youtube vid if the same happens to you. They really made a difference to the overall look.

Link to comment
Share on other sites

I lost the curved corners with 0.153, but there is a fix in the show notes of my youtube vid if the same happens to you. They really made a difference to the overall look.

When I update I only replace the exe file. My hlsl had custom files not in standard setup. So mine were not overwrote or deleted

Link to comment
Share on other sites

I did use the settings in the comment line of the youtube movie. I do think the settings in the mame.ini work but is there a way to be sure? I do not see much difference between "hlsl_prescale_x 1" and "hlsl_prescale_x 4"

Link to comment
Share on other sites

I did use the settings in the comment line of the youtube movie. I do think the settings in the mame.ini work but is there a way to be sure? I do not see much difference between "hlsl_prescale_x 1" and "hlsl_prescale_x 4"

Agreed, I did not see a difference either. Do you have bi-linear filtering switched on?

This blog has some good info on each setting and what it does.

http://gamingnos.blogspot.co.uk/2011/10/quick-start-mame-hlsl-filter-guide-up.html

Link to comment
Share on other sites

  • 2 months later...
Hello again grotius.

Did you check out the link to the youtube vid? There are some settings under show more on youtube which you should look at.

Here are my hlsl settings which you can copy and paste into your Mame.ini under....

#
# DIRECT3D POST-PROCESSING OPTIONS
#
hlsl_enable               1
hlslpath                  hlsl
hlsl_prescale_x           4
hlsl_prescale_y           5
hlsl_preset               -1
hlsl_write                1
hlsl_snap_width           2048
hlsl_snap_height          1536
shadow_mask_alpha         0.12
shadow_mask_texture       crt_slot_mask.png
shadow_mask_x_count       320
shadow_mask_y_count       240
shadow_mask_usize         0.18750
shadow_mask_vsize         0.21875
curvature                 0.05
pincushion                0.050000
scanline_alpha            1.5
scanline_size             0.95
scanline_height           1.0
scanline_bright_scale     1.1
scanline_bright_offset    0.6
scanline_jitter           0.00
defocus                   0.005,0.005
converge_x                0.2,0.0,0.0
converge_y                0.0,0.0,0.0
radial_converge_x         0.2,0.0,0.0
radial_converge_y         0.0,0.0,0.0
red_ratio                 0.85,0.15,0.0
grn_ratio                 -0.1,1.1,0.0
blu_ratio                 -0.075,0.0,1.075
saturation                1.0
offset                    -0.15,-0.18,-0.18
scale                     1.15,1.18,1.18
power                     1.1,0.9,0.7
floor                     0.01,0.0,0.01
phosphor_life             0.0,0.0,0.0

Hi Giga I've used these setting and I was able to get the rounded corners but there seems to be a some sort pre-made glare going on in the right side of the screen. Is there anyway of getting rid of that. I'll see if I can get a snap shot of what I am talking if you need one. Also is there anyway to bump up the colors a bit more? To me it looks a tab bit washed. Also I would like to add bezels to my mame something like this. Is there a tutorial on adding bezel art somewhere?

Alien-Vs-Predator.png

Link to comment
Share on other sites

Hi Giga I've used these setting and I was able to get the rounded corners but there seems to be a some sort pre-made glare going on in the right side of the screen. Is there anyway of getting rid of that. I'll see if I can get a snap shot of what I am talking if you need one. Also is there anyway to bump up the colors a bit more? To me it looks a tab bit washed. Also I would like to add bezels to my mame something like this. Is there a tutorial on adding bezel art somewhere?

Alien-Vs-Predator.png

you need to download an updated post.fx file to get rid of the glare or reflection (google jezzeshader). I can't attach files here, so maybe someone else can post it.

Link to comment
Share on other sites

you need to download an updated post.fx file to get rid of the glare or reflection (google jezzeshader). I can't attach files here, so maybe someone else can post it.

I've downloaded this post.fx file from this site Located at the bottom. Giga had the link within his youtube tutorial. Do I need another post.fx file? And the file you are suggesting to post would I be able to do the rounded corners as well?

Link to comment
Share on other sites

I've downloaded this post.fx file from this site Located at the bottom. Giga had the link within his youtube tutorial. Do I need another post.fx file? And the file you are suggesting to post would I be able to do the rounded corners as well?

The file you downloaded includes the reflection, vignette and rounded corners. There are a couple of variants to this file, the one I suggested includes the rounded corners but without the reflection.

Link to comment
Share on other sites

The file you downloaded includes the reflection, vignette and rounded corners. There are a couple of variants to this file, the one I suggested includes the rounded corners but without the reflection.

Any Idea as to where I may obtain this/your file? Thanks

Link to comment
Share on other sites

Thanks for bringing this up guys, I was looking into removing the light spot as it was very distracting while playing Gradius.

I'm still searching for a better post.fx file, but for the time being I've been able to remove it by editing the post.fx file.

The areas to remove are Light Spot and Light Reflection, both need to be removed or you get a black screen.

I have attached it for convenience.

post.zip

Link to comment
Share on other sites

Update, I think I found the site mm was talking about so thank you. http://www.videogameperfection.com/2014/08/07/further-hlsl-rabbit/

Or grab the file here.

I also added a little more curvature to my settings.

#
# DIRECT3D POST-PROCESSING OPTIONS
#
hlsl_enable               1
hlslpath                  hlsl
hlsl_prescale_x           5
hlsl_prescale_y           4
hlsl_preset               -1
hlsl_write                1
hlsl_snap_width           2048
hlsl_snap_height          1536
shadow_mask_alpha         0.12
shadow_mask_texture       crt_slot_mask.png
shadow_mask_x_count       320
shadow_mask_y_count       240
shadow_mask_usize         0.18750
shadow_mask_vsize         0.21875
curvature                 0.15
pincushion                0.050000
scanline_alpha            1.5
scanline_size             0.95
scanline_height           1.0
scanline_bright_scale     1.1
scanline_bright_offset    0.6
scanline_jitter           0.00
defocus                   0.005,0.005
converge_x                0.2,0.0,0.0
converge_y                0.0,0.0,0.0
radial_converge_x         0.2,0.0,0.0
radial_converge_y         0.0,0.0,0.0
red_ratio                 0.85,0.15,0.0
grn_ratio                 -0.1,1.1,0.0
blu_ratio                 -0.075,0.0,1.075
saturation                1.0
offset                    -0.15,-0.18,-0.18
scale                     1.15,1.18,1.18
power                     1.1,0.9,0.7
floor                     0.01,0.0,0.01
phosphor_life             0.0,0.0,0.0

#
# NTSC POST-PROCESSING OPTIONS
#
yiq_enable                0
yiq_cc                    3.59754545
yiq_a                     0.5
yiq_b                     0.5
yiq_o                     1.570796325
yiq_p                     1.0
yiq_n                     1.0
yiq_y                     6.0
yiq_i                     1.2
yiq_q                     0.6
yiq_scan_time             52.6
yiq_phase_count           2

#
# VECTOR POST-PROCESSING OPTIONS
#
vector_length_scale       0.8
vector_length_ratio       500.0

#
# BLOOM POST-PROCESSING OPTIONS
#
vector_bloom_scale        0.3
raster_bloom_scale        0.225
bloom_lvl0_weight         1.0
bloom_lvl1_weight         0.21
bloom_lvl2_weight         0.19
bloom_lvl3_weight         0.17
bloom_lvl4_weight         0.15
bloom_lvl5_weight         0.14
bloom_lvl6_weight         0.13
bloom_lvl7_weight         0.12
bloom_lvl8_weight         0.11
bloom_lvl9_weight         0.10
bloom_lvl10_weight        0.09

JezzeShader.zip

Link to comment
Share on other sites

Update, I think I found the site mm was talking about so thank you. http://www.videogameperfection.com/2014/08/07/further-hlsl-rabbit/

Or grab the file here.

I also added a little more curvature to my settings.

#
# DIRECT3D POST-PROCESSING OPTIONS
#
hlsl_enable               1
hlslpath                  hlsl
hlsl_prescale_x           5
hlsl_prescale_y           4
hlsl_preset               -1
hlsl_write                1
hlsl_snap_width           2048
hlsl_snap_height          1536
shadow_mask_alpha         0.12
shadow_mask_texture       crt_slot_mask.png
shadow_mask_x_count       320
shadow_mask_y_count       240
shadow_mask_usize         0.18750
shadow_mask_vsize         0.21875
curvature                 0.15
pincushion                0.050000
scanline_alpha            1.5
scanline_size             0.95
scanline_height           1.0
scanline_bright_scale     1.1
scanline_bright_offset    0.6
scanline_jitter           0.00
defocus                   0.005,0.005
converge_x                0.2,0.0,0.0
converge_y                0.0,0.0,0.0
radial_converge_x         0.2,0.0,0.0
radial_converge_y         0.0,0.0,0.0
red_ratio                 0.85,0.15,0.0
grn_ratio                 -0.1,1.1,0.0
blu_ratio                 -0.075,0.0,1.075
saturation                1.0
offset                    -0.15,-0.18,-0.18
scale                     1.15,1.18,1.18
power                     1.1,0.9,0.7
floor                     0.01,0.0,0.01
phosphor_life             0.0,0.0,0.0

#
# NTSC POST-PROCESSING OPTIONS
#
yiq_enable                0
yiq_cc                    3.59754545
yiq_a                     0.5
yiq_b                     0.5
yiq_o                     1.570796325
yiq_p                     1.0
yiq_n                     1.0
yiq_y                     6.0
yiq_i                     1.2
yiq_q                     0.6
yiq_scan_time             52.6
yiq_phase_count           2

#
# VECTOR POST-PROCESSING OPTIONS
#
vector_length_scale       0.8
vector_length_ratio       500.0

#
# BLOOM POST-PROCESSING OPTIONS
#
vector_bloom_scale        0.3
raster_bloom_scale        0.225
bloom_lvl0_weight         1.0
bloom_lvl1_weight         0.21
bloom_lvl2_weight         0.19
bloom_lvl3_weight         0.17
bloom_lvl4_weight         0.15
bloom_lvl5_weight         0.14
bloom_lvl6_weight         0.13
bloom_lvl7_weight         0.12
bloom_lvl8_weight         0.11
bloom_lvl9_weight         0.10
bloom_lvl10_weight        0.09

Thanks for this Giga. I will give it a go but any info as to adding side bezels in mame or hyperlaunch HQ? I need some sort of tutorial.

Link to comment
Share on other sites

Thanks for this Giga. I will give it a go but any info as to adding side bezels in mame or hyperlaunch HQ? I need some sort of tutorial.

Really? Look to the last link in my signature, or if you just want user created bezels just set it to true and then under "Edit Global Module Settings" set the bezel mode to "Normal".

You'll then need to put the bezels in :Hyperspin\HyperLaunch\Media\Bezels\MAME either in the default folder or if game specific in a folder named after the Rom.

post-9524-142870646241_thumb.jpg

Link to comment
Share on other sites

Really? Look to the last link in my signature, or if you just want user created bezels just set it to true and then under "Edit Global Module Settings" set the bezel mode to "Normal".

You'll then need to put the bezels in :Hyperspin\HyperLaunch\Media\Bezels\MAME either in the default folder or if game specific in a folder named after the Rom.

[ATTACH=CONFIG]44622[/ATTACH]

My fault I didn't see it. I'm just coming off a 12 hr shift at work.

Link to comment
Share on other sites

Hi,

Great guide guys!

Look realy realy good.

Just wonder, can you make te screen higher and lower?

I work with a 4:3 screen. And i have black borders on the top and bottom.

Is it possible to adjust That? I played with settings. But negative;-(

I hope you can help me.

Tnx

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.


×
×
  • Create New...