Jump to content

Glsl questions (how to change settings etc)


thenoob

Recommended Posts

Posted

Hi guys

Hlsl slowed my system to a crawl, I'm trying to work with glsl. I'm kind of confused.

I'm using mame uifx 0.170 inside hyper spin. Where do you edit glsl settings? Inside the mame Ini or for mame uifx is it done inside mameuifx?

I've found some good write ups but none on how to actually edit things, just reviews on shaders where I don't know where to even select or (download???)".

It's my last quest in my monitor saga and I'd really like to dial it in. doing my best to not have to post it here and doing my own research but I'm kind of head scratching

Posted

Forgot to add

I've found the settings in mameuifx to select shaders but have no idea how to use them, there's two different Columns and 4 choices (2 per).

If anyone can chime in, awesome!

Posted

Pretty sure you can combine the shaders for the effect you are looking for.....as far as makin them work with RL you have to enable them with the edit global system settings of mame in RL and set it to use HLSL or glsl ini as well as enabling one or the other in mameuifx itself but pretty sure HLSL only works when you have your video options set to opengl

Posted

Finally got glsl to work except one VERY annoying thing

I launch a game in HS, I get all these prompts:

"OpenGL - glsl loading screen bitmap shader 0 failed - crt geome HQ"

It sometimes eventually goes into the game but it's annoying, there must be something that's not ticked or ticked that's messing it up.

I'm using mameuifx 0.170

Posted

attached is mame ini

thanks again guys!!

 

 

#
# CORE CONFIGURATION OPTIONS
#
readconfig                1
writeconfig               0
 
#
# CORE SEARCH PATH OPTIONS
#
rompath                   "D:\mame 0.170 roms\roms"
hashpath                  hash
samplepath                samples
artpath                   artwork
ctrlrpath                 ctrlr
inipath                   ini
fontpath                  .
cheatpath                 cheat
crosshairpath             crosshair
highpath                  dats
 
#
# CORE OUTPUT DIRECTORY OPTIONS
#
cfg_directory             cfg
nvram_directory           nvram
input_directory           inp
state_directory           sta
snapshot_directory        snap
diff_directory            diff
comment_directory         comments
hiscore_directory         hi
video_directory           video
 
#
# CORE STATE/PLAYBACK OPTIONS
#
state                     
autosave                  0
playback                  
record                    
mngwrite                  
aviwrite                  
wavwrite                  
snapname                  %g/%i
snapsize                  auto
snapview                  internal
snapbilinear              1
statename                 %g
burnin                    0
 
#
# CORE PERFORMANCE OPTIONS
#
autoframeskip             0
frameskip                 0
seconds_to_run            0
throttle                  1
syncrefresh               0
sleep                     1
speed                     1.0
refreshspeed              0
 
#
# CORE ROTATION OPTIONS
#
rotate                    1
ror                       0
rol                       0
autoror                   0
autorol                   0
flipx                     0
flipy                     0
 
#
# CORE ARTWORK OPTIONS
#
artwork_crop              0
use_backdrops             1
use_overlays              1
use_bezels                1
use_cpanels               1
use_marquees              1
 
#
# CORE SCREEN OPTIONS
#
brightness                1.14
contrast                  1.0
gamma                     1.0
pause_brightness          0.65
effect                    none
widestretch               1
 
#
# CORE VECTOR OPTIONS
#
antialias                 1
beam_width_min            1.0
beam_width_max            1.0
beam_intensity_weight     -0.0
flicker                   0
 
#
# CORE SOUND OPTIONS
#
samplerate                48000
samples                   1
volume                    0
 
#
# CORE INPUT OPTIONS
#
coin_lockout              1
ctrlr                     XArcade
mouse                     0
joystick                  1
lightgun                  0
multikeyboard             0
multimouse                0
steadykey                 0
ui_active                 0
offscreen_reload          0
joystick_map              auto
joystick_deadzone         0.3
joystick_saturation       0.85
natural                   0
joystick_contradictory    0
coin_impulse              0
 
#
# CORE INPUT AUTOMATIC ENABLE OPTIONS
#
paddle_device             keyboard
adstick_device            keyboard
pedal_device              keyboard
dial_device               keyboard
trackball_device          keyboard
lightgun_device           keyboard
positional_device         keyboard
mouse_device              mouse
 
#
# CORE DEBUGGING OPTIONS
#
verbose                   0
log                       0
oslog                     0
debug                     0
update_in_pause           0
debugscript               
 
#
# CORE COMM OPTIONS
#
comm_localhost            0.0.0.0
comm_localport            15112
comm_remotehost           127.0.0.1
comm_remoteport           15112
 
#
# CORE MISC OPTIONS
#
drc                       1
drc_use_c                 0
drc_log_uml               0
drc_log_native            0
bios                      
cheat                     0
skip_gameinfo             0
uifont                    default
ramsize                   
confirm_quit              0
ui_mouse                  0
autoboot_command          
autoboot_delay            2
autoboot_script           
hiscore                   0
console                   0
 
#
# OSD KEYBOARD MAPPING OPTIONS
#
uimodekey                 SCRLOCK
 
#
# OSD FONT OPTIONS
#
uifontprovider            auto
 
#
# OSD DEBUGGING OPTIONS
#
debugger                  auto
debugger_font             auto
debugger_font_size        0
watchdog                  0
 
