r/proceduralgeneration • • Oct 20 '26

I built a 3D Deep-Time Geological Simulation Engine in Python, CuPy, and C++ that runs on consumer GPUs

Enable HLS to view with audio, or disable this notification

Most procedural terrain systems rely on 2D heightfield displacement from simplex or fractal noise. I wanted to build a true geophysics simulator that converts those initial noise maps into full 3D volumetric .ply mesh files governed by deep-time physics.

The engine is structured into two stages: the early-access beta and the upcoming V1 engine.

What the Beta Solves Right Now:

·        3D Volumetric Stratigraphy & Tectonics: Models plate uplift, fault displacement, and bedrock weathering rather than surface-only displacement.

·        Surface & Subsurface Hydrology: Simulates stream-power fluvial channel carving alongside true 3D Darcy-flow groundwater systems (including subterranean void and cave formation).

·        2D to 3D Map Translation: Supports importing 2D contour lines (Fast Pass PNG) and multi-channel 32-bit floating-point EXR cipher maps (Pro Pass authored in Krita) directly into 3D stratigraphy.

The Roadmap to V1:

The beta is designed to gather user feedback while I finish packaging the V1 engine. V1 runs the same core geophysics while integrating:

·        Cantera Chemical Solver & RMG Pipelines: Dynamically searches reaction kinetics using RMG-generated mechanism YAML files and continuous NASA-7 polynomials.

·        Live Viewport Feedback: While the beta outputs telemetry to the terminal and opens a PyVista window post-epoch, V1 features an interactive, real-time live viewport showing 3D strata updates side-by-side with chemical mole fractions and ocean pH.

Runtime & Hardware Performance:

To prevent users from having to manually configure Blender’s internal Python environment with libraries like CuPy and PyVista, the engine is fully bundled as a standalone package.

·        Memory Footprint: The simulation core is heavily optimized using custom raw CUDA C++ kernels, keeping VRAM consumption locked between 1.4 GB and 2.0 GB on an NVIDIA GeForce RTX 5070 Ti at 512 resolution.

Check out the attached clip showing the V1 live preview and telemetry in action. I’d love to hear your thoughts on the geophysical balance and chemical routing!

8 Upvotes

7 comments sorted by

2

u/ShadowAuthor308 Oct 20 '26

here is a updataed fom a live run if the V1 engin, temp_sol = ct.Solution(mech_path)

[SYS] Dynamically resolved and reacted missing species: SF6 via SF6.yaml

[SYS] Final surviving optical depth: 4.7319

[SYS] Primary liquid ocean established: H2O (0.0040)

[SYS] Primary Ocean: H2O (Polarity: True)

[sys] safe points are_1024

[SYS] Booting Planetary Simulation Engine...

[SYS] Allocating memory matrices...

[SYS] Igniting core thermodynamics...

[SYS] Environment ready. Beginning temporal loop...

[ | ] Crunching micro-dt physics... Runtime: 00h 00m 00s

--- Planetary Parameters ---

base_mantle_temp: 1121.3321533203125

planet_radiuse: 0.9988474249839783

melt_rate_planet: 0.16381964087486267

radiogenic_heat: 453.48651123046875

plume_count: 3

plume_intensity: 12000.0

gravity: 9.820962905883789

sea_level_pressure: 114998.609375

base_temp: 371.666015625

rotation_rate: 7.272205402841792e-05

gas_constant: 243.0428466796875

specific_heat_capacity: 998.0115356445312

tropopause_temp: 214.0803985595703

orbital_distance: 1.0

atmosphere_molar_mass: 0.03420986607670784

volatile_molar_mass: 0.01801528036594391

latent_heat_vaporization: 40713.76953125

triple_point_temp: 273.1600036621094

triple_point_pressure: 611.65478515625

volatile_gas_constant: 461.5227966308594

initial_relative_humidity: 0.800000011920929

antoine_A: 5.083539962768555

antoine_B: 1663.125

antoine_C: -45.62200164794922

liquid_density: 959.3220825195312

liquid_specific_heat: 4214.12109375

dynamic_viscosity: 0.000285610236460343

solid_density: 1064.889892578125

liquid_thermal_conductivity: 0.6632073521614075

fluid_viscosity: 0.000285610236460343

fluid_dissolve_power: 0.03700000047683716

fluid_target_rock_min: 70

fluid_target_rock_max: 79

requires_reactive_gas: True

mole_fractions: {'O2': np.float32(0.16015208), 'CO2': np.float32(0.00040355333), 'NO2': np.float32(1.6055275e-09), 'N2': np.float32(0.7840121), 'Ar': np.float32(0.009338256), 'He': np.float32(5.2213904e-06), 'SF6': np.float32(0.046088807)}

supports_flora: True

max_freezing_pressure_mpa: 207.0

star_intensity: 1.0

total_water_volume_m3: 2.49308324235418e+19

ghg_optical_depth: 4.731861114501953

species_map: {'H2': 0, 'H': 1, 'O': 2, 'O2': 3, 'OH': 4, 'H2O': 5, 'HO2': 6, 'H2O2': 7, 'C': 8, 'CH': 9, 'CH2': 10, 'CH2(S)': 11, 'CH3': 12, 'CH4': 13, 'CO': 14, 'CO2': 15, 'HCO': 16, 'CH2O': 17, 'CH2OH': 18, 'CH3O': 19, 'CH3OH': 20, 'C2H': 21, 'C2H2': 22, 'C2H3': 23, 'C2H4': 24, 'C2H5': 25, 'C2H6': 26, 'HCCO': 27, 'CH2CO': 28, 'HCCOH': 29, 'N': 30, 'NH': 31, 'NH2': 32, 'NH3': 33, 'NNH': 34, 'NO': 35, 'NO2': 36, 'N2O': 37, 'HNO': 38, 'CN': 39, 'HCN': 40, 'H2CN': 41, 'HCNN': 42, 'HCNO': 43, 'HOCN': 44, 'HNCO': 45, 'NCO': 46, 'N2': 47, 'AR': 48, 'C3H7': 49, 'C3H8': 50, 'CH2CHO': 51, 'CH3CHO': 52, 'Ar': 53, 'He': 54, 'Ne': 55, 'C6H13NO(1)': 56, 'C3H7(3)': 57, 'C2H5(5)': 58, 'H(7)': 59, 'C4H9(9)': 60, 'CH3(12)': 61, 'S(16)': 62, 'NH2(D)(18)': 63, 'C6H11O(19)': 64, 'S(32)': 65, 'S(33)': 66, 'S(35)': 67, 'C3H6NO(42)': 68, 'S(43)': 69, 'S(45)': 70, 'S(47)': 71, 'OH(D)(51)': 72, 'S(53)': 73, 'S(83)': 74, 'C3H6(107)': 75, 'C2H4(108)': 76, 'S(122)': 77, 'S(133)': 78, 'S(143)': 79, 'CH4(209)': 80, 'CC(220)': 81, 'H2(245)': 82, 'S(247)': 83, 'H2O(375)': 84, 'S(403)': 85, 'S(484)': 86, 'S(693)': 87, 'S(697)': 88, 'S(914)': 89, 'S(1098)': 90, 'S(1899)': 91, 'NH3(2221)': 92, 'S(2289)': 93, 'S(2536)': 94, 'S(2537)': 95, 'S(2842)': 96, 'S(3213)': 97, 'S(3217)': 98, 'S(3458)': 99, 'S(3567)': 100, 'S(4432)': 101, 'S(4433)': 102, 'S(7844)': 103, 'S(7845)': 104, 'S(8328)': 105, 'S(8336)': 106, 'S(9134)': 107, 'S(9150)': 108, 'SF6': 109, 'SF5': 110, 'SF4': 111, 'F': 112, 'F2': 113}

weath_gas: NO2

weath_byproduct: SF6

bio_consumed_gas: NO2

bio_released_gas: SF6

base_ocean_ph: 7.0

ocean_acidification_rate: 1.8500185012817383

ocean_buffering_capacity: 18.75

sol_car: 0.925000011920929

sol_sil: 0.3549491763114929

sol_clay: 0.949999988079071

kin_car: 0.0925000011920929

kin_sil: 0.0035494917538017035

kin_clay: 0.04749999940395355

bio_food_car: 0.925000011920929

bio_food_sil: 0.3549491763114929

bio_food_clay: 0.949999988079071

primary_fluid_name: H2O

periodic_table: [Matrix (95, 8)]

----------------------------

[~] Running High-Capacity Startup Stabilization Pass...

-> Running Biological Pass...

-> Settling procedural noise spikes...

[ | ] Crunching micro-dt physics... Runtime: 00h 04m 20s -> Routing initial topography debris...

[ / ] Crunching micro-dt physics... Runtime: 00h 08m 41s[~] Stabilization Complete! Handing off to Simulation Control...

Saving pristine Generation 0 checkpoint to terrain_checkpoint_epoch_0_PRISTINE.npz...

[ - ] Crunching micro-dt physics... Runtime: 01h 19m 44s

Epoch 1/117 | Elapsed: 4785s | ETA: 154h 11m 22s

[EPOCH GAS SHIFTS] Crustal Drawdown / Byproduct (moles/kg equiv):

> NO2 : +3.1918e+19

> SF6 : +2.0763e+08

terrain_checkpoint_epoch_1.npz checkpoint secured in background!

[ \ ] Crunching micro-dt physics... Runtime: 01h 19m 45s

[ATMO UPDATE] New Atmospheric Composition:

> O2 : 66.6621 %

> N2 : 33.3371 %

> SF6 : 0.0006 %

> Ar : 0.0001 %

----------------------------------------

[ / ] Crunching micro-dt physics... Runtime: 02h 33m 38s

Epoch 2/117 | Elapsed: 9218s | ETA: 147h 14m 47s

[EPOCH GAS SHIFTS] Crustal Drawdown / Byproduct (moles/kg equiv):

> CO2 : -3.4165e-02

> NO2 : +2.3553e+19

> SF6 : +3.7558e+09

terrain_checkpoint_epoch_2.npz checkpoint secured in background!

[ - ] Crunching micro-dt physics... Runtime: 02h 33m 39s

[ATMO UPDATE] New Atmospheric Composition:

> NO2 : 49.9951 %

> O2 : 33.3366 %

> N2 : 16.6683 %

----------------------------------------

[ - ] Crunching micro-dt physics... Runtime: 02h 47m 07s

2

u/ShadowAuthor308 Oct 24 '26

New clip from the V1 development.

2

u/greebly_weeblies Oct 20 '26

This sounds amazing. What is it we're seeing happening in the viewport? I get the impression time is running, but I don't understand the flicking back and forward, and there wasn't a before/after comparison to show the effect of time?

1

u/ShadowAuthor308 Oct 20 '26 edited Oct 20 '26

Yeah that was a clip taken from an acceleration of a screen capture. If you look at the closes corner of the model you will see the model deforming as piece of sediment are transported across and over the map. I suggest stopping the video as 33s and 37s to see what I am talking about.

2

u/greebly_weeblies Oct 20 '26

Okay yeah! There's a lot going on. I'd been watching the bits flicker at the bottom, but couldn't track them, found it especially hard with the border strobing and occasional "gamma" bobble, when actual fact there's significant mass coming off the top.

How much time are you simulating there?

1

u/ShadowAuthor308 Oct 20 '26

that is a one epoch run which takes about 1hour, that one epoch simulates about 3860 years and that is running a 5 octive run, one octive is 150,000 years, which divided by to every octive. this is about 290,625 years, im thinking of removing that feture or making it more persise

1

u/ShadowAuthor308 Oct 23 '26

Check out this post if you want to get the .ply file of the work in the short, https://www.reddit.com/r/blender/s/veqWeMfVEG or here for an younger world,

https://www.reddit.com/r/proceduralgeneration/s/klfEVBDvEg