-
Notifications
You must be signed in to change notification settings - Fork 225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cocktail cabinet - no rotation #3
Comments
You still want to rotate one of the game images, though, right? |
Yes. One turned 180 degrees a on top of the other. |
I made a Cg version and uploaded it to the common-shaders repo. Once it gets auto-converted to GLSL, I'll come back to it and add the runtime parameters and push it up to this repo. |
Where does the auto-converter version get sent to? |
It goes into the online updater, under 'update glsl shaders'. It's there now, so I'll try to get the parameters in tomorrow and post it here. |
Alright, here you go: It should get pulled into the online updater in a few minutes/hours. |
Hiya, sorry to reopen an old thread, but i could really use some help. I have a cocktail table (with 2 controls either side) and have placed a pi 3 inside running retropie/attract mode. The reason i cant use the rotate function in retroarch is because it rotates both shaders, therefore always putting one of them off center. I have tried the 'cocktail-cab-portrait' shader. But although the picture is rotated correctly, the image is still distorted, and no ammount of adjusting or playing with the preview options will make it display correctly (with 'cocktail cabinet' shader, plus retroarch rotation however, i can) I posted a question in the retropie forum and was directed here. So..... Thanks for your time. |
Depending on what your other shader is, you can try replacing the texcoord assignment line (that is, vTexCoord = TexCoord;) in the vertex shader with: |
Hi there, thanks for replying. I've gone through all the glsl files in retroarch and cant find any with the word 'vTexCoord' in to edit. |
Most of the ones I've hand-converted have it in there but the auto-converted ones don't. Which shader are you using that needs to rotate? Some are more difficult than others. |
The cocktail-cabinet.glsl if possible. But barring that one absolutely any shader that will show a clear picture, doesn't need to be authentic as it will be applied to multiple systems/emulators. |
Apologies, i was looking in the completly wrong area at shaders, Taking one form the top of the list for example. '3dfx_pass_0.glsl': under '// compatibility #defines' on line 148 i see '#define vTexCoord TEX0.xy' I also tried inserting the code into various areas in '// Paste vertex contents here:', but no joy there either. |
Ah, wait, nevermind. I was testing that line with the slang shaders, which have some key differences from the regular GLSL shaders that specifically complicate this task. How about having a separate config that just disables rotation and sets video_shader_enable to "true" and you can use configuration > load configuration whenever you want to play it in cocktail orientation? The rest of the time, the screen would be rotated with no shader. |
I've tried that, using the configuration editor included with retropie. I disabled all rotation, but the shader doesn't care. (As a matter of fact, nothing cares, things rotate exactly the same. This setting seems useless....) If this can be done, it would mean (in my eyes) the perfect cocktail machine. with no need to go into any menus thus making it as user friendly as you can get. :-) |
I guess I'm not following what the actual problem is. When I go to settings > video and change the rotation to 90 or 270 degrees, it rotates the screen and the shader. The cocktail cabinet shader rotates and doubles the image so that two people on either end of a widescreen monitor have their own copy of the image. What's missing? |
Apologies if i'm not being clear. Rotating the screen with retroarch settings does allow you to use the 'cocktail-cabinet.glsl' on portrait mode (after tweaking the parameters slightly). If either shader could be rotated individually, they could then be made to sync up, taking away the need to go into retroarch settings each time. So when i have friends round to use my cocktail table. (who like games but not computers) I can tell them to press 1 button for 1 player, and another button for 2 player. As opposed to explaining how to enter a menu and rotate the screen. :-) |
Hi hizzlekizzle I tried two variants:
The first version doesn't really rotate the screen image but I do it myself with "sudo nano /boot/config.txt" etc. The second does rotate shader and does have a expanded picture but it is opposite to screen orientation. My question is: |
Is it possible to change the cocktail shader to not rotate the game? My Pi is already setup in portrait mode and doesn't need the rotation. Thank you!
The text was updated successfully, but these errors were encountered: