Skip to content

Strata 0.3.0

Choose a tag to compare

@github-actions github-actions released this 18 Oct 23:08
· 85 commits to main since this release
a0d2897

Static meshes, overlays and space lighting, and the simulation module. Every
ABI addition is compatible: STRATA_ABI_VERSION stays 1 and
STRATA_ABI_MINOR is 5.

  • Static meshes (ABI 1.4): StrataMesh, strata_add_mesh,
    strata_remove_mesh and strata_clear_meshes. Up to 256 indexed triangle
    meshes, already in world space, with a linear RGB colour per vertex or per
    mesh and host or engine-computed (area-weighted) normals. They share the
    terrain's vertex format and pipelines, so they are drawn under both lighting
    modes and cast and receive sun and point-light shadows. For geometry the
    primitives and the terrain tile cannot express, such as extruded footprints
    and ribbons; a narrow precursor to RFC 0020 §9's cooked meshes and
    materials, not milestone M1.
  • Scene files take mesh, vertices, vcolors and triangles lines.
    tools/gen_mesh_scene.py writes the static-mesh goldens' world.
  • Overlays (ABI 1.5): StrataLineVertex, StrataPoint and StrataText
    with strata_submit_lines, strata_submit_points and
    strata_submit_text. Unlit, alpha-blended lines and round points
    (fixed pixel size, true world size, or both; solid or a soft additive
    glow), depth-tested against the scene, and screen-space text in the
    public-domain font8x8 bitmap font, drawn in new overlay and text
    passes after the sky.
  • STRATA_LIGHTING_SPACE (ABI 1.5): point lights over a flat ambient, with
    no sun, moon, fog or sky, for scenes lit by a light inside them.
  • GpuDevice: line topology, alpha and additive blending, drawArrays, and
    R8 textures with initial data.
  • Scene files take lighting space, line, circle, point and text
    lines. New goldens o1_space_system and o1_overlays_sun.
  • modules/sim (strata::sim, C++ only, STRATA_WITH_SIM, on by default;
    not in the C ABI and no GL): a seeded PCG32 Rng, a Registry with a fixed
    iteration order, Field2D/Mask2D with mass-conserving diffusion and
    decay, a FixedStep clock, a StateHasher fingerprint and colormaps.
  • Optional OpenUSD modules behind STRATA_WITH_USD (off by default):
    modules/usd (the flat world and USD sync points) and modules/save
    (content-addressed, integrity-checked saves). CI fetches a prebuilt OpenUSD
    keyed by its pin.
  • A simulation module, modules/sim (strata::sim, C++ only, on by default
    with STRATA_WITH_SIM): a seeded PCG32 Rng, a Registry<Components...>
    with a deterministic iteration order, Field2D/Mask2D scalar fields with
    mass-conserving diffusion and decay, a FixedStep clock, a StateHasher
    fingerprint and field colormaps for terrain-tile heatmaps. No GL, no new
    dependencies, no C ABI change. Tested by strata-sim-tests.