#
# OSD PERFORMANCE OPTIONS
#
multithreading            0
numprocessors             auto
bench                     0
 
#
# OSD VIDEO OPTIONS
#
video                     opengl
numscreens                1
window                    1
maximize                  1
keepaspect                1
unevenstretch             1
waitvsync                 0
 
#
# 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                 1
 
#
# OSD ACCELERATED VIDEO OPTIONS
#
filter                    1
prescale                  1
 
#
# OpenGL-SPECIFIC OPTIONS
#
glslpath                  glsl
gl_forcepow2texture       0
gl_notexturerect          0
gl_vbo                    1
gl_pbo                    1
gl_glsl                   1
gl_glsl_filter            1
gl_glsl_sync              0
glsl_shader_mame0         none
glsl_shader_mame1         "Lottes CRT"
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
 
#
# OSD SOUND OPTIONS
#
sound                     auto
audio_latency             2
 
#
# WINDOWS PERFORMANCE OPTIONS
#
priority                  0
profile                   0
 
#
# WINDOWS VIDEO OPTIONS
#
menu                      0
 
#
# DIRECTDRAW-SPECIFIC OPTIONS
#
hwstretch                 1
 
#
# DIRECT3D POST-PROCESSING OPTIONS
#
hlsl_enable               0
hlslpath                  hlsl
hlsl_prescale_x           6
hlsl_prescale_y           6
hlsl_write                1
hlsl_snap_width           2048
hlsl_snap_height          1536
shadow_mask_tile_mode     0
shadow_mask_alpha         0.14
shadow_mask_texture       slot-mask.png
shadow_mask_x_count       6
shadow_mask_y_count       4
shadow_mask_usize         0.1875
shadow_mask_vsize         0.1875
shadow_mask_uoffset       0.0
shadow_mask_voffset       0.0
curvature                 0.10
round_corner              0.10
smooth_border             0.03
reflection                0.05
vignetting                0.20
scanline_alpha            0.92
scanline_size             1.00
scanline_height           0.95
scanline_bright_scale     1.20
scanline_bright_offset    0.55
scanline_jitter           0.05
hum_bar_alpha             0.0
defocus                   0.50,0.0
converge_x                0.2,0.00,-0.1
converge_y                0.0,0.0,-0.0
radial_converge_x         0.2,0.0,-0.2
radial_converge_y         0.0,0.0,0.0
red_ratio                 0.80,0.10,0.10
grn_ratio                 0.10,0.80,0.10
blu_ratio                 0.10,0.10,0.80
saturation                1.4
offset                    -0.03,-0.01,0.03
scale                     0.97,0.99,1.0
power                     1.30,1.35,1.30
floor                     0.00,0.00,0.00
phosphor_life             0.45,0.35,0.40
 
#
# 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.5
vector_length_ratio       500.0
 
#
# BLOOM POST-PROCESSING OPTIONS
#
bloom_blend_mode          0
bloom_scale               0.175
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
 
#
# FULL SCREEN OPTIONS
#
triplebuffer              0
full_screen_brightness    1.0
full_screen_contrast      1.0
full_screen_gamma         1.0
 
#
# INPUT DEVICE OPTIONS
#
global_inputs             0
dual_lightgun             0
joystick_id_1             0
joystick_id_2             1
joystick_id_3             2
joystick_id_4             3
joystick_id_5             4
joystick_id_6             5
joystick_id_7             6
joystick_id_8             7
 
Posted

Correct only one in the folder.

I was looking for the files you spoke about in your video, but couldn't find on mame uifx website or the platinum area??

Maybe that's the issue? I tried it by itself inside mame uifx and got the same prompts??

Posted

I have just tried your settings and got the error you refer to. Moving "Lottes CRT" to Mame0 fixed the error but the effect is plug ugly on my 1080 screen. I'll look into why.

Posted

Man you are a solid chap giga!

This mame0 is that a line inside the Ini? I'm new to shaders, it's really the last part of my build on the software side and I'm

Learning.

Posted

I used to have .144, was away from gaming for a bit and got back into my arcade when .170 came out and I've been building with that since... And also adding all the other systems with retroarch etc...

Maybe it's time to update mame once again. But I'd like to understand glsl and get the shaders working on my system before hand if possible.

Posted

Man you are a solid chap giga!

This mame0 is that a line inside the Ini? I'm new to shaders, it's really the last part of my build on the software side and I'm

Learning.

 

Yes this section.

#
# OpenGL-SPECIFIC OPTIONS
#
glslpath                  glsl
gl_forcepow2texture       0
gl_notexturerect          0
gl_vbo                    1
gl_pbo                    1
gl_glsl                   1
gl_glsl_filter            1
gl_glsl_sync              0
glsl_shader_mame0         "Lottes CRT"
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

I think the ugliness was because I ran 1942 which is vertical and the Lottes shader is for Horizontal. Running Alexkid looked fine.

 

All my ini files are orientation or game specific.

Posted

What you really want is a Horizont.ini, a vertical.ini and a vector.ini

 

Just make a copy of the one your using now and paste it and then rename them as above, making sure the horizontal ini is named correctly (horizont.ini)

 

Then change the shader to the correct one, so for vertical games you would use the "Lottes CRT Vertical" shader and "Lottes CRT" in your Horizont.ini

 

For vector I have no hlsl because it's just wrong on vector games.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...