Skip to content
Projets

À propos

Moteur de jeu avancé open source en C++ avec rendu Vulkan multithread

Jeux et émulation

Comment ces chiffres sont mesurés

Progression mesurée des étoiles

in 24h
+1
in 7 days
+3
in 15 days
+3
in 1 month
Historique en cours

Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.

README.md

Original

Lumina Game Engine

A modern, high-performance game engine built with Vulkan

License Platform C++ Vulkan Discord

Website • Discord • Documentation • Showcase • Support


A Corvette C7 in a studio, rendered in Lumina

Corvette C7 model by Martin Trafas, CC BY 4.0.



Join the community on Discord


Contents


Overview

Lumina is a modern C++ game engine built from the ground up with Vulkan. It is designed for learning and experimentation with real-world engine architecture, demonstrating professional design patterns including a reflection system, an ECS-based gameplay layer, and modern rendering techniques.

[!NOTE] For more detailed information, go to: https://luminagameengine.com

It is well suited for:

  • Learning modern game engine architecture
  • Experimenting with Vulkan rendering techniques
  • Building prototypes on a clean, modular codebase
  • Understanding how engines such as Unreal and Godot work internally

Contributions are recognized in several ways, including Steam keys for popular games and public acknowledgment in the Discord community. Lumina improves through the work of motivated contributors who help push the engine forward.

[!CAUTION] Lumina is an educational project under active development. APIs may change, and some features are experimental. If you encounter build issues, please reach out on Discord for assistance.

[!NOTE]

AI Usage

AI has been used selectively for tasks such as static analysis, research, build tooling, and scripting assistance.

The engine itself has been hand-crafted over the course of three years as a passion project. AI is treated as a tool where it provides value, nothing more, nothing less.


Showcase

The renders below are 3840×2160 captures straight out of the engine, with no offline rendering or paint-over.

Rendering

A streamed procedural forest under volumetric clouds The same forest at sunset
The Corvette from above the nose The Corvette from the rear quarter
Clearcoat paint with metallic flakes and a Fresnel color flop Shadowed studio spots and emissive softboxes in a parallax-corrected reflection probe

Materials

Eight material exhibits on plinths

Extended material lobes in one scene: haze, thin film, anisotropy, fuzz, subsurface, clearcoat and layered surfaces

Under the hood

The meshlet debug view of the forest

The meshlet debug view, where every color is one cluster in the GPU-driven visibility buffer

Editor

The world editor with the scene graph and details panel
The material graph editor The animation graph editor

In motion

An orbit around the Corvette A flight through the forest

Features

Rendering

  • Bindless Vulkan 1.4 renderer with its own loader and GPU memory allocator
  • GPU-driven visibility buffer over meshlet LOD hierarchies, with two-phase occlusion culling, mesh shaders where the GPU has them and a vertex path where it does not
  • Deferred materials and lighting over a clustered light grid
  • PBR materials authored in a node graph compiled to Slang
  • Virtual shadow maps, GTAO, screen-space reflections, distance-field AO, a physically based sky with volumetric clouds, and TAA or SMAA anti-aliasing

Architecture

  • In-house sparse-set Entity Component System with per-type storage layouts, typed views, and lifecycle signals
  • Reflection system driving automatic serialization and editor integration
  • Modular design with clean separation of concerns

Editor

  • ImGui-based editor with real-time scene manipulation
  • Scene hierarchy for entity management
  • Component inspector with UI generated automatically via reflection

Performance

  • Work-stealing fork-join job system built on C++20 coroutines
  • Custom memory allocators built on RPMalloc
  • Built-in profiling through Tracy integration

C# Scripting

  • C# scripting via LuminaSharp, a CoreCLR host that bundles the .NET 10 runtime
  • EntityScript-based gameplay with full ECS access: Registry.View queries, C# entity systems, and component reads and writes
  • Reflection-driven C++ to C# bindings generated automatically by the Reflector
  • Hot-reloadable scripts for iterating on gameplay without recompiling
  • High-level gameplay APIs through the World facade, including physics, navigation, input, networking, the message bus, and gameplay tags

