Build Your Own Arcade Controls Forum
Main => Software Forum => Topic started by: epetti on October 14, 2015, 09:45:51 am
-
Hi. I'm trying to get HLSL setup with MAME and having trouble getting it to work at all. I have it turned on in the mame.ini, installed DirectX 9.0c, launch a program, and nothing appears.
I'm running MAME 0.165, Windows 7 and have an nVidia Quadro FX 3800 graphics card.
Relevant mame.ini pieces:
#
# OSD VIDEO OPTIONS
#
video d3d
d3dversion 9
#
# DIRECT3D POST-PROCESSING OPTIONS
#
hlsl_enable 1
hlslpath hlsl
hlsl_prescale_x 6
hlsl_prescale_y 6
hlsl_preset -1
hlsl_write
hlsl_snap_width 1600
hlsl_snap_height 1200
shadow_mask_alpha 0.3
shadow_mask_texture shadowmask.png
...
Any help would be appreciated.
-
First Question:
Are you running mame directly from the exe? or From Hyperspin by chance?
-
Typically from Hyperspin but to test this I've been running straight from the command line. My test cases are asteroids and bubble bobble can't get it to work for vector or scanline.
-
Are you running the latest version of mame?
If so, I'd suggest backing up your current mame.ini and creating a new default mame.ini for testing. You might have accidentally slipped a character somewhere in your ini that is throwing it all off.
I can also provide some HLSL settings for you to try.
-
Some sample settings would be appreciated. I'm running 0.165 which is one back from the latest, but I just upgraded and when I did I wiped out my mame.ini and generated a new one and just transferred the parameters from the old that I knew I needed. But I can try resetting it again.
Is there anything else on my computer that I should check to make sure is installed and running? Such as the DirectX components or anything else?
-
I believe DirectX is the only requirement. So just make sure yours is up to date.
Try these settings and see if they do anything for you.
#
# DIRECT3D POST-PROCESSING OPTIONS
#
hlsl_enable 1
hlslpath hlsl
hlsl_prescale_x 0
hlsl_prescale_y 0
hlsl_preset -1
hlsl_write
hlsl_snap_width 1024
hlsl_snap_height 768
shadow_mask_alpha 0.1
shadow_mask_texture aperture.png
shadow_mask_x_count 800
shadow_mask_y_count 600
shadow_mask_usize 0.09375
shadow_mask_vsize 0.109375
curvature 0.200000
round_corner 0.300000
pincushion 0.100000
scanline_alpha 1.0
scanline_size 1.0
scanline_height 1.0
scanline_bright_scale 1.0
scanline_bright_offset 0.0
scanline_jitter 0.0
defocus 0.0,0.0
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 1.0,0.0,0.0
grn_ratio 0.0,1.0,0.0
blu_ratio 0.0,0.0,1.0
saturation 1.15
offset -0.15,-0.16,-0.16
scale 1.15,1.16,1.16
power 1.1,0.95,0.8
floor 0.0,0.0,0.0
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 0.0
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.1
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
-
Got it working. I ran the DirectX 9 end user Run-time web installer. Then I backed up my mame.ini and recreated it. Don't know which did it, but it's working now. Time for tweaking. Thanks for the help.
-
Right on. Thanks for posting your solution.
-
I'll add to the list of weird things that'll kill hlsl. Apparently if you've edited the hlsl settings in game they will be stored in the cfg file AND an ini file. If one of the hlsl options changes (name change ect) mame will ignore the entire file and disable hlsl.