Code
Search code…
Latest commit message
Reviewed-on: #86
Primal Engine
Overview
Primal Engine is an open-source 3D game engine and editor currently under active development. The core engine is implemented as a native C++ static library. Its level editor, PrimalEditor, is a managed WPF-based C#/.NET application that communicates with the native engine through an Engine DLL in editor-enabled builds. The repository also provides native tooling (ContentTools) for asset import and processing.
The project’s full development history is documented on the Game Engine Series YouTube channel, which walks through nearly every line of code committed through June 15, 2026.
Key features
- Native C++ engine and renderer built on Direct3D 12 (using the DXC shader toolchain)
- Managed WPF editor (PrimalEditor) written in C# / .NET
- Content import and processing pipeline supporting 3D assets (FBX) and 2D textures (JPEG, PNG, TGA, TIFF, BMP, DDS, HDR)
- Engine DLL that exposes a clean native API to the editor
- Example/test native application (EngineTest)
Requirements
- Windows 10 or later
- Visual Studio 2026 with the x64 C++ and .NET/WPF workloads
- A DirectX 12-capable GPU supporting Shader Model 6.6 or higher
Dependencies
- FBX SDK 2020 (manual installation required). A typical install path looks like:
C:\Program Files\Autodesk\FBX\FBX SDK\2020.3.7 - MikkTSpace (already included with ContentTools)
- doctest (downloaded automatically when UnitTests is built)
- DirectXTex (automatically restored via vcpkg for ContentTools)
- DXC and the D3D12 Agility SDK (automatically restored via NuGet packages for EngineDLL, Engine, and EngineTest)
- EnvDTE and EnvDTE80 for Visual Studio automation (automatically restored via NuGet for PrimalEditor)
Repository layout (high level)
Engine/— Core native static library (renderer, platform layer, input, components)EngineDLL/— Thin DLL wrapper that exposes the native engine API to the editorContentTools/— Native tools for importing and processing FBX models and texturesEngineTest/— Stand-alone native application used to exercise and validate engine featuresPrimalEditor/— WPF (C# / .NET) editor and tooling front-end
Quick start
- Clone the repository:
git clone https://github.com/TheGameEngineers/Primal.git - Open
Primal.slnxin Visual Studio 2026. - Restore NuGet packages and vcpkg ports (Visual Studio normally does this automatically).
- Install the FBX SDK and, if necessary, update the include/library paths in
ContentTools.vcxprojandFbxImporter.cppto match your installation location. - Choose a solution configuration:
- DebugEditor / ReleaseEditor — builds with editor support
- Debug / Release — pure runtime / test builds
- Build the solution for the x64 platform. Building a DebugEditor or ReleaseEditor configuration also produces the PrimalEditor binaries under the configured
OutputPath (for example
\x64\DebugEditor).
Running the editor
- Build using the DebugEditor or ReleaseEditor configuration.
- Set
PrimalEditoras the startup project and launch it from Visual Studio (press F5), or runPrimalEditor.exefrom the resulting build-output directory.
Running EngineTest
EngineTest is a minimal game that demonstrates and validates the engine’s capabilities.
- Build with the Debug or Release configuration.
- Note: On the first build of the EngineTest project, MSBuild automatically downloads and unpacks a zip file into the
\Primal\x64\folder. These files contain the binary assets (models and textures) required by the test scene.
- Note: On the first build of the EngineTest project, MSBuild automatically downloads and unpacks a zip file into the
- Set
EngineTestas the startup project and run it from Visual Studio (press F5), or runEngineTest.exefrom the build-output directory.- Use WASD to move the camera and the mouse (while holding the left button) to look around.
- Alt-Enter toggles fullscreen mode.
- Esc exits the application.
Reporting issues
Please file bugs on the project’s GitHub Issues page.
License
This repository is released under the MIT License.
All third-party licenses are included in the Licenses folder of the repository.
Troubleshooting & help
- Join the Discord server for questions and community support.
- Report bugs via GitHub Issues.
- Watch the Game Engine Series YouTube channel for a complete development history and detailed code walkthroughs (through June 15, 2026).