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

Nightvoice
MAME Fan
Reged: 03/19/10
Posts: 883
Loc: The Room Next To You
Send PM
Re: HLSL pixelperfect pure Scanlines
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







Entire thread
Subject Posted by Posted on
* HLSL pixelperfect pure Scanlines KayJay 03/18/20 01:41 AM
. * Re: HLSL pixelperfect pure Scanlines Nightvoice  03/19/20 02:34 PM
. * Re: HLSL pixelperfect pure Scanlines John IV  03/18/20 03:59 AM
. * Re: HLSL pixelperfect pure Scanlines KayJay  03/18/20 05:13 AM

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