RetroPie cocktail shader

I was trying to make screen mirroring one MAME but still haven’t found any games for it :frowning: Some of them have “cocktail mode” but it’s only rotate screen 180 degrees when there is Players 2 turn.

Anyone have an idea why when I apply the cocktail-shader-portrait.glsl nothing happens?

The most likely reason is that it’s failing to compile for some reason. Try opening from a command line with --menu --verbose and it should print any compiler errors to the console window.

Thank you for the quick reply. I’m running this on a Raspberry Pi 2b. Not sure I know how to complete the task you mentioned.

That depends on how you’ve installed RetroArch. Are you using Lakka? Retropie? something else?

Sorry I should have mentioned that at the beginning. I’m using retropie on a raspberry pi 2b.

Ok, Retropie puts stuff in weird places, so it may be easier to modify the launch lines from EmulationStation to create a log. Just throw this at the end of one of the launch lines:

–verbose --log-file ~/log.txt

and it will drop a verbose log into your home directory. Paste the log’s contents somewhere like pastebin.com and then post a link to it here and I’ll take a look.

I’m sorry. I’ve tried figuring this out. But can you direct me what time to edit to add the line of code. I can use the time manager to navigate and edit.

I’m afraid I don’t know anything about Retropie/EmulationStation and can’t really provide any more info than I already have.

I just wanted to say thanks for the help. I figured it out. When trying to save the shaders to put onto my Raspberry Pi, it was saving all the header and html information. I switched it to raw view and copied that data and saved it with a text editor program. Boom, now it’s working. Now my next step is figuring out how to create configurations that automatically load when starting a rom or emulator. Thought I’d upload a picture of the arcade I built for my wife. Thanks again.

1 Like

Ah, yeah, that happens often.

That table looks beautiful, by the way!

You should be able to use the ‘save core/game preset’ options from the shader menu to do it.

Hello, To start sorry to dig up this topic and sorry for my english (google translation). Already, thank you for the work done on this beautiful cocktail shader that works perfectly well with my config already quite a lot of systems (see photo).

New photo by Jerome Boulinguez

That being said, I have a little problem with this one on some systems and some arcade games. I can not call the 2 zones correctly: I have a zone in the center that is superimposed, when I modify the parameter “image separation”, it still remains a white zone and moreover, it removes pixels in low image (see photos). When I reduce the zoom, it fixes the problem of missing pixels but suddenly, I can not display the area across the width of the screen.

New photo by Jerome Boulinguez New photo by Jerome Boulinguez

I tried to understand the programming of the shader but I did not understand anything and I can not find the changes to make to avoid these 2 problems. If you can give me a hand, it’ll be really good of you Thanks again, MarbleMad

VOFR : Bonjour, Pour commencer désolé de déterrer ce sujet et désolé pour mon anglais (google traduction). Déjà, merci pour le travail effectué sur ce superbe shader cocktail qui fonctionne parfaitement bien avec ma config déjà pas mal de systèmes (voir photo). Ceci étant dit, j’ai un petit problème avec celui-ci sur certains systèmes et certains jeux arcade. Je n’arrive pas à caller correctement les 2 zones : J’ai une zone au centre qui se superpose, quand je modifie le paramètre « image séparation », il reste tout de même une zone blanche et de plus, cela enlève des pixels en bas d’image (voir photos). Quand je réduis le zoom, cela régle le problème des pixels manquant mais du coup, je n’arrive pas à afficher la zone sur toute la largeur de l’écran. J’ai essayé de comprendre la programmation du shader mais je n’ai rien compris et je n’arrive pas à trouver les modifications à effectuer pour éviter ces 2 problèmes. Si vous pouvez me filer un coup de main, ça serai vraiment super de votre part Merci encore, MarbleMad

If you’re using the ‘image separation’ parameter, I think you’re using a very old version of the shader. Try updating and see if it treats you any better.

I’m using this one : https://github.com/bengalaviz/RetroPie

Is it the latest version?

I have also just figured out how to increase the minimum and maximum image height in the script. I was able to exceed the image height has more than 2 which allows me to zoom out and still have the area in any width. I almost reached my goal alone

No, the latest version is here:

Thanks for the link to the uptodate shader !

I have another problem with the uptodate shader, look the photos New photo by Jerome Boulinguez New photo by Jerome Boulinguez

I worked well this morning and I left the old version of shader to make some changes and add parameters to solve the last problems that I had with this version and I got there!

New photo by Jerome Boulinguez

I added the following dynamic parameters: min_, max_, min_, max_y to dynamically define the shader’s processing area and thus I was able to solve my problem of no display at the bottom of the zone and this also solves the problem in the central zone .

I have not yet understood how to add my code edit in github so here is a pastebin failing : https://pastebin.com/m0yNg2XP

I still have a problem of display of parameter in the menus of retroarch because this does not display 2 decimals, I try to multiply by 10 the parameters (0.13 become 1.3) then to divide by 10 (1.3 become 0.13 ) in the script but apparently it does not work because the shader is not applied :frowning:

VOFR : J’ai bien bossé ce matin et je suis partie de l’ancienne version de shader pour effectuer quelques modifications et ajouter des paramètres afin de régler les derniers problèmes que j’avais avec cette version et j’y suis arrivé !

J’ai ajouté les paramètres dynamiques suivant : min_,max_, min_,max_y pour définir dynamiquement la zone de traitement du shader et j’ai ainsi pu régler mon problème de non affichage en bas de zone et cela règle également le problème en zone centrale.

Je n’ai pas encore bien compris comment ajouter mon code modifier sous github donc voici un pastebin à défaut : https://pastebin.com/m0yNg2XP

Il me reste encore un problème d’affichage de paramètre dans les menus de retroarch car ceci n’affichage de 2 décimals, j’ai essayer de multiplier par 10 les paramètres (0.13 deviens 1.3) puis de les diviser par 10 (1.3 deviens 0.13) dans le script mais apparemment ça ne va pas car le shader n’est pas appliqué :frowning:

1 Like

The mirror settings that I have (detailed below) look and work great. My issue is that I would like to be able to turn them on/off with a button. I know that there is a hotkey for “next shader” but my issue is that my settings are a combination of a shader and a Custom Aspect Ratio, so “next shader” alone does not work for me.

My settings:

  • The display is rotated with display_rotate=1 in /boot/config.txt
  • The shader that I am using is: cocktail-cab-portrait.glsl from https://github.com/bengalaviz/RetroPie (it might be an older version but it works for me. I get vertical artifacts with the newer version)
  • To get the image to use the entire screen, I change the Aspect Ratio to Custom and then 1200x1920

Again, my final goal is to have a working solution that I can turn on/off with a button (i.e. when there’s only one player, I would like to turn mirroring off.) Any suggestions? Is there any way for the shader to work without changing the aspect ratio?

Thanks!

You could have another shader that handles aspect ratio, like the border or autobox shaders, and switch between them with the ‘next shader’ hotkey.

1 Like

I am a beginner and I am not sure I follow. What I am trying to do is:

Let’s say I launch a new horizontal game (e.g. Metal Slug). With a press of a button you can activare mirroring and then another click of a button would return to single mode - a single horizontal screen, placed in the middle of my vertical display.

Any shader I tried was confined to the preset aspect ratio and unless I changed the aspect ratio of a horizontal game, the mirror shader would not use the whole screen.