An open source physically-based celestial body generator, coming soon. Also a BRUTAL project, Astray: hard scifi space 4x.

Space Hats

New Member
Messages
3
Reaction score
5
Heya, first post here.

For like 10+ years, at least since I was 14 or so playing hundreds and hundreds of hours of KSP, Factorio, Rimworld, and others, getting interested in planetology, astrobiology, exoplanets, stellar evolution, orbital mechanics & trajectory optimisation, ISRU, MOE..., and so on, I've been dreaming (and making stupid little spreadsheets and design documents every few years) of making my dream automation-colony-sim-hard-scifi-space-4x-all-you-can-eat.

I’ve tried a few times over the years to make it (Kepler playgrounds in JS were my first real foray into coding after they taught us scratch (lol), N-body tests, system generator prototypes in C++ SFML, struggling with Unity & other engines…). Those attempts kinda burnt out on their own over the years. I saw BRUTAL (from the rimworld update xd), and a friend had given me a week free of claude code (which I’d never tried before now, and I gave in and coughed up the money once I ran out), and realised I could probably start making something solo and actually get somewhere interesting along the way to my possibly-unreachable insane scope.

I say “hard-scifi,” but that’s a theme and not a rule, though my current vision is that players may have to build and evolve their organization over some millenia to get past the types of things you might see in Nertea’s wonderful KSP mods, at least on default settings.

