MAMEWorld >> EmuChat
View all threads Index   Threaded Mode Threaded  

Pages: 1

Elaphe
MAME
Reged: 07/06/05
Posts: 127
Send PM


Minor issues with hlsl
#342956 - 07/26/15 06:02 PM


I'm experiencing some artifacts during smooth vertical scrolls. I've reduced the effect to the minimum, but it's still noticiable. I suppose it has to do with any of these settings:

hlsl_prescale_x 8
hlsl_prescale_y 8
hlsl_preset -1
hlsl_write 0
hlsl_snap_width 1
hlsl_snap_height 1
shadow_mask_alpha 0.4
shadow_mask_texture aperture.png
shadow_mask_x_count 6
shadow_mask_y_count 4
shadow_mask_usize 0.1875
shadow_mask_vsize 0.25
shadow_mask_uoffset 0.0
shadow_mask_voffset 0.0

What are the perfect values for my screen res (1920x1080)? You can notice this problem during the vertical scroll at the beginning of the first stage of Willow or during the intro of 1944.

The best alternative for now is to use a png effect for the scanlines + shadow mask pattern, and disable the scanlines and aperture.png in the hlsl section. The only problem is that the scanlines then do not follow the curvature effect.

Apart from that, I've noticed that if I disable the postprocessing effect using Ctrl+Alt+F5 and then I enable them again, the effect is not the same as before, with a wrong pattern on screen. Is this a known problem?






uman
MAME Fan
Reged: 04/15/12
Posts: 455
Send PM


Re: Minor issues with hlsl new [Re: Elaphe]
#342969 - 07/26/15 09:06 PM


Your settings are wrong, for this aperture.png. Your settings are fine for Shadowmask.png:

shadow_mask_texture Shadowmask.png
shadow_mask_x_count 6
shadow_mask_y_count 4
shadow_mask_usize 0.1875
shadow_mask_vsize 0.25

If you want to use the aperture.png, then try this settings:

shadow_mask_texture aperture.png
shadow_mask_x_count 6
shadow_mask_y_count 6
shadow_mask_usize 0.1875
shadow_mask_vsize 0.1875


Code:

------------------- crt_shadow_mask settings -------------------

shadow_mask_texture ShadowMask.png
shadow_mask_x_count 6
shadow_mask_y_count 8
shadow_mask_usize 0.1875
shadow_mask_vsize 0.25

------------------- crt_slot_mask settings ---------------------

shadow_mask_texture SlotMask.png
shadow_mask_x_count 6
shadow_mask_y_count 6
shadow_mask_usize 0.1875
shadow_mask_vsize 0.1875

------------------- crt_adapture_grill settings -----------------

shadow_mask_texture Aperture.png
shadow_mask_x_count 6
shadow_mask_y_count 6
shadow_mask_usize 0.1875
shadow_mask_vsize 0.1875



Edited by uman (07/26/15 09:10 PM)



Elaphe
MAME
Reged: 07/06/05
Posts: 127
Send PM


Re: Minor issues with hlsl new [Re: uman]
#342972 - 07/26/15 09:49 PM


Thanx. I'll try those settings now. By the way, where can I download shadowmask.png? I've downloaded the official MAME build and it's not in the artwork folder.






uman
MAME Fan
Reged: 04/15/12
Posts: 455
Send PM


Re: Minor issues with hlsl new [Re: Elaphe]
#342973 - 07/26/15 09:55 PM Attachment: artwork.zip 14 KB (12 downloads)


???

i attached you my artwork-files



Elaphe
MAME
Reged: 07/06/05
Posts: 127
Send PM


Re: Minor issues with hlsl new [Re: uman]
#342981 - 07/26/15 11:23 PM


Thankyou very much.

I've found that SlotMask achieves an even better result in terms of mimicking an arcade monitor, with a very very compressed vertical pattern. The little issues (like a shadow or kind of moire effect) can still be noticed in bright backgrounds while scrolling, but it's very subtle.

I'm using these settings, with just a little of color correction and not much bloom. Most presets are spectacular but destroy the colors of the games as well as the details in dark and bright areas.

