Skip to content
DarkArshynPublic

Latest commit

 

History

45 Commits

Folders and files

Repository files navigation

OpenJade

An open-source reimplementation of Ubisoft's Jade Engine, with the long-term goal of supporting multiple games.

About the project

OpenJade is an independent research and reverse-engineering project aimed at recreating the functionality of Ubisoft's Jade Engine from scratch, without access to the original engine source code.

The project currently focuses on Prince of Persia: The Sands of Time (2003) as its initial reference, using the PC GOG edition for research and validation.

However, OpenJade is not intended to remain limited to a single game. Its long-term vision is to develop a reusable engine architecture capable of supporting other Jade Engine titles, including the rest of the Prince of Persia trilogy and Beyond Good & Evil.

The project emphasizes documented reverse engineering, independently implemented systems, and the preservation of classic games through modern, open-source technology.

Windows remains the primary development platform. The native Rust/Vulkan engine has undergone initial validation on Linux and macOS, and the project's PowerShell 7.6 LTS research tools and selected Python workflows have been validated on Windows, Linux and macOS. Broader cross-platform engine support remains experimental.

Game resources must come from the user's own legally obtained game files and are not distributed here. A conventional installation is not required for offline resource research.

Note

Generative AI assists with research and implementation under human supervision. Findings and generated code are subject to testing and verification.

Game compatibility

Game Status
Prince of Persia: The Sands of Time (2003) Active development
Prince of Persia: Warrior Within (2004) Planned
Prince of Persia: The Two Thrones (2005) Planned
Beyond Good & Evil (2003) Long-term objective

Each game may require additional research into engine versions, proprietary resources and game-specific systems.

No game is currently playable through OpenJade. Planned titles represent development goals, not existing compatibility or guaranteed future support.

Current status

An experimental native Rust/Vulkan menu prototype has been validated on Windows, Linux and macOS. The game is not playable.

The current implementation focuses on reconstructing the main menu and its surrounding 3D environment from Prince of Persia: The Sands of Time.

The Rust/Vulkan viewer combines decoded 3D menu scenery with an interactive main menu:

  • Selecting Start New Game hides the interface and plays a nine-second Camera02 transition toward the balcony, where the camera stops.
  • Transparent scene effects are re-sorted as the camera moves.
  • Escape returns to the main menu.

An optional prototype supports keyboard movement of the Prince with start, walking, stop and rest animations. Native movement fidelity and collisions remain unfinished; cutscene playback and level loading are not implemented.

The scenery includes 50 decoded objects, textures, depth testing, three fog panels and multi-pass light-fixture materials:

  • Two dynamic fog emitters now add moving transparent mist alongside the existing panels.
  • Supported fog and flame-texture offsets animate in real time. The two suspended flames also deform using their decoded vertex animations.
  • Seven palms, three additional plants and the hanging vine move using their decoded vertex deformation. Three mesh birds follow their waypoint loops and flap their wings. Two bird particle emitters and two fly swarms also animate in the menu. Drifting points of light come from a separate pollen emitter.
  • Eight splash emitters animate alongside the two falling-rain emitters. The rain uses decoded parameters and verified particle geometry, colors and blending; timing remains under comparison.
  • A measured scene-blur effect softens the 3D background while keeping the menu interface sharp.
  • Scene textures retain their decoded dimensions; selected textures now use verified native mipmaps, including the sword. Filtering and generated mipmaps remain available for other textures.
  • Lighting, transparency ordering and visual fidelity remain under investigation; this is not a faithful recreation yet.
  • The sky and moon are now included; some small effects remain absent.
  • General runtime scene lighting remains incomplete: recorded vertex colors provide part of the current appearance, while selected decoded lighting contributions are used for the animated Prince.
  • The animated Prince, sword, articulated support and dagger can now be displayed on the balcony, with initial placement derived from the original collision geometry.
  • The prepared native menu now plays his observed idle sequence after Camera02 completes, retaining the equipment animation across clip changes. His vertex lighting updates with animation; the prepared menu uses original scene data for its ambient color and three named lights, and a generated directional contribution follows the camera during the balcony transition. Native startup timing, remaining secondary motion, complete material fidelity and gameplay remain unfinished.

The detailed menu screens now run in the native viewer alongside the 3D scenery:

  • Gamma, texture filtering, window resolution and V-Sync can be changed there, with changes applied only after Back and confirmation, plus OpenJade-owned persistence.
  • Profile selection and keyboard-binding editing are available; they do not load original saves or control a playable character.

Audio/gameplay and unsupported graphics options are visibly disabled.

