Three labs built on the reusable Kinetra core library: Demo, a reference for its physics, navigation and steering; Dotio, a survival game with an AI experiment; and i4sim, a factory simulation. The bundled launcher kinetra starts each of them. Engine implementation stays in Kinetra.
- The labs
- Quick start
- Applications
- Visual overview
- Kinetra development workflow
- Tests and resources
- Architecture documentation
- License
Documentation index · Agent rules
Directory guides: docs, external, labs, launcher.
The video can be older than the code; the clips below are refreshed whenever what they show changes (media guide). The launcher's menu and the overlays every lab shares, the settings panel, the debug menu and the agent inspector, are shown in Kinetra's README.
Demo and i4sim start in Debug Mode with their default layers on: VECTORS and PATHS in Demo, every layer but HEATMAP and CONTACT SHAPES in i4sim; Dotio keeps debug opt-in. Shift+Ctrl opens the debug menu in every lab and switches Debug Mode on: layers, zoom, pause, single tick and speed, and the values each simulation runs with change while it runs. The settings panel returns to the lab's own choice, in Debug Mode or not: SCENARIOS in Demo and DIFFICULTY in Dotio go back to the launcher's page for them, BLUEPRINTS in i4sim to its loadscreen, and each of those pages has a LAUNCHER button.
The reference for Kinetra's mechanisms: physics and contacts, A* navigation, steering and reciprocal avoidance, in eleven scenarios that the launcher offers when DEMO is chosen. In Terrain a player walks a streamed, seeded world among a crowd of agents that wander around their homes, by steering or by planned routes, and a click sends the player along a planned route. The debug menu tunes the agents' motion and wander while they run. Demo guide
| Normal view | Debug view |
|---|---|
![]() |
![]() |
The other scenarios each show one mechanism, from its start, in Debug Mode. From Maze on they are showcases: their agents repeat their motion on their own, as i4sim's showcase scenes do, and a click still commands a selected agent.
A survival game and AI experiment: the player walks a seeded, endless maze and shoots at enemies that wander, pursue, attack, run for shelter to reload and turn kamikaze, decided by a small state machine with fuzzy rules. The launcher asks for Easy, Medium or Hard; the debug menu tunes the enemies' balance and spawning while the game runs. Dotio guide
| Normal view | Debug view |
|---|---|
![]() |
![]() |
A local factory simulation: movers carry products between the stations of a floor read from a JSON blueprint, under motion profiles, path planners and traffic policies that can be switched while the factory runs. Its loadscreen lists the floors and a SHOWCASE page of small scenes that each show one policy at work. i4sim guide, architecture
The 4320x2400 floor, 29 movers and 18 producers, under the Reciprocal profile:
| Normal view | Debug view |
|---|---|
![]() |
![]() |
The showcase scenes, each one full cycle in Debug Mode at 200 ticks per second:
The capture tool renders every clip and screenshot, the tour and its thumbnail, and the GIFs of the launcher and the overlays in Kinetra's README.
Try it on Windows without building: download Kinetra-Lab-windows-x64.zip (built from the latest main), unzip it and start kinetra.exe. It needs Windows 10 or later with an OpenGL 3.3 driver and nothing else; the i4sim blueprints are included. Fixed versions are on the releases page; how the zip is made is in the release tool.
Build from source. Requires a C++20 compiler, CMake 3.16+ and a build tool, SDL2 and OpenGL development files with an OpenGL 3.3 context, and the header-only nlohmann JSON package 3.11+ (i4sim needs it in every build, headless included). The CMake presets also need CMake 3.25+, Ninja and ccache. Linux users build from source. Windows builds use a MinGW-w64 cross compiler from WSL or Linux, or a native MSYS2 shell (Windows). Install the dependencies for your distribution. Ubuntu 24.04 LTS is the Linux CI environment.
| Family | Command | Notes |
|---|---|---|
| Arch, Artix | sudo pacman -S --needed base-devel cmake ninja ccache clang sdl2-compat libglvnd mesa nlohmann-json |
Local installation example with SDL2 provided by sdl2-compat |
| Debian, Ubuntu | sudo apt update && sudo apt install build-essential cmake ninja-build ccache libsdl2-dev libgl-dev libegl-dev libgl1-mesa-dri libegl-mesa0 nlohmann-json3-dev |
The CI environment uses Ubuntu 24.04 LTS with GCC 13, glibc 2.39 and CMake 3.28 |
| Fedora | sudo dnf install gcc-c++ cmake ninja-build ccache SDL2-devel mesa-libGL-devel mesa-libEGL-devel mesa-dri-drivers json-devel |
Package names may vary by Fedora release |
Every test, the golden fingerprints included, passes with the same recorded values on each tested Linux; on Windows five trajectory fingerprints are still excluded (Windows tests).
Repository layout (every module follows the directory layout):
Kinetra-Lab/
├── docs/ # architecture pages, design documents, media
├── launcher/ # bundled launcher executable kinetra
├── labs/
│ ├── demo/ # each module: include/<name>/, src/, tests/
│ ├── dotio/
│ ├── i4sim/
│ └── shared/ # shared Lab policy and test helpers (kinetra_lab/)
├── tools/capture/ # media capture tool
└── external/
└── Kinetra/ # engine submodule
The build uses the Git submodule at external/Kinetra. Clone with its sources:
git clone --recurse-submodules https://github.com/SMB-M87/Kinetra-Lab.git
cd Kinetra-LabIf you cloned without --recurse-submodules, external/Kinetra is an empty directory. Load the submodule from Kinetra-Lab before configuring:
git submodule update --init --recursive
ls external/Kinetra/CMakeLists.txt # must existWhile the directory is empty, git -C external/Kinetra ... acts on the Lab repository itself, not the engine; initialize the submodule first. The submodule URL is HTTPS, so no SSH key is needed. A clone made while .gitmodules still had an SSH URL picks up the HTTPS URL with git submodule sync --recursive.
If an earlier configure failed, remove build/ before rebuilding. No separate Kinetra installation or build is needed.
A Claude Code cloud session does this setup itself: when it starts, .claude/settings.json runs tools/cloud_setup.sh, which loads the submodule when it is empty and installs the Debian and Ubuntu packages above and CI's clang-format version (Kinetra's tools). Its permission rules let a session attach Kinetra with push access and post an agent review without a prompt, so a review of a change across both repositories reaches both (review access).
Run from Kinetra-Lab:
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build --parallel
ctest --test-dir build --output-on-failure
./build/kinetra
./build/kinetra --variant demo --agents 12 --frames 120
./build/kinetra --scenario maze
./build/kinetra --variant dotio --difficulty medium --frames 120
./build/kinetra_demo --frames 120
./build/kinetra_dotio --difficulty medium --frames 120
./build/kinetra_i4simRun cmake --workflow --preset dev for a local Debug build and test run. For pull requests, the linux CI job uses Ubuntu 24.04 LTS to check formatting and docs and run the headless and ci presets. The ci preset includes graphics and smoke tests with software OpenGL and treats engine and warning-free Lab module warnings as errors. The required checks status follows the Linux build or the lighter documentation check when changes can prove that build inputs are unaffected. A separate job builds and tests on native Windows. CI · Verification in Lab · Windows CI · Presets
./build.sh builds and tests both Kinetra and Lab. When the MinGW-w64 cross compiler, Ninja and ccache are installed, it also builds the Windows executables in build-windows/ without running their tests (Windows); otherwise it says it skipped them. It can be invoked from any working directory and refreshes generated CMake configuration when the checkout has moved. Build outputs are local artifacts; do not copy them between machines.
In every application, Ctrl or the SETTINGS button opens the shared settings panel (statistics, Debug Mode, frame times and limit, controls, the lab's Scenarios, Difficulty or Blueprints, and Exit) and pauses the run. The full controls are in the Demo, Dotio and i4sim guides.
See the Labs overview for application sources and headless test commands.
| Directory | Targets | Purpose |
|---|---|---|
| launcher | kinetra |
Menu, registration and application switching |
| labs/demo | kinetra_demo, kinetra_demo_presentation, kinetra_demo_logic |
Terrain, navigation and physics reference |
| labs/i4sim | kinetra_i4sim, kinetra_i4sim_logic, kinetra_i4sim_presentation |
Local factory simulation and original JSON blueprints |
| labs/dotio | kinetra_dotio, kinetra_dotio_presentation, kinetra_dotio_logic |
Survival game and AI experiment |
Arrows show which layer consumes another; application rules stay in Lab. The i4sim presentation also uses Kinetra::Launcher directly, for its blueprint screen.
flowchart TD
Launcher["Bundled launcher"] --> Demo["Demo presentation"]
Launcher --> Dotio["Dotio presentation"]
Launcher --> Factory["i4sim presentation"]
Launcher --> Host["Kinetra::Launcher"]
Factory --> Host
Demo --> DemoLogic["Demo application"]
Dotio --> DotioLogic["Dotio logic"]
Factory --> FactoryLogic["i4sim simulation"]
DemoLogic --> Simulation["Kinetra::Simulation"]
DotioLogic --> Simulation
FactoryLogic --> Simulation
Demo --> Runtime["Kinetra::Runtime"]
Dotio --> Runtime
Factory --> Runtime
Host --> Runtime
Lab records one exact Kinetra commit in the external/Kinetra submodule. An engine change is committed and pushed in Kinetra on its own branch first, then Lab commits the new pointer; External dependencies has the steps and commands.
BUILD_TESTING defaults to ON. KINETRA_TEST_GRAPHICS=ON adds presentation and launcher integration tests requiring a real OpenGL context, and a smoke run of every graphical executable: kinetra_smoke:<name> starts it with --frames 120 and passes when it exits with 0 (launcher, launcher-demo, launcher-dotio, launcher-i4sim, launcher-seed, demo, dotio, i4sim, i4sim-run). CTest labels them graphics. The graphics and ci presets turn it on and run CTest with SDL offscreen and software Mesa, so CI runs them on every pull request:
cmake --workflow --preset graphics # build-graphics/: everything, including graphics tests and smoke runs cmake --workflow --preset headless # build-headless/: logic and its tests, no SDL2/OpenGL ctest --preset graphics -R '^kinetra_smoke:' # only the smoke runs
Offscreen support depends on SDL/Mesa; alternatively use a desktop or Xvfb. Software rendering does not establish desktop feel or performance.
The headless preset builds with KINETRA_LAB_BUILD_RUNTIME=OFF, which omits the launcher and graphical executables. The dev and release test presets skip the graphics label.
CTest names doctest cases <suite>:<case>. Use -R to select a suite or a single case and -LE soak to skip the Demo crowd, long Dotio behavior and i4sim contact runs.
ctest --preset release -R '^kinetra_dotio:'
ctest --preset release -LE soakThe test sections of Demo and Dotio and the i4sim test guide list each suite; the launcher's are in its module guide.
i4sim blueprints are copied next to each executable that opens them; see i4sim usage. Shaders, bitmap text, terrain and drawing data are embedded or generated in code.
The documentation index links system dependencies, application ownership and session/overlay interactions. Usage and controls live alongside each lab.
Changes follow the shared development workflow: the implementing session plans the affected scenarios, adds and runs regression tests, and reviews the final diff before pushing. Code changes have a design document. Each change is verified at the level its impact requires. AGENTS.md holds the Lab-specific rules; the roadmap lists the planned work in order of priority.
MIT; see LICENSE. Dotio attribution and port limits are documented in its provenance.





















