MAMEWorld >> EmuChat
View all threads Index   Flat Mode Flat  

SteelTigers
STRAT Fan
Reged: 12/23/17
Posts: 106
Send PM
Re: Another attempt to get that authentic arcade-look using scanlines (file4)
12/23/17 11:18 PM Attachment: hlsl-mame.jpg 508 KB (10 downloads)


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]

Attachment







Entire thread
Subject Posted by Posted on
* Another attempt to get that authentic arcade-look using scanlines JonBoyRetro 12/18/17 10:52 PM
. * Re: Another attempt to get that authentic arcade-look using scanlines anikom15  12/21/17 01:29 AM
. * Re: Another attempt to get that authentic arcade-look using scanlines JonBoyRetro  12/21/17 04:05 PM
. * Re: Another attempt to get that authentic arcade-look using scanlines anikom15  12/22/17 02:06 AM
. * Re: Another attempt to get that authentic arcade-look using scanlines MooglyGuy  12/22/17 03:37 AM
. * Re: Another attempt to get that authentic arcade-look using scanlines anikom15  12/22/17 05:49 AM
. * Re: Another attempt to get that authentic arcade-look using scanlines JonBoyRetro  12/23/17 03:26 PM
. * Re: Another attempt to get that authentic arcade-look using scanlines MooglyGuy  12/23/17 03:49 PM
. * Re: Another attempt to get that authentic arcade-look using scanlines JonBoyRetro  12/18/17 10:54 PM
. * Re: Another attempt to get that authentic arcade-look using scanlines JonBoyRetro  12/18/17 10:55 PM
. * Re: Another attempt to get that authentic arcade-look using scanlines (file3) JonBoyRetro  12/18/17 10:57 PM
. * Re: Another attempt to get that authentic arcade-look using scanlines (file4) JonBoyRetro  12/18/17 10:58 PM
. * Re: Another attempt to get that authentic arcade-look using scanlines (file4) SteelTigers  12/23/17 11:18 PM
. * Re: Another attempt to get that authentic arcade-look using scanlines (file4) anikom15  12/24/17 03:16 AM
. * Re: Another attempt to get that authentic arcade-look using scanlines (file4) John IV  12/24/17 10:33 PM
. * Re: Another attempt to get that authentic arcade-look using scanlines (file4) SteelTigers  12/24/17 04:03 AM
. * Re: Another attempt to get that authentic arcade-look using scanlines (file4) StilettoAdministrator  12/24/17 04:22 AM
. * Re: Another attempt to get that authentic arcade-look using scanlines (file4) SteelTigers  12/24/17 05:08 AM

Extra information Permissions
Moderator:  Robbbert, Tafoid 
0 registered and 141 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 2425