I started Crown of Ashes to explore the math and architecture behind large-scale procedural games. Building a system that seamlessly transitions from star system orbital simulations down to individual planetary landing terrains presents a massive set of challenges in coordinate precision, multi-threaded calculations, and procedural asset instantiation.
By decoupling physical universe generation laws from runtime Unreal components, the project simulates physical constants, orbital tracking, and biological genotypes deterministically based on seed values.
The codebase is split into dedicated modules to separate high-level gameplay systems from lower-level astronomical math and rendering adapters:
Computes planetary orbital coordinates in real-time using Kepler's laws of planetary motion. The system draws orbital vectors based on inclination, eccentricity, and semi-major axes, maintaining exact deterministic paths for satellites and binary planets.
To solve floating-point precision issues when exploring infinite planetary surfaces, the world director manages a 3x3 sliding grid of procedural terrain chunks centered around the player. Chunks are dynamically repositioned and refreshed as the player crosses coordinate thresholds.
Rather than using static meshes, spawned creatures dynamically adapt to local planetary constants. The Ecology Assembler scales skeletal bones (representing physical load under high gravity) and tunes animation parameters like leg placement interpolation speeds and stance widths in the Control Rig.