Nevin
Menu
Back to Project Log
[In Progress]

Mantis Engine

A bindless Vulkan 1.3 PBR renderer built from scratch, still in development.

Project Overview

Mantis is my current project: a Vulkan 1.3 renderer built from scratch. It loads glTF 2.0 scenes and draws them. It’s being rewritten from scratch for the second time, so I can put what I learned building BEngine into it.

Key Features

  • GameObjects and components: A Scene owns its GameObjects through unique_ptr, so parent and child links stay raw. Components are owned in a vector of unique_ptr and an unordered_map from std::type_index to the component gives an O(1) lookup by type.

  • Data-oriented scene graph: Transforms and components sit in contiguous arrays, which keeps traversal cache-friendly during animation and culling.

  • Command bindings: Keys and mouse buttons are bound to commands, so rebinding a control needs no code change. A std::variant holds either one, so a single binding list covers both.

  • Swappable camera: Cameras are swappable components, and the primary one moves Unreal Engine style, with damping.

  • LOD generation: LODs are built with meshoptimizer, starting from the source mesh and halving the index count each step.

  • 3D debug lines: Lines are collected per frame into a triple-buffered storage buffer and drawn in one call, with helpers for boxes and camera frustums.

SYS_SPECS

Language:
C++23, Slang
Technology:
Vulkan 1.3, SDL3, ImGui, CMake
Platforms:
Windows