HLSL e monitor arcade
Inviato: 27/04/2016, 21:25
Premessa: ho un SEGA New Net City con PC collegato (VGA e 640x480). Essendo a 31khz delle scanlines manco l'ombra.
Ho allora provato ad attivarle da software con HLSL "1" nel file ini del MAME.
Sul monitor del PC non ho alcun problema, su quello del cabinato (stesso identico file ini) semplicemente non appaiono.
Il file ini è questo (ci sono valori che non vanno bene ma li avrei iniziati a modificare se si fossero viste le scanlines):
#
# CORE SCREEN OPTIONS
#
brightness 1.1
contrast 1.0
gamma 1.0
pause_brightness 0.65
effect none
widestretch 0
#
# OSD VIDEO OPTIONS
#
video d3d
numscreens 1
window 0
maximize 1
keepaspect 1
unevenstretch 1
waitvsync 1
#
# OSD PER-WINDOW VIDEO OPTIONS
#
screen auto
aspect auto
resolution auto
view auto
screen0 auto
aspect0 auto
resolution0 auto
view0 auto
screen1 auto
aspect1 auto
resolution1 auto
view1 auto
screen2 auto
aspect2 auto
resolution2 auto
view2 auto
screen3 auto
aspect3 auto
resolution3 auto
view3 auto
#
# OSD FULL SCREEN OPTIONS
#
switchres 0
#
# OSD ACCELERATED VIDEO OPTIONS
#
filter 0
prescale 3
#
# OpenGL-SPECIFIC OPTIONS
#
glslpath glsl
gl_forcepow2texture 0
gl_notexturerect 0
gl_vbo 1
gl_pbo 1
gl_glsl 0
gl_glsl_filter 1
gl_glsl_sync 0
glsl_shader_mame0 none
glsl_shader_mame1 none
glsl_shader_mame2 none
glsl_shader_mame3 none
glsl_shader_mame4 none
glsl_shader_mame5 none
glsl_shader_mame6 none
glsl_shader_mame7 none
glsl_shader_mame8 none
glsl_shader_mame9 none
glsl_shader_screen0 none
glsl_shader_screen1 none
glsl_shader_screen2 none
glsl_shader_screen3 none
glsl_shader_screen4 none
glsl_shader_screen5 none
glsl_shader_screen6 none
glsl_shader_screen7 none
glsl_shader_screen8 none
glsl_shader_screen9 none
#
# DIRECTDRAW-SPECIFIC OPTIONS
#
hwstretch 1
#
# DIRECT3D POST-PROCESSING OPTIONS
#
hlsl_enable 1
hlslpath hlsl
hlsl_prescale_x 0
hlsl_prescale_y 0
hlsl_write
hlsl_snap_width 1920
hlsl_snap_height 1080
shadow_mask_tile_mode 0
shadow_mask_alpha 0.1
shadow_mask_texture crt_shadow_mask.png
shadow_mask_x_count 640
shadow_mask_y_count 480
shadow_mask_usize 0.09375
shadow_mask_vsize 0.109375
shadow_mask_uoffset 0.0
shadow_mask_voffset 0.0s
curvature 0.00
round_corner 0.00
smooth_border 0.00
reflection 0.0
vignetting 0.0
scanline_alpha 1.0
scanline_size 1.0
scanline_height 1.0
scanline_bright_scale 1.0
scanline_bright_offset 0.0
scanline_jitter 0.05
hum_bar_alpha 0.0
defocus 0.0,0.0
converge_x 0.2,0.0,0.0
converge_y 0.0,0.0,0.0
radial_converge_x 0.2,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 1.0
offset -0.15,-0.16,-0.16
scale 1.15,1.16,1.16
power 1.1,0.95,0.8
floor 0.0,0.0,0.0
phosphor_life 0.0,0.0,0.0
#
# NTSC POST-PROCESSING OPTIONS
#
yiq_enable 0
yiq_jitter 0.0
yiq_cc 3.57954545
yiq_a 0.5
yiq_b 0.5
yiq_o 0.0
yiq_p 1.0
yiq_n 1.0
yiq_y 6.0
yiq_i 1.2
yiq_q 0.6
yiq_scan_time 52.6
yiq_phase_count 2
#
# VECTOR POST-PROCESSING OPTIONS
#
vector_length_scale 0.8
vector_length_ratio 500.0
#
# BLOOM POST-PROCESSING OPTIONS
#
bloom_blend_mode 0
bloom_scale 0.1
bloom_overdrive 1.0,1.0,1.0
bloom_lvl0_weight 1.0
bloom_lvl1_weight 0.21
bloom_lvl2_weight 0.19
bloom_lvl3_weight 0.17
bloom_lvl4_weight 0.15
bloom_lvl5_weight 0.14
bloom_lvl6_weight 0.13
bloom_lvl7_weight 0.12
bloom_lvl8_weight 0.11
bloom_lvl9_weight 0.10
bloom_lvl10_weight 0.09
Secondo voi perché? Ho copiato anche tutti i file della cartella artwork quindi non credo stia lì il problema...
Ho allora provato ad attivarle da software con HLSL "1" nel file ini del MAME.
Sul monitor del PC non ho alcun problema, su quello del cabinato (stesso identico file ini) semplicemente non appaiono.
Il file ini è questo (ci sono valori che non vanno bene ma li avrei iniziati a modificare se si fossero viste le scanlines):
#
# CORE SCREEN OPTIONS
#
brightness 1.1
contrast 1.0
gamma 1.0
pause_brightness 0.65
effect none
widestretch 0
#
# OSD VIDEO OPTIONS
#
video d3d
numscreens 1
window 0
maximize 1
keepaspect 1
unevenstretch 1
waitvsync 1
#
# OSD PER-WINDOW VIDEO OPTIONS
#
screen auto
aspect auto
resolution auto
view auto
screen0 auto
aspect0 auto
resolution0 auto
view0 auto
screen1 auto
aspect1 auto
resolution1 auto
view1 auto
screen2 auto
aspect2 auto
resolution2 auto
view2 auto
screen3 auto
aspect3 auto
resolution3 auto
view3 auto
#
# OSD FULL SCREEN OPTIONS
#
switchres 0
#
# OSD ACCELERATED VIDEO OPTIONS
#
filter 0
prescale 3
#
# OpenGL-SPECIFIC OPTIONS
#
glslpath glsl
gl_forcepow2texture 0
gl_notexturerect 0
gl_vbo 1
gl_pbo 1
gl_glsl 0
gl_glsl_filter 1
gl_glsl_sync 0
glsl_shader_mame0 none
glsl_shader_mame1 none
glsl_shader_mame2 none
glsl_shader_mame3 none
glsl_shader_mame4 none
glsl_shader_mame5 none
glsl_shader_mame6 none
glsl_shader_mame7 none
glsl_shader_mame8 none
glsl_shader_mame9 none
glsl_shader_screen0 none
glsl_shader_screen1 none
glsl_shader_screen2 none
glsl_shader_screen3 none
glsl_shader_screen4 none
glsl_shader_screen5 none
glsl_shader_screen6 none
glsl_shader_screen7 none
glsl_shader_screen8 none
glsl_shader_screen9 none
#
# DIRECTDRAW-SPECIFIC OPTIONS
#
hwstretch 1
#
# DIRECT3D POST-PROCESSING OPTIONS
#
hlsl_enable 1
hlslpath hlsl
hlsl_prescale_x 0
hlsl_prescale_y 0
hlsl_write
hlsl_snap_width 1920
hlsl_snap_height 1080
shadow_mask_tile_mode 0
shadow_mask_alpha 0.1
shadow_mask_texture crt_shadow_mask.png
shadow_mask_x_count 640
shadow_mask_y_count 480
shadow_mask_usize 0.09375
shadow_mask_vsize 0.109375
shadow_mask_uoffset 0.0
shadow_mask_voffset 0.0s
curvature 0.00
round_corner 0.00
smooth_border 0.00
reflection 0.0
vignetting 0.0
scanline_alpha 1.0
scanline_size 1.0
scanline_height 1.0
scanline_bright_scale 1.0
scanline_bright_offset 0.0
scanline_jitter 0.05
hum_bar_alpha 0.0
defocus 0.0,0.0
converge_x 0.2,0.0,0.0
converge_y 0.0,0.0,0.0
radial_converge_x 0.2,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 1.0
offset -0.15,-0.16,-0.16
scale 1.15,1.16,1.16
power 1.1,0.95,0.8
floor 0.0,0.0,0.0
phosphor_life 0.0,0.0,0.0
#
# NTSC POST-PROCESSING OPTIONS
#
yiq_enable 0
yiq_jitter 0.0
yiq_cc 3.57954545
yiq_a 0.5
yiq_b 0.5
yiq_o 0.0
yiq_p 1.0
yiq_n 1.0
yiq_y 6.0
yiq_i 1.2
yiq_q 0.6
yiq_scan_time 52.6
yiq_phase_count 2
#
# VECTOR POST-PROCESSING OPTIONS
#
vector_length_scale 0.8
vector_length_ratio 500.0
#
# BLOOM POST-PROCESSING OPTIONS
#
bloom_blend_mode 0
bloom_scale 0.1
bloom_overdrive 1.0,1.0,1.0
bloom_lvl0_weight 1.0
bloom_lvl1_weight 0.21
bloom_lvl2_weight 0.19
bloom_lvl3_weight 0.17
bloom_lvl4_weight 0.15
bloom_lvl5_weight 0.14
bloom_lvl6_weight 0.13
bloom_lvl7_weight 0.12
bloom_lvl8_weight 0.11
bloom_lvl9_weight 0.10
bloom_lvl10_weight 0.09
Secondo voi perché? Ho copiato anche tutti i file della cartella artwork quindi non credo stia lì il problema...