Skip to content
denukernelPublic

Repository files navigation

KernelN64

KernelN64 K64 icon

KernelN64 is a Pure Java Windows Nintendo 64 emulator based on Jario64, with an Eclipse-friendly Java core, GLN64j graphics, independent Kernel64GL shader graphics, experimental Direct3D 11 graphics, and Azimer HLE audio.

This is a development preview. Super Mario 64 and Mario Kart 64 are tested games in the Good tier. GameShark Pro 2.0 and 3.3 firmware ROMs are also tested, both in the Okay tier. All other games and firmware versions remain untested. No game ROMs, firmware ROMs, saves or game assets are included.

Game compatibility

Game Status Testing coverage
<<<<<<< Updated upstream
Super Mario 64 Good Has received the most local testing.
Mario Kart 64 Good USA version tested with GLN64j and experimental D3D11 using attract-mode race savestate replays, framebuffer comparisons, save/load checks, and ABI2 audio resampler checks.
GameShark Pro 2.0 firmware ROM Okay Standalone firmware support; physical pass-through cartridge behavior is not emulated.
GameShark Pro 3.3 firmware ROM Okay Standalone firmware support; physical pass-through cartridge behavior is not emulated.
=======
Super Mario 64 Tested — Good Has received the most local testing.
Mario Kart 64 Tested — Good USA version tested with GLN64j, Kernel64GL and experimental D3D11 using attract-mode race savestate replays, framebuffer comparisons, save/load checks, and ABI2 audio resampler checks.
GameShark Pro 2.0 firmware ROM Tested — Okay Standalone firmware support; physical pass-through cartridge behavior is not emulated.
GameShark Pro 3.3 firmware ROM Tested — Okay Standalone firmware support; physical pass-through cartridge behavior is not emulated.

Stashed changes | All other games and firmware versions, including Zelda titles | Untested | Compatibility has not been verified. |

Tested does not mean fully compatible or verified through a complete playthrough. Results can vary by renderer, ROM revision, and scene. See the GLN64j compatibility notes for the Mario Kart 64 fixes and testing limits.

Gameplay screenshots

User-captured scenes from the two tested games. These screenshots show specific scenes; they do not establish compatibility with other games or every renderer.

Mario Kart 64

Mario Kart 64 title screen

Mario racing on Luigi Raceway in Mario Kart 64

Super Mario 64

Mario beside a cannon in Bob-omb Battlefield

Super Mario 64 castle exterior running in KernelN64

Debug Tools

image

Firmware

image

Features

  • GLN64j, independent Kernel64GL, and experimental native Direct3D 11 graphics, with live graphics/audio/input plugin switching.
  • HLE audio, configurable fast mode, controller mapping and window settings.
  • Savestates with numbered/named slots, file import/export and rewind.
  • GameShark cheats, SM64 presets and address mapping for supported SM64 decomp builds with a matching ELF.
  • Tools > KernelN64 Corruptor provides seeded live display list, texture and glyph effects. See Lua scripting for script controls.
  • CPU debugger, memory tools and a guest kernel thread monitor with audio handshake diagnostics.
  • single-frame 3d scene export to OBJ, GLB and VRML, with textures and vertex colors.
  • Recent ROMs and an EXE launcher for external tools.

3d scene export

open Tools > 3D Exporter..., choose OBJ, GLB or VRML, a destination folder, a filename and a positive scale, then select Capture next frame. textures are included by default. resume emulation if paused. each export gets its own unique folder; the default destination is Exports beside the application.

GLN64j, Direct3D 11 and Kernel64GL are supported. the exporter captures all 3d triangles submitted during one rendered frame, including off-screen triangles, in camera-relative coordinates. it does not recover unsubmitted geometry, animations or skeletons. material effects are approximated. see the exporter guide for formats, limitations and cancellation.

emulation controls

use emulation > pause emulation or f2 to pause and resume. end emulation (ctrl+e) closes the current game and saves its battery data while keeping the application open. reopen a game from the file menu when ready.

settings > cpu core style selects interpreter or cached interpreter for the next rom open or restart (ctrl+r). pause when window is inactive applies immediately; owned settings and debugger dialogs count as part of the active application. regaining focus only releases the inactive-window pause, so manual pauses and debugger faults remain paused.

Kernel64GL graphics

select Kernel64GL (java opengl) under settings > settings > plugins, apply, then configure the active graphics plugin. its independent java decoder and GLSL renderer have separate resolution, filtering, fog, wireframe, window and vsync settings in Kernel64GL.config. saved settings apply when the rom is reopened. see the plugin guide for details and testing limits.

Run the portable release

Extract the entire Windows x64 ZIP into a writable folder and run KernelN64.exe. Its Java runtime and native libraries stay together in the extracted folder. Use File > Open ROM to open your own game image.

External tools can launch a ROM with:

.\KernelN64.exe "C:\Games\Example.z64"
.\KernelN64.exe --rom "C:\Games\Example.z64" --state "C:\States\scene.j64state"

Open in Eclipse

Install a 64-bit JDK 21 or newer. Import this folder as an existing Eclipse project named KernelN64, refresh it, and run kerneln64.Main or the shared KernelN64 launch configuration. Use the project folder as the working directory for saves and settings. GLN64j and D3D11 find their bundled native DLLs automatically; no manual library-path setup is required.

Build the Windows package

Requirements: Windows x64, a JDK 21+, Visual Studio or Build Tools with Desktop development with C++, the Windows 10/11 SDK, and the Windows .NET Framework C# compiler.

$env:JAVA_HOME = "C:\Path\To\Your\JDK"
.\launcher\Build.ps1

Alternatively, pass -Jdk "C:\Path\To\Your\JDK". The build discovers Visual C++ with vswhere and writes the portable application to dist/KernelN64. It also refreshes Eclipse's compiled classes. The included JOGL/GlueGen dependencies are retained in KernelN64winportable for compatibility with existing project configuration.

The main application and native renderer sources are included. Testing fixtures and automated testing files are intentionally omitted from this prepared source snapshot.

Documentation and limitations

Direct3D 11 is experimental; some N64 rasterization behavior is approximated. Standalone GameShark support provides firmware menu emulation, not a physical pass-through cartridge. Audio distortion presets are experiments and can destabilize a game; documented approximations are labeled in the preset notes.

Notices

Read third-party notices and release preparation before publishing this snapshot. GPL text is retained in COPYING, and original copyright/license notices remain in source files. Some inherited files also retain Project64 noncommercial-use terms; this snapshot does not replace or resolve those terms with a blanket license.

scene compatibility matrix

open tools > compatibility database, select a rom revision, then open scene matrix. add a result for each scene and graphics plugin you try. rate boot or scene entry, graphics, audio, and save/load separately. results live with the local compatibility notes and record the date you saved the observation. scenes without observations stay unrated.

Releases

Packages

Contributors

Languages