The plan is an inbuilt launcher, mod manager & instance manager (open source), and paid closed source core game (dn/ILspy my beloved), data-driven design with everything that can come from readable json content files & registries for code mods, inbuilt patching system for json (json patch standards ive looked at don't really work for this). Special relativity (FTL allowed under a preferred inertial frame model w/ enforced no-retrocausality, many distinct FTL methods), building & automation of solar-system scale economies (for a few centuries), then interstellar (for millenia more), then FTL comms and travel much, much later or when lucky/on different game settings. Colony building, terraforming, ... Support for less-4xlike, more colony or trading sim-like gameplay in some prebuilt scenarios, and so on. I want to keep it really performant by doing lots of layered abstraction and deterministic "Just-in-time presentation" of economy, government, colony, logistics, etc. systems, AI/opponent actions, and so on.

Some screenshots related to the generator and a long unedited video with some captions below that you can watch if you've got time to waste.

Given the aforementioned insane scope, you might have some doubts that anything will ever be released. I've been going full steam ahead for a few weeks, but. Well, good news, even if it doesn’t, I’m on track to make at least one contribution to the public good soon, that other people may actually be interested in, I think:

A very robust celestial generator, “All Your Worlds Generator” or AYW-generator for short (unless I change the name).

Feature highlights in generator.md.txt (too long for character limit lmao)

Because of the truly staggering amount of wonderful public work that goes into all the research behind something like the generator, I thought making it open source might be a good idea as well, so that’s the plan, especially since there seem to be few such projects of this scope that also stay lightweight (maybe spaceengine, to some extent?). The generation model has no BRUTAL dependency (main game does, if it isn't obvious.) Current plan is to share generation code under MPL 2.0, along with needed data in a repo in a few weeks (as an early version), after things get added that might break seed-continuity with future versions a bit too much and some issues are fixed, plus some additions. Will likely come with an adapter for KSP's Kopernicus (generator into cfg files as a baseline for further editing), and a KSA adapter/mod. I really want to see what these bodies look like with what KSA is doing with rendering (though I'm planning on doing some work on my own on that front, I don't think I'll be able to hold a candle to Blackrack). Imagine flying above a supercritical water-steam world, co2 ice clouds condensing out as virga just above you...

Screenshots, notes in alt text:
JupiterSome life (nitrogen outgassing rate is a bit high right now)
1792873572439.png1792873653309.pngBrown dwarf
Binary gas giantsIts pair. Gas giant with life.Panspermic life!Life origin from one of the binary pair moons. Some of the other moons got life from here as well.Lava world, evaporating but current outgassing keeps its atmosphere largeminor planetRapidly rotating minor ice worldringed small body with a moon
Longish unedited video of astray + generator. English CC has some notes.
 

Attachments

Hello, lots done in the past few weeks. Generator is nearing release, some highlights:
- a cube-sphere place map (~1,500 places) with closed-form geology: statistical plate tectonics matching Earth's plate sizes, ridge length and continental share (a weighted spherical Voronoi fitted to Bird 2003, no simulation), stagnant lids with a dichotomy and highland crust (Mars, Venus), heat pipes (Io), and convecting ice shells with chaos and cycloid lineae (Europa); surface and crust ages by place; maria and plains, volcanic fallout, young bright ice., bakes in ~85-110ms per body on demand on my i3-12100F (seperate from the environment solve; generates when looked at, not saved)
- Geologically consistent surface types & deposits. At least one mineral and deposit type for every naturally occurring industrially important element, placed by tectonic setting (arcs, ridges, rifts, cratons, passive margins, relic orogens...). Deposits have geochemically consistent side-products. Many types of deposits: magmatic, magmatic-hydrothermal, secondary surface processes, biologically made/mediated, impact melt sheets & hydrothermal systems (plus the actual impactor), vapour transport & frost (Pb and Bi on venus' highlands, Io's so2 frost, or volatile deposits on frozen worlds), a bunch more stuff (deposits not found often on earth for ice shell worlds, stagnant lids, anoxic environments, ...)
- a seasonal energy-balance model by latitude adding up to the global climate, day-night swings, ice placed where it's coldest, a latent-heat frost bank (Mars' seasonal caps), rain and runoff (Budyko-Fu), winds by cell, biomes (Köppen on the life's temperature scale, for now) with land cover adding up to life's, eyeball & lobster seas for tidally locked worlds.
- A bit of extra life modelling too (trophic levels, energy balance by primary producer energy sources, extinctions, multiple-abiogenesis, relict life surviving on waning chemical imbalances in cutoff-from-rock subsurface oceans and such)
- Dynamic ice caps, seasons, cycling climates (hazy worlds where temperature-dependant haze production leads to two climate roots, supercritical steam worlds near the simpson-nakajima limit)
- Luminosity-grid based galaxy generation w/ billions of stars (procgen on demand, nothing stored, but verified deterministic, working on verifying linux support w/ a small portable math library used where needed) in an approximate galactic potential & closed-form approximation of galactic orbits (+star populations by formation history, IMF and metallicity gradients). A whole-sky starfield for a particular spot can be baked in about 3 seconds w/ streaming (~8k brightest stars at a particular location, working on optimisation, and a tradeoff exists, 8k stars represents about the limit of the human eye, less is fine when in lit environments), panning through the galaxy map is smooth (parallel brightness queries find close-dim and far-bright stars (& soon rogue planets)). Galactic multiplicity matches observation closely, except for an overabundance of B (incomplete model of close-binary rejuvenation). Likely not part of first generator release: planning on shipping later as a package depending on the generator.
- Planet formation refactor & mock surveys (Kepler, RV, microlensing) for calibration. Used instead of relying on published corrections for observational bias. New accretion model(s) (sensitivity study on parameters identified a few that fit, most physically plausible is the default, but others are provided as options). Thermal tides for de-locking, kozai cycles, bunch of spin dynamics refinement. ~10 microseconds for a star, 90ms for a full system on average (<10ms for structure-only with no interior or environment solve)
- Custom closed form model for cold-gas-giant wind speeds (Jupiter -> Neptune have an inverse jet speed relationship with insolation), model was based on Duer-Milner et al. (2025), who found a relation for jet *direction* but not jet speed. Not a full explanatory model, just fitted to sol's giants. columns and interiors calibrated to reproduce measured spectra and Bond albedos (Karkoschka, Mayorga) (Everything but Jupiter matches closely), the ice giants' seasonal hoods and discrete clouds following the star's activity cycle, epoch features (Neptune's 1989 Great Dark Spot). A bunch of photochemistry (chromophore cloud staining (phosphorous, sulfur, ...), haze production)
- Lots of rendering stuff: four-band linear-light rendering (w/ spectral lines handled for aurorae and absorbing atmospheres),
ray-marched multiple-scattering atmospheres, hazes (fractal aggregates, ice-coated) and dust, cloud reflection from a
Monte Carlo table (forward-scattering droplets), per-material surface photometry (opposition surge, roughness, limb law)
and seas by material with shallow water showing its bottom, near-surface emitters (lava, hot spots), close binaries, x-ray binaries & cataclysmic variables (outbursts, relativistic beaming & doppler shift)
metering by visible light, aurorae, airglow, planet(/moon)shine, procedural & temporally stable zones & belts for gas giants (+seasonal storms & hazes, persistent storms), pulsar beams, roche lobe overflow & trails
- Big star and space weather pass. MIST for evolution tracks, binned TSIS-1 for the sun (spectrum model beyond blackbody for generated stars coming soon, right now just a flat UV scaling, except for some brown dwarves and white dwarves modelled with absorbers), magnetospheres for terrestrial worlds (gas giants getting a better model soon w/ auroral heating, moons & internal heat driving radiation belts instead of insolation for gas giants like those in sol)
- the greenhouse as a radiative band model with clouds (HITRAN), hazes and condensables, giving the climate's solve
- Earth against DSCOVR/EPIC's calibrated reflectances: colour, texture (power spectra, coastline fractal dimension against Natural Earth) and motion tools. Elevation & albedo maps for sol are kept for calibration only currently, the game itself will likely ship with a fully authored sol with textures included instead of the current first-principles approach.

Pretty pictures & gifs:
view ingame of EPIC over africaJupiter matched to https://assets.science.nasa.gov/content/dam/science/psd/photojournal/pia/pia02/pia02873/PIA02873.jpgsaturn-cassini-2004.pngneptune-voyager-irwin.pngsaturn-cassini-2013.pnguranus-voyager-irwin.pngASTRAY 2026-11-01 18.57.23.915.pngASTRAY 2026-11-11 12.09.55.851.pngoutput.gifTerrestrial world with life, colder than earth; big polar caps.Captured with metering, so moonshine brightens the nightsideBrown dwarf with a binarysaturn.gif
 

Attachments

  • airglowaurorae.gif
    airglowaurorae.gif
    14.3 MB · Views: 0
Thought I'd share a few more random interesting worlds I've found while testing, also showing the survey tool output (similar to what the CLI option will output for the generator):

A tidally locked icy world orbiting a brown dwarf, has two competing abiogenesis events plus two layered subsurface oceans. Minerals & nutrients leech through the high pressure ice up through both layers from the water-rock interface a few hundred kilometers below in the second buried ocean:

browndwarfplanetwithcomplexlife.gif
Survey output for ^:
1794387416067.png

Terrestrial moon with complex life, orbiting as a binary pair with a mini-neptune. This one's a very rare find, surprised I even found it by happenstance since I don't have a seed filter for this, pretty intense planetshine. Giants still have a WIP radiation model, so this will likely get even rarer:
terrestrialmoonwithlife.gif

A cycling world with a clear and hazy phase on a 25yr cycle (only a 2K temperature difference between the phases), its parent star's far binary is visible too.
clearhazecycle.gif
Binary giants. As kozai cycles and inward migration move giants around during the formation process, scattering events happen (collision, escape, capture). capture is rare for giants, (giant binaries are about 1/1000 systems on default generator settings). Looks like there's some small issues with lightning on these, not too sure, lightning is currently a bit crudely implemented, though its possible these just have intense storms:

binarygiants.gif

The sun's solar cycle (1yr/s), corona and prominences invisible at this exposure:
suncycle.gif
Triton's thin air and seasonal frost. Ice world surface look is still WIP (surfaces in general are largely CPU right now, planning shaders for adaptive detail), also keep in mind that this is triton as described by the generator, the only thing the generator knows about (most, gas giants have a volatile enrichment parameter for now, and the sun is set at its true spectral class and luminosity (MIST puts it a few % brighter)) sol bodies are their radii, orbits (largely JPL mean elements + nodal and apsidal periods, lots of small body database bodies as well), and mass (gravitational parameter). Interior structure, surface, atmosphere etc are generated whole cloth, for now:
triton.gif

Evaporating hot gas giant in close orbit of its star, captured at very high exposure to show its tail (other bodies in the distance glow at this exposure, there are no stars in this screenshot :P):ASTRAY 2026-11-11 22.23.23.607.png
 

Attachments

Back
Top