Commit Graph
5628 Commits
Author SHA1 Message Date
Brian Neumann-Fopiano ccd5551854 Share carve ownership rule
- Add CarveOwnership, ranking hydrology over subterrain over transformed over natural
- Resolve IrisCarveModifier cell ownership through IrisCarveModifier.carveOwner and CarveOwnership
- Let hydrology win over subterrain rooms and transformed columns in MantleWriter isCarved and isPrerequisiteCarved
- Check subterrain rooms in EngineMantle.isCarved and let hydrology win over transformed columns
- Add CarveOwnershipTest running every reader over every flag combination
2026-11-01 17:48:15 -05:00
Brian Neumann-Fopiano 6f38d98e9e Check reachable biome fluids
- Engine start validates every reachable biome policy fluid while cave pools are enabled
- caveFluidPolicies stays computed from cave biomes, regions and the dimension only
2026-11-01 17:30:19 -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 1e41c9eca0 Inherit cave pool fluids
- Cave pools resolve fluid from the cave biome, then region, then dimension
- Engine.getCaveBiomeBelowSurface returns no biome where caves fall back to the surface
- caveFluidPolicies turns on only for cave biome, region or dimension fluids
- IrisDimension.getReachableCaveBiomes lists region cave biomes and carving bands
- Recapture the schema digest for the cavePools.fluid description
2026-11-01 17:19:24 -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 028c3e322f Merge branch 'size-bootstrap' into size-natives-guides 2026-11-01 17:00:50 -05:00
Brian Neumann-Fopiano c89bec2850 Thin Bukkit entry classes
- Move plugin lifecycle, static state and logging helpers from Iris into the payload-only IrisRuntime
- Keep Iris as one-line forwarders through the IrisPluginRuntime bridge interface
- Move the Paper bootstrap body into the payload-only IrisBootstrapSequence
- Read the world reconciler, replacement manager, debug dump and chunk tickets through IrisRuntime.require()
- Pass the world generator resolver to BukkitWorldReconciler instead of the plugin
- Replace KList and IO uses in VolmitPlugin with JDK code
- Remove the unused sync job queue, Java version helpers, addPanic, imsg and the onCommand passthrough
- Keep generation kernel revisions, map view icons and the datapack icon only in the packed payload
- Cap the packed bootstrap at 90 classes
- Point entry-class tests at IrisRuntime and IrisBootstrapSequence
2026-11-01 16:59:36 -05:00
Brian Neumann-Fopiano 701b3191eb Supply structure sea surface
- GenerationWritePolicy.seaSurface returns minHeight + fluidHeight and the first fluid of the dimension fluidPalette
- Dimensions with no sea fluid or a sea at the world floor return StructureSeaSurface.NONE
- Bukkit and modded structure stage policies supply the sea surface to native structure fitting
- Native fitter tests pass SeaSurface.NONE to keep their expectations
- FLATTEN descriptions state the sea-surface clamp and sea-fluid fill
- Schema digest recaptured for the description change
2026-11-01 16:50:57 -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 714b4499b0 Download noise natives and language guides instead of bundling them in the Bukkit jar 2026-11-01 16:29:20 -05:00
Brian Neumann-Fopiano 1d23587b90 Match LWJGL natives jars by file name in GpuLibraryTest 2026-11-01 16:29:20 -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 8bc1ed760e Key cave pool walls
- Cave pool walls carry the pool's fluid key instead of the unknown default profile
- A wall shared by two pools keeps the lowest fluid key, whatever the chunk order
- The carve waterlogging pass resolves a fluid only for wet hydrology cells
- Tests cover unknown-fluid logging for pool walls and shared-wall chunk-order independence
2026-11-01 16:25:32 -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 bb6f3ca40b Gate hydrology probes
- Count roof breaches as sea inlet check failures
- Count raised berms over the fill cap as hydrology probe failures
- Exit the sea inlet gate with 1 on failed checks, order mismatches, inlets off sea level or leaks the inlets add
- Exit sea inlet inventory with 1 when a window fails to plan
- Exit the cave pool probe with 1 on containment failures or order mismatches
- Print a gate status line for both probes
- Cover the failure counting in the probe unit tests
2026-11-01 16:02:46 -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
SwiftSwamp 8b99f0b75f Merge remote-tracking branch 'origin/master' 2026-11-01 10:16:11 -07: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
SwiftSwamp 55bc7365f1 Merge remote-tracking branch 'origin/master' 2026-10-31 17:42:51 -06: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