Hi all my first post!!! I am getting some excellent results enabling HLSL via the mame.ini file. If you haven't already done so, edit the mame.ini file to enable the hlsl features ( you will need DirectX 9c - regardless if your using DX11 or 12 - you must install DX9c ) Scroll down to this in mame.ini:
# DIRECT3D POST-PROCESSING OPTIONS # hlslpath hlsl hlsl_enable 1 <---- 1 is enabled, 0 is off hlsl_oversampling 1 hlsl_write hlsl_snap_width 1440 hlsl_snap_height 1080 shadow_mask_tile_mode 0 shadow_mask_alpha 0.1 shadow_mask_texture shadow_mask.png shadow_mask_x_count 12 shadow_mask_y_count 12 shadow_mask_usize 0.5 shadow_mask_vsize 0.5 shadow_mask_uoffset 0.0 shadow_mask_voffset 0.0 distortion 0.0 cubic_distortion 0.10 distort_corner 0.10 round_corner 0.05 smooth_border 0.03 reflection 0.0 vignetting 0.0 scanline_alpha 0.5 scanline_size 1.0 scanline_height 1.0 scanline_variation 1.0 scanline_bright_scale 1.0 scanline_bright_offset 0.2 scanline_jitter 0.0 hum_bar_alpha 0.0 defocus 1.0,1.0 converge_x 0.0,0.0,0.0 converge_y 0.0,0.0,0.0 radial_converge_x 0.0,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 0.9 offset 0.0,0.0,0.0 scale 1.0,1.0,1.0 power 1.0,1.0,0.95 floor 0.0,0.0,0.0 phosphor_life 0.0,0.0,0.0
----
The snape width and height is what I am using with corresponding artwork over lays I made:
hlsl_snap_width 1440 hlsl_snap_height 1080
I am using these mask counts, some say the y count set at 6 is better for them, but for me its 12 both ways:
shadow_mask_x_count 12 shadow_mask_y_count 12
Now for cubic distortions and corners, I am using these settings to give the scan lines a slightly curved looked at the corners to look as if the display is wrapping around the curvature of a CRT as they are not perfectly flat screens.
cubic_distortion 0.10 distort_corner 0.10 round_corner 0.05 smooth_border 0.03
After HLSL is enabled, then you can play with the scan line attributes:
scanline_alpha 0.5 scanline_size 1.0 scanline_height 1.0 scanline_variation 1.0 scanline_bright_scale 1.0 scanline_bright_offset 0.2 scanline_jitter 0.0 hum_bar_alpha 0.0
With HLSL enabled you will get a lot of new machine settings. Otherwise if its disabled, you will not see the new settings and not be able to adjust scan lines and other cool features that will allow you to tweak your in game display setup. (slider controls is where you will find all the scan line adjustments) I prefer to use custom artwork and overlays so I can have a true ratio of the original display, see attached.
These scan lines are almost perfect for me...
Questions?
[ATTACHED IMAGE - CLICK FOR FULL SIZE]
|