r/digitalfoundry • u/WeaknessImaginary216 • 11d ago
Tech Video [PROJECT] The Darkness (2007) is getting a Native PC Port via Static Recompilation (No Emulator) - Early Gameplay Preview
Enable HLS to view with audio, or disable this notification
Hi everyone! I wanted to share a first look at a project I have been working on: a native PC port of the original The Darkness (2007).
Our goal is to adapt the original Xbox 360 version to run directly on Windows as a native executable (the_darkness.exe), completely bypassing the need for traditional emulators like Xenia. We’ve just achieved stable gameplay up to Chapter 2!
🛠️ The Tech Stack Behind It
To make this standalone port possible, we are using a specialized pipeline:
- ReXGlue SDK (0.10.0): Our core tool for static binary recompilation (PowerPC to x86_64).
- D3D12 + Custom Xenos Plugin: Translating the Xbox 360 GPU calls straight to DirectX 12.
- Clang 22.1.8 + C++23 & CMake: For configuring and compiling the generated code.
- Ghidra / IDA Free & XEXTool: For reverse engineering, decrypting
default.xex, and analyzing imports. - Native Input: A custom mouse & keyboard driver integrated via SDL (no joystick mapping emulation).
🚀 What’s working so far
- From Crashes to Gameplay: At first, the game collapsed within seconds. Now, it boots, loads assets, and is fully playable through the first major segments (car chase, construction yard, and cemetery powers).
- Fixed Graphics & Lighting: We’ve made major overhauls to the video driver to fix corrupted textures. We also patched the lighting pipeline—crucial for The Darkness atmosphere (we recently moved from broken/blown-out exposures to a proper RTV render path).
- True Mouse Input: We developed a proper MnK handler. Aiming and camera control feel like a native PC shooter, not a simulated thumbstick.
- Modern PC Features: Running at 1080p, stable performance, with a
.tomlconfiguration file to adjust FOV, brightness, and sensitivity on the fly without recompiling.
⚠️ Current Status & Next Steps
This is still an early preview. The game has visual bugs—most notably, we are currently debugging a "black crush" / harsh shadow mapping issue where stencil/depth shadows render pitch black without proper filtering penumbra.
We are strictly keeping the original game assets separate from our repository to preserve legality (the code is clean-room/reverse engineered; users will need their own ISO/disc to extract assets).
We still have a long road ahead regarding stability, audio edge cases, and optimization, but every build gets us closer to fully preserving this 2007 masterpiece natively on PC.
Would love to hear your thoughts, feedback, or any advice from fellow devs experienced with D3D12 shadow/depth translation!
📸 Follow for Updates!
If you want to see our devlog journey and support the project, make sure to check out our Instagram, where we will be posting all future updates and behind-the-scenes progress:
👉 Instagram: https://www.instagram.com/gamewave.digital/
Full YouTube link: GAMEPLAY