Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Help getting HLSL to work  (Read 2692 times)

0 Members and 1 Guest are viewing this topic.

epetti

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 344
  • Last login:September 14, 2023, 10:15:20 pm
  • I want to build my own arcade controls!
Help getting HLSL to work
« 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.

vwalbridge

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2082
  • Last login:July 31, 2021, 12:21:09 pm
  • Don't half-ass two things, whole-ass one thing.
Re: Help getting HLSL to work
« Reply #1 on: October 14, 2015, 10:46:14 am »
First Question:

Are you running mame directly from the exe? or From Hyperspin by chance?
If you can read this, it means Photobucket's money grab ruined my signature photos.

epetti

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 344
  • Last login:September 14, 2023, 10:15:20 pm
  • I want to build my own arcade controls!
Re: Help getting HLSL to work
« Reply #2 on: October 14, 2015, 11:24:23 am »
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.

vwalbridge

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2082
  • Last login:July 31, 2021, 12:21:09 pm
  • Don't half-ass two things, whole-ass one thing.
Re: Help getting HLSL to work
« Reply #3 on: October 14, 2015, 11:28:34 am »
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.
If you can read this, it means Photobucket's money grab ruined my signature photos.

epetti

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 344
  • Last login:September 14, 2023, 10:15:20 pm
  • I want to build my own arcade controls!
Re: Help getting HLSL to work
« Reply #4 on: October 14, 2015, 11:55:22 am »
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?

vwalbridge

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2082
  • Last login:July 31, 2021, 12:21:09 pm
  • Don't half-ass two things, whole-ass one thing.
Re: Help getting HLSL to work
« Reply #5 on: October 14, 2015, 12:00:23 pm »
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.

Code: [Select]
#
# 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
If you can read this, it means Photobucket's money grab ruined my signature photos.

epetti

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 344
  • Last login:September 14, 2023, 10:15:20 pm
  • I want to build my own arcade controls!
Re: Help getting HLSL to work
« Reply #6 on: October 15, 2015, 12:39:52 am »
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.

vwalbridge

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2082
  • Last login:July 31, 2021, 12:21:09 pm
  • Don't half-ass two things, whole-ass one thing.
Re: Help getting HLSL to work
« Reply #7 on: October 15, 2015, 08:36:45 am »
Right on. Thanks for posting your solution.
If you can read this, it means Photobucket's money grab ruined my signature photos.

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Today at 02:45:49 am
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: Help getting HLSL to work
« Reply #8 on: October 16, 2015, 01:18:06 pm »
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.