Je vous recommande fortement la lecture de
ce topic sur le forum shmups.
C'est en anglais et plutôt difficile d'approche mais à mes yeux c'est le meilleur topic existant concernant les réglages HLSL.
Tellement bon quand même que les devs mame ont demandés leurs conseils pour les réglages de base des futurs build de Mame!
Ce que j'ai retenu de ce fil, c'est deux réglages très bons et plutôt versatiles.
Celui-ci:
Spoiler: #
# CORE SCREEN OPTIONS
#
brightness 1.0
contrast 1.0
gamma 0.7
pause_brightness 1.0
effect none
#
# DIRECT3D POST-PROCESSING OPTIONS
#
hlsl_enable 1
hlslpath hlsl
hlsl_prescale_x 0
hlsl_prescale_y 0
hlsl_preset -1
hlsl_write
hlsl_snap_width 2048
hlsl_snap_height 1536
shadow_mask_alpha 0.05
shadow_mask_texture aperture.png
shadow_mask_x_count 320
shadow_mask_y_count 240
shadow_mask_usize 0.18750
shadow_mask_vsize 0.21875
curvature 0.03
pincushion 0.03
scanline_alpha 1.0
scanline_size 1.0
scanline_height 1.0
scanline_bright_scale 1.5
scanline_bright_offset 0.0
scanline_jitter 0.0
defocus 0.0,0.0
converge_x -0.3,0.0,0.3
converge_y -0.3,0.0,0.3
radial_converge_x 0.0,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.0,0.0,0.0
scale 1.0,1.0,1.0
power 1.0,1.0,1.0
floor 0.01,0.01,0.01
phosphor_life 0.0,0.0,0.0
#
# BLOOM POST-PROCESSING OPTIONS
#
vector_bloom_scale 0.3
raster_bloom_scale 0.17
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
et celui-ci:
Spoiler: #
# DIRECT3D POST-PROCESSING OPTIONS
#
hlsl_enable 1
hlslpath hlsl
hlsl_prescale_x 2
hlsl_prescale_y 2
hlsl_preset -1
hlsl_write
hlsl_snap_width 1920
hlsl_snap_height 1440
shadow_mask_alpha 0.250000
shadow_mask_texture crt_shadow_mask.png
shadow_mask_x_count -3
shadow_mask_y_count -2
shadow_mask_usize 0.375000
shadow_mask_vsize 0.250000
curvature 0.250000
pincushion 0.000000
scanline_alpha 0.250000
scanline_size 1.000000
scanline_height 1.500000
scanline_bright_scale 1.000000
scanline_bright_offset 0.500000
scanline_jitter 0.000000
defocus 0.000000,0.000000
converge_x 0.000000,0.000000,0.500000
converge_y 0.250000,0.000000,0.000000
radial_converge_x 0.000000,0.000000,0.000000
radial_converge_y 0.000000,0.000000,0.000000
red_ratio 1.050000,0.000000,0.100000
grn_ratio -0.100000,1.000000,0.250000
blu_ratio -0.250000,0.250000,1.250000
saturation 1.150000
offset 0.015000,0.015000,0.015000
scale 0.900000,0.950000,0.950000
power 1.300000,1.100000,1.000000
floor 0.000000,0.000000,0.000000
phosphor_life 0.500000,0.500000,0.500000
#
# NTSC POST-PROCESSING OPTIONS
#
yiq_enable 0
yiq_cc 3.597545
yiq_a 0.500000
yiq_b 0.500000
yiq_o 0.000000
yiq_p 1.000000
yiq_n 1.000000
yiq_y 6.000000
yiq_i 1.200000
yiq_q 0.600000
yiq_scan_time 52.600000
yiq_phase_count 2
#
# VECTOR POST-PROCESSING OPTIONS
#
vector_length_scale 0.800000
vector_length_ratio 500.000000
#
# BLOOM POST-PROCESSING OPTIONS
#
vector_bloom_scale 0.300000
raster_bloom_scale 0.150000
bloom_lvl0_weight 1.000000
bloom_lvl1_weight 0.320000
bloom_lvl2_weight 0.280000
bloom_lvl3_weight 0.240000
bloom_lvl4_weight 0.200000
bloom_lvl5_weight 0.160000
bloom_lvl6_weight 0.120000
bloom_lvl7_weight 0.080000
bloom_lvl8_weight 0.040000
bloom_lvl9_weight 0.020000
bloom_lvl10_weight 0.010000
Et pour ceux qui veulent un truc encore plus précis, le INI Creator V0.3 créé par NUeda (toujours sur ce même topic de shmups) peux créer pour vous un INI avec des réglages spécifiques pour chaque type de PCB afin d'avoir un rendu qui correspond encore mieux aux différents systèmes. Vous pouvez le DL
ICI ou
ICI.
Et voici le tuto qui va avec (en anglais, désolé):
Spoiler: INI Creator v0.3 (50 systems + 51 ROMs + EXTRA)
If you want to use different HLSL settings, please use a text editor to change the contents of *.ini and *.txt files.
------------------------------------------------------------------------------------------ ---------------------------
How to install: ------------------------------------------------------------------------------------------ ---------------------------
1. Download the zip file and extract the contents into a new folder. The folder can have any name you like, but for the sake of this explanation let's name it _INI_creator_v0.3
2. Place this folder inside your mame folder, on the same level as ini folder.
mame L..... _INI_creator_v0.3 L..... ini L..... mame.exe
3. Go inside the folder and run INI_creator_v0.3.bat, and finish the batch process. You're done now.
------------------------------------------------------------------------------------------ ---------------------------
Notes: ------------------------------------------------------------------------------------------ ---------------------------
1. You were right about games being too dark with my HLSL settings. The most noticeable was Neo-Geo games. Majority of those codes are fixed now.
2. Floor is lowered to 0.0 because most people's monitors already have plenty of backlight bleeding. It's up to you if you want to raise floor.
3. Bilinear filtering was force-enabled since MAME 0.148u5. But with MAME 0.152, it is once again turned off by default.
Because of this, I personally think that MAME 0.152 needs little bit of defocus (already applied in INI Creator v0.3), whereas MAME 0.151 needs defocus turned off. (0.0,0.0)
4. hlsl_prescale_x was set as high as 7 only because of playing vertical games on a non-rotating horizontal monitor, like a TV or a projector.
If your monitor is rotated for vertical games, or if you don't play vertical games, then you don't need 7 for hlsl_prescale_x, it can be 0 and it will look fine. If you want to apply this change to all games at once, change into the following code before running the batch process:
INI_creator_prescale.txt
Code:
224 0 7
240 0 6
0_raster_common.ini
Code:
defocus 0.0,0.0
I just realized I could have used hlsl_prescale_x 0 for all horizontal games and hlsl_prescale_y 0 for all vertical games.
NB: ne pas oublier de récupérer le package du code source de Mame (celui nommé Mame052s.exe
ici) et de coller les deux dossiers "hlsl" et "artwork" (que vous trouverez dans le package) dans votre dossier de Mame.
P.S.: Shadow Mask est semble t-il meilleur qu'aperture.