Python is used for offline preparation and research, not required alongside a prepared native menu.

The research and resource-preparation toolchain now targets PowerShell 7.6 LTS. Its core workflows have been validated across Windows x86-64, Linux x86-64 and macOS ARM64 using a common source version.

Prototype preview

The native prototype displays the main menu and its 3D background in one window, with mouse/keyboard navigation, profile creation/selection, Controls, Game, Graphics Effects/Advanced, Sound and confirmation screens.

Original credits remain an explicit notice and Load Game is unavailable.

Text and widgets are composed in Rust using locally prepared MFT/DDS resources. The logo and cursor retain their original image dimensions, and text selects among twelve bitmap font variants as the window grows; the interface uses linear filtering. The cursor now combines its original base and glowing overlay with animation read from the menu resources.

Captures and generated asset bundles remain local and are not included in the repository.

See the native prototype workflow and the separate Python simulation.

Implemented capabilities

Jade Engine research and foundations

Area Available today Main limit
Archives Tested BF/BIG extraction and recognized POP-LZO decoding Not a universal archive decoder
Resources MGM structure/materials, menu links, DDS and MFT previews Selected layouts; font styling remains experimental

Prince of Persia: The Sands of Time

Area Available today Main limit
Python menu simulation Retained as a research/reference tool No gameplay and optional legacy gamma bridge
Native menu Interactive 3D menu with navigation, profiles, display settings and local persistence No playable game, original save loading or functional audio
Scene rendering Reconstructed 3D environment with textures, materials, fog, transparency and selected postprocessing effects Original lighting and overall visual fidelity remain incomplete
Animation and effects Animated vegetation, curtains, birds, rain, particles, flames and other menu effects Timing, activation and some visual behaviors remain under investigation
Camera02 Reconstructed nine-second camera transition triggered by Start New Game No gameplay, cutscene or level loading follows
Prince preview Original-resource skeletal animation, equipment and animated-normal lighting; prepared balcony integration and an optional keyboard-controlled movement-clip preview Experimental: native timing, general scene lighting, remaining secondary controllers and gameplay are incomplete

Testing and platform validation

Area Available today Main limit
Native engine Unit tests, Vulkan validation and local visual checks on Windows, Linux and macOS Windows/AMD remains the primary development environment. Broader hardware and driver coverage is experimental
Research tools Synthetic tests, original game resource validation, independent DDS comparisons and selected Python workflows on Windows, Linux and macOS Validation covers selected formats, resources and workflows, not the entire toolchain
Static analysis Ghidra Headless integration validated on Windows, Linux and macOS Selected analysis workflows only. Platform-specific dependencies are required

Development approach

OpenJade combines reverse-engineering research with the gradual development of a native engine.

The project currently relies on two complementary components:

  • Research tools: Python, PowerShell 7.6 LTS, managed C# components and supporting utilities for archive extraction, proprietary format analysis, resource preparation and validation.
  • Native engine: A Rust-based implementation using Vulkan for rendering, progressively reconstructing the behavior of the original engine.

While Prince of Persia: The Sands of Time provides the initial reference, the long-term architectural goal is to distinguish reusable engine functionality from game-specific behavior.

This approach is intended to facilitate future research and compatibility work across different Jade Engine titles.

Roadmap

Development follows evidence-driven milestones, without release dates or completion percentages. Prince animation and collision research remain the immediate priority.

  1. Consolidate the menu and Prince research: preserve working previews, establish collision behavior and validate scene fidelity.
  2. Strengthen resource and runtime foundations: clarify data ownership and introduce native loading incrementally, alongside continued research.
  3. Run the menu directly from original data: remove mandatory Jade resource conversion while keeping research tools available.
  4. Reconstruct a first playable area, then expand Sands of Time: validate movement, interactions, progression, audio, cinematics and saves.
  5. Extend to other Jade games: establish each title's format and behavior differences before claiming compatibility.

These milestones can overlap. The current viewer still requires prepared packages; native archive loading and a general gameplay runtime are future work.

See the architecture direction and acceptance gates for the current architecture, proposed migration, validation criteria and decisions still open.

Cross-platform support

Development remains primarily focused on Windows, with cross-platform validation covering both the native engine and selected research workflows.

Initial native cross-platform validation was successfully performed on 2026-11-14, covering the Rust engine on Linux and macOS.

Linux (x86_64)

Testing was performed on Manjaro Linux with an AMD Radeon RX 9070 XT using Mesa RADV.

