Skip to content
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

Feature: extending screen_rotate module to include 180° option #346

Closed
mapfde opened this issue Feb 8, 2021 · 5 comments
Closed

Feature: extending screen_rotate module to include 180° option #346

mapfde opened this issue Feb 8, 2021 · 5 comments

Comments

@mapfde
Copy link

mapfde commented Feb 8, 2021

Hello,

arcade_video.v contains the "screen_rotate" module that allows cores written for monitors in vertical orientation to be played on setups with monitors in horizontal orientation. Currently only a +/-90° rotation is implemented that can be switched via the osd menu.

In setups with a monitor/LCD in fixed vertical orientation, extending the screen_rotate module to include a 180° option would be very useful. In my case, I can only turn the LCD 90° clockwise, and not the other way.

Some cores have internal logic to flip the image, but depending on the core this might be very hard to implement. Using the scaled output and adding 2 frames of lag would be a compromise for these cases, as the games cannot be played otherwise.

For reference, the affected arcade games are:

centipede
dorodon
gorf
lady bug
mister viking
playball
raflesia
regulus
shuttle invader
sinistar
star jacker
super breakout
swat
up'n down
victory
water match
youjuden
qbert

@mapfde
Copy link
Author

mapfde commented Feb 27, 2021

Small update: I got another 4:3 LCD with a better panel, but this one turns only counter-clockwise. So now all the above arcade games work, but several from the "clockwise" selection do not. I think an option in the framework to flip the screen would be really helpful for everyone who uses a monitor in "tate" position.

@jotego
Copy link
Member

jotego commented Nov 24, 2021

This was done in this commit MiSTer-devel/Template_MiSTer@7180cd7
You can close the issue :-)

@mapfde
Copy link
Author

mapfde commented Nov 24, 2021

Thanks, I will try it on the weekend.

@mapfde mapfde closed this as completed Nov 24, 2021
@sorgelig
Copy link
Member

sorgelig commented Nov 24, 2021

This is not a definitive solution. It doesn't work on VGA native video output. So you have to use either HDMI output or vga_scaler=1 for VGA.
It also doesn't immediately affects mentioned cores/games as it has to be updated in each core.

Btw, if i remember right, some arcades have been already patched for output flipped native video.

@mapfde
Copy link
Author

mapfde commented Nov 25, 2021

Thanks for the additional info. I understand that this needs the scaler (so either HDMI out or activating it for analogue) and I am quite happy to trade minimal lag for the ability to play the affected games. Like I wrote before, I use an LCD for the "tate" games anyway, but the issue is more pressing for people with a CRT in a game cabinet.

With the code now available, I can patch the cores for the games that I am interested in playing myself (or wait for the change to propagate).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants