Command & Conquer: Tiberian Sun Statically Recompiled for PC: Westwood’s Voxel RTS Masterpiece Gets Native 4K, Direct3D 11, and HD Vehicles

Westwood Studios' post-apocalyptic RTS classic is running natively in modern C. Using pcrecomp, developer sp00nznet has statically recompiled Command & Conquer: Tiberian Sun and Firestorm into 3.9M lines of C with zero lift errors, bringing 4K widescreen, Direct3D 11, and 2x HD voxel vehicles.

Command & Conquer: Tiberian Sun Statically Recompiled for PC: Westwood’s Voxel RTS Masterpiece Gets Native 4K, Direct3D 11, and HD Vehicles

When Westwood Studios shipped Command & Conquer: Tiberian Sun in August 1999, it was one of the most eagerly anticipated real-time strategy games in PC history. Depicting the brutal Second Tiberium War between the Global Defense Initiative (GDI) and Kane’s Brotherhood of Nod, the game pushed late-90s PC gaming forward with cinematic full-motion video, dynamic battlefield destructibility, and a revolutionary 3D voxel graphics engine. But for the modern PC gamer, running the original 32-bit Windows binary on Windows 10 or 11 has long meant fighting legacy DirectDraw compatibility bugs, frozen menus, and broken resolutions. Now, a stunning technical breakthrough has arrived: Command & Conquer: Tiberian Sun and its Firestorm expansion have been statically recompiled into native C.

The project—developed by prolific systems engineer sp00nznet and hosted on GitHub at sp00nznet/tiberiansun-recomp—leverages the pcrecomp binary translation toolchain. Rather than rewriting the game engine from scratch as an approximation (such as OpenRA), tiberiansun-recomp translates the original retail machine code directly into clean, compilable C. The result is a true native remaster executing Westwood's authentic game simulation atop a modern Direct3D 11 presentation layer.


The Recompilation Pipeline: 3.9 Million Lines of C

Recompiling a complex 1999 Win32 RTS binary packed with custom assembly routines and C++ class hierarchies is a monumental challenge. The tiberiansun-recomp pipeline achieves complete static translation directly from EA's retail Game.exe (specifically targeting the DRM-free release included in Steam's Command & Conquer: The Ultimate Collection):

Zero Translation Errors Across 18,559 Functions: The lifting pipeline analyzed Game.exe, mapped 92.0% of the executable's .text code section, and translated 18,559 discrete functions across 3.9 million lines of C with zero lift errors. Furthermore, RTTI scanning recovered 807 distinct C++ classes, 895 virtual method tables (vtables), and 5,226 virtual methods.

  • Authentic Simulation Fidelity: Because the engine executes the lifted original machine code, unit movement, armor formulas, Tiberium harvesting economics, pathfinding behaviors, and enemy AI run with 100% historical accuracy.
  • Decoupled Presentation: Westwood's obsolete 1999 DirectDraw surface manipulation and exclusive-mode display routines have been completely severed and replaced with a modern Direct3D 11 swapchain.
  • Statically Linked CRT: The compiled binary links the C runtime directly, eliminating the need to install legacy Visual C++ redistributables or compatibility wrappers.

Modern Battlefield Visuals: Native 4K & Direct3D 11

The greatest payoff of static recompilation is the ability to upgrade presentation without breaking game state. tiberiansun-recomp elevates the visual experience far beyond the 640×400 and 800×600 restrictions of 1999 hardware:

Display System Original Tiberian Sun (1999) tiberiansun-recomp Implementation
Rendering API DirectDraw 5/6 Exclusive Fullscreen Modern Direct3D 11 Window / Borderless Fullscreen
Max Resolution 640×400 / 800×600 Native 720p, 1080p, 1440p, up to 4K (3840×2160)
Sidebar UI Fixed layout; glitched above 1080 lines Patched sidebar reconstruction ensuring proper scaling at 4K
Window Controls Strict exclusive display lock Freely resizable window, borderless toggle (F11), instant DPI scaling
Shader Scaling None (stretching handled by CRT) Custom shaders (F12): Sharp-bilinear, smooth, CRT scanlines, nearest
Frontend Menus Stretched or pillarboxed black bars Framed Widescreen: 640×400 menus rest on an aesthetic blur of themselves

At 4K (3840×2160), the tactical battlefield expands dramatically. Commanders can survey vast swathes of terrain, track multiple Tiberium Harvesters, and coordinate sprawling defensive perimeters across bridges and chokepoints with razor-sharp fidelity.


The Voxel Breakthrough: 2× HD Vehicle Rendering

One of the most revolutionary aspects of Westwood’s late-90s engine was its proprietary VXL (Voxel) system. Rather than drawing vehicles as flat 2D sprite sheets like Red Alert or low-polygon 3D models like Tiberian Dawn, units like the GDI Titan, Wolverine, Mammoth Mk II, and Nod Stealth Tank were rendered as 3D volumetric pixels (voxels). This allowed real-time unit tilting across jagged terrain and realistic directional lighting without polygon strain.

2× Resolution Voxel Models: tiberiansun-recomp reconstructs the voxel rasterizer using multi-pass sub-pixel sampling techniques originally developed for Red Alert 2. The recompiler draws all units, dynamic unit shadows, and voxel explosion debris at twice the original resolution (2× HD) directly from the game’s original VXL model assets, eliminating pixelated edges while preserving the iconic Westwood visual identity.


Full Campaign & Expansion Playability

Unlike early proof-of-concept recompilations that stop at title screens, tiberiansun-recomp is already fully playable end-to-end:

  • All Four Campaigns: Complete support for both the GDI and Nod single-player campaigns across both Tiberian Sun and the Firestorm expansion.
  • FMV Cinematic Playback: High-definition playback of Westwood’s famous VQA video cutscenes featuring Hollywood talent like Michael Biehn (Commander Michael McNeil) and James Earl Jones (General James Solomon), with Kane’s chilling monologues intact.
  • Full Skirmish Simulation: Skirmish battles from 640×400 up to 4K are fully operational, including Mobile Construction Vehicle (MCV) deployment, base building, Harvester pathfinding, band selection, and force-fire commands.
  • Automated Regression Suite: The engine passes a rigorous 29-case playtest test suite (playtest.py) and 8/8 boot conformance milestones, validating save/load systems, UI interactions, and mission completion triggers.

Following strict software preservation protocols, the repository distributes zero copyrighted Westwood or Electronic Arts game assets, audio files, VQA movies, or compiled binaries. The workflow runs locally on the user's workstation using their legally owned Steam copy:

  1. The installer automatically detects Python 3.10+, Capstone, PEFile, Visual Studio 2022 C++ tools, CMake, and Ninja. It locates your Steam installation of Command & Conquer: Tiberian Sun, copies the retail Game.exe, builds the function catalog, lifts 18,559 functions to C, and compiles build/ts.exe in minutes.
  2. Launch the game by double-clicking Tiberian Sun (recomp).cmd. Press F10 in-game to configure resolution, scaling, and HD voxel options.

Run the automated installer:

Setup.cmd

Clone or download the repository from GitHub:

git clone https://github.com/sp00nznet/tiberiansun-recomp.git

The Golden Era of PC Recompilation

Between redalert2-recomp, nfsu2-recompiled, and now tiberiansun-recomp, developer sp00nznet is proving that closed-source x86 Windows classics can be completely rescued from legacy API rot. By lifting machine code directly into maintainable, modern C, static recompilation ensures that landmark PC gaming masterpieces can thrive on modern displays for decades to come.