The Rust workspace built successfully, and Vulkan rendering was verified with both the menu and actor scenes. All 67 executed unit tests passed, with no Vulkan validation errors reported.

Linux - Raspberry Pi (ARM64)

Additional testing was performed on a Raspberry Pi 4B to assess the portability of the native engine to Linux on ARM64.

This testing represents an architectural validation rather than a supported deployment target. The tested hardware did not provide sufficient performance for a viable runtime experience.

Raspberry Pi support is not currently a development objective. Further engine development and platform validation will focus on more suitable hardware configurations.

macOS - Apple Silicon (ARM64)

Testing was performed on macOS 27.2.1 with an Apple M3 Pro, using the KosmicKrisp Vulkan driver (Vulkan SDK 1.4.363.1).

The Rust workspace built successfully without macOS-specific source modifications. All 67 executed unit tests passed, and Vulkan rendering was verified with TSoT menu and a separate Prince scene.

Three runtime tests were completed successfully, with no Vulkan validation errors reported.

Research and resource-preparation tools

Following Microsoft's announcement of the deprecation of Windows PowerShell 5.1 on 2026-11-17, the project's research toolchain has been migrated to PowerShell 7.6 LTS.

This decision was driven by two main objectives:

  • Align with Microsoft's recommended migration path and ensure the long-term maintainability of the research toolchain.
  • Remove the previous Windows-specific runtime requirement and facilitate cross-platform development, research and resource-preparation workflows across Windows, Linux and macOS.

The common source version was validated on 2026-11-26 across three native environments:

Validation Windows x86_64 Linux x86_64 macOS ARM64
PowerShell syntax validation 39/39 39/39 39/39
Synthetic checks 398/398 398/398 398/398
Checks with original resources and references 726/726 652/652 652/652
Independent DDS RGBA comparisons 68/68 68/68 68/68
Menu resource preparation Passed Passed Passed
Python GUI smoke tests Passed Passed Passed
Ghidra Headless camera analysis Passed Passed Passed

All three environments used the same set of 145 source files, verified through SHA-256 checksums before and after the validation campaign.

The additional Windows checks include comparison against an optional native miniLZO reference implementation. The managed POP-LZO decoder was validated using original game resources on all three platforms.

The migration also replaces the previous System.Drawing dependency with a managed PNG encoder and addresses platform-specific filesystem behavior, asset path resolution and external tool invocation.

Scope and limitations

Native engine support on Linux and macOS remains experimental. Validation has been limited to specific operating systems, hardware configurations, Vulkan drivers and implemented features.

Research tool validation covers selected archive formats, resource decoders, menu preparation workflows, Python interfaces and Ghidra integration. It doesn't constitute exhaustive validation of every Python or Java script, every supported resource layout or every possible operating environment.

The optional native miniLZO reference was tested on Windows only. Ghidra and other external dependencies may require platform-specific installation or configuration.

These results apply to the implementations and features available at the time of testing. They don't guarantee compatibility with future development or other hardware and software configurations.

Cross-platform validation doesn't imply game playability or complete visual fidelity.

There is no completion date or reliable overall completion percentage. See milestones and validation criteria.

Getting started

Windows remains the primary development platform. The native Rust/Vulkan engine and selected research workflows have also undergone cross-platform validation, as described above.

The native viewer requires platform-specific Rust/Vulkan dependencies and locally prepared scene/menu bundles. Research workflows use PowerShell 7.6 LTS, Python and the relevant dependencies documented in the developer guide.

Ghidra supports optional static analysis and is not required to launch a prepared preview.

Start with the developer setup guide, then choose the native menu workflow or the optional Python menu simulation.

A fresh checkout contains neither original game resources nor generated bundles.

Documentation

Contributing

OpenJade is an independent hobby project, and contributions are welcome.

Contributions may include reverse-engineering research, format documentation, testing, implementation improvements and technical feedback.

Research findings should ideally be reproducible, with verified observations clearly distinguished from assumptions or unresolved hypotheses.

There is no guaranteed completion date or release schedule.

License & Legal Disclaimer

OpenJade is an independent research and open-source reverse-engineering project. It is not affiliated with, endorsed by, associated, or sponsored with Ubisoft.

All trademarks and product names belong to their respective owners. Prince of Persia, Beyond Good & Evil, the Jade Engine, and all associated trademarks and game assets remain the property of their respective rights holders.

No original game data, copyrighted assets or proprietary engine source code are distributed with this repository. Users must provide their own legally obtained game resources.

OpenJade is licensed under the GNU General Public License v3.0 or later (GPL-3.0-or-later). See LICENSE for details.