Commit Graph
5414 Commits
Author SHA1 Message Date
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 69416c235c One water-head rule
- Add WaterHeads.snap as the single sea-level parity rule for water heads
- Route RasterComposer heads through WaterHeads.snap and drop its private level helper
- Route PondChannelSettlement heads through WaterHeads.snap and drop its private head helper
- Route ChunkFeatures and ReachSegments hasOnlyLevel checks through WaterHeads.snap
2026-11-01 15:53:59 -05:00
Brian Neumann-Fopiano 30c7492679 Keep Engine API in release shrink 2026-11-01 14:58:37 -05:00
Brian Neumann-Fopiano 8734c38361 BTA 2026-10-31 22:42:16 -04:00
Brian Neumann-Fopiano 2d4ede41dd Merged pack authoring features
- Biome effects choose their sound category on every platform
- Hanging vines keep supported authored side faces on every platform
- Inland water above sea level keeps its land biome
- River reaches take the policy fluid of their upstream end
- Fluid profiles can name a seam that lines their edge against other fluids
2026-10-31 22:27:31 -04: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 f686ec84f8 Merged fluid seam fixes 2026-10-31 21:42:45 -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 64dc22025e Merged pack authoring features
- Rivers take the hydrology policy fluid of the area where each reach starts
- Policy fluid lookups for reach starts run in a sparse bake scope
- Effects, vine faces, inland water biomes and fluid seams come from the contributed branch
2026-10-31 21:26:16 -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
4.3.7-26.1.2-26.3
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 304e66b74b Version 4.3.7
- Iris version is 4.3.7 in gradle.properties
- Root build defaults to version 4.3.7
- Fabric, Forge and NeoForge builds default to version 4.3.7
2026-10-31 19:13:08 -04:00
Brian Neumann-Fopiano f1c82e8cec Saved world on create
- /iris create saves a new world before spawn preparation
- A crash before the first autosave keeps the world's seed
2026-10-31 13:22:37 -04:00
Brian Neumann-Fopiano 9339c0869e Saved world on create
- /iris create saves a new world before spawn preparation
- A crash before the first autosave keeps the world's seed
2026-10-31 12:39:29 -04:00
Brian Neumann-Fopiano bb32ea9d25 Datapack export
- /iris datapack export compiles a pack dimension into a 26.3 worldgen datapack
- Bukkit and mod loaders share the export arguments
- Pack compiler stages lower noise, terrain, caves, biomes, decoration, objects and structures to 26.3 resources
- Every approximation reports an export limit diagnostic
- Decorators and objects follow Iris placement rules for water, slope, height and support
- Procedural objects export their pre-built variants as templates
- Jigsaw exports share the template encoder and publisher with the worldgen export
- 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 likeness against Iris
2026-10-31 03:41:40 -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
Michael 4a499c18c4 Let a fluid set the block that forms where it meets another fluid
World generation places fluids without updates, so where lava meets water or the sea the two sit
side by side instead of reacting. A fluid profile can now name a seam: another fluid profile that
fills its edge where it touches a different fluid or the sea (a dry column whose ground is below
sea level). A profile used as a seam may hold solid blocks, e.g. lava with a seam of obsidian,
magma and basalt gets a cooled crust where it meets water. Every touching cell (diagonals included)
seals, plus about 60% of the cells next to those, picked by a world-position hash, so the seam is a
ragged band rather than a straight line. Without a seam nothing changes.
2026-10-31 02:12:22 -05:00
Michael 09d6e4b720 Let hydrology policies set the fluid of rivers
A hydrology policy's fluid filled ponds and lakes, but channels always used their tier's fluid, so a
volcanic region could have lava lakes but only water rivers. Each reach now takes the fluid its
policy (biome, then region, then dimension) names where the reach starts, its upstream end, falling
back to the tier's fluid when no policy names one, and keeps it to its downstream end. Deciding per
reach rather than per column keeps a river one fluid from source to confluence, so two fluids only
meet where streams join or flow into a lake, not along every border a river crosses. River plans
and the plan cache are unchanged.
2026-10-31 02:12:13 -05:00
Michael 6ed70b3856 Keep the land biome under inland water above sea level
The surface biome is typed from the ground height, so a pond or stream whose floor dips below the
dimension's fluid height became the region's sea biome (ocean colours and ocean spawns in a small
pond on low land). When the hydrology raster marks the column as inland water (pond, channel,
cascade or waterfall; not a mouth or sea inlet) whose surface is above sea level, and the base biome
is a land biome, keep that land biome.
2026-10-31 02:12:01 -05:00
Michael 6d6bd4f054 Keep a pack's side faces on hanging vines
DecoratorCore.fixFacesForHunk cleared every face of a placed vine and re-attached it to solid
neighbours, falling back to UP. A ceiling decorator that stacks vines downward therefore made a flat
sheet under every block instead of a hanging curtain, whatever faces the pack set. When the pack
already gives a vine a side face, keep it (the vine above holds it, as in vanilla) and add UP only
where a solid ceiling is directly above. Vines without authored side faces are fixed as before.
2026-10-31 02:12:01 -05:00
Michael bce7efaa72 Let biome effects choose their sound category
IrisEffect played its sound with Player.playSound(location, sound, volume, pitch), which Paper
sends on SoundCategory.MASTER, so packs that use effects for biome music or ambience could only be
turned down with the master slider. A new soundCategory field (default MASTER, so existing packs
sound the same) picks the category: music can follow the music slider, moods the ambient slider.
2026-10-31 02:12:01 -05: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 b00e28e42e Modded terrain write tests
- Tests cover fresh section writes in the modded chunk generator
2026-10-30 22:50:49 -04:00
Brian Neumann-Fopiano b61d2f305b Modded structure state key
- Modded biome policy supplies the structure state key from the generator
- History worlds key structure state by the active epoch
- Studio worlds get a fresh transient key
- Tests cover the key binding and the structure state codec
2026-10-30 22:50:49 -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 6ceda7c53b Pregen optimization pass
- Hydrology height lattice stores samples in tiles with least-recently-used eviction
- Evicted lattice cells are no longer sampled twice
- Pond rim columns go through the lattice column cache
- Window planning reads its coarse nodes from the fine lattice
- Prefetch stays inside the pregeneration area while a pregeneration runs
- Sea inlet splat compares squared distances
- Bounds sampling answers a column from region constants when every reachable biome shares the bounds
- Base terrain heights are shared through a per-column memo
- Chunk water rasters use per-chunk palettes and a larger cache
- Raster channel lookups use a 4-block segment grid
- Chunks with no water in reach return the empty raster directly
- Riffle spreads stop at cells that cannot reach the chunk
- Cave pool terrain is built only for chunks with a pool site
- Concurrent raster builds for one chunk share a single build
- Section buffers resolve air once and support bulk column reads
- Cave decoration, perfection and transition capture read bounded column windows
- Generation history claims and saved biome writes elect one writer per batch
2026-10-30 22:34:31 -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 8e625d4547 Merge branch 'perf-plan' 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 806e847e90 Bounded column rereads
- Natural cave decoration reads columns in sixteen-row windows and drops the window after each decorated zone
- Perfection reads cells directly after a spike is normalized instead of rereading the column below it
2026-10-30 21:02:23 -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 ca33273d17 Sped up inlet splat
- Compared squared distances in SeaInletPlanner.splat and kept hypot for cells inside the rounding band
2026-10-30 20:54:54 -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
Brian Neumann-Fopiano 1899de7f3d Deferred cave pool terrain
- Opened the cave pool terrain view only for chunks that draw a pool site
- Added a test that chunks without a pool site never open their caves
2026-10-30 20:09:02 -04:00
Brian Neumann-Fopiano 3c39092cc7 Pruned riffle distance spreads
- Stopped riffle distance spreads at cells that cannot reach the chunk
2026-10-30 20:09:02 -04:00
Brian Neumann-Fopiano 0c7adc5da4 Indexed raster channel lookups
- Indexed reach segments into a channel grid around each rasterized chunk
- Skipped sea inlet column checks outside each inlet's bounds
- Returned the empty raster for chunks with no water features in reach
- Added a test that covered channel lookups match the full segment scan
2026-10-30 20:09:02 -04:00
Brian Neumann-Fopiano a879985875 Cached more water rasters
- Stored raster tiers fluids and feature ids as per-chunk palettes
- Derived cave ceilings from terrain heights and water heads
- Raised the water raster cache from 1024 to 8192 chunks
2026-10-30 20:09:02 -04:00
Brian Neumann-Fopiano c700138b66 Native provider loading
- Native provider classes load from the provider jars before the plugin class loader
- Another plugin bundling VolmLib natives no longer supplies Iris native capabilities on Spigot
- Tests cover provider jar classes taking precedence over the plugin loader
4.3.6-26.1.2-26.3
2026-10-29 01:49:27 -04:00