hlsl_enable 1
hlslpath .\..\mamefiles\hlsl
hlsl_prescale_x 8
hlsl_prescale_y 8
hlsl_preset -1
hlsl_write 0
hlsl_snap_width 1
hlsl_snap_height 1
shadow_mask_alpha 0.4
shadow_mask_texture SlotMask.png
shadow_mask_x_count 6
shadow_mask_y_count 6
shadow_mask_usize 0.1875
shadow_mask_vsize 0.1875
shadow_mask_uoffset 0.0
shadow_mask_voffset 0.0
curvature 0.20
round_corner 0.18
reflection 0.15
vignetting 0.25
scanline_alpha 0.7
scanline_size 1.0
scanline_height 1.0
scanline_bright_scale 2.0
scanline_bright_offset 0.0
scanline_jitter 0.05
defocus 0.9,0.9
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.00,0.00,0.00
grn_ratio 0.00,1.00,0.00
blu_ratio 0.00,0.00,1.0
saturation 1.15
offset -0.08,-0.08,-0.05
scale 0.95,0.95,0.95
power 1,1,1
floor 0.0,0.0,0.0
phosphor_life 0.0,0.0,0.0

vector_bloom_scale 0.2
raster_bloom_scale 0.35






uman
MAME Fan
Reged: 04/15/12
Posts: 455
Send PM


Re: Minor issues with hlsl new [Re: Elaphe]
#342982 - 07/26/15 11:33 PM


Everyone as they like

I found floor and phosphor life important too.
Little floor (0.01-0.02) looks very nice with bezel artwork. It makes the screen look more real, IMHO .
And bloom without phosphor life, is like a burger without cheese .
No phosphor life on vector games? meh....nah.



Elaphe
MAME
Reged: 07/06/05
Posts: 127
Send PM


Re: Minor issues with hlsl new [Re: uman]
#342986 - 07/27/15 12:45 AM


Floor is for making pure black look like dark but not completelly black, isn't it? It's interesting, but it reduces the contrast of the display.

As regard phosphor life, I don't play many vector games but with raster games it feels like the ghosting effect of tfts, something that will never happen in crts, and I don't want that.

By the way, I've never used bezels, overlays, etc. before. I've been looking for info and downloaded some art and lay files, but no way, I don't get it to appear on screen. Any tutorial? I'd like to try to do something like a generic monitor bezel that works for all games and maybe also some kind of overlay with the reflections of a curved screen. Is is possible?






Mr Ric
MAME Fan
Reged: 09/25/05
Posts: 253
Send PM


Re: Minor issues with hlsl new [Re: uman]
#343035 - 07/27/15 11:33 PM


> ------------------- crt_slot_mask settings ---------------------
>
> shadow_mask_texture SlotMask.png
> shadow_mask_x_count 6
> shadow_mask_y_count 6
> shadow_mask_usize 0.1875
> shadow_mask_vsize 0.1875
>

Why do these settings create a nice effect on Galaxian but on Dig Dug you can't see any effect?



uman
MAME Fan
Reged: 04/15/12
Posts: 455
Send PM


Re: Minor issues with hlsl new [Re: Elaphe]
#343037 - 07/28/15 01:25 AM


> Floor is for making pure black look like dark but not completelly black, isn't it?
> It's interesting, but it reduces the contrast of the display.
>
> As regard phosphor life, I don't play many vector games but with raster games it
> feels like the ghosting effect of tfts, something that will never happen in crts, and
> I don't want that.
>
> By the way, I've never used bezels, overlays, etc. before. I've been looking for info
> and downloaded some art and lay files, but no way, I don't get it to appear on
> screen. Any tutorial? I'd like to try to do something like a generic monitor bezel
> that works for all games and maybe also some kind of overlay with the reflections of
> a curved screen. Is is possible?

Yes, floor is for making pure black look like dark but not completelly black. It dont reduces contrast that much, with very low settings and artwork.

For artwork files and tutorial look here:
http://mrdo.mameworld.info/mame_artwork.php

I think you are completely wrong regarding the phosphor life and real CRTs . If that wouldnt have to do with CRTs, it wouldnt be in the HLSL options ^^ .



Elaphe
MAME
Reged: 07/06/05
Posts: 127
Send PM


Re: Minor issues with hlsl new [Re: uman]
#343061 - 07/28/15 06:38 PM


I see. Then, what values for phosphor life would you recommend for my settings?





Pages: 1

MAMEWorld >> EmuChat
View all threads Index   Threaded Mode Threaded  

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