lay rock strata and show them as an overlay
The surface rock matches the save's TopRockIdMap in all but 14 of 11.7 million columns. Rock tiles keep rock indices and take their colours from a palette on upload, so highlighting one rock, to find where it lies, recolours what is drawn instead of regenerating it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
51
Plan.org
51
Plan.org
@@ -446,19 +446,44 @@ Viewer:
|
||||
about 11 us.
|
||||
- *Hover info.* Shows the height.
|
||||
|
||||
** 6. Rock strata + overlay
|
||||
- Port =GenRockStrataNew.genBlockColumn=:
|
||||
- province weights (lerped, radius 2) → per-group thickness budget;
|
||||
- distortion noises;
|
||||
- BottomUp/TopDown fill and the sedimentary thinning.
|
||||
- Queries: rock at the surface, at depth /d/, at absolute Y, and the full
|
||||
column.
|
||||
- Validation: surface rock against =TopRockIdMap= (if stored). Decode
|
||||
=chunk= blobs for full columns only if that isn't enough.
|
||||
- Viewer:
|
||||
- rock overlay with a mode switch (surface / depth / Y) and a slider;
|
||||
- legend with per-rock highlight;
|
||||
- click probe that shows the strata stack (rock, Y range, thickness).
|
||||
** 6. Rock strata + overlay (done)
|
||||
=src/strata.sex= ports =GenRockStrataNew.genBlockColumn=:
|
||||
- *Budget.* Rock-group thickness budgets come from the geologic
|
||||
provinces, blended by =LerpedWeightedIndex2DMap= with radius 2.
|
||||
- *Distortion.* A thickness distortion seeded from the sea level.
|
||||
- *Fill.* Strata are laid in =rockstrata.json= order, from the bottom
|
||||
or the top, against their thickness maps. Sedimentary strata thin
|
||||
above sea level; granite only consumes budget.
|
||||
- *Missing groups.* A province that leaves out a group has a maximum
|
||||
of 0 for it, not the class default of 99.
|
||||
|
||||
Validation:
|
||||
- *Surface rock.* =vsmv verify= compares our rock at the top solid
|
||||
block with the save's =TopRockIdMap=. That block is
|
||||
=min(stored, computed)= height, since caves lower the stored top.
|
||||
- *Result.* 11,675,804 / 11,675,818 columns match, 99.9999%. The 14
|
||||
others likely carry structures placed later. A further 12,118
|
||||
columns have no rock on top.
|
||||
- *Deeper layers* go through the same code but aren't checked against
|
||||
chunk blocks. Decoding those blobs is the remaining step, if it is
|
||||
ever needed.
|
||||
|
||||
Viewer:
|
||||
- *Rock layer.* Modes: surface, depth below the surface, or absolute
|
||||
Y (water or air above the surface).
|
||||
- *Legend.* Click a rock to grey out all others. That's the "find a
|
||||
stratum" view: chalk at 20 blocks down across the whole world length
|
||||
takes one click.
|
||||
- *Palette tiles.* Rock tiles keep per-sample rock indices and are
|
||||
coloured on upload, so changing the highlight re-uploads drawn tiles
|
||||
without recomputing them.
|
||||
- *Probe.* A click (without dragging) opens a Probe window with the
|
||||
column's strata, top down, with Y ranges and thicknesses.
|
||||
- *Hover info.* Shows the surface rock.
|
||||
- *Command line.* =--rock-depth=, =--rock-y=, =--highlight= and
|
||||
=--probe= set it all up for screenshots.
|
||||
- *Tile keys.* Now injective bit fields. The old =map * 64 + stratum=
|
||||
packing could alias once resolutions passed 64.
|
||||
|
||||
** 7. Performance + polish
|
||||
- Level of detail:
|
||||
|
||||
Reference in New Issue
Block a user