gene

G3 N3

2026Rust · Lua · Elixir · wgpuwip

No Man's Sky world generation, Minecraft freeform building, EVE Online persistent universe. A Rust engine and headless authoritative server, an Elixir multiplayer gateway, and a sandboxed Lua mod API.

A persistent multiplayer sandbox on procedurally generated planets: walk, swim, fly and build anywhere on a spherical world, online or offline. The engine is a from-scratch Rust workspace with its own ECS and a wgpu/winit renderer; the Bevy layer it started on has been fully removed.

how it works

  • Worlds are deterministic functions of a seed. Terrain, biomes, flora, lakes, rivers and settlements derive from one analytic ground field, so blocks, render mesh, physics and water always agree, and the server never streams terrain: every client computes the identical planet.
  • Hydrology is a real watershed model: lake surfaces sit at their basin’s spill level (a min-max barrier solve over a lattice), basins are carved into the same field, and each lake’s overflow is traced downhill as a stream.
  • world-server ticks the authoritative simulation headless at 20 Hz; world-protocol (v8) is the binary wire format shared by Rust and Elixir. The gateway is an Elixir/BEAM app: one GenServer per session, Registry-based pubsub routing, command validation that rebinds identity fields so clients cannot forge them.
  • Player movement works in the local tangent frame of the sphere, so walking, aiming and the day cycle behave the same at any latitude; the sun rises by longitude, not by a global clock.
  • Mods are sandboxed Lua: items, blocks, weapons, recipes and flora register through a validated schema (168 registrations in the core mod, organized in five tech tiers), checked by the g3n3-modcheck CLI.
  • Rendering is HDR with an ACES grade, cascaded shadow maps, and headless “probes” gate visual regressions in CI: lighting, hydrology and flora each have a probe that walks the real pipeline and exits nonzero on a violation.

status

Playable in local single and multiplayer: building, sculpting, combat, swimming, gliding, day cycles, replication and world persistence all work, verified by roughly 2,400 tests plus the probe suite. Not yet public: no released binaries, and the public server is being rebuilt. Audio and character animation are unbuilt seams.