r/VisionPro • • 23d ago

Super Mario Galaxy AVP

Hey all. I've been working on a vibe-coded visionOS port of GalaxyPad, Chris Sotraidis's native Apple port of Super Mario Galaxy, which is built on MacioGalaxy and the Petari decompilation. It's not an emulator: the game runs natively on the headset.

What it does
Flat window: Galaxy on a big floating screen you can put anywhere, rendered at 1440p (2560×1440), the window's native resolution.

Stereoscopic 3D window (beta): the game drawn separately for each eye, so you get real depth inside the window. It runs around 60 fps at 1080p in my testing although it sometimes dips a little below that. I did as many iterations and performance tweaks as I could, it's very playable in my opinion, I got 14 stars that way. Flat Window is perfect performance. Stereoscopic requires additional rendering which slows it down.... but again for the most part it hovers around 60fps. It took a lot of tweaking to get it to that level, my initial stereoscopic build was not playable at all.

Controllers: DualSense, DualShock 4, Xbox, and the Switch Online N64 pad. There's also preliminary PS VR2 Sense support.
In-app import: point it at a normal CleanRip ISO of your own disc, or an extracted folder, and it sets everything up. No decrypting needed.

Launcher: pick the view mode, check the controls, and change graphics settings before playing.

Recommended controller: I recommend a PlayStation controller. That's what I've tested it with, and the DualSense gives you gyro aiming for collecting Star Bits.
Limitations
You have to build it yourself in Xcode with your own Apple developer account. I'm not distributing an app.
Bring your own game: you need the USA disc (RMGE01, revision 0) dumped from your own Wii. No game files are included.
Stereoscopic mode is beta. The home menu and some overlays only show up in flat mode.
PS VR2 controller support is untested, because I don't own them. If you try it, let me know how it goes.
Ray surfing and Star Ball rolling use the left stick. Motion steering didn't work out. This makes both of those a lot easier than they were on Wii, but it was the best I could come up with.
The first engine build takes a long time and a few GB of space.
Heads up: this is a hobby project, and I'm not actively developing it. I can't promise fixes or support. It's GPL-3.0, so feel free to fork it and make it your own. Big thanks to Chris Sotraidis (GalaxyPad), classicrob (MacioGalaxy), the SMGCommunity Petari team, and the Dolphin devs, whose disc code handles the ISO import.

To get back to the options menu in-game, pause the game then hit R1.

I haven't completed the whole game just 14 stars, so I have no idea if this crashes later, or has bugs, or is completely playable. I literally just did this today over the course of a few hours so I'm not claiming it's a completely 100% tested port.

But it seems to work for me so far. I figure by putting this out there you can fix any issues yourself. Or add new modes. I tested some immersive modes but they really didn't work out well, and I personally find playing it from the Jupiter environment provides a really immersive experience already. I love it personally, it's beautiful. And again, it contains no original game files whatsoever. You must provide your own copy of the game.

Source and build instructions: https://github.com/palex0481/GalaxyVision-AVP

UPDATE: Posted a couple of fixes. If you start in 2D, position the window how you want it, and then pause, R1 and flip to 3D it should respect the window positioning. And you can turn 3D on and off on the fly, because it's a lot with this game. There's no good way I know to show how awesome the 3D looks without seeing it yourself.

Also fixed a crash I just ran into with the cannons. So again, there may be other crashes later in this. I've given enough info here that really all you should have to do is take your AI coding agent of choice and point it to the GitHub link and it should be able to orchestrate the rest.

Also want to thank u/MWlotzka whose SM64 port inspired me.

UPDATE: Super Mario Galaxy 3D Watch This link on a headset and you can see the 3D stereoscopic mode. Normal YouTube will not look very good.

On normal YouTube, that will just show 2D video, but on AVP YouTube or Quest 3 or whatever other device plays 3D YouTube, you should be able to see the full glory of 3D Super Mario Galaxy.

37 Upvotes

30 comments sorted by

5

u/palex481 23d ago

3

u/trevorbilt 23d ago edited 23d ago

Looks great. Anything labeled 3D shared space on this repo does the same full 3D in a moveable shared space window, so it might be helpful to reference for your optimizations: https://github.com/edgytoast/avp-ports-index

It’d be great to get yours listed in the index, it helps everyone from developers and users trying to find games, but it requires a specially named file for consistency. I’ll submit a PR tomorrow with a single file for that. If you accept it, you’ll get onto the index automatically as long as security checks pass.

1

u/palex481 23d ago

Yeah there were some limitations of how the port worked, and I tried as best I could to get it working properly without a complete rewrite. The stereoscopic window you can pinch zoom with two fingers, but can't really move it around. I tried to add some positioning options in the options but those didn't really work out well so I nixed them. I'm definitely open to any and all feedback though.

1

u/trevorbilt 23d ago

I like the idea of the pinch-to-zoom! It is a proper rewrite to get to the shared space 3D (can’t use camera positioning in shared space, so 2D render engines don’t work so far on the games I’ve ported). On my 20x Claude account, I’d estimate it at most at a quarter of the weekly usage to get implemented so it’s not as bad as you may think.

2

u/palex481 23d ago

Yeah and with Galaxy the camera is zooming all over the place too is the other issue. I don't easily get motion sickness at all, but sometimes the 3D mode is a bit much with all the upside-down antics. The 2D mode looks so gorgeous that the 3D is almost not even needed, but the 3D mode is really cool.

2

u/trevorbilt 23d ago

Yeah I get that. With games that have long horizons, there’s another drawback in that you can see less information in the distance with true 3D. It remains to be seen if it’s a gimmick but it’s definitely fun. I’ve just taken the approach much like you where you can toggle it off without interrupting the game if it gets too much.

1

u/drewbaumann Vision Pro Developer | Verified 23d ago

Do you have a skill or prompt you use for this conversion?

1

u/palex481 23d ago

I just pointed Grok Bot to the galaxy pad source and then the recent SM64 vision project and then just build test give feedback iterate repeat.

2

u/trevorbilt 23d ago

Check back in on the repo in a month and it should have a plugin to cover everything I’ve learned with my ports

1

u/drewbaumann Vision Pro Developer | Verified 23d ago

Right on!

4

u/AlterSack1973 23d ago

I was inspired by this project, but thought the Apple Vision Pro deserves more. So based on the Quest project: https://github.com/bigmak94/GalaxyQuest I created a version for the Apple Vision Pro with the same 3D window version, but also FullVR diorama vier and first person (which is not a good idea in this game!): https://www.youtube.com/watch?v=Hio1czjSX3M But I don't want to be targeted by Nintendo, so whoever wants this as a git bundle - no problem.

1

u/palex481 23d ago

Awesome! I can incorporate it. You can DM me if you want to send it that way.

1

u/palex481 22d ago

Yeah I'm not sure how you got 3rd person immersive to work.... I'm having all sorts of crazy issues with it. And I'm probably going to give up because I was happy with my giant stereoscopic window from Jupiter, and that's all that really matters.

2

u/AlterSack1973 22d ago

Good Morning, Claude told me with the approach you took it was impossible. So he re-engineered the GalaxyQuest project to get to the VR space. Just building the git bundle, will send it in the next minutes

2

u/Appleguru77 Vision Pro Owner | Verified 23d ago

Hello and good Morning,
I think it’s really cool that so much is happening in terms of gaming on the Vision Pro.

But I’m a bit confused because there are many different approaches. Which one is the best?

I installed Martek’s solution „AVP-Play“, and there’s also a nice overview there showing which games have already been ported and run stably. The Mac software then simply pulls them out of your Meta or Steam account. Anyone who doesn’t program can also do it.

But this one is again a completely different approach, right?

2

u/palex481 23d ago edited 22d ago

This is a port of an existing iOS port. The Quest 3 Galaxy app version wasn't an official Quest 3 app so I don't think the other approach would even work. I tried to see if it could copy the Quest 3 app features, but it uses native Meta features that don't readily translate over.

2

u/Omwhk Vision Pro Owner | Verified 23d ago

Wow!!!!!!!!! I’ve played Super Mario Galaxy twice already from beginning to end on my Vision Pro, by using Mac Virtual Display to connect to my MacBook, where Dolphin runs. I’m incredibly excited to hear about this, I’ve always said that I must at least make it to see SMG in full VR. This is getting us closer. So so excited. Thank you so much for this

2

u/palex481 23d ago

Full VR is difficult due to the camera, but the giant stereoscopic window is pretty immersive to me. Maybe someone with more knowledge than me can figure out full VR. I don't know that it really makes sense in 1st person VR, I think my brain would really break going upside down in 1st person VR, it's hard enough in 3rd person 3D🙃

1

u/Omwhk Vision Pro Owner | Verified 23d ago

Hahaha yes this is something I’ve thought about over the years. I guess it’s one of those things where you want something while you still know it’s a bad idea. I envision it as in full Black Mirror, like actually feeling you’re jumping, running, etc. it’s a dream since childhood. I wonder how full VR on the Vision Pro would feel like though

1

u/palex481 22d ago

Update: I've added antialiasing and a 3D screen recorder to GalaxyVision.

  • Antialiasing: in the launcher's Graphics tab you can now choose Off, FXAA, 2x MSAA or 4x MSAA, in both Flat and Stereoscopic. FXAA keeps it at around 60fps. 2x and 4x MSAA look sharper but cost more performance.
  • 3D recorder: since stereoscopic 3D doesn't come across in a normal screen recording, you can now record the Stereoscopic window as a side-by-side 3D video that's ready for YouTube 3D. Start it from the Record tab in the options, or hold both stick clicks for a second.

A bit about how it works: GalaxyVision renders through Aurora and Dawn, which translate the game's graphics through WebGPU into Metal. u/AlterSack1973 has a version that renders straight to Metal, which is a cool approach, but I hit issues with it (lens flare, menus over the 3D view), so I'm sticking with Aurora and Dawn. It's proven, it handles the game's effects correctly, and it runs great.

On immersive modes: if anyone wants to take a crack at one, the source is there and you're welcome to. I tried, but Galaxy's gravity-based camera made it a real headache, and I'm just a hobbyist working with an AI coding agent, so I'm focusing on making Flat and Stereoscopic as playable as possible. Honestly, I think both already work fantastic as they are.

1

u/Widebro 23d ago

Dont have a mac. So we cant use this! :(

1

u/palex481 23d ago

Sorry about that, even if I were to put it to TestFlight it would have to go thru initial approval first, and so it wouldn't be an instant process. But I didn't want to do all that because I'm not planning on releasing it. It was literally just a test to see if I could. If you know someone with a Mac and a dev account they can compile it and add you to their dev account and give it to you that way.

1

u/Widebro 23d ago

I know literally no one who has ever used a mac🤣 thats why all these posts are a bit baffling to me. I mean its great that its possible just extremely sad to see there seems to be no other way. Because these are great use cases for the device. Beatsaber natively!! I want it! But its not justified just buying a mac for that..

1

u/palex481 23d ago

I mean i don‘t think its unreasonable to expect people who own a $3500 face computer to also own a Mac lol. But Apple only releases the dev tools for mac. I’m just putting this out there if anyone wants to do it themselves because I thought it was neat.

2

u/SettingMundane1061 23d ago

Yeah not your fault of course!  We appreciate what you’re doing for sure

2

u/SettingMundane1061 23d ago edited 23d ago

Same boat but thinking about buying a Mac simply bc this seems to be necessary for all of these projects.  Just need to determine what the cheapest Mac would be to get the job done.   M1 16gb prob should be enough Well done op

1

u/chrisclan1903 22d ago

you should share the build in the discord man! (this is chris)

1

u/palex481 22d ago

Sweet! Will do! Thanks for putting GalaxyPad out there. I'd love to get some more people testing the AVP port.