MAMEWorld >> EmuChat
Previous thread Previous  View all threads Index   Threaded Mode Threaded  

Pages: 1

KayJay
MAME Fan
Reged: 11/13/17
Posts: 2
Send PM


HLSL pixelperfect pure Scanlines
#385560 - 03/18/20 01:41 AM


Hello, usually I use ReShade with custom shaders to replicate nice CRT scanline effects also for MAME Arcade but since ReShade interferes with Parsec Arcade cloudstreaming (for online share play) I just digged into MAME's own integrated Scanline Shader possibilitys but the default HLSL configuration shows some strange streak effect. Is there a way to disable this?



This is an example Screenshot, the mentioned issue is visible on Splinter and his Textbubble.




This is my ReShade Shader Configuration for comparison use.

I appreciate any helpful reply in advance.



John IV
IV/Play, MAME, MAMEUI
Reged: 09/22/03
Posts: 1969
Loc: Washington, USA
Send PM


Re: HLSL pixelperfect pure Scanlines new [Re: KayJay]
#385562 - 03/18/20 03:59 AM


Maybe you have phosphor life cranked up in raster.ini. Give mine below a try in raster.ini, I usually try for just the scanlines w/out the grill or shadowmask.

gamma .7
#
# DIRECT3D POST-PROCESSING OPTIONS
#
shadow_mask_tile_mode 0
#shadow_mask_alpha 0.25
shadow_mask_texture shadow-mask.png
shadow_mask_x_count 12
shadow_mask_y_count 6
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.0
distort_corner 0.0
round_corner 0.0
smooth_border 0.0
reflection 0.0
vignetting 0.0
scanline_alpha 0.25
scanline_size 1.0
scanline_height 1.0
scanline_variation 1.0
scanline_bright_scale 2.0
scanline_bright_offset 0.0
scanline_jitter 0.0
#defocus 0.75,0.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.05,0.00,0.10
#grn_ratio -0.10,1.00,0.25
#blu_ratio -0.25,0.25,1.25
#saturation 1.25
#offset -0.30,-0.20,-0.05
#scale 1.15,1.05,0.90
#power 0.90,0.90,1.15
#floor 0.025,0.025,0.025
#phosphor_life 0.25,0.25,0.25
chroma_mode 3
chroma_a 0.630,0.340
chroma_b 0.310,0.595
chroma_c 0.155,0.070
chroma_y_gain 0.2124,0.7011,0.0866

#
# NTSC POST-PROCESSING OPTIONS
#
yiq_enable 0

#
# BLOOM POST-PROCESSING OPTIONS
#
#bloom_blend_mode 0
#bloom_scale 0.25
#bloom_overdrive 1.00,1.00,1.00
#bloom_lvl0_weight 1.00
#bloom_lvl1_weight 0.64
#bloom_lvl2_weight 0.32
#bloom_lvl3_weight 0.16
#bloom_lvl4_weight 0.08
#bloom_lvl5_weight 0.06
#bloom_lvl6_weight 0.04
#bloom_lvl7_weight 0.02
#bloom_lvl8_weight 0.01



john iv
http://www.mameui.info/



KayJay
MAME Fan
Reged: 11/13/17
Posts: 2
Send PM


Re: HLSL pixelperfect pure Scanlines new [Re: John IV]
#385565 - 03/18/20 05:13 AM


Thank you very much, that got rid of it.



Nightvoice
MAME Fan
Reged: 03/19/10
Posts: 883
Loc: The Room Next To You
Send PM


Re: HLSL pixelperfect pure Scanlines new [Re: KayJay]
#385587 - 03/19/20 02:34 PM Attachment: scanlines1_2.png 1 KB (26 downloads)


Personally, I like the crisp scanlines option myself. But using the scanlines function didn't get me there. You can get it looking close with that, but it never looked quite right and I had to tweak it for each individual game (some games need wider lines, etc.). I found that I got what I wanted using only the shadow mask function (with the attached 2-pixel mask) and disabling scanlines. This also addressed the problem of having to change it when going between fullscreen and windowed modes. This gives you a baseline of 1-pixel lines (the minimum) which you can easily increase. Thus:

shadow_mask_tile_mode 0
shadow_mask_alpha 0.25 (increase if you want darker lines)
shadow_mask_texture scanlines1_2.png (rotate this file if you want to use it for a horizontal monitor)
shadow_mask_x_count 2 (increase for wider lines if you're using a vertical monitor)
shadow_mask_y_count 2 (increase for taller lines if you're using a horizontal monitor)
shadow_mask_usize 1.0
shadow_mask_vsize 1.0
shadow_mask_uoffset 0.0
shadow_mask_voffset 0.0

scanline_alpha 0.0


There are still a handful of games I had to increase the x/y counts to 3 on, but this generally worked and I didn't have to spend all day fucking around with scanline settings.

[ATTACHED IMAGE]

Attachment



----------------------
I have officially retired from sucking at everything I do. Life is much easier now.

My MAME/MESS artwork files: https://drive.google.com/open?id=1ABxeKgNIrKlIsyck7dx4V241NFQDWAF4
Related screen shots: https://drive.google.com/open?id=1U5IbvbVzYW97PuOOQuocvZFE_YJz7WIn


Pages: 1

MAMEWorld >> EmuChat
Previous thread Previous  View all threads Index   Threaded Mode Threaded  

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