Documentation

Getting Started


Getting Started

Requirements

Every platform needs a GPU with a Vulkan 1.4 driver. Mesh shaders (VK_EXT_mesh_shader) are used when the GPU has them; without them the same meshlets draw through the vertex path, so older cards such as the GTX 10-series run too. -nomeshshaders forces that path on hardware that has them.

That GPU also needs about 3 GB of graphics memory (2816 MiB), 6 GB or more recommended. The renderer reserves well over a gigabyte before any content loads (render targets, shadow maps, and a 1 GB streaming texture pool by default), and a card under the minimum does not degrade gracefully, it renders corrupt frames and eventually loses the device. The check runs at device selection and names the shortfall, and a card under 6 GB starts with a warning in the log. Mostly 2 GB laptop chips, such as the GeForce MX550 and MX570, land under the line.

-ignoreminspec runs anyway, unsupported. -minvram=N sets a different threshold, which is how to see the rejection dialog on hardware that passes.

Windows

  • Windows 10 (1803 or newer) or Windows 11, 64-bit
  • Visual Studio 2026 (18.0 or newer) with the "Desktop development with C++" and ".NET desktop development" workloads
  • .NET 10 SDK (x64)

[!IMPORTANT] The engine's C# layer (LuminaSharp) targets net10.0. Only Visual Studio 18.0+ (2026) can build that target, VS 2022 (17.x) fails with error NETSDK1209 even if you install the standalone .NET 10 SDK, because VS uses its own bundled MSBuild. Setup.bat validates this for you and stops with a clear message if anything is missing.

Linux

  • A 64-bit distribution

  • GCC 16 or newer. Memory/Construct.h uses __is_trivially_destructible, a builtin GCC only grew in 16, so g++-13 and g++-15 reject the tree outright. The toolchain also drives Clang when CXX points at it, but GCC is the compiler the tree is built and tested with.

  • .NET 10 SDK

  • X11 development packages, which GLFW links directly

  • A Vulkan loader and driver at run time. These are not needed to compile: the Vulkan headers are vendored and the engine's own loader opens the Vulkan library at startup, so a machine with no driver builds a working editor it cannot launch.

    On Debian or Ubuntu:

    # build
    sudo apt-get install -y g++-16 pkg-config libx11-dev libxrandr-dev \
        libxinerama-dev libxcursor-dev libxi-dev libxkbcommon-dev
    # run
    sudo apt-get install -y libvulkan1 mesa-vulkan-drivers vulkan-tools
    # .NET 10 SDK: https://dotnet.microsoft.com/download/dotnet/10.0
    

    Setup.sh checks all of this and tells you what is missing.

[!NOTE] No IDE is required. On Windows, JetBrains Rider and Visual Studio both open the generated solution. On every platform project generation also writes compile_commands.json at the repository root, which CLion and any clangd-based editor read for C++. On Linux there is no solution, and Rider opens the engine's C# projects.

Installation (Windows)

  1. Clone the repository

    git clone https://github.com/mrdrelliot/luminaengine
    cd LuminaEngine
    
  2. Run setup

    Setup.bat
    

    It checks the prerequisites above, downloads one prebuilt dependency bundle (External-Win64-r2.zip, ~165 MB), verifies it against a SHA-256 hash pinned in this repo, configures git hooks, registers the .lproject file type, generates Lumina.slnx, and opens it (pass -no-open to skip that).

    The bundle contains the .NET 10 runtime (C# scripting), LLVM/Clang 23 (reflection codegen), the Slang shader compiler, RenderDoc, and Tracy. Each is open source; DEPENDENCIES.md lists every component with its version, purpose, upstream source, and license, and explains how to fetch them yourself instead of using the bundle.

    To skip the prompt for unattended/CI runs, pass -Yes (or set LUMINA_SETUP_YES=1). If the download fails, manually download External-Win64-r2.zip, extract it into the LuminaEngine/ folder, then run GenerateProjectFiles.bat.

  3. Open the solution

    Open Lumina.slnx in Visual Studio or Rider.

  4. Build and run

    • Lumina is the startup project.
    • Pick a configuration: Development Editor for everyday work, Debug Editor for full debugger functionality at the cost of speed, or Development Game for the runtime without the editor.
    • Press F5, or use Build -> Run.

    Without an IDE, LuminaBuild.bat Build Lumina -TargetType=Editor builds the editor and LuminaBuild.bat Run Lumina -TargetType=Editor launches it, the same as the Linux steps below.

  5. Start developing

    Create a project from the editor, or copy Templates/Blank/ by hand and run its GenerateProject.bat to produce a solution.

Installation (Linux)

Every script below has a .bat counterpart of the same name on Windows, and takes the same arguments.

  1. Clone the repository

    git clone https://github.com/mrdrelliot/luminaengine
    cd LuminaEngine
    
  2. Run setup

    ./Setup.sh
    

    It checks the prerequisites above, downloads one prebuilt dependency bundle (External-Linux64-r2.tar.gz, ~196 MB), verifies it against a SHA-256 hash pinned in this repo, and configures git hooks.

    The bundle contains the .NET 10 runtime (C# scripting), LLVM/Clang 23 (reflection codegen), the Slang shader compiler, RenderDoc, and Tracy. Each is open source; DEPENDENCIES.md lists every component with its version, purpose, upstream source, and license, and explains how to fetch them yourself instead of using the bundle.

    To skip the prompts for unattended/CI runs, pass -Yes (or set LUMINA_SETUP_YES=1); an unattended run never edits your shell profile. If the download fails, fetch External-Linux64-r2.tar.gz by hand and extract it into the LuminaEngine/ folder.

  3. Build

    ./LuminaBuild.sh Build Lumina -TargetType=Editor
    

    The Reflector is a prerequisite of that target and builds itself first, so this is the only command you need. Add -Configuration=Debug for full debugger fidelity at the cost of speed, or -TargetType=Game for the runtime without the editor.

  4. Run

    ./LuminaBuild.sh Run Lumina -TargetType=Editor
    

    Run locates the binary through the same rules the build used, so it always launches the configuration you name rather than whatever was built last. It takes the same -TargetType and -Configuration flags as Build, and anything after a bare -- is forwarded to the editor untouched. The executable itself is at Binaries/Linux64/Lumina-Editor-Development if you would rather launch it directly; it finds the engine relative to itself, so it does not care what directory you run it from.

  5. Set up code completion

    ./GenerateProjectFiles.sh
    

    This writes compile_commands.json at the repository root. No solution is generated on Linux, because nothing here can open one. Point your editor at the repository root and it will pick the database up:

    • clangd (and the VS Code clangd extension) finds it with no configuration.
    • CLion: open the folder and select the compile database when prompted.

    Rider is the tool for the engine's C# projects (LuminaBuildTool, LuminaSharp) rather than for the compile database.

    Re-run it after adding or removing modules, plugins or sources. Ordinary source files are discovered at build time, and a build that changes a Build.cs refreshes the database on its own.

  6. Start developing

    Create a project from the editor, or copy Templates/Blank/ by hand and run its GenerateProject.sh. Every generated project ships both GenerateProject.bat and GenerateProject.sh, so a project created on one platform still works on the other.

Build Configuration

Optional engine features are controlled from a single file, Engine/Build/BuildConfiguration.json. Each feature is "auto", "on" (force into every configuration) or "off" (strip from every configuration). Every build reads the file, so a change takes effect on the next build without regenerating anything.

Feature What it controls "auto" default
Tracy Tracy CPU/GPU profiler (LUMINA_PROFILE_*) Debug + Development; off in Shipping
GpuProfiling GPU timing query pools and their readback Debug + Development; off in Shipping
RmlUiProfiling RmlUi's own Tracy zones, one per element, property and text run off; needs Tracy
Validation Vulkan validation + sync layers Debug only
GpuValidation GPU-assisted validation inside every shader off everywhere; --gpuvalidation toggles at runtime
Aftermath NVIDIA Nsight Aftermath GPU crash dumps NVIDIA hosts, Debug + Development
RadeonGpuDetective AMD object naming and fault reporting for .rgd dumps AMD hosts, Debug + Development
VerboseLogging LOG_TRACE / LOG_DEBUG / LOG_INFO macros Debug + Development; off in Shipping
BugSplat Crash and minidump upload to the engine's database Editor targets on Windows only
Box3DDebugChecks Box3D's own asserts and internal validation Debug only
DevUI The in-game ImGui overlay and console Editor, and Game outside Shipping
HotPatch Patchable images for runtime code reloading Debug + Development; off in Shipping
ForceInlineHint Whether LUMINA_FORCEINLINE_HINT forces inlining Forced except in Debug; "off" leaves it to the optimizer
DebugAllocator A slow checking allocator in place of rpmalloc, for heap corruption off

"off" is a true strip: e.g. Tracy = "off" drops the Tracy library from the build entirely and turns every profiling macro into a no-op, and VerboseLogging = "off" removes LOG_TRACE/DEBUG/INFO (warnings and errors are always kept). Aftermath and RadeonGpuDetective auto-enable only when the machine running the build has that vendor's GPU.

For a one-off build (e.g. a profiling-free package) you can override any feature on the command line without editing the file, the flag wins:

LuminaBuild.bat Build Lumina -TargetType=Editor -Tracy=off -Validation=on -VerboseLogging=off

The same flags work with ./LuminaBuild.sh on Linux.

Troubleshooting

Linux

[!TIP]

  • "Vulkan Device Unsuitable: No GPU meeting the renderer's requirements was found"? The log names each GPU it rejected and why. If the reason is a missing Vulkan feature or below the ... MiB minimum for every device, the hardware is below the floor in Requirements. A GPU missing from the list entirely either reports a Vulkan version older than 1.4 or is not seen by the Vulkan loader; check vulkaninfo --summary and compare.
  • Hybrid-graphics laptop starting on the wrong GPU? The device is chosen at startup and the discrete one is preferred when it enumerates at all. If it does not appear in vulkaninfo --summary, the proprietary driver is not loaded, and no engine setting can work around that.
  • error: the .NET SDK is required, but you installed it? dotnet-install.sh puts it in $HOME/.dotnet and persists nothing. The scripts here look there anyway, but your own shell will not until you add it to PATH.
  • The build uses fewer cores than the machine has? Deliberate: parallelism is capped to fit available memory, and the reason is logged. Override with -MaxParallel=<n>.
  • Link failure on stdc++_libbacktrace or stdc++exp? The archive behind std::stacktrace was renamed in GCC 14 and the toolchain probes for whichever one your compiler ships. If it fails anyway, the compiler is probably not the one you think it is; check CXX.
  • A build failure inside External/ or ThirdParty/? Usually a compiler newer than the tree has been built with. There is no older fallback to pin to at the moment: GCC 16 is both the floor and the newest tested version.

Windows

[!TIP]

  • error NETSDK1209 / "does not support targeting .NET 10.0"? Your Visual Studio is older than 18.0 (2026). Install VS 2026, the standalone .NET 10 SDK alone will not fix this, because VS builds with its own bundled MSBuild. Run Setup.bat (or BuildScripts\CheckPrerequisites.ps1) to verify.
  • "Application control policy blocked this file"? Disable Windows 11 Smart App Control.
  • "C# scripting disabled: bundled .NET runtime not found"? External/ is missing or incomplete. Run Setup.bat again, or Setup.bat -Force to download the bundle afresh.

Still failing on either platform? Submit an issue or reach out on Discord.

[!NOTE] No environment variable is needed. Every engine checkout records itself the first time any LuminaBuild command runs there, and a project can name its engine with Switch Engine (right-click the .lproject, or LuminaBuild SwitchEngine <file>). A project that names none uses whichever engine opens it.

[!NOTE] After pulling or merging, just build. A build regenerates the solution and compile database by itself when a pull changed any build rules. Run GenerateProjectFiles.bat (or ./GenerateProjectFiles.sh) by hand only after adding or removing modules, plugins or source files.


Contributing

See CONTRIBUTING.md for the complete guidelines.

Contributions are welcome, whether they are bug fixes, features, or documentation improvements.

Workflow

  1. Fork the repository.
  2. Create a feature branch: git checkout -b feature/amazing-feature.
  3. Make your changes following the coding standards.
  4. Add tests where applicable.
  5. Commit with clear messages: git commit -m "Add amazing feature".
  6. Push to your branch: git push origin feature/amazing-feature.
  7. Open a pull request.

Requirements

  • Clean, self-documenting code
  • Adherence to existing architecture patterns
  • Tests where appropriate
  • Updated documentation as needed

Support

Lumina is a passion project built and maintained in the open. If you find it useful, support Lumina on Patreon. Your support helps sustain work on the engine, documentation, and future releases.

You can also help by contributing code or documentation, reporting bugs or sharing ideas, and telling other developers about Lumina. Every form of support helps the project grow. Thank you for being part of it.


Third-Party Dependencies

Listed alphabetically.

Library Purpose
basis_universal GPU texture compression with runtime transcoding to BC7/ETC/ASTC
Box3D Multi-threaded rigid body physics with a stateless capsule character mover
BugSplat Crash and minidump upload to the engine's crash database
cgltf glTF 2.0 parser behind the mesh and material importers
DPDK Source of the vectorized memcpy in Engine/Source/Runtime/Source/Memory/Memcpy.h; vendored for its license only
ENet Reliable UDP transport behind the networking plugin
FreeType Font rasterization for RmlUi, MSDFGen, and editor text
GLFW Multi-platform window and input library for OpenGL and Vulkan
GoogleTest C++ testing framework with assertions, fixtures, and test discovery
ImGui Immediate-mode GUI for rapid tool development
MeshOptimizer Mesh optimization for vertex cache, overdraw, and buffer compression
MikkTSpace Reference tangent-space generation for imported meshes
Miniz Deflate compression for package and pak archive serialization
MSDFGen Multi-channel signed distance fields for crisp world-space text
.NET Runtime CoreCLR (.NET 10) bundled as the host for C# (LuminaSharp) scripting
NVIDIA Aftermath GPU crash debugging and post-mortem dump analysis
NVIDIA DLSS Upscaling behind the DLSS plugin
NVIDIA Nsight Perf GPU counter collection behind the hardware profiler plugin
Recast & Detour Navigation mesh generation and pathfinding
RenderDoc Graphics debugger integration for frame capture and analysis
RmlUi Retained HTML/CSS-style UI for game interfaces
RPMalloc Lock-free, thread-caching memory allocator
Slang Modern shader language and compiler with SPIR-V / HLSL output
stb_image Single-header image loading library
TinyObjLoader Lightweight OBJ parser with MTL material support
Tracy Real-time frame profiler with sampling, GPU zones, and lock contention tracking
ufbx FBX loader for geometry, skeletons, and animation
Vulkan Low-level graphics API providing explicit GPU control
zstd Compression for packages and terrain tiles

Acknowledgments

Lumina is inspired by and learns from these open-source engines:

Thanks to the game engine development community for sharing knowledge and resources.

The showcase scenes use the Chevrolet Corvette (C7) by Martin Trafas, licensed CC BY 4.0, and CC0 trees and plants by Quaternius.


License

Lumina is licensed under the Apache 2.0 License.

Copyright 2024 Dr. Elliot

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Connect

Lumina on Discord

Questions, build help, devlogs and engine talk all happen on Discord.
Join the Lumina community to share what you are building and follow along as the engine grows.

Explorer des projets similaires

Chargement…