Ocarina of Time 3D and Majora's Mask 3D, rendered on PC.
Zelda3D runs the Nintendo 64 decompilations as the game-logic spine and replaces what you see with the 3DS remakes' own assets and behaviour — models, animations, scene geometry, collision, cameras and lighting read straight from the 3DS ROMs.
| branch | base engine | assets |
|---|---|---|
| soh3d | Ship of Harkinian (OoT) | Ocarina of Time 3D |
| 2ship3d | 2 Ship 2 Harkinian (MM) | Majora's Mask 3D |
You supply your own ROMs. None are included, and none ever will be.
Install uv and the native C++/SDL dependencies for your platform, then supply your own OoT and MM
inputs: decrypted OoT3D and MM3D .3ds files plus the corresponding N64 ROMs. Name them with
ZELDA3D_OOT3D_ROM, ZELDA3D_OOT_ROM, ZELDA3D_MM3D_ROM, and ZELDA3D_MM_ROM in the process
environment or a gitignored .env. Canonical repo-root names (oot3d.3ds, oot.z64, mm3d.3ds,
and mm.z64) work without configuration; other repo-root drop-ins are identified by their ROM
metadata and ambiguous matches are refused.
./run.shThe no-argument path provisions the locked Python environment and the two pinned public build
dependencies, extracts both games' runtime archives, configures with the compiler selected by the
user or platform, builds the unified launcher and both game cores, and opens the game chooser. A
recursive clone or manual submodule step is not required. It does not initialize the private decomp
references or require Ghidra or either decomp repository's analysis tooling. Run
./run.sh --bootstrap-check for a non-building cold-path check; missing native packages are reported
with the platform's exact install command.
On Windows, enter the same locked bootstrap with uv run --frozen python bootstrap.py
from the checkout; run.sh is the POSIX shim. This verifies the bootstrap entry, not a complete
Windows application: the remaining native loader/build gaps are listed in
project state S010.
The AppImage runs without a terminal. On first launch, Zelda3D shows a Browse prompt for each of the four required ROMs. Each selection may be the ROM itself or a ZIP containing exactly one matching ROM at any folder depth. Selections are validated by content, remembered under the OS user configuration directory, and reused on later launches. Extracted N64 runtime archives, settings, logs, and saves are written there too; the read-only AppImage mount is never used as storage.
The release contains the launcher, both game cores, their redistributable port assets, and extractor
metadata. It contains no ROM and no ROM-derived oot.o2r or mm.o2r. Maintainers build it from a
verified Clang tree with:
uv run --frozen python tools/build_appimage_release.pyCaptured from the running build — 3DS models, scene geometry and lighting.
| Kokiri Forest | Zora's Domain |
|---|---|
![]() |
![]() |
| Hyrule Field | Hyrule Field at night |
|---|---|
![]() |
![]() |
| Kakariko Graveyard | Link's House |
|---|---|
![]() |
![]() |
The N64 decompilation stays in charge of game logic — actor updates, state machines, collision queries, save data. Zelda3D hooks the draw and asset seams so that a scene, an actor or an animation resolves to its 3DS counterpart instead of the N64 original, falling back to N64 content where no 3DS equivalent exists.
Getting that to match is the actual work, and it is done against ground truth rather than by eye: an embedded Azahar core runs the real 3DS game in-process alongside the port, so any frame, actor table, animation playhead or GPU register can be compared directly. Parity claims in this repo are expected to cite a measurement.
Some of what that has produced:
- PICA200 fragment pipeline — per-material multi-stage TEV combiners, multi-texture, and the 3DS's distance-fog window and colour, driven from each scene's own ZSI environment data.
- Per-vertex lighting semantics — including that the hardware saturates vertex colour before interpolation, which single detail accounted for a visible brightness error.
- CMB / CSAB / ZAR / ZSI asset readers, plus
.faceb— an undocumented Grezzo facial keyframe format reverse-engineered here to drive Link's eyes and mouth. - Camera values lifted wholesale from the 3DS binary's own settings table.
Shipwright/— vendored OoT engine (Ship of Harkinian) with thezelda3d/layer inside it2ship/— vendored MM engine (2 Ship 2 Harkinian) with its ownzelda3d/layerShipwright/cmb3d/— 3DS asset readers (CMB, CSAB, ZAR, ZSI, CMAB, faceb)tools/— build, capture, and the oracle harness + parity toolingoot3d-decomp/,mm3d-decomp/— reverse-engineering notes and derived C (submodules)docs/— architecture, codemap, project state, and the open issues indocs/issues/
Actively in development, and not a finished product. Rendering parity is measured
scene-by-scene rather than assumed; docs/project-state.md records what is verified, what is
partial, and what is still missing.
GPL-3.0, inherited from the engines this builds on. Zelda, Ocarina of Time and Majora's Mask are trademarks of Nintendo; this project is unaffiliated with and unendorsed by Nintendo, ships no game assets, and requires that you own the games it runs.
Built with AI assistance (Claude and other LLMs).





