Issues Configuring Shaders on Retroarch for Raspberry Pi

oh man, that cabinet looks awesome. Is that glass or plexi on top? Did you have to get it custom-cut?

for the rotation, it would have to be completely rewritten but you’re in luck because I just happened to write a portrait version a couple of weeks ago. It’s in the glsl shaders in the ‘misc’ directory named cocktail-cab-portrait.glsl.

Thanks! Its basically the “Kyle Lindstrom” plans with some slight mods to put an LED monitor in it. That means I was able to use ‘stock’ replacement glass for a Ms Pacman cabinet from a guy on Amazon.

Thanks again for the shader, sounds like just what I need.

Heya, I finally got around to trying out your new cocktail/portrait shader. I get some funny overlap with it. I’ve gotten this in the past with other glsl shaders, but with those I was able to hack on some of the numeric constants until things looked right. Can you give a suggestion as to what I should tweak to get this looking right? (screenshots attached).



Thanks! Joe

[QUOTE=BLiNKx86;48822]Thanks! Its basically the “Kyle Lindstrom” plans with some slight mods to put an LED monitor in it. That means I was able to use ‘stock’ replacement glass for a Ms Pacman cabinet from a guy on Amazon.

Thanks again for the shader, sounds like just what I need.[/QUOTE]

Most of those shots look good, though it looks like the monitor is still in landscape rather than portrait. The parameters listed at the top of the shader are the values that you would mess with to move the images around, and you should be able to modify them at runtime using the preview parameters option from the shader menu.

Heya, I had set the screen rotation by modifying my /boot/config.txt (I’m running RetroPie).

I tried to select the ‘Preview Shader Parameters’ under RGUI, but it caused a crash:

#1 0x0005fc28 in video_shader_driver_get_current_shader (shader=0x7ed8f0c0, shader@entry=0x7ed8f0b8) at gfx/video_shader_driver.c:113 113 gfx/video_shader_driver.c: No such file or directory. (gdb) where #0 thread_get_current_shader (data=0x71500468) at gfx/video_thread_wrapper.c:1232 #1 0x0005fc28 in video_shader_driver_get_current_shader (shader=0x7ed8f0c0, shader@entry=0x7ed8f0b8) at gfx/video_shader_driver.c:113 #2 0x000d7a84 in menu_displaylist_ctl (type=type@entry=DISPLAYLIST_SHADER_PARAMETERS, data=data@entry=0x7ed99294) at menu/menu_displaylist.c:5479 #3 0x000c6350 in deferred_push_dlist (state=DISPLAYLIST_SHADER_PARAMETERS, info=0x7ed99294) at menu/cbs/menu_cbs_deferred_push.c:57 #4 deferred_push_video_shader_parameters (info=0x7ed99294) at menu/cbs/menu_cbs_deferred_push.c:277 #5 0x000d4568 in menu_displaylist_push (entry=0x7ed9d3d0) at menu/menu_displaylist.c:4035 #6 menu_displaylist_ctl (type=type@entry=DISPLAYLIST_PUSH_ONTO_STACK, data=data@entry=0x7ed9d3e0) at menu/menu_displaylist.c:4107 #7 0x000c38c4 in action_refresh_default (list=<optimized out>, menu_list=<optimized out>) at menu/cbs/menu_cbs_refresh.c:34 #8 0x000bafbc in menu_entry_action (entry=0x7ed9d450, entry@entry=0x7ed9d448, i=<optimized out>, action=action@entry=MENU_ACTION_OK) at menu/widgets/menu_entry.c:570 #9 0x000dbaac in generic_menu_iterate (data=0x9b84f8, userdata=<optimized out>, action=MENU_ACTION_OK) at menu/drivers/menu_generic.c:234 #10 0x000aa434 in menu_driver_ctl (state=state@entry=RARCH_MENU_CTL_ITERATE, data=data@entry=0x7ed9d9e0) at menu/menu_driver.c:888 #11 0x000331c8 in runloop_check_state (settings=settings@entry=0x76615008, current_input=9140576749708791176, old_input=old_input@entry=0, sleep_ms=0x7ed9daf4) at runloop.c:825 #12 0x00033de8 in runloop_iterate (sleep_ms=0x7ed9daf4, sleep_ms@entry=0x7ed9daec) at runloop.c:1180 #13 0x0001e6b0 in rarch_main (argc=<optimized out>, argv=<optimized out>, data=0x0) at frontend/frontend.c:127 #14 0x76a24294 in __libc_start_main (main=0x7ed9dc74, argc=1991544832, argv=0x76a24294 <__libc_start_main+276>, init=<optimized out>, fini=0x123af0 <__libc_csu_fini>, rtld_fini=0x76f86408 <_dl_fini>, stack_end=0x7ed9dc74) at libc-start.c:287 #15 0x0001bfb4 in _start () (gdb)

Not sure if it matters, but I was running your ‘cocktail-cab-portrait.glsl’ and did NOT have my screen rotated to portrait in /boot/config.txt when I crashed it.

Joe

wtf? Oh well. Whatever. The parameters are all at the top of the file and are identified by #pragma parameter. At the end of each parameter line, there are 4 numbers separated by spaces (for example, 0.0 -2.0 2.0 0.1). The first number is the default value, so you can play with those and when you hit ‘apply shader changes’ it should use the updated value. For reference, the second number is the minimum value, third is max value and fourth is the “step” (i.e., what it counts by in the menu; not helpful for you).