MAMEUIFX

A full-of-features version of MAME designed for LCD monitors
It is currently 24/09/2018, 18:24

All times are UTC+02:00




Forum locked  This topic is locked, you cannot edit posts or make further replies.  [ 8 posts ] 
Author Message
 Post subject: Strange HLSL
PostPosted: 26/02/2016, 3:02 
Offline
Fan
Fan

Joined: 11/05/2015, 19:29
Posts: 63
Location: Brasil
Hello Mamesick! the version 0.168 to 0.170, d3d HLSL strange ta! I tested the new version 0171, but also is the same! In the .ini file of the game, set up scanline alpha 1.0, but is not visible during the game, set up the slider controls in the option scanline darkness, but is also not visible. Sera that the addition of ta ntsc.fx file causing this? I can only activate scanline in mameuifx menu tab advanced. The version 0.167 down works normal.


Top
   
 Post subject: Re: Strange HLSL
PostPosted: 26/02/2016, 15:06 
Offline
Moderator
Moderator
User avatar

Joined: 17/10/2014, 12:02
Posts: 108
Location: Germany
Cant replicate your problem. Didnt test 0171 so, but tested 0170 and 0169, scanlines are there, like usual.
Would be good, if you post your HLSL.ini here or tell us which game is affected, what OS is used etc.
The ntsc.fx is for sure not causing this.

I assume that with "can only activate scanline in mameuifx menu tab advanced", you mean the ffect file, which is a whole different thing than scanlines via HLSL.

_________________
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music."


Top
   
 Post subject: Re: Strange HLSL
PostPosted: 26/02/2016, 16:04 
Offline
Fan
Fan

Joined: 11/05/2015, 19:29
Posts: 63
Location: Brasil
u-man wrote:
Cant replicate your problem. Didnt test 0171 so, but tested 0170 and 0169, scanlines are there, like usual.
Would be good, if you post your HLSL.ini here or tell us which game is affected, what OS is used etc.
The ntsc.fx is for sure not causing this.

I assume that with "can only activate scanline in mameuifx menu tab advanced", you mean the ffect file, which is a whole different thing than scanlines via HLSL.





Yes, I'm sorry! I activated scanlines alpha via HLSL but is not visible in the game. This happens in all games. I use Windows 7 ultimate x64, gpu nvidia gt630. thank you U-Man.


Attachments:
mame.ini [9.81 KiB]
Downloaded 212 times
Top
   
 Post subject: Re: Strange HLSL
PostPosted: 26/02/2016, 18:13 
Offline
Moderator
Moderator
User avatar

Joined: 17/10/2014, 12:02
Posts: 108
Location: Germany
Your mame.ini says something different :) :

scanline_alpha 0.0 = this means the scanline is not visible at all ;)

try to set it at least to 0.5

current recommended settings for raster games:

Code:
#
# DIRECT3D POST-PROCESSING OPTIONS
#
shadow_mask_alpha         0.35
shadow_mask_texture       shadow-mask.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
curvature                 0.0
round_corner              0.0
smooth_border             0.0
reflection                0.0
vignetting                0.0
scanline_alpha            0.50
scanline_size             1.0
scanline_height           1.0
scanline_bright_scale     2.0
scanline_bright_offset    0.0
scanline_jitter           0.0
defocus                   1.0,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.05,0.05,0.05
phosphor_life             0.5,0.5,0.5

#
# BLOOM POST-PROCESSING OPTIONS
#
bloom_scale               0.35
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.04
bloom_lvl6_weight         0.04
bloom_lvl7_weight         0.02
bloom_lvl8_weight         0.02
bloom_lvl9_weight         0.01
bloom_lvl10_weight        0.01

_________________
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music."


Top
   
 Post subject: Re: Strange HLSL
PostPosted: 26/02/2016, 19:06 
Offline
Fan
Fan

Joined: 11/05/2015, 19:29
Posts: 63
Location: Brasil
thank you U-Man. :P
U-Man, in glsl it is possible to remove these artifacts (effects) that are on the lines of scanlines? I already modified several lines .vsh file and .fsh but not solve!


Attachments:
crt-geom.jpg
crt-geom.jpg [ 336.43 KiB | Viewed 4857 times ]
Top
   
 Post subject: Re: Strange HLSL
PostPosted: 26/02/2016, 20:06 
Offline
Moderator
Moderator
User avatar

Joined: 17/10/2014, 12:02
Posts: 108
Location: Germany
I am afraid, you cant and it is better not to alter the files, if you have no clue, what is what doing.
Also it seems like you dont use a 4:3 aspect ratio, which will get you even more moire/artefacts.

In HLSL you can try to increase the x/y prescale factor to at least 5 (five). If you have a good graphics card, try 6 or higher.
This should help getting rid of any moire/artefacts.

Code:
hlsl_prescale_x           5
hlsl_prescale_y           5

_________________
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music."


Top
   
 Post subject: Re: Strange HLSL
PostPosted: 29/02/2016, 21:56 
Offline
Fan
Fan

Joined: 11/05/2015, 19:29
Posts: 63
Location: Brasil
Hello U-man! In Opengl, I found a way to soften the artifacts. In crt-Geom .vsh file that You are Hunter.k, converted, has Halation line. I changed from 0.1 to 0.7, Since eliminates scanline 1.0.

Thanks for the tip in HLSL.

See how was the image crt-Geom!


Attachments:
crt-geom.jpg
crt-geom.jpg [ 291.83 KiB | Viewed 4786 times ]
Top
   
 Post subject: Re: Strange HLSL
PostPosted: 01/03/2016, 19:22 
Offline
Moderator
Moderator
User avatar

Joined: 17/10/2014, 12:02
Posts: 108
Location: Germany
Dont have your problems at all:

Image

Looks even better in Fullscreen-mode. Like i said, you use a wrong aspect ratio and i guess that is the reason why the shader generates moire-effects. You said you raised the halation from 0.1 to 0.7 and i would consider 0.3 is a max. value, everything above that, looks criminal in my eyes :D . God knows what you have changed ;) .

_________________
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music."


Top
   
Display posts from previous:  Sort by  
Forum locked  This topic is locked, you cannot edit posts or make further replies.  [ 8 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 13 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Limited