Outflow
Outflow 是一款面向 Fabric (Minecraft 26.3 / Java 25) 的、由地形驱动的水文与冰川世界生成引擎。它不放置程序生成的水团或依赖 Minecraft 的 Y=63 海平面水位,而是分块装饰前评估地形密度函数,以解决任意海拔高度下的封闭流域、冰坝水库以及区域高山冰川动力学问题——从原版地形到巨大的 Lithosphere 大陆均可自动扩展。
录制于早期 Beta 9 预览版本。
架构与技术特性
4级分层区域引擎 (Peta → Mega → Macro → Nano)
Outflow 用确定性、线程安全、并发单次飞行缓存的空间层次结构(OutflowRegions、RegionProfile、RegionPos)取代了局部的逐区块启发式算法,并支持 Vanilla 和 Lithosphere 配置文件的自动缩放:
PetaRegion / MegaRegion: 基于 Minecraft 26.3 DensitySampler / DensitySamplerSet (FastHeightSampler) 构建的大陆级地形、气候和水域缓存。
MacroRegion (512×512 Vanilla / 1024×1024 Lithosphere): 运行流域 Priority-Flood、区域冰川物理模拟、CryoRegime 分类以及跨边界的 BoundaryPortal 拼接。
NanoRegion (64×64 Vanilla / 128×128 Lithosphere): 预烘焙每列水位高程、湖泊掩码和冰川强度标志,以便在 LOCAL_MODIFICATIONS、TOP_LAYER_MODIFICATION 和结构验证期间实现 O(1) 查找。
- C2ME DFC Native: 将
NoiseChunk$Cache2D 直接附加到编译后的密度图上,完全兼容 c2me-opts-dfc 和多线程区块生成,且零区块边界接缝。
Priority-Flood 流域湖泊与 13 种生物群系床层主题
- 精确盆地检测: 原始最小堆 4 连通 Priority-Flood 算法可识别任何高程的真实封闭洼地(在 Lithosphere 中每个巨型山谷盆地可达约 300,000 方块²),并附带成比例的 3D 实心边缘洞穴验证,以及在山地生物群系中移除
minecraft:spring_water。
- 生物群系生态学与地层学: 按生物群系的区域湖泊预算控制密度、深度和间距,涵盖 13 种适应特定生物群系的床层主题(砂岩沙漠、赤陶荒漠、沼泽泥沼保留沼泽水体色调、寒温带针叶林、苍白花园、岩石高山冰碛湖),具备多层水深测量、床下洞穴密封以及针对生物群系调整的水生植物。
- 全列生物群系绘制: 从盆地/冰川底部到世界高度上限(
setBiomeColumnUpwardsFast)写入湖泊和冰川(FROZEN_PEAKS)生物群系,以保持天空色调、雾效和天气的一致性,同时保留地下洞穴生物群系。
区域二维浅冰近似 (SIA) 冰川
- 物理求解器 (
SiaGlacierField): 求解质量守恒的 8 邻域粘性冰流,灵感源自 Glen 流动定律 (q = k · H² · max(0, S_i - S_j)),并在填充的原始 float[] 网格上应用 CFL 稳定性钳制(64×64 Vanilla / 128×128 Lithosphere + 8 方块单元格分辨率的光环)。
- 物质平衡与冰冻圈状态: 结合海拔/生物群系调节的平衡线海拔 (
Y_ELA)、多尺度地形凹度 (TPI)、MFD 雪崩积雪重新分配、陡脊积雪滑落(暴露的岩石岛峰)以及指数级温暖生物群系消融。CryoRegime 区分山地 SIA 冰川与冻结平原海岸线的冰推墙 (ICE_SHOVE_PLAINS)。
物理驱动的冰坝冰川湖
- 双重 Priority-Flood 拦截 (
solveGlacialImpoundedBasins): 分别运行裸岩 (bed[]) 和冰坝 (max(bed, iceTop - 3)) 边界的 Priority-Flood 过程,以提高现有含冰湖泊或在正常岩石溢流之上创建新的冰坝山谷湖泊。
- 防水与冰川耦合: 迭代收敛强制执行 4 方块子单元格岩石边缘检查、3D 洞穴检查,并在冰川边缘下方保持严格的
≥3 方块净空。水位计算基于静水浮力 / jökulhlaup 密封(坝厚及 5×5 背塞宽度)、融水补给与盆地面积(massBalance,ELA 以下融化,有效温度按 area^0.72 缩放)、冰体体积位移以及世界坐标锚定的循环阶段(±12%,在 Macro 边界无缝衔接)。
C¹ 平滑冰川雪、雕刻式崩解悬崖与冰裂隙
- Catmull-Rom C¹ 表面与冻结后平滑处理: 使用 1 单元格填充的
smoothSurfPad 双三次样条曲线消除 8 方块双线性折痕,配合连续的 snowCover 羽化处理以及居中的 1/8 方块量化(Math.round(topYFloat * 8))。TOP_LAYER_MODIFICATION 阶段(通过 IceFloeFeature 调用 smoothGlacierSnowInChunk)针对实时暴露于天空的 WORLD_SURFACE 高度,清除裸冰/冰裂隙/悬崖/整数台阶上残留的原版 SnowAndFreezeFeature 单层伪影,并运行 2 次边缘保持型 2D 亚方块雪平滑处理(18×18 窗口)。
- 崩解悬崖、冰裂隙与冰缘带: 静水平面推进 (
hydBed) 将终端推入深湖,形成 12–25 方块的波纹状崩解悬崖,带有约 3 方块的倒角冠顶、弧形轮廓、倾斜(约 45°–55°)的水下 BLUE_ICE 龙骨、向内垂直墙壁裂缝(2–5 方块)、平行的崩解张力裂隙以及簇状横向冰裂隙,配有圆润的雪唇。各向同性的冰缘带向前延伸至最多 176 方块,包含碎冰泥浆、雕刻过的冰山/小冰山以及旋转的多尺度 Voronoi IceFloePhase 浮冰。
裸露岩壁与确定性结构保护
- 3D 岩壁剥离 (
CliffFacePhase & SteepSlopeMixin):在 18×18 的窗口内计算欧几里得表面梯度,以剥去陡峭斜坡和三维悬垂处的表土,暴露出层状的石头/安山岩/凝灰岩/深板岩岩壁(包括针对 MC-258859 的内置修复)。
- 结构防护:
LakeStructureGuard(StructureMixin、StructureCheckMixin、JigsawPlacerMixin)阻止地表结构在湖泊或冰坝盆地内生成,而 StructureStart 边界框遮罩通过在附近村庄和结构周围平滑过渡冰川(6–16 格),实现更自然的边缘处理。
内置诊断工具
包含 /outflow region [lakes|portals|clear]、/outflow glacier [scale <mult>](检查 SIA 山峰、崩解悬崖和冰坝湖)以及 /outflow river [on|off|toggle]。
推荐配套模组
- C2ME & zFastNoise (强烈推荐) — Outflow 的
FastHeightSampler 和区域缓存专门针对 c2me-opts-dfc 和并行区块生成进行了调优。
- Lithosphere — 运行时自动检测,启用
1024×1024 MacroRegion 预设,用于巨型山谷盆地和大范围 SIA 冰川网络。
- Sodium & Voxy — 非常适合渲染广阔的冰川山谷、崩解前沿和高海拔山脉景观。
开发状态与路线图
支持公告: Outflow 正处于积极的 Beta 测试阶段。在该模组达到稳定发布版本之前,仅支持最新版本。旧的 Alpha 构建不再受支持,也不会接收修复或反向移植。
- 当前版本 (
0.0.1-Beta.9 — Minecraft 26.3): 四级区域引擎(Peta/Mega/Macro/Nano)、区域级二维 SIA 高山冰川、物理驱动的冰坝湖、Catmull-Rom C¹ 平滑冰川雪 + 冻结后平滑处理、圆润的崩解悬崖与向内裂缝、多尺度 Voronoi 冰原、具有 13 种生物群系基床主题的 Priority-Flood 湖泊、全列生物群系绘制、裸露岩壁、结构防护以及 Lithosphere/C2ME 支持。
- 未来 Beta 计划: 重写流域径流河流、冰下/冰上融水通道和级联瀑布 (在 Beta 9 中通过
RegionProfile.ENABLE_RIVERS = false 默认禁用,目前正在进行重写)。
常见问题
Outflow 需要哪个 Minecraft / 加载器版本?
Fabric 上的 Minecraft 26.3(Fabric Loader >=0.20.1,Fabric API >=0.166.2+26.3,Java 25)。
它是否与 Tectonic、Lithosphere、C2ME、Sodium 和 Voxy 兼容?
是的 — Outflow 直接作用于活跃的 ChunkGenerator 密度函数和 BiomeResolver,因此可以自动适应自定义地形模组和数据包。
我可以将 Outflow 包含在整合包中吗?
当然可以,欢迎将其包含在任何整合包中。
发现了错误或是地形边缘情况?
Outflow 仍处于 Beta 阶段 — 请在我们的 Discord 上报告任何问题(最好附带种子、坐标以及 /outflow region / /outflow glacier 的输出结果)!
Outflow
Outflow is a topography-driven hydrological and glaciological worldgen engine for Fabric (Minecraft 26.3 / Java 25). Rather than placing procedural blobs or relying on Minecraft's Y=63 sea-level water table, Outflow evaluates terrain density functions ahead of chunk decoration to solve enclosed watersheds, ice-dammed reservoirs, and regional alpine glacier dynamics across any altitude — scaling automatically from vanilla terrain to massive Lithosphere continents.
Recorded on an early Beta 9 preview build.
Architecture & Technical Features
4-Tier Hierarchical Region Engine (Peta → Mega → Macro → Nano)
Outflow replaces local chunk-by-chunk heuristics with a deterministic, thread-safe, concurrent single-flight cached spatial hierarchy (OutflowRegions, RegionProfile, RegionPos) with automatic Vanilla and Lithosphere profile scaling:
PetaRegion / MegaRegion: Continental-scale topography, climate, and watershed caching built on Minecraft 26.3 DensitySampler / DensitySamplerSet (FastHeightSampler).
MacroRegion (512×512 Vanilla / 1024×1024 Lithosphere): Runs watershed Priority-Flood, regional glacier physics, CryoRegime classification, and cross-border BoundaryPortal stitching.
NanoRegion (64×64 Vanilla / 128×128 Lithosphere): Pre-bakes per-column water elevations, lake masks, and glacier intensity flags for O(1) lookups during LOCAL_MODIFICATIONS, TOP_LAYER_MODIFICATION, and structure validation.
- C2ME DFC Native: Attaches
NoiseChunk$Cache2D directly to compiled density graphs for full compatibility with c2me-opts-dfc and multi-threaded chunk generation with zero chunk-border seams.
Priority-Flood Watershed Lakes & 13 Biome Bed Themes
- Exact Basin Detection: Primitive min-heap 4-connected Priority-Flood identifies true enclosed depressions at any elevation (up to ~300,000 blocks² per mega-valley basin in Lithosphere) with proportional 3D solid-rim cave validation and
minecraft:spring_water removal in mountain biomes.
- Biome Ecology & Stratigraphy: Per-biome regional lake budgets control density, depth, and spacing across 13 biome-adapted bed themes (sandstone deserts, terracotta badlands, swamp mud with preserved swamp water tint, boreal taigas, pale gardens, rocky alpine tarns) with multi-layer bathymetry, sub-bed cave sealing, and biome-tuned aquatic flora.
- Full-Column Biome Painting: Writes lake and glacier (
FROZEN_PEAKS) biomes from basin/glacier floor to world height limit (setBiomeColumnUpwardsFast) for consistent sky tint, fog, and weather while preserving underground cave biomes.
Regional 2D Shallow Ice Approximation (SIA) Glaciers
- Physics Solver (
SiaGlacierField): Solves mass-conserving 8-neighbor viscous ice flow inspired by Glen's Flow Law (q = k · H² · max(0, S_i - S_j)) with CFL stability clamping on padded primitive float[] grids (64×64 Vanilla / 128×128 Lithosphere + halo at 8-block cell resolution).
- Mass Balance & Cryosphere Regimes: Combines altitude/biome-modulated equilibrium line altitude (
Y_ELA), multi-scale topographic concavity (TPI), MFD avalanche snow redistribution, steep-ridge snow shedding (exposed rocky nunataks), and exponential warm-biome ablation. CryoRegime separates mountain SIA glaciers from frozen-plains shoreline ice-shove walls (ICE_SHOVE_PLAINS).
Physically Driven Ice-Dammed Glacial Lakes
- Dual Priority-Flood Impoundment (
solveGlacialImpoundedBasins): Runs both bare-rock (bed[]) and glacier-dammed (max(bed, iceTop - 3)) boundary Priority-Flood passes to raise existing glacier-bearing lakes or create new ice-dammed valley lakes above the normal rock spillover.
- Watertight & Glaciologically Coupled: Iterative convergence enforces 4-block sub-cell rock-rim checks, 3D cave checks, and a strict
≥3-block clearance below glacier edges. Water elevation is computed from hydrostatic flotation / jökulhlaup sealing (dam thickness & 5×5 backing plug width), meltwater supply vs. basin area (massBalance, below-ELA melt, effective temperature scaled by area^0.72), ice-volume displacement, and a world-coordinate-anchored cycle phase (±12%, seam-free across Macro borders).
C¹ Smooth Glacier Snow, Sculpted Calving Cliffs & Crevasses
- Catmull-Rom C¹ Surface & Post-Freeze Smoothing: Uses a 1-cell padded
smoothSurfPad bicubic spline to eliminate 8-block bilinear creases, paired with continuous snowCover feathering and centered 1/8-block quantization (Math.round(topYFloat * 8)). A TOP_LAYER_MODIFICATION pass (smoothGlacierSnowInChunk via IceFloeFeature) targets the live sky-exposed WORLD_SURFACE height to strip stray vanilla SnowAndFreezeFeature 1-layer artifacts from bare ice/crevasses/cliffs/integer steps and runs 2 passes of edge-preserving 2D sub-block snow smoothing (18×18 window).
- Calving Cliffs, Crevasses & Proglacial Zones: Hydrostatic lakeside advance (
hydBed) pushes termini into deep lakes as 12–25-block fluted calving cliffs with ~3-block beveled crowns, arc-curved silhouettes, sloped (~45°–55°) underwater BLUE_ICE keels, inward vertical wall fissures (2–5 blocks), parallel calving-tension fractures, and clustered transverse crevasses with rounded snow lips. Isotropic proglacial zones extend up to 176 blocks ahead of fronts with brash slush, sculpted icebergs/growlers, and rotated multi-scale Voronoi IceFloePhase floes.
Bare Rock Cliffs & Deterministic Structure Protection
- 3D Cliff Stripping (
CliffFacePhase & SteepSlopeMixin): Computes Euclidean surface gradients across an 18×18 window to strip topsoil from steep slopes and 3D overhangs, exposing stratified stone/andesite/tuff/deepslate cliffs (including a built-in fix for MC-258859).
- Structure Guarding:
LakeStructureGuard (StructureMixin, StructureCheckMixin, JigsawPlacerMixin) blocks surface structures from spawning inside lakes or ice-dammed basins, while StructureStart bounding-box masking smoothly tapers glaciers (6–16 blocks) around nearby villages and structures.
Built-In Diagnostics
Includes /outflow region [lakes|portals|clear], /outflow glacier [scale <mult>] (inspecting SIA peaks, calving cliffs, and ice-dammed lakes), and /outflow river [on|off|toggle].
Recommended Companion Mods
- C2ME & zFastNoise (highly recommended) — Outflow's
FastHeightSampler and region caches are tuned specifically for c2me-opts-dfc and parallel chunk generation.
- Lithosphere — Auto-detected at runtime, enabling the
1024×1024 MacroRegion preset for mega-valley basins and large-scale SIA glacier networks.
- Sodium & Voxy — Ideal for rendering wide glacial valleys, calving fronts, and high-altitude mountain vistas.
Development Status & Roadmap
Support Notice: Outflow is in active Beta development. Until the mod reaches a stable release, only the latest version is supported. Older Alpha builds are no longer supported and will not receive fixes or backports.
- Current Release (
0.0.1-Beta.9 — Minecraft 26.3): 4-tier region engine (Peta/Mega/Macro/Nano), regional 2D SIA alpine glaciers, physically driven ice-dammed lakes, Catmull-Rom C¹ smooth glacier snow + post-freeze smoothing pass, rounded calving cliffs & inward crevasses, multi-scale Voronoi ice floes, Priority-Flood lakes with 13 biome bed themes, full-column biome painting, bare rock cliffs, structure guarding, and Lithosphere/C2ME support.
- Planned for Future Betas: Reworked watershed outflow rivers, subglacial/supraglacial meltwater channels, and cascading waterfalls (disabled by default in Beta 9 via
RegionProfile.ENABLE_RIVERS = false while under rework).
FAQ
What Minecraft / loader version does Outflow require?
Fabric on Minecraft 26.3 (Fabric Loader >=0.20.1, Fabric API >=0.166.2+26.3, Java 25).
Does it work with Tectonic, Lithosphere, C2ME, Sodium, and Voxy?
Yes — Outflow operates directly on the active ChunkGenerator density functions and BiomeResolver, so it adapts automatically to custom terrain mods and datapacks.
Can I include Outflow in a modpack?
Yes, feel free to include it in any modpack.
Found a bug or terrain edge case?
Outflow is still in Beta — please report any issues (ideally with seed, coordinates, and /outflow region / /outflow glacier output) on our Discord!
评论 0
登录后参与评分
还没有评论,来抢沙发吧