Expand description
Principled Procedural Geometry & Surface Synthesis for .10d Living Containers.
Replaces massive static geometry and texture assets with compact mathematical recipes evaluated deterministically on the GPU / SIMD hot paths in zero heap:
- Cellular Voronoi Micro-Surfaces: Organic scales, tree bark fissures, leaf venation, cracked mud, and corrosion pitting synthesized directly from a 64-bit seed.
- Implicit SDF Smooth-Fillets: Smooth-minimum blending $r$ for seamless branch-to-trunk unions and structural welded joints without hand-modeled seam meshes.
- Allometric Growth Curves ($y = b \cdot x^k$) & Logarithmic Spirals ($r = a e^{k \theta}$): Horns, tusks, antlers, shells, and ontogenetic proportion changes governed by ODEs.
- PGA Motor Oscillations: Projective Geometric Algebra motors for secondary wind/motion foliage rustle, tail wag, and vehicle chassis sway.
- CSG Stress-Tensor Cleavage: Dynamic fracture along physical cleavage planes when tensile stress exceeds $\sigma_{\text{crit}}$, avoiding duplicate pre-fractured mesh assets.
Structs§
- Procedural
Synthesis Header - 64-byte POD header encoding procedural synthesis recipes in SectionType::ProceduralSynthesis (18).
Enums§
Constants§
- FLAG_
ALLOMETRIC_ GROWTH - FLAG_
CELLULAR_ VORONOI - FLAG_
IMPLICIT_ FILLET - FLAG_
LOG_ SPIRAL_ ODE - FLAG_
PGA_ MOTOR_ DYNAMICS - FLAG_
STRESS_ FRACTURE - MAGIC_
PROC - PROCEDURAL_
SYNTHESIS_ HEADER_ SIZE - PROCEDURAL_
SYNTHESIS_ SECTION_ VERSION
Functions§
- decode_
procedural_ synthesis_ section - Decode procedural synthesis header from a byte slice. Zero heap.
- encode_
procedural_ synthesis_ section - Encode procedural synthesis header into a caller-supplied byte slice.
- evaluate_
allometric_ dimension - Evaluate allometric morphological dimension according to Huxley’s power equation: $y = b \cdot x^k$, where $x$ is body size / developmental progress.
- evaluate_
log_ spiral_ 2d - Evaluate logarithmic spiral ODE position $(x, y) = (r \cos\theta, r \sin\theta)$ where $r = a \cdot e^{k \cdot \theta}$. Governs horns, tusks, and ammonite shells.
- evaluate_
pga_ motor_ oscillation - Projective Geometric Algebra (PGA) rotor oscillation displacement for secondary dynamics. Evaluates dynamic sway vector from time, natural frequency, damping, and an external drive force.
- evaluate_
smooth_ minimum_ sdf - Polynomial smooth-minimum blending (SDF implicit fillet) between two distances $d_1$ and $d_2$: $smin(d_1, d_2, r) = \min(d_1, d_2) - \frac{h^2}{4r}$ where $h = \max(r - |d_1 - d_2|, 0)$.
- evaluate_
stress_ cleavage_ partition - Evaluate structural fracture criterion under principal tensile stress $\sigma_1$. Returns true if $\sigma_1 \ge \sigma_{\text{crit}}$ and determines the cleavage partition sign.
- evaluate_
voronoi_ cellular_ f1 - Zero-heap 2D Voronoi cellular distance perturbation for procedural micro-surfaces. Generates cell distance $F_1$ and cell hash from a coordinate and seed.