Rotating Horizontal Cores?

city41
Posts: 5
Joined: Sun Jul 31, 2022 5:21 pm
Been thanked: 2 times

Rotating Horizontal Cores?

Unread post by city41 »

I am using my MISTer in an arcade cab with a vertical monitor. This means I cannot play any horizontal games as they don't have a rotate option in the settings.

Since CPS1 and CPS2 have both horizontal and vertical games, I was able to hack their mra files and pull it off

rotated.jpg
rotated.jpg (30.35 KiB) Viewed 4360 times

More info here: https://github.com/city41/cpsrot

I would really like to do this for more arcade cores, most notably Neo Geo. I have a lot of experience with software dev but basically zero with fpga dev. As I understand it rotating the screen is a common option that cores pull in.

If anyone has any tips on where to look or how to pull this off I would be grateful. If I pull this off I would just use/maintain forked cores that had this added option.
98pacecar
Posts: 14
Joined: Sun Jul 18, 2021 3:53 am
Has thanked: 1 time
Been thanked: 1 time

Re: Rotating Horizontal Cores?

Unread post by 98pacecar »

Question, are you doing this via HDMI or with a MisterCade or something similar? Doesn't seem to be working through my MisterCade.
city41
Posts: 5
Joined: Sun Jul 31, 2022 5:21 pm
Been thanked: 2 times

Re: Rotating Horizontal Cores?

Unread post by city41 »

98pacecar wrote: Mon Aug 01, 2022 12:30 am Question, are you doing this via HDMI
Ah forgot to mention that, my bad.

This only works on HDMI. Analog video can't he rotated.
98pacecar
Posts: 14
Joined: Sun Jul 18, 2021 3:53 am
Has thanked: 1 time
Been thanked: 1 time

Re: Rotating Horizontal Cores?

Unread post by 98pacecar »

That’s what I thought. Maybe time to chase down a viewlix or something! Lol!
city41
Posts: 5
Joined: Sun Jul 31, 2022 5:21 pm
Been thanked: 2 times

Re: Rotating Horizontal Cores?

Unread post by city41 »

I successfully rotated Canyon Bomber so it displays upright on a vertical HDMI monitor.

GHYP0zhl.jpg
GHYP0zhl.jpg (31.49 KiB) Viewed 3998 times

Obviously the aspect ratio is all wrong, but I'm very pleased with this milestone.

Massive thanks to Mister Retro Wolf who's videos were the key to me learning how rotation in cores works.

So onto fix the aspect ratio, and then onto more complex cores, hopefully figuring this out enough to pull it off on the Neo Geo core.
city41
Posts: 5
Joined: Sun Jul 31, 2022 5:21 pm
Been thanked: 2 times

Re: Rotating Horizontal Cores?

Unread post by city41 »

And fixed aspect ratio by just hardcoding it. Fullscreen looks really wonky anyway

YKN3PkOl.jpg
YKN3PkOl.jpg (26.82 KiB) Viewed 3997 times
city41
Posts: 5
Joined: Sun Jul 31, 2022 5:21 pm
Been thanked: 2 times

Re: Rotating Horizontal Cores?

Unread post by city41 »

I now have Canyon Bomber and Moon Patrol rotated. Also have the Robotron core rotated but its vertical games (like Sinistar) are upside down so plan to pull in screen_rotate's flip functionality, which this core does not seem to have.

I am gathering my patches here: https://github.com/city41/MISTer-HoriForVert

As for non-arcade cores, since they don't use arcade_video they may prove to be more challenging.
User avatar
Newsdee
Top Contributor
Posts: 873
Joined: Mon May 25, 2020 1:07 am
Has thanked: 104 times
Been thanked: 239 times

Re: Rotating Horizontal Cores?

Unread post by Newsdee »

I have an old build of a rotated Apple 2 and Atari2600 cores somewhere. I use them ocassionally on one of my arcade cabs with a spinner (to use as paddle).

The aspect rario is all wrong though, and I had to turn on a compiler flag which I think adds latency (enable framebuffer). If anybody is interested I can try to dig them out.
Koston
Posts: 80
Joined: Sat Feb 13, 2021 12:25 pm
Has thanked: 61 times
Been thanked: 52 times

Re: Rotating Horizontal Cores?

Unread post by Koston »

city41 wrote: Tue Aug 09, 2022 2:27 am

I am gathering my patches here: https://github.com/city41/MISTer-HoriForVert

What happened to this repo/patches?

tcdev
Posts: 14
Joined: Sun Nov 19, 2023 10:54 pm
Has thanked: 3 times
Been thanked: 69 times

Re: Rotating Horizontal Cores?

Unread post by tcdev »

city41 wrote: Sun Jul 31, 2022 5:26 pm

I would really like to do this for more arcade cores, most notably Neo Geo.

Neo Geo would be awesome since there's one commercial and a few homebrew games that run on vertical mode (Xevious, Galaxian).

However I suspect - and this is purely a guess - that the Neo Geo is already running close to maximum bandwidth of the SDRAM and having the screen rotated would put it over the top?!? I hope it's not true, but suspect this is why it hasn't been done yet?!?

antibolo
Posts: 99
Joined: Mon Jun 08, 2020 9:49 pm
Been thanked: 16 times

Re: Rotating Horizontal Cores?

Unread post by antibolo »

It would be nice if MiSTer had a global setting for orientation that all cores would follow. Maybe not all cores could feasibly support it, but at least having the possiblilty would make for a better experience.

Post Reply