Commit Graph
584 Commits
Author SHA1 Message Date
Brian Neumann-Fopiano 6aafec196b Plunge pools below falls
- RiffleProfile carves a plunge pool at the foot of every head step of 6 or more blocks in channel water: depth round(0.5 x drop x (0.85 + 0.15 x variation)) clamped to 2..8, radius clamp(0.75 x drop, 3, 12), one distance field per foot and top head pair that spreads only through the foot level, LIMIT kept at 160
- Riffle crests at least 5 blocks above a cell's sill no longer raise its bed, so the foot of a large fall stays deep while the brink keeps its head-1 sill
- Plunge pools never seed in or carve pond, lake, sea inlet or mouth columns
- The riffle raise below a step between two different channel reaches leaves the lower channel's bed alone (spec 11 design D); fields are keyed by crest level, feature and flowing role
- RiffleProfile samples head, feature and role per column through a Water sampler; WaterRole.flowing names the channel, cascade and waterfall roles
- RasterComposer styles a channel column below another channel reach's water 2 or more blocks higher as CASCADE, or WATERFALL from the higher reach's waterfallMinimumDrop
- ReachShaper.styles takes the sea level and styles a one-block drop out of an outlet zone or held lip as CASCADE when the head snap shows it as a two-block step; LinkBlend restyles with the same rule
- LinkBlend.settleInto holds a cross-window feeder's start only for a pond lip, a pond outlet or a fed start more than one block above the junction, the in-window p0cap1 rule
- Tests: plunge pool, chunk-border and standing-water RiffleProfile cases, receiving bed below a joining cascade, styled lower-channel edges, falls into ponds and mouths keep their floors, cross-window fed start, held-lip step styles, and no confluence tongues on the cached 2x2 openFractal and sloping valley scenes
2026-11-02 06:02:09 -05:00
Brian Neumann-Fopiano 2edf610e8b Fed start riffle fix
- Hold a fed feeder's start only when it stands more than 1 block above its junction, so 1-block riffle starts join the receiving water
- Keep a fed start in the tongue invariant's pool zone as a held point that must cascade into its junction
- Drop the held-lip riffle tolerance and assert no tongues on the seeds again
- Stop the junction-level and led-in pool walks only at a styled fall from a held start or from more than 5 blocks beside the bank
- Cover 1-block fed starts in grader unit tests and riffling held starts in the scene invariant tests
2026-11-02 05:00:56 -05:00
Brian Neumann-Fopiano 06b7001132 Inland hollow box cap
- Treat an inland hollow as open when its basin box would pass 2^20 cells, decided from the whole hollow
- Mark a classified hollow's cells inside the window as seen so its other pieces are not classified again
- Test a long diagonal trench classified open from two windows without sampling its basin box
2026-11-02 04:19:56 -05:00
Brian Neumann-Fopiano e108bd3c58 Junction pools stay local
- Fix a feeder's start in confluence grading when other reaches feed it, matching cross-window settling
- Pool feeder points outside every receiving channel only when they sit at most 5 blocks above the junction level
- Keep larger steps beside the receiving bank as a styled cascade or waterfall, in-window and across window lines
- Add valley trench, wall tributary and window copy regression tests plus grader unit tests
- Move the junction level, seam fall and led-in pool tests to the bank limit and fixed fed starts
- Mirror the fixed fed start and bank limit in the tongue invariant and classify held outlet lip riffles
2026-11-02 04:19:49 -05:00
Brian Neumann-Fopiano 0a082f76ee Window-independent inland hollows
- InlandHollows classifies below-sea land from the shared height lattice, following each hollow past the planning area, so every window that sees a hollow treats it the same way
- A hollow is inland only when it is ringed by land, touches no ocean and stays under 16384 cells; anything else, or a hollow held by a region lake, is left open
- The basin draining into a hollow is flooded in a box set by the hollow itself, not by the planning area
- Burned trunks are never dragged to sea level through ground more than deformation.maxFill above the sea; the trunk link is cut there and the trunk restarts at its own height
- BasinExtractor loses the window-local inland and draining scans
- Tests: hollow cut by a grid edge, lowland open to the sea, hollow held by a lake, trunk floor on high ground, and a hollow on a window line planned alike by both neighbouring windows
2026-11-02 03:25:53 -05:00
Brian Neumann-Fopiano c0f2c10c1d Inland hollow review fixes
- Trunks are cut where they cross the natural basin draining into an inland hollow, so the major restarts beyond the rim instead of descending through it at sea level
- Lowland channels never climb more than 2 blocks above the lowest ground they crossed or the sea, in a new LowlandChannels helper
- Inland hollow ponds skip dams
- Hollow planner tests assert no reach is held at the sea under high ground and the valley past the rim matches the hollow-free valley
- Pondless inland hollows end streams at their edge
- One shared SeaCells test helper replaces the two copies
2026-11-02 02:42:35 -05:00
Brian Neumann-Fopiano 30865031ba Inland lowlands not mouths
- Reach chains end at the sea only where the receiver has ocean intent
- Channels continue across non-ocean lowland below sea level toward the sea
- Fitted ocean flags stay only on the trailing run of chains that drain to the sea
- Ground reads off the sea run ignore sub-cell ocean slivers, so a sliver no longer trenches a reach or drops ponds below it
- Inland hollows below sea level hold an outlet-free pond at sea level; oversized ones sink instead of being breached
- Burned trunks neither descend nor drain through inland hollows
- Sea-head check keys on the trailing mouth run and fails closed on mouths inside a reach or draining into another reach
- Inland water keeps the land biome at any head; mouths and inlets keep the sea biome
- Tests for inland hollows, crater rims, sea slivers, inland pond outlets, coastal delta ownership and the sea-level river biome
2026-11-02 01:57:09 -05:00
Brian Neumann-Fopiano d61b5c3041 Delta planner split
- Move delta planning out of ReachShaper into a package-private DeltaPlanner that ReachShaper calls once
- Drop the redundant tier parameter from the distributary methods
- Test delta crossings through a new raster ChannelCoverage built on ReachSegments and ReachCursor, limited to segments near the channel
- Keep DELTA_STEP in HydrologySettings beside its extent guard
- Share the delta coast fixture through testsupport and split the pond, hill and neighbouring-river cases into their own tests
- Cover delta rendering: MOUTH sea-fluid water at sea level, no dry gap or leak at the branch, and the river above its estuary keeping its head
2026-11-02 00:19:04 -05:00
Brian Neumann-Fopiano d3b364fa15 Seeded river deltas
- Add the tier delta {channels 0 or 2..4, spreadDegrees 35, length 64}, validated in HydrologySettings with messages naming the tier and fingerprinted
- Guard the delta extent so a delta channel and its banks stay within the 512-block window span
- Emit delta channels after grading as ordinary sea-level MOUTH reaches that branch below the estuary start and fan out by seeded angles to the sea
- Size each delta channel at the estuary-start half-width over sqrt(channels) and taper its depth to one block at the sea
- Leave out delta channels over ground above sea level plus maxFill, across ponds, lakes, other reaches or the river's above-sea water, or short of the sea within length
- Recapture DEFAULT_FINGERPRINT and EXPECTED_SCHEMA_DIGEST
- Cover seeded, grid-independent deltas and their obstacles, the delta bounds, and inlets keeping clear of sea-level delta channels
2026-11-01 23:53:17 -05:00
Brian Neumann-Fopiano 904c889c2f Seamed lava falls
- Add FluidSeams.fallingFluid: a fluid with a seam falls as its seam where it lands on a different fluid
- Take the falling fluid in MantleHydrologyComponent from that rule, so lava stepping into its estuary or a water river falls as its seam
- Cover the rule, the mantle falls onto sea, water and lava, and a lava reach dropping into its estuary
2026-11-01 23:00:50 -05:00
Brian Neumann-Fopiano b17ad570ca Estuary review fixes
- Taper estuary depth to the minimum depth at the mouth so the bed hands over to the natural seabed
- Stop the estuary walk at an outlet's first point so lake outlets leave the lake at its level
- Return a closed estuary opening for length 0 or a zero-length estuary instead of NaN widths
- Record mouth river features with their reach's own fluid through HydrologyRuntime.channelFluid and the shared ChannelFluids.reachFluid
- Pin the bank-height stop, the held pond lip, the lake outlet start and the degenerate opening
- Use a neutral unknown tier key in the pack compatibility test
- Recapture EXPECTED_SCHEMA_DIGEST for the flare description
2026-11-01 22:52:35 -05:00
Brian Neumann-Fopiano aef674f206 Estuaries replace deltas
- Replace the tier deltas flag with estuary {length 48, flare 2.5}, validated in HydrologySettings and added to the fingerprint
- Grade ocean-ending reaches to sea level over the estuary while the lower bank lies within maxFill of the sea, stopping at held pond outlet points
- Style estuary points MOUTH and flare their half-width by 1 + (flare - 1) * s^2 toward the mouth, keeping the channel depth
- Fill MOUTH columns with the sea fluid so lava rivers meet the sea through their seam
- Paint MOUTH columns with the sea layers and ice of the sea floor, like INLET slots
- Stop bank levees from raising ground below sea level
- Recapture DEFAULT_FINGERPRINT and EXPECTED_SCHEMA_DIGEST
- Cover the estuary flare, mouth sea fluid, lava mouth seam, frozen mouth ice, the strict no-berm coastal fall and the coastal sea-floor scene
- Pin that tiers written with an unknown key load with the default estuary
2026-11-01 22:23:36 -05:00
Brian Neumann-Fopiano 11ce906e5b Lead-ins before confluence grading
- Pond outlets are led in from their pond before confluence grading, so a feeder joining at an outlet's exit node pools against the lead-in segment too
- A feeder at a led-in outlet's exit sits at the junction level wherever it comes within its pool margin of the lead-in
2026-11-01 21:30:25 -05:00
Brian Neumann-Fopiano 98d69e503c Lake outlets keep width
- Cross-window links treat a reach whose first point is styled as a pond outlet as an outlet, so lake outlets skip the junction width blend
- A lake outlet below a narrow tributary across a window line keeps its own width
2026-11-01 21:15:19 -05:00
Brian Neumann-Fopiano 5948c5b5f4 Fixed outlet points styled
- Every point the grader holds fixed, in the outlet zone or on the held lip, is styled as the pond outlet, so the reach carries its own fixed set
- The tongue check exempts an outlet column only on a fixed point, only when the outlet itself ends at the junction head and only when every step down is a cascade or waterfall
- Held outlet tests sit on a real pond lip, and an outlet with a perched unheld tail or an end above the junction is reported
- A shore-held outlet test covers the outlet style past the 8-block outlet zone
2026-11-01 21:15:19 -05:00
Brian Neumann-Fopiano 358f7218f8 Junction errors name window
- Reach indexes take their window key and name it when a reach id appears twice in one plan
- Window planning passes its key through reach shaping, pond-channel settlement and confluence grading
- A downstream reach starting above its feeder's end fails closed naming the window
- Index, grader and plan-cache tests check that each failure names its window
2026-11-01 20:48:08 -05:00
Brian Neumann-Fopiano 41e38debad Outlets keep their width
- Pond outlets skip the junction width flare, so an outlet whose exit node takes a tributary leaves its pond at its own width
- Cross-window links into a pond outlet clamp its grade without rebasing its width or depth
- The cross-window width blend always measures from the downstream reach's first vertex
- Planner and cross-window tests cover narrow and wide tributaries at an outlet's exit node
2026-11-01 20:43:39 -05:00
Brian Neumann-Fopiano 1827ec1cc6 Confluence pool invariant
- Confluence tongues are feeder columns in the junction pool zone standing above the junction head, which the old receiving-grade check could never report under lowest-water ownership
- Pond outlets may stand above the junction in the pool only when every head step down to it is a cascade or waterfall
- The tongue scan clips its box to the scene interior instead of skipping feeders near the edge margin
- Unsettled hand-built feeders, sibling channels, held outlets and an edge-straddling pool are positive and negative controls
- Pond outlets and confluences are checked on one planning pass over seven open fractal seeds
2026-11-01 20:40:14 -05:00
Brian Neumann-Fopiano de62c76807 Sea head review fixes
- The mouth sea-level check covers only the trailing mouth run of reaches that end in the ocean
- Ocean-flagged points inside a reach no longer fail planning closed
- Reach checks are split into a below-sea pass and a trailing-mouth pass with one failure message builder
- Reflooded ponds stop lowering at the sea surface and drop instead of standing below it
- A sea-strip slope fixture reproduces mid-reach mouth points above sea
2026-11-01 20:12:45 -05:00
Brian Neumann-Fopiano d341e114b5 Sea heads fail closed
- Window plans reject sea inlets off sea level, reaches graded below sea level, mouths not at sea level and ponds below sea level, naming the window and feature
- Coastal fractal and cliff coast scenes pin inlet levels, mouth grades, minimum grades and raster mouth and inlet heads at sea level with no sub-sea air
- Hand-built plans with off-sea mouths, sub-sea runs and sunken ponds fail closed
- The coastal fall raster test also runs with a 32-block bank band
- Planned scenes expose their sea inlets and synthetic terrain can be lowered
2026-11-01 19:50:10 -05:00
Brian Neumann-Fopiano 1cdc30e1ca Confluence settling review fixes
- Look reaches and outlet ponds up through ReachIndex.reach and ReachIndex.outletPonds, built once per plan, instead of per-chunk maps in ChunkFeatures.Links
- Find a feeder's downstream reach across the loaded windows and fail closed when two windows own it
- Clamp a no-lead-in shared outlet to the last pond with its id in its own plan when every sharing pond is in that plan, matching ReachGrader.outletPonds
- Rebuild an outlet's held lip with the shared ReachShaper.nearLip rule and keep it fixed when the outlet settles across a window line
- Rename the feederLink local that shadowed the owned-reach lookup
- Add ChunkWaterRasterTest cases for the downstream outlet pond level, a fully pooled stub, the held lip, the same-plan shared outlet and the duplicate owner
2026-11-01 19:27:01 -05:00
Brian Neumann-Fopiano e62585b450 Cross-window confluence settling
- Track every reach owned by the nine loaded windows in ChunkFeatures.Links.owned
- Settle a feeder whose downstream reach has another owner window into L = min(raw downstream start, raw feeder ends, downstream outlet pond level) through LinkBlend.settleInto
- Delegate LinkBlend.settleInto to ConfluenceGrader.settle with vertex 0 and outlet-zone vertices fixed, spreading the junction on tiers without cascades
- Restyle every grade change made by link clamping or settling with ReachShaper.styles, so seam drops become cascades and waterfalls
- Rebase the cross-window width and depth blend on the junction width so an already flared downstream reach is unchanged
- Clamp a led-in pond outlet to the pond it leads out of instead of the lowest pond sharing it
- Make ConfluenceGrader.spreadJunction and ReachShaper.styles public
- Add ChunkWaterRasterTest cases for cross-window settling in both window orders, styled seam drops, spread junctions, flare rebasing and shared outlets
2026-11-01 19:04:05 -05:00
Brian Neumann-Fopiano b6166bc6fa Junction width flare
- Blend a downstream reach's half-width over its first 16 blocks from the widest feeder end to the width law in ReachShaper.widths
- Move the blend math into the shared LinkBlend.blend(from, to, along) used by both the planner flare and cross-window links
- Measure the cross-window width blend from the junction vertex, so led-in pond outlets blend from their real junction
- Add ReachShaperTest.junctionWidthBlendsOverSixteenBlocks and ChunkWaterRasterTest.ledInOutletWidthBlendsFromItsJunctionAcrossAWindowLine
- Skip reaches whose end lies inside the junction flare in widthFollowsSqrtCatchment
2026-11-01 18:34:34 -05:00
Brian Neumann-Fopiano 52761e1784 Confluence review fixes
- Spread the junction step of feeders on tiers without cascades through the grader's spread rule, never moving outlet zone or held points
- Extract ReachGrader.spreadPoint from the spread pass and clamp it so it only lowers
- Throw when a downstream reach starts above its feeder's end, naming both reach ids and the junction
- Restore the per-reach waterfall check in gradeNeverRisesDownstream, excluding drops that land at or below the stepped twin's junction level
- Add ConfluenceGraderTest for spread junction steps, the fixed-point exception and the fail-closed junction
- Describe junction spreading in the cascades setting and recapture the schema digest
2026-11-01 18:18:40 -05:00
Brian Neumann-Fopiano 4cf141b97b Confluence grading
- Add ConfluenceGrader: feeder tails touching the receiving channel or a sibling settle to the junction level, capped at 64 blocks of arc
- Grade small junction differences over an approach ramp of one block per four, and keep larger ones as one fall at the receiving bank
- Never move pond outlet zone or held outlet points while grading confluences
- Run confluence grading after the finish pass in ReachShaper and restyle the reaches it lowers
- Add ReachShaperTest cases for feeders meeting the junction level and a hanging tributary falling at the receiving bank
- Compare drop counts by size instead of cascade and waterfall point styles in gradeNeverRisesDownstream
- Assert no confluence tongues on openFractal seeds 1 to 3 in WindowPlannerTest
2026-11-01 17:58:33 -05:00
Brian Neumann-Fopiano 50839c4833 Outlet review fixes
- Treat an outlet as led in only when its first vertex lies inside its source pond mask, so links and corner blocks keep the first vertex as the junction when the lead-in was skipped
- Hold and lead in each outlet draft once, from the pond the grader uses as its source, through the new ReachGrader.outletPonds
- Let ocean points keep the sea cap on held outlet stretches
- Add tests for a skipped lead-in junction, two ponds sharing an exit, and a held outlet running into the sea
- Plan the openFractal outlet scenes inline and count only the outlets that detachedOutlets checks, through the new WaterInvariants.checkedPonds
- Reuse the WaterInvariants segment geometry helpers in WindowPlannerTest
2026-11-01 17:29:53 -05:00
Brian Neumann-Fopiano 0dabc54e88 Outlets start on the shore
- Hold the leading outlet points near the pond at the pond level in ReachGrader, and keep spread from lowering them
- Prepend a lead-in from the nearest pond mask node to each non-lake outlet, unless the anchor would fold the reach back on itself
- Give held outlet points at least a one-block half-width and carry the held flags through chaikin and unfold
- Add PondMask.Cell and PondMask.nearest
- Link led-in outlets to their feeders at the junction vertex in ChunkFeatures, falling back to the first vertex's window
- Count equal-head water inside the outlet footprint as outlet water in WaterInvariants.detachedOutlets
- Add tests for the lip outlet, the tributary junction, the fallback exit, the swallowed outlet and the cross-window led-in feeder
- Assert connected outlets on openFractal seeds 1-7 and in the planned scene, and tighten the settled-pond shore check
- Check outlet exits at the junction vertex in ReachShaperTest
2026-11-01 17:15:27 -05:00
Brian Neumann-Fopiano 06bd50d1a0 Lowest water owns confluences
- Add ReachCursor.Waters, which keeps the nearest covering segment per reach and resolves the channel owner by planned head, then wider half-width, distance, id and segment
- Offer covering segments to Waters in ReachSegments.evaluate and resolve the owner at the end of every nearest lookup
- Prune channel candidates by segment radius once the scope is CHANNEL or any water covers the column
- Cut channel and trench beds to the deepest bed among covering reaches whose snapped head equals the owner's head
- Add ChunkWaterRasterTest.receivingRiverOwnsItsFootprintAtAConfluence
- Flip the PlannedSceneTest confluence tongue cases to expect no tongue
- Expect the wider equal-level channel in ReachIndexTest and the lowest covering channel in PondChannelSettlementTest
2026-11-01 16:41:40 -05:00
Brian Neumann-Fopiano a06f487279 Scene invariant fixes
- Check confluence tongues against the downstream reach and every sibling feeder
- Skip features within 32 blocks of the planned block edge in all three invariants
- Split the detached outlet controls into shore-gap and lower-start cases
- Plan the cached openFractal scene with rainfall 0.5 so pond drawdown applies
- Clear the cached scene after the test class
2026-11-01 16:25:35 -05:00
Brian Neumann-Fopiano 118c64b50b Planned scene fixture
- Add PlannedScene, which plans a block of windows with RegionPlanner and WindowPlanner and rasterizes it with ChunkRasterizer
- Add WaterInvariants with detachedOutlets, confluenceTongues and subSeaAir
- Add PlannedSceneTest, which characterizes today's detached pond outlets on openFractal(1) over 2x2 windows
- Add hand-built checks for each invariant
- Rename SyntheticTerrain.fractal to openFractal and update its call sites
2026-11-01 16:11:07 -05:00
Brian Neumann-Fopiano bd44272802 Schema digest
- Studio schema digest covers seam and sound category fields
2026-10-31 22:07:15 -04:00
Brian Neumann-Fopiano 31da551c04 Merged effect sound and vine fixes 2026-10-31 22:03:58 -04:00
Brian Neumann-Fopiano 067fffe066 Ceiling vine curtains
- A vine under a sturdy ceiling keeps its authored side faces
- Vines below it hold those faces through the vine above
- The vine-above check reads the facing before the material key
2026-10-31 22:03:49 -04:00
Brian Neumann-Fopiano c2eb8b5f42 Fixed effect sounds and vines
- Store the effect sound category as a vanilla category name
- Resolve the sound category to a Bukkit category when an effect plays
- Send modded effect sounds on the authored category
- Skip the sound and warn once for an unknown sound category
- Keep authored vine side faces only where a sturdy block or the vine above holds them
- Attach kept vine faces upward under a sturdy block
- Reattach multi-face blocks with no holdable side face to sturdy neighbours
- Cover sound category and vine face rules on Bukkit and modded
- Repin the studio schema digest
2026-10-31 21:58:58 -04:00
Brian Neumann-Fopiano 52989ce88d Fluid seam fixes
- Fluid seams seal from the 3x3 neighbour rasters in the effective water stage
- Seam bands spread across chunk edges like any other column
- Raw rasters keep their fluid so falls and history capture see the real fluid
- Seams no longer change the hydrology fingerprint
- Seam profiles may hold solid blocks but cannot fill tiers, ponds, cave pools or policies
- A seam profile cannot name a seam of its own
- Pack validation reports a policy fluid that names a seam profile
- Inland water skips columns outside the transition seam weight
- Channel fluid test covers the per-reach rule
2026-10-31 21:42:35 -04:00
Brian Neumann-Fopiano b0860f94fc Gap-free object rotation
- Rotations off the right angles fill every target cell from the nearest source block
- Source blocks that no target cell samples still place at their rotated position
- Right-angle rotations keep the direct transform
- Markers, canopy and tile data follow their resampled source blocks
- Datapack export bakes off-angle variants with the same resampler
- The unused rotateCopy paths are removed
- Placement goldens match the resampled output
2026-10-31 19:23:25 -04:00
Brian Neumann-Fopiano 2462330787 Transition water caps
- Saved and blended columns find solid layers that cap water at the water head
- Surface search passes over a water cap to the ground below it
- A capped column keeps its fluid height at the top of the cap
- A painted cap counts only where the blended column keeps the same blocks
- Saved terrain sources report their water surface
- Displacement fluid keys come from the first fluid at or below the fluid height
- Empty fluid keys never win the fluid blend
2026-10-31 19:23:25 -04:00
Brian Neumann-Fopiano c2eca3e6bd Hydrology climate zones
- Hydrology climate splits the land into wet and dry zones with a noise style
- Dry zones keep only the dryRainfall share of rainfall and pond density
- Zone edges ease across the transition band
- Policy climateZones exempts an area from the dry zones
- Policy fluid also fills streams and rivers that flow through the area
- Bank steepness reads the steepest natural ground between the bank and the water
- Bank edges roughen with smooth noise
- Natural ground heights reach the rasterizer at full precision
- Settings reject climate values outside 0..1
- Hydrology probes read the full precision natural heights
2026-10-31 19:23:25 -04:00
Brian Neumann-Fopiano 7ff4292013 Datapack export fidelity fixes
- Aquatic decorators place on the sea floor in water only
- Decorator waterlogging follows the placement site
- Templates never bake waterlogged blocks
- Object blocks outside the nominal box stay in the template
- Procedural objects export their pre-built variants as content-keyed templates
- Surface objects anchor on the ocean floor heightmap
- Surface objects reject leaf, log, or fluid ground under the origin
- Surface support checks test base corners with a slope-scaled drop
- Support ground search covers the full 16 block window
- MIN_HEIGHT, MAX_HEIGHT, and stilt modes sample terrain across every allowed rotation
- Procedural tree roots extend down to the ground
- Underwater objects need water and stay below the surface
- On-water objects anchor at the fluid surface
- Unsupported coral, sea pickles, and wall fans are left out of templates
- Object placements honor slopeCondition
- Two-block plants place both halves
- Shore decorators need solid ground below
- Decorator coverage matches the Iris style density
- Patchy decorator styles export as noise threshold patches
- Palette end weights round to the nearest count
- Ores in deepslate place their deepslate variants
- Pack description tells players to keep the Default pack selected
- Aquifer floods open sea cells near the fluid height
2026-10-31 03:36:32 -04:00
Brian Neumann-Fopiano 1ed1044474 Datapack export
- /iris datapack export compiles one pack dimension into a worldgen datapack for Minecraft 26.3 and later
- Bukkit and mod loaders take the same version, mode, namespace, output, format, objects and replace arguments
- The default overworld mode replaces the Overworld of a new world with the default world type
- Preset and dimension modes write a selectable world preset or a separate dimension
- The export runs in the background and publishes the zip or folder atomically
- Pack compiler stages turn noise, terrain, caves, subterrain, biomes, surface, decoration, objects and structures into a version-neutral IR
- Capability lowering fits every field to 26.3 density function ranges
- Disjoint min and max nodes fold to the input that always wins
- The 26.3 writer emits density functions, noise settings, biomes, features, structures, presets and dimensions
- Every export carries the Iris logo as its pack.png
- Unused objects, templates and features are pruned from the output
- The pruner keeps pack.png without reading references from its bytes
- Imported pack datapacks are bundled into the export
- Every approximation reports an export limit diagnostic
- Generation cost is counted against a node budget and reported as a warning
- Cave biomes over the wall palette limit use the closest kept palette
- Jigsaw exports share the template encoder, block states, destinations and publisher with the worldgen export
- DataVersion carries the pack format minor and world data version
- Both platforms expose vanilla data from the server classpath
- GoldenHashEngine and the export probes share one chunk spiral scan
- Headless 26.3 probes measure export cost and compare column and chunk likeness against Iris
- Real-codec tests decode the exported resources with the 26.3 registries
- Paper registry tests run in isolated registry scopes
- Command help and messages cover the export in every language file
2026-10-30 22:59:04 -04:00
Brian Neumann-Fopiano 618bb28591 Fixed lattice eviction race
- Lattice eviction sorts a snapshot of tile access stamps
- Concurrent tile use during eviction no longer breaks the sort
- Test covers eviction under concurrent fills
2026-10-30 22:47:20 -04:00
Brian Neumann-Fopiano b475d20aec Merge branch 'perf-gen' into perf-review 2026-10-30 21:42:42 -04:00
Brian Neumann-Fopiano e9c18cdc08 Merge branch 'perf-raster' into perf-review 2026-10-30 21:29:13 -04:00
Brian Neumann-Fopiano b10966af47 Merge branch 'perf-dem' into perf-review 2026-10-30 21:29:13 -04:00
Brian Neumann-Fopiano 0d148c69b5 Shared concurrent raster builds
- Made concurrent demands for one chunk wait for a single water raster build
- Added a test that a second demand reuses the build already running
2026-10-30 21:02:36 -04:00
Brian Neumann-Fopiano ed83c6fdeb Unqueued history claim waits
- Semantic claims and saved biome writes elect one writer per batch instead of queueing every caller on the monitor
- Waiting callers park until their batch settles and wake the next queued caller when the writer leaves
- Admission tests count parked followers as queued behind the history writer
2026-10-30 20:55:54 -04:00
Brian Neumann-Fopiano b2990104d2 Sped up hydrology sampling
- Bounds sampling answers a column from its region, land or sea type, or noise-picked biome when every biome it can still become shares the group bounds
- Base terrain heights are kept in a shared per-column memo for hydrology batches, terrain3D anchors and scalar sampling
- Hydrology height batches skip columns whose base height is already known
- The per-batch base height map and its thread local are removed
- The four inferred biome streams share one context region stream
- BakedStream exposes a baked-plane lookup without falling back to the source
- Tests cover region constants, the base height memo and bit-exact heights with and without region constants
2026-10-30 20:54:55 -04:00
Brian Neumann-Fopiano def73cff96 Clipped pregen prefetch
- Limited chunk prefetch rings to the windows a bounded pregeneration still needs
- Forwarded pregeneration region bounds from the async, medieval and modded methods
- Restored unclipped prefetch when the pregeneration closes
- Added a runtime test for clipped and restored prefetch
2026-10-30 20:54:55 -04:00
Brian Neumann-Fopiano 8773d4b008 Tiled hydrology lattice
- Stored lattice samples in compact 32x32 tiles with least-recently-used tile eviction
- Cached sampled pond rim columns in a block-resolution tile cache
- Read window coarse nodes from the fine lattice at stride 2
- Removed the window lattice and FineLatticeSource
- Sized the fine lattice for an eleven-window span and the region lattice for a seven-region span
- Updated lattice, planner and probe harness callers for the single fine lattice
2026-10-30 20:54:41 -04:00
Brian Neumann-Fopiano 1a914a404a Sped up column scans
- Section buffers resolve air once per buffer instead of on every empty read
- Section buffer writes remember the last palette entry they resolved
- Added bulk column reads to section buffers and the update-listening hunk
- Natural cave decoration, perfection and transition geometry capture read whole columns at once
- Iris execution contexts bind through a thread slot table instead of a ThreadLocal
- Semantic capture tracks resolved cave cells in a fixed bitmap instead of a BitSet
- Added tests for bulk column reads and for contexts when threads outnumber the slot table
2026-10-30 20:25:50 -04:00