OpenUnderworld

OpenUnderworld is a native Linux reimplementation of the Tomb Raider Underworld engine with OpenGL and Vulkan renderers.

README

OpenUnderworld

A native Linux reimplementation of the engine of Tomb Raider: Underworld (2008, Crystal Dynamics' cdc engine), written from scratch in C++23 with OpenGL and Vulkan 1.3 renderers.

Status

Experimental. OpenUnderworld loads the levels of your own copy of the game and lets you play parts of them as Lara. The main menu starts a new game at the prologue, and every chapter can be started directly. Lara can run, sprint, jump, climb, free-climb, swim, use the grapple, fight and ride the motorcycle. Many level scripts, switches and cutscenes run, and the game can be saved and loaded. It also plays the game's movies, music and sounds.

It is far from a complete game. Many puzzles and level transitions do not work yet, and a full play-through has not been verified. See docs/ROADMAP.md for the status of each area and docs/PROGRESSION.md for the state of each chapter route.

The burning Croft Manor forecourt from the prologue, rendered by OpenUnderworld

Screenshots and features

All images are captured from OpenUnderworld 0.62.2 itself on Vulkan at 1920x1080 with no upscaler: Enhanced preset, --rt full --rt-quality high --ao rt --atmosphere high --shafts on, and for the water shots the procedural ocean at high water detail (--ocean procedural --water-detail high). The full ray-traced set needs a GPU with ray queries; the default Enhanced preset uses ray-traced sun shadows and CORTAO AO. They read the files of a legally owned copy of the game. Lara, the levels and the textures are the original game's art; the repository and the releases contain none of it. Per-level and per-chapter status is in docs/PROGRESSION.md: a good-looking level is not a finished one.

Original main menu and all nine chapters. The radial menu, its sounds and the looping medsea_loop movie are rebuilt from the game's own UI data. New Game starts the prologue, and any chapter or level can be started directly (--chapter 0-8, --level).

The radial main menu over the medsea_loop movie

Enhanced water. A procedural ocean (--ocean procedural) with waves, refraction, screen-space and ray-traced reflections, ripples, splashes and caustics on top of the game's own sea geometry. The original preset keeps the game's own water shaders. Left: the original look (--preset original --rt off --ao off --water original); right: Enhanced.

Original versus Enhanced water at the Thailand cliffs

Lara on the yacht in a turquoise coveLara swimming underwater in caustic light
Open water, cliffs and the yacht (chapter 2).Underwater caustics and fog (chapter 7).

Day and night cycle. The game has no time of day; OpenUnderworld adds one. The sun and moon move on an arc, and ambient light, fog, sky, shadows, ray-traced lighting and the water follow them. --time-of-day default|day|night|cycle picks the lighting (day is 12:00, night 21:00, cycle runs a full 24 hours in --day-length real minutes). It applies to outdoor levels; caves, tombs, ship interiors and Croft Manor keep their own lighting.

Day and night at the Thailand cliffs and in the jungle hub

Ray-traced lighting (optional, Vulkan with ray queries). Sun shadows, reflections, effect lights, global illumination and ambient occlusion by ray query (--rt shadows|full, --ao rt), with the CORTAO screen-space AO as the portable option. Without ray queries the renderer falls back to a cascaded shadow map.

A burning corridor lit by fireA dark chapel with a few lamps
Fire-lit corridor in the main bedroom (prologue).The Croft Manor chapel, lit by its few lamps.

Atmosphere, weather and the original effects. Aerial haze, light shafts, rain and snow (with optional snow accumulation) are layered on the game's own translated shaders, particles, ribbons and screen filters.

Overgrown ruins in the jungle hubA Helheim hall with a red glow ahead
The jungle hub (chapter 2).Helheim (chapter 7).

Lara and the enemies use the game's own skeletons and animations. Lara runs, climbs, swims, uses the grapple, fights and rides the motorcycle (see Status for what is not finished).

Also built in: Vulkan 1.3 and OpenGL 4.5+ renderers, AMD FSR upscaling and frame generation (Vulkan), a Qt launcher with controller rebinding, saves and signed self-updates, and ten text and voice languages. See docs/RENDERING.md and docs/LAUNCHER.md.

Progress

brief bugs vs tru.exe chapters tru.exe RE

Chapter map and per-phase brief compliance

Counted from the repository's own status documents on every push to main (progress page, progress history per release; generator: tools/progress/progress.py, see docs/RELEASING.md).

You need the original game

You need your own legally owned copy of Tomb Raider: Underworld. This project contains no game data, extracted assets or original code, and the releases contain none either. OpenUnderworld reads the files of your installation (tested: GOG build, tru.exe 1.1.0.0) and never modifies them.

Tomb Raider is a trademark of its owners. This project is not affiliated with or endorsed by them.

Download

Every release ships a signed AppImage: latest release. Releases are experimental builds.

chmod +x OpenUnderworld-*-x86_64.AppImage
sha256sum -c OpenUnderworld-*-x86_64.AppImage.sha256

Unsigned test AppImages of every commit on main are available as artifacts of the appimage workflow on GitHub Actions.

Requirements

  • x86_64 Linux with a current glibc and libstdc++. Releases are built on Arch Linux; older distributions may not run them.
  • A GPU driver with Vulkan 1.3 or OpenGL 4.5 or newer (4.6 is requested). Mesa works.
  • Optional: a Vulkan GPU with ray queries for ray-traced shadows, reflections and lighting.
  • FUSE to mount the AppImage, or run it with --appimage-extract-and-run.

Quick start

./OpenUnderworld-*-x86_64.AppImage            # launcher: pick the game directory, validate it, Play (main menu)
./OpenUnderworld-*-x86_64.AppImage game --game-dir "/path/to/Tomb Raider Underworld"            # main menu, New Game = chapter 0
./OpenUnderworld-*-x86_64.AppImage viewer --game-dir "/path/to/Tomb Raider Underworld" --level --drm 'pc-w\l4_pool.drm'
./OpenUnderworld-*-x86_64.AppImage tools     # list the bundled tools (game viewer movie audio import asset text sign)
  • Controls (defaults of the original game, rebindable on the launcher's Controllers tab): WASD or arrows move, Left Shift sprints, Left Alt walks, Space jumps and climbs, Left Ctrl drops or crouches, E interacts, Q grapple, left mouse fires, right mouse locks on a target, F5 / F9 quick save / quick load, Esc opens the pause menu. Gamepads are supported. Full table: docs/GAMEPLAY.md.
  • Graphics: Vulkan by default, with OpenGL as fallback. The default Enhanced preset adds 4x MSAA, sun shadows and enhanced water on top of TRU's own translated shaders, plus ray-traced sun shadows where the GPU supports ray queries. Change them in the launcher, in the game's own display menus, or with flags such as --renderer auto|opengl|vulkan, --preset enhanced|original (purist), --rt auto|off|shadows|full, --water original|enhanced and --brightness 0.5..2.0 (docs/LAUNCHER.md).
  • Updates: the launcher's Version & Updates tab (or --update) replaces the AppImage with the newest signed release and keeps the old one as .bak. The update manifest is signed with the project's Ed25519 key (docs/UPDATES.md).

Build from source

On Arch Linux:

sudo pacman -S --needed base-devel cmake ninja sdl3 glm libepoxy zlib openssl nlohmann-json gtest \
  libsodium curl qt6-base vulkan-headers vulkan-icd-loader shaderc ffmpeg
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release
cmake --build build
ctest --test-dir build --output-on-failure      # tests that need the game read OU_GAME_DIR and skip without it
build/ou-game --game-dir "/path/to/Tomb Raider Underworld"

Details, optional parts (AMD FSR, Qt launcher) and the viewer: docs/BUILDING.md.

Documentation

Contributing

Changes are accepted only as pull requests, reviewed and merged by the maintainer. See CONTRIBUTING.md.

Credits

OpenUnderworld stands on other people's work. Licences and the exact files are in docs/RESEARCH.md §4 and §8 and in each folder under third_party/.

Code included or ported (third-party parts are MIT or CC0, notices kept):

  • AMD FidelityFX SDK (MIT, © Advanced Micro Devices): FSR 3.1 upscaling and frame generation, vendored in third_party/fidelityfx-sdk.
  • CORTAO by Daniel Isheden (MIT): the screen-space ray-traced ambient occlusion, vendored unmodified in third_party/cortao.
  • Jolt Physics by Jorrit Rouwe (MIT): the physics engine, fetched at build time.
  • NeuralSpecOcean by Sheng Choi (MIT): the spectral ocean, the water colour palettes and optics, and the optional AgX-style tone map are ported from it.
  • abyssal-garden by Noniv / Maksymilian Dendura (MIT): the underwater fog, caustics, Snell's window, bloom, marine snow and bubbles are ported from it.
  • OpenGL-Water-Simulation by Talvin Ackbaraly (MIT): the screen-space fluid rendering behind the water splashes is adapted from it.
  • "Very fast procedural ocean" by afl_ext (MIT): its wave functions are ported into the Enhanced water shaders.
  • "Realistic Water with Traced and Simple Reflection and Refraction V2" by smallcableboi (CC0): translated from Godot into the Enhanced water shader.
  • Wars and Warriors: Joan of Arc (same author, GPL-3.0): the first version of the water wave code.

Techniques and papers (written from the publications, no code copied): Position Based Fluids (Macklin and Müller, 2013) and its kernels (Müller et al., 2003; Akinci et al., 2013) for the splash fluid; the Oklab colour space by Björn Ottosson and the AgX working-space idea by Troy Sobotka for the tone map.

Format and reverse-engineering references (read for structure and addresses, no code copied): TRLAU-menu-hook, Yura, cdcResearch and cdcEngine by TheIndra55, ModLoader, BigfileLogger and Templates from Tomb Raider Modding, cdcEngineTools by Gh0stBlade, Gibbed.CrystalDynamics by gibbed, and vgmstream.

Libraries linked or used at build time: SDL3, GLM, libepoxy, shaderc, libsodium, OpenSSL, nlohmann/json, zlib, libcurl, Qt 6 (launcher), FFmpeg and GoogleTest, each under its own licence.

License

Source-available, all rights reserved; see LICENSE. Contributions via pull request only; see CONTRIBUTING.md. Versions published before this change remain under GPL-3.0-or-later. Third-party components in third_party/ keep their own licenses. Tomb Raider is a trademark of its owners. This project is not affiliated with or endorsed by them.