[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-110342":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":25,"hasPages":23,"topics":26,"createdAt":10,"pushedAt":27,"updatedAt":28,"readmeContent":29,"aiSummary":30,"trendingCount":16,"starSnapshotCount":16,"syncStatus":31,"lastSyncTime":32,"discoverSource":33},110342,"mario64mr","lucas-martinic\u002Fmario64mr","lucas-martinic","Mixed reality Super Mario 64 for Meta Quest 3, 3S and 2 (bring your own ROM)","https:\u002F\u002Flucasmartinic.com",null,"C",218,28,4,12,0,3,26,123,19,73.39,"Other",false,"main",true,[],"2026-11-17 15:26:53","2026-11-23 12:21:59","# Mario 64 MR\n\n\u003Cp align=\"center\">\u003Cimg src=\"media\u002Fmario-out-of-the-game.gif\" width=\"400\" alt=\"Reaching into the game window, picking Mario up and setting him down on a real table, where he runs around and jumps back in\">\u003C\u002Fp>\n\nMixed reality Super Mario 64 for Meta Quest 3, 3S and 2 (and, experimental, the\n[Steam Frame](#steam-frame-experimental)). A Super Mario 64 cartridge sits in your room. Stretch it\nopen with your hands into a window onto the game, then play the whole game with the Touch controller in your right\nhand. Your left hand reaches in, picks Mario up, and carries him out onto your desk.\n\n- **The cartridge**: a real object in your room. Pick it up, throw it, drop it on your table, and stretch it open\n  into a window onto the game, up to four times its first size.\n- **The title screen**: the original Goddard code, compiled from the decompilation. Stretch Mario's face with\n  both hands and pull his nose out of the window.\n- **The whole game**, at the PC port's 60 fps, smoothly interpolated to the headset's 72 to 120 Hz.\n- **Mario out in your room**: pick him up out of the window and he runs on your furniture, stands on your palm,\n  and jumps back in.\n- **Head in the window**: put your head through it and you're inside the level, with the sky all around you. Look\n  back and your room is still there, through a hole in the sky.\n- **Diorama**: put the window down on a table and the whole level rises out of it, a little world you can walk\n  around, move, turn and scale while you play.\n- **Options** in the game's pause menu: refresh rate, resolution, anti-aliasing, foveation, texture filtering,\n  sharpening, sound and HUD.\n\nBy [Lucas Martinic](https:\u002F\u002Flucasmartinic.com): [X @lucas_martinic](https:\u002F\u002Fx.com\u002Flucas_martinic) ·\n[Instagram @lucasmartinic](https:\u002F\u002Fwww.instagram.com\u002Flucasmartinic\u002F) ·\n[LinkedIn](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Flucas-martinic)\n\n> **Sharing a clip?** I'd love to see it! If you post videos or photos of Mario 64 MR, please tag me\n> ([@lucas_martinic](https:\u002F\u002Fx.com\u002Flucas_martinic) on X, [@lucasmartinic](https:\u002F\u002Fwww.instagram.com\u002Flucasmartinic\u002F)\n> on Instagram, [Lucas Martinic](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Flucas-martinic) on LinkedIn). This took a lot of\n> work to put together, and seeing Mario running around your rooms makes it all worth it. Thank you!\n\n**The app contains none of Nintendo's game: no data and no code.** It needs your own copy of Super Mario 64 (US).\nThe tool in this repository makes the game from your ROM on your own computer, and puts it on your headset:\n\n- the game's **data** (textures, sounds), extracted from your ROM with the [sm64ex](https:\u002F\u002Fgithub.com\u002Fsm64pc\u002Fsm64ex)\n  PC port's own tools;\n- the game's **code**, compiled for the headset from the community's public sources: the\n  [SM64 decompilation](https:\u002F\u002Fgithub.com\u002Fn64decomp\u002Fsm64), sm64ex and [libsm64](https:\u002F\u002Fgithub.com\u002Flibsm64\u002Flibsm64),\n  with Mario 64 MR's changes (`native\u002F`).\n\n## What's here\n\n| | What it is |\n| --- | --- |\n| [Releases](..\u002F..\u002Freleases) › `Mario64MR.apk` | The app |\n| [Releases](..\u002F..\u002Freleases) › `Mario64MR-SteamFrame.apk` | The app for the Steam Frame ([experimental](#steam-frame-experimental)) |\n| `install_mario64mr.bat` | On Windows: double-click it, and it does everything below for you |\n| `install_mario64mr.py` | Makes the game from your ROM and pushes it to the headset |\n| `native\u002F` | Mario 64 MR's changes to the game's sources, applied by the tool |\n\n## You need\n\n- A Meta Quest 3, 3S or 2 in developer mode (Meta Horizon app › Devices › Developer mode), connected to your\n  computer over USB with `adb`. Allow USB debugging when the headset asks.\n- Hand tracking on (Settings › Movement tracking › Hand and body tracking), and the right Touch controller.\n- Your room set up (Settings › Physical space › Space setup), so the cartridge lands on your table and Mario can run\n  on it. The app asks for permission to use it the first time.\n- Your own **Super Mario 64 (USA)** ROM: `.z64`, `.v64` or `.n64`, SHA-1 `9bef1128717f958171a4afac3ed78ee2bb4e86ce`\n- A computer with about 4 GB of free space:\n  - **Windows 10 or 11**: nothing else. `install_mario64mr.bat` sets up everything it needs (see\n    [On Windows](#on-windows)).\n  - **Mac or Linux**: `python3`, `git`, `make`, `patch` and a C compiler.\n    - Mac: `xcode-select --install`\n    - Ubuntu: `sudo apt install build-essential git python3`\n  - (WSL on Windows works too, like Linux. Put this repository in your WSL home (`cd ~`, then `git clone` it there)\n    rather than on a Windows drive (`\u002Fmnt\u002Fc\u002F...`): building there is much slower, and long paths can go past\n    Windows' limit.)\n- The Android NDK. The tool finds one installed by Android Studio, Homebrew (`brew install --cask android-ndk`) or\n  Unity. Otherwise it downloads r27c from Google the first time (about 700 MB, 2 GB unpacked).\n\n## Install\n\n### On Windows\n\n1. Download `Mario64MR.apk` from [Releases](..\u002F..\u002Freleases), and this repository (Code › Download ZIP). Unzip\n   it, and leave the APK in your Downloads (or put it in the unzipped folder).\n\n2. Double-click **`install_mario64mr.bat`**, and choose your ROM when it asks. If Windows says it protected your PC,\n   click More info › Run anyway. If Microsoft Defender calls it a Trojan (`Trojan:Script\u002FSabsik.EN.A!ml`), that's a\n   false alarm: see [Troubleshooting](#troubleshooting).\n\n   - It checks your ROM first: with a wrong one, it says what's wrong and stops before downloading anything.\n   - The first time, it sets up its own build tools (MSYS2, the Android NDK and adb) in\n     `%LOCALAPPDATA%\\Mario64MR`: no admin rights, nothing installed for the rest of Windows. Delete that folder to\n     remove them.\n   - Then it makes the game from your ROM. The first run takes 10 to 30 minutes, depending on your PC and internet;\n     a second run takes a couple of minutes.\n   - At the end it asks you to connect the headset with USB (developer mode on, allow USB debugging when it asks),\n     then installs the app and sends the game to it.\n\n3. Open Mario 64 MR on the headset: see step 5 under [On Mac or Linux](#on-mac-or-linux).\n\n### On Mac or Linux\n\n1. Download `Mario64MR.apk` from [Releases](..\u002F..\u002Freleases), and this repository (Code › Download ZIP, or\n   `git clone`).\n\n2. Install the app:\n\n   ```\n   adb install -r -g Mario64MR.apk\n   ```\n\n3. Check your ROM first (it takes a second, and needs nothing else installed):\n\n   ```\n   python3 install_mario64mr.py \"Super Mario 64 (USA).z64\" --check\n   ```\n\n   It should say `ROM: Super Mario 64 (USA), ..., SHA-1 matches`. If not, it says what the file is instead (another\n   region, a ROM hack, a bad dump, a zipped ROM...); see [Troubleshooting](#troubleshooting). The tool always checks\n   it first anyway: with a wrong ROM, nothing is downloaded, built or sent to the headset.\n\n4. Put the headset on and keep it awake. Then make the game and push it, all in one step:\n\n   ```\n   python3 install_mario64mr.py \"Super Mario 64 (USA).z64\" --push\n   ```\n\n   The first run takes 10 to 20 minutes. It downloads the sources, builds their tools, extracts the textures and\n   sounds from your ROM, compiles the game for the headset, and pushes it all into the app's folder. Everything\n   lands in `Mario64MRData\u002F`; `Mario64MRData-work\u002F` keeps the sources and builds, so a second run is quick. If the\n   app has never been opened, the tool opens it once so it creates its folder, then closes it.\n\n5. Open **Mario 64 MR** from your Library: it's under **Unknown Sources** (in the filter at the top right of the\n   Library, or its own folder on newer versions), or search the Library for \"Mario\". If Unknown Sources is missing\n   or empty, connect to Wi-Fi and restart the headset; or start it over USB:\n   `adb shell monkey -p com.lucasmartinic.mario64mr -c android.intent.category.LAUNCHER 1`\n\nIf anything is missing, the app says so in front of you and the game won't start.\n\n### Pushing by hand\n\nTo make it all without a headset connected, leave out `--push`. Later, open the app once, close it, and push:\n\n```\nD=\u002Fsdcard\u002FAndroid\u002Fdata\u002Fcom.lucasmartinic.mario64mr\u002Ffiles\nadb shell mkdir -p $D\u002Fsm64\u002Fres $D\u002Fnative\nadb push Mario64MRData\u002Fbaserom.us.z64 $D\u002F\nadb push Mario64MRData\u002Fsm64\u002Fres\u002Fbase.zip $D\u002Fsm64\u002Fres\u002F\nadb push Mario64MRData\u002Fnative\u002Flibsm64game.so Mario64MRData\u002Fnative\u002Flibgoddard.so Mario64MRData\u002Fnative\u002Flibsm64.so $D\u002Fnative\u002F\n```\n\n### Your own cartridge label\n\nThe app's cartridge has a plain label: the real one is Nintendo's artwork, so it can't come with the app. You can\nput your own on it, for example a photo or scan of your own cartridge's label:\n\n- a **PNG or JPEG**, **square** (1024 × 1024 looks sharp);\n- the label **in the middle**, as tall as the picture (a real label's shape fills about 87% of its width); what's\n  left at the sides doesn't show.\n\nAdd it when you install:\n\n```\npython3 install_mario64mr.py \"Super Mario 64 (USA).z64\" --push --label my-label.png\n```\n\nor push it on its own at any time (`label.png`, or `label.jpg` for a JPEG), and restart the app:\n\n```\nadb push my-label.png \u002Fsdcard\u002FAndroid\u002Fdata\u002Fcom.lucasmartinic.mario64mr\u002Ffiles\u002Flabel.png\n```\n\nTo go back to the plain label, delete it:\n`adb shell rm \u002Fsdcard\u002FAndroid\u002Fdata\u002Fcom.lucasmartinic.mario64mr\u002Ffiles\u002Flabel.png`\n\n## Playing\n\nThe right Touch controller plays the game; your left hand is for Mario. Put the controller down and both hands are\ntracked, for the two-handed moves. Pick up the left controller too and the game switches to a two-controller layout\n(put it down and it switches back).\n\n**The cartridge**\n- It floats in front of you at the start. Pinch it to pick it up (or squeeze the controller's grip on it), and let\n  go to drop it onto your table, or throw it.\n- Pinch both ends with both hands and pull apart: it stretches into a window. Or, holding it with the controller,\n  pull the trigger.\n- Squeeze the window's frame with both hands to close it back into the cartridge (or, holding the frame with the\n  controller, pull the trigger). Pinch the frame with one hand, or grip it, to move the window.\n- Your left hand and the controller's grip stretch and squeeze it too, as two hands do.\n- Holding the window with the controller, push the thumbstick up or down to make it bigger or smaller (up to four times its first size).\n\n**The title screen**\n- Pinch Mario's face to stretch it, and pull his nose out of the window. The stick and trigger move the hand cursor\n  and grab, as on the N64.\n- To start the game, click the thumbstick, pinch \"PRESS START\", or make the left hand's menu gesture (look at your\n  left palm and pinch).\n\n**The game: one controller** (right Touch)\n\n| Controller | N64 |\n| --- | --- |\n| Thumbstick | Stick |\n| Trigger | A (jump) |\n| A | B |\n| Grip | Z |\n| B held + thumbstick | C buttons (camera; C-down past the farthest step zooms out further) |\n| B tap (without the stick) | R |\n| Thumbstick click (or the left hand menu gesture) | Start |\n\n**The game: two controllers** (the left hand can't grab Mario while it holds a controller)\n\n| Controller | N64 |\n| --- | --- |\n| Left thumbstick | Stick |\n| Right thumbstick | C buttons (camera) |\n| Right trigger (or A) | A (jump) |\n| Right grip (or B) | B |\n| Left trigger | Z |\n| Left grip | R |\n| Thumbstick click or the left menu button | Start |\n\nAn Xbox controller paired with the headset works too (A = A, X \u002F B = B, triggers = Z and R, right stick = C).\n\n**Your left hand in the game**\n- Put your hand into the window and the game holds still while it's in there.\n- Pinch Mario to pick him up. Carry him out of the window and let go: he lands in your room and runs on it.\n  Carry him back in, or let him jump back through the window, and he's back in the game. Leaving the course brings\n  him back too.\n- Throw him by letting go mid-swing.\n- Hold your palm flat under him and he stands on it. Tilt it and he falls off.\n\n**Your head in the window**\n- Lean into the window, through its opening, and you're inside the level: look all around, the sky is a dome\n  around you. Trees and other flat sprites turn to face you.\n- Look back the way you came and you see your room through the opening. Lean back out to leave.\n\n**Diorama (tabletop)**\n- Hold the open window by its **lower part** (with your hand, or the controller's grip) and bring it down near a\n  table, desk or the floor: a glowing circle appears on the surface below.\n- Let go over the circle: the window dives into it and the level rises out of it as a diorama, about 2 m across,\n  sky and HUD gone. Play on as usual: the stick moves Mario the way you're looking.\n- The circle stays as the diorama's base, the same size whatever the diorama's:\n  - pinch it (or grip it with the controller) and move your hand to slide the diorama across the table;\n  - pinch it with both hands (or a hand and the controller) to turn it and scale it, pulling apart or together;\n  - holding it with the controller, the thumbstick up \u002F down scales it and left \u002F right turns it.\n- The level follows Mario up and down, keeping him about 10 cm below your eyes (as they were when you put it down),\n  so you always see the ground under him: when he climbs a mountain it sinks into\n  the table (whatever falls below the table is cut away), and when he goes down it rises off it.\n- To leave, lift the base up off the table: the level sinks back into it and the window is back in your hand.\n  Leaving the course ends the diorama too.\n\n**Options**\n\nPause the game (START), then press **R** (one controller: tap B; two controllers: the left grip) for the options.\nMove with the stick, change with the stick left \u002F right, A to pick, B to go back.\n\n| Option | What it does |\n| --- | --- |\n| Graphics › Refresh rate | 72, 80, 90 or 120 Hz. Higher is smoother, and harder on the headset |\n| Graphics › Resolution | The render resolution, 70% to 150%. Higher is sharper, and slower |\n| Graphics › Anti-aliasing | Smooths jagged edges: off, MSAA 2x or 4x |\n| Graphics › Foveation | Draws the edges of your view at a lower resolution, to save power: off to high |\n| Graphics › Textures | The game's textures in the distance: as the N64 drew them (they shimmer far away), or smoothed with mipmaps and anisotropic filtering |\n| Graphics › Sharpening | The headset's own sharpening of the picture |\n| Graphics › Defaults | Puts all the graphics options back as they were |\n| Sound | The music, sound effects and ambience volumes |\n| HUD | The lives, coins and stars counters on or off |\n| Bring Mario back | Puts Mario back where he last was in the game, if he gets stuck out in your room |\n\nChanges apply at once, and are kept for next time.\n\n**Recording**\n\nUse the headset's own capture (Meta button › Camera › Record video): it records the passthrough and the game together.\n\n## Quest 2\n\nIt runs at 72 Hz there by default (90 Hz on Quest 3 and 3S), with more foveation, and its passthrough is black and\nwhite, so your room is grey around the window. If it stutters, lower the resolution or anti-aliasing in the options.\n\n## Steam Frame (experimental)\n\nValve's Steam Frame has its own app: **`Mario64MR-SteamFrame.apk`** in [Releases](..\u002F..\u002Freleases). The game you\nmake from your ROM is the same for both headsets; only the app is different.\n\n> **Not tested on a Steam Frame yet.** I don't have one: the app is built from Valve's documentation for its\n> Android support (Lepton) and OpenXR. If you try it, please [open an issue](..\u002F..\u002Fissues) saying how it went, with\n> the `[Mario64MR]` lines from `adb logcat -s Unity` if something's wrong.\n\nWhat's different from the Quest:\n\n- **No hand tracking** on the Frame, so the **left controller is your left hand**: reach into the window and\n  hold its grip to pick Mario up, carry him out and let go to put him down (or throw him). There are no white gloves,\n  and he can't stand on your palm. You play with both controllers: left stick moves, right stick is the camera\n  (C buttons), right trigger or A jumps (A), right grip or B is B, left trigger is Z, left X or Y is R, and START is\n  a thumbstick click or the left menu button. The right grip picks up the cartridge and the window; while you hold\n  it, the right trigger opens or closes it, and the right stick resizes it.\n- **No room scan**, so the cartridge lands on the floor, not on your table.\n- **Grey passthrough**: the Frame's cameras are black and white.\n- In the options, **refresh rate** and **sharpening** do nothing: the Frame runs at its own rate.\n\nTo install it:\n\n1. On the Frame, turn on Developer Mode, then start **Lepton Development** from your Library (an Android home\n   screen opens). Keep the Frame on the same Wi-Fi as your computer.\n2. Make the game and send it to the Frame along with the app:\n   - **Windows**: put `Mario64MR-SteamFrame.apk` in your Downloads (or in this repository's folder), then\n     double-click `install_mario64mr.bat`. When the APK it finds is the Steam Frame one, it sends everything to the\n     Frame over Wi-Fi, at its hostname `frame`. If the Frame has another hostname, or `frame` isn't found, run it\n     from a terminal with the Frame's IP address (Quick Settings › Wi-Fi):\n     `install_mario64mr.bat -Frame 192.168.1.23`\n   - **Mac or Linux**:\n\n     ```\n     python3 install_mario64mr.py \"Super Mario 64 (USA).z64\" --push --frame --apk Mario64MR-SteamFrame.apk\n     ```\n\n     Or `--frame 192.168.1.23` with the Frame's IP address.\n3. Start Mario 64 MR from Lepton Development's home screen.\n\nTo push by hand instead, `adb connect frame` first, then follow [Pushing by hand](#pushing-by-hand).\n\n## Troubleshooting\n\n- **Microsoft Defender says `Trojan:Script\u002FSabsik.EN.A!ml`** for `install_mario64mr.bat` (or the downloaded ZIP),\n  and blocks or removes it: a false alarm. The `!ml` means it's a machine-learning guess, not a match with any known\n  virus. The installer looks like one to it because it starts PowerShell and downloads programs to run, which is\n  just what it does to set up its build tools. Don't take my word for it; both files are plain text you can read in\n  Notepad:\n  - `install_mario64mr.bat` is six lines: it starts `windows\\install_mario64mr.ps1`, and nothing else.\n  - `windows\\install_mario64mr.ps1` downloads only from MSYS2's releases on GitHub (`github.com\u002Fmsys2`) and from\n    Google (`dl.google.com`: adb), and installs MSYS2's packages (make, git, Python...) from MSYS2's mirrors. Then\n    `install_mario64mr.py` fetches the game's public sources from GitHub (`sm64pc\u002Fsm64ex`, `n64decomp\u002Fsm64`,\n    `libsm64\u002Flibsm64`) and the Android NDK from Google.\n\n  Once you've looked, get the file back: Windows Security › Virus & threat protection › Protection history, open\n  the item, and Actions › Restore (or Allow). You can also report it to Microsoft as a false positive at\n  [microsoft.com\u002Fwdsi\u002Ffilesubmission](https:\u002F\u002Fwww.microsoft.com\u002Fen-us\u002Fwdsi\u002Ffilesubmission), which helps it go away\n  for everyone. Or skip the `.bat`: the [Mac or Linux](#on-mac-or-linux) steps work in WSL on Windows too.\n- **\"Mario 64 MR needs the game\"**: the game isn't on the headset, or it's in the wrong place. Run the tool with\n  `--push` again, and restart the app.\n- **START does nothing**: the full game didn't start. That usually means something is missing; see above.\n  `adb logcat -s Unity` shows lines starting with `[Mario64MR]`.\n- **The ROM is turned down**: the tool only takes an unmodified dump of **Super Mario 64 (USA)**, and says why not:\n  - *Japan \u002F Europe \u002F Shindou edition*: only the USA release is supported (the game is built from the\n    decompilation's US version).\n  - *contents differ* or *24 MB \u002F 64 MB instead of 8 MB*: a ROM hack, a patched or trainer ROM, or a bad dump.\n    Use a clean dump of your cartridge.\n  - *a .zip \u002F .7z archive*: extract it, and give the `.z64`, `.v64` or `.n64` file inside.\n  - *not a Nintendo 64 ROM* or *an N64 ROM of ...*: the wrong file.\n\n  `.z64`, `.v64` and `.n64` byte orders all work; the SHA-1 is checked as `.z64`.\n- **Unpacking the Android NDK fails** (on Windows): the tool says why. It's almost always the path being too long\n  for Windows: run the tool from your WSL home (`cd ~`) instead of a Windows drive (`\u002Fmnt\u002Fc\u002F...`).\n- **The tool fails building**: check that `make` and a C compiler work (`cc --version`). Then delete\n  `Mario64MRData-work\u002F` and run it again.\n- **The cartridge falls through the table, or Mario has nothing to land on**: run Space Setup again, and allow the\n  app to use your space.\n\n## About the game\n\nSuper Mario 64, Mario and Nintendo 64 are trademarks of Nintendo. Mario 64 MR is a free, non-commercial fan project.\nIt is not affiliated with, endorsed or sponsored by Nintendo.\n\n- **Nothing of Nintendo's is distributed here.** The app contains none of the game's code or data, and no Nintendo\n  artwork. The game is built on your own computer from your own copy's data and the community's public sources: the\n  decompilation of the game (n64decomp\u002Fsm64), its PC port (sm64pc\u002Fsm64ex) and libsm64.\n- **No ROMs are provided, and none will be.** Use a ROM you dumped from a cartridge you own. Please don't ask for\n  ROMs, or share them, in this repository's issues.\n- It is free and always will be: it isn't sold, and there are no donations or ads.\n\nThe code written for Mario 64 MR in this repository is under the MIT license (`LICENSE`); the sources the tool\ndownloads keep their own terms.\n\nIf you hold rights in something here and want it changed or removed, open an issue or contact\n[@lucas_martinic](https:\u002F\u002Fx.com\u002Flucas_martinic), and it will be dealt with promptly.\n","Mario 64 MR 是一款为 Meta Quest 2\u002F3\u002F3S（及实验性支持 Steam Frame）开发的混合现实（MR）应用，将 Super Mario 64 游戏无缝融入真实物理环境。它基于开源 PC 移植项目 sm64ex 和官方授权的 SM64 反编译代码，通过自研渲染管线实现 60 FPS 游戏逻辑与头显原生刷新率（72–120 Hz）的平滑同步；支持手势交互（如拉伸卡带成窗口、抓取 Mario 置于桌面）、空间锚定（头入窗口进入关卡、桌面微缩场景 Diorama 模式）及实时画质调节。需用户自行提供合法持有的美版 Super Mario 64 ROM，不包含任天堂版权内容。适用于 MR 体验探索、经典游戏空间化复现及混合现实人机交互演示等场景。",2,"2026-11-24 04:38:43","CREATED_QUERY"]