Panos Karabelas

Spartan Engine

A bindless, GPU-driven renderer with real-time path-traced global illumination, hardware ray tracing, and a vehicle simulation running at 200 Hz.

Path-traced lighting on a LaFerrari in Spartan Engine

Live in your browser

The engine, compiled to WebAssembly and rendering a photoscanned head on your GPU through WebGPU.

Close-up of a photoscanned head rendered in Spartan Engine

About 60 MB on first load Open full window

3.1k GitHub stars
600+ Engineers on Discord
272 Forks
Free Until your game earns $1M

The GPU owns the data

Every resource — geometry, materials, textures, lights, transforms, bounding volumes — lives in persistent, globally accessible buffers. Real-time over baked, dynamic over static, modern over safe.

Inside

Architecture

  • Bindless, zero-binding draw path
  • GPU meshlet culling, one indirect draw per pass

Lighting

  • ReSTIR path-traced global illumination
  • Ray-traced reflections and shadows

Image

  • TAAU, XeSS 3 and dynamic resolution
  • Physical camera, lumens and kelvin

Beyond rendering

  • Pacejka tyre model, PhysX physics
  • Lua 5.4 scripting, built-in profiler

A wide range of worlds ships with the engine

From a 30 km island, Sponza and a car showroom to procedural liminal rooms, dreamcore spaces, road networks, weather and GPU particles — all physics-enabled and ready to explore.

Why it exists

I had to “finish” this project inside a year so I could use it as a ticket out of Greece and into a studio that would have me. To get there I worked 100-hour weeks. It worked. It also never stopped.

Twelve years later it is still the same codebase, and I have rewritten almost every system in it multiple times. Every single rewrite came out simpler than what it replaced. It is the most useful thing I have learned from building this.

It is a personal R&D engine, not a commercial product. No roadmap promises, no support queue. There is a destination that gives all of this a purpose — the plan is in the repository if you are curious.

Build it, break it, or just come and argue about it

One-click project generation, a wiki that covers the build and the Lua API, and engineers on Discord who will happily tell you what you got wrong.

Yellow-papered liminal office rooms under a fluorescent ceiling panel, rendered in Spartan Engine

Spartan Engine / Render gallery