它的作用是什么?
当墙壁阻挡在前方、你走出房间或进入水中时,声音会发生变化。AcousticSystem 持续读取当前的世界几何结构,因此放置或破坏方块也会影响正在播放的声音。
功能特性
- 基于墙体材质和厚度的遮挡效果
- 声音绕过拐角、穿过开口以及沿连通结构的传播
- 来自墙壁、地板和天花板的反射
- 由房间大小、开口和表面材质塑造的混响效果
- 空气、水和岩浆之间的物理声音过渡
- 对移动声源、听者和变化方块的持续更新
- 四种质量预设及详细设置选项
- 基于 JSON 的方块和流体声学属性配置
工作原理
所有定位世界声音都经过相同的传播管线。结果并非从房间预设列表中选取。
世界几何结构与材质
↓
直达声与透射声
↓
衍射与结构路径
↓
早期反射与晚期场追踪
↓
距离、大气与介质衰减
↓
实时软件混音器
传播与遮挡
直线路径被采样为有限的第一菲涅尔区波前,而非单一的中心射线。每个采样点与实际碰撞形状相交,并累加在每个材质中传播的距离。随后针对八个频带独立应用透射损耗,使得多层材质继续衰减声音,而薄块或部分方块不会表现得像完整的一米厚墙壁那样完全阻隔声音。
衍射
当直路波前被阻挡时,求解器按需构建区块、门户、可见性及衍射边缘节点的层级结构。A* 算法在此图结构中搜索通过门洞、绕过拐角以及穿越多转弯通道的完整路径。完成的路径按每个频带进行评估,采用基于菲涅尔参数和菲涅尔-基尔霍夫衰减近似的刃形衍射模型。有效的到达信号按能量和方向进行组合,而非选择某个任意门洞。
距离与空气吸收
自由场距离衰减遵循球面扩散规律:声压大约随 1 / distance 下降,这对应于平方反比的强度衰减,即距离每增加一倍,损失约 6 dB。
空气吸收使用 ISO 9613-1 模型,应用于八个频带中的每一个。温度、相对湿度和大气压力决定了氧氮弛豫损耗。对于长度为 d 的路径,每个频带获得压力增益 exp(-αd),因此高频在长距离下消失得更快,而无需施加人为的听力截止限制。
反射
早期反射使用来自附近表面的镜像声源候选项。在应用延迟、方向、距离衰减以及依赖材质的吸收、透射和散射之前,每个候选项都会根据当前世界几何结构进行检查。这使得石头、木材、羊毛和其他材质组产生不同的反射频谱。
房间分析与混响
晚期场通过多重反弹蒙特卡洛光线追踪进行测量。光线在每次命中材质时损失能量,并通过真实开口逃逸。开口损耗包含在一个类似 Sabine 的房间能量模型中,同时一个 0.5 ms 的能量直方图记录到达场。通过对该追踪响应进行反向施罗德能量积分和衰减曲线回归,估算每个频带的 RT60(混响时间)。
测量的场通过运行在 24 kHz 频率下的八延迟线反馈延迟网络(FDN)进行渲染。该网络使用互质延迟、保持能量的归一化哈达玛反馈矩阵以及四个施罗德全通扩散器,以构建密集的尾部而不使其变成重复的回声。对于往返时间为 τ 的延迟线,其反馈增益计算为 g = 10^(-3τ / RT60),使能量在测量的衰减时间内下降 60 dB。单极点滤波器在 250 Hz 和 4 kHz 处分割反馈,以便低频、中频和高频衰减速率可以根据追踪得到的 RT60 频谱独立计算。
流体与介质边界
空气、水和岩浆被视为具有各自声速和阻抗的声学介质。每条路径都被拆分为其实介质段。在边界处,反射和透射能量来自两种介质之间的阻抗关系,而延迟则取决于在各介质声速下传播的距离。靠近流体表面的声源耦合在六个体素面上进行区域积分,从而避免将短暂暴露或部分浸没的声源变为纯空气或纯水的特殊情况。
结构传声
接触声还可以激发相连的碰撞固体。A* 算法跟随面连接的实心方块,而材质耦合和频率相关的阻尼决定了多少振动能传到听者耳中。这是用于诸如脚步声通过地板传播等情况的路径;它与特定的声音 ID 无关。
动态更新与性能
世界数据存储在不可变的区块部分快照中。方块与流体变化仅替换受影响的区块部分,而传播计算在渲染线程之外进行。当声源、听者或几何结构发生变化时,活跃音效会重新评估,音频回调持续应用最新的方位角和声学系数。质量预设调整的是追踪预算,而非切换到不同的声学模型。
材质吸收、透射损耗、散射、介质阻抗及相关频段数据定义于 src/client/resources/assets/acousticsystem/acoustic_materials/default.json。
兼容性
| Minecraft | Java | Fabric | Forge | NeoForge |
|---|---|---|---|---|
| 1.21.11 | 21 | ✓ | ✓ | ✓ |
| 26.1.2 | 25 | ✓ | ✓ | ✓ |
| 26.2 | 25 | ✓ | ✓ | ✓ |
AcousticSystem 是一个客户端模组。Fabric 安装还需匹配版本的 Fabric API。其软件混音器需要支持 AL_SOFT_callback_buffer 的 OpenAL Soft 设备。
安装
- 选择与你的 Minecraft 版本及模组加载器匹配的 JAR 文件。
- 将其放入 Minecraft 的
mods文件夹中。 - 打开 音乐与声音选项 → 声音物理,以选择质量预设或调整单独设置。
如果你发现 Bug 或不自然的音效,请提交 issue,并附上你的 Minecraft 版本、模组加载器以及复现步骤。
Real-time acoustic physics for Minecraft worlds
Features · How it works · Compatibility · Installation · Building · Report a bug
What does it do?
Sound changes when a wall stands in the way, when you step out of a room, or when you enter water. AcousticSystem continuously reads the current world geometry, so placing or breaking blocks also affects sounds that are already playing.
Features
- Occlusion based on wall material and thickness
- Sound propagation around corners, through openings, and along connected structures
- Reflections from walls, floors, and ceilings
- Reverb shaped by room size, openings, and surface materials
- Physical sound transitions between air, water, and lava
- Continuous updates for moving sources, listeners, and changed blocks
- Four quality presets with detailed settings
- JSON-based acoustic properties for blocks and fluids
How it works
Every positional world sound goes through the same propagation pipeline. The result is not selected from a list of room presets.
world geometry and materials
↓
direct sound and transmission
↓
diffraction and structural paths
↓
early reflections and late-field tracing
↓
distance, atmosphere, and medium losses
↓
real-time software mixer
Propagation and occlusion
The direct path is sampled as a finite first Fresnel-zone wavefront instead of a single center ray. Each sample is intersected with the actual collision shapes, and the distance travelled inside every material is accumulated. Transmission loss is then applied independently across eight frequency bands, so several layers continue to attenuate the sound and thin or partial blocks do not behave like full one-metre walls.
Diffraction
When the direct wavefront is blocked, the solver builds an on-demand hierarchy of chunk, portal, visibility, and diffraction-edge nodes. A* searches this graph for complete routes through doors, around corners, and across multi-turn passages. The finished paths are evaluated per frequency band with knife-edge diffraction based on the Fresnel parameter and the Fresnel–Kirchhoff attenuation approximation. Valid arrivals are combined by energy and direction instead of choosing one arbitrary doorway.
Distance and air absorption
Free-field distance loss follows spherical spreading: pressure falls approximately as 1 / distance, which corresponds to inverse-square intensity and about 6 dB of loss whenever distance doubles.
Air absorption uses the ISO 9613-1 model in each of the eight frequency bands. Temperature, relative humidity, and atmospheric pressure determine the oxygen and nitrogen relaxation losses. For a path of length d, each band receives the pressure gain exp(-αd), so high frequencies disappear faster over long distances without imposing an artificial hearing cutoff.
Reflections
Early reflections use image-source candidates from nearby surfaces. Each candidate is checked against current world geometry before its delay, direction, distance loss, and material-dependent absorption, transmission, and scattering are applied. This makes stone, wood, wool, and other material groups produce different reflected spectra.
Room analysis and reverb
The late field is measured with multi-bounce Monte Carlo ray tracing. Rays lose energy at every material hit and escape through real openings. Opening loss is included with a Sabine-style room-energy model, while a 0.5 ms energy histogram records the arrival field. Backward Schroeder energy integration and decay-curve regression estimate RT60 for each frequency band from that traced response.
The measured field is rendered by an eight-delay-line Feedback Delay Network (FDN) running at 24 kHz. The network uses mutually incommensurate delays, an energy-preserving normalized Hadamard feedback matrix, and four Schroeder all-pass diffusers to build a dense tail without turning it into a repeated echo. For a delay line with round-trip time τ, its feedback gain is calculated as g = 10^(-3τ / RT60), making the energy fall by 60 dB over the measured decay time. One-pole filters split the feedback at 250 Hz and 4 kHz so the low, middle, and high decay rates can be calculated independently from the traced RT60 spectrum.
Fluids and medium boundaries
Air, water, and lava are treated as acoustic media with their own sound speed and impedance. Every path is split into its real medium segments. At a boundary, reflected and transmitted energy comes from the impedance relation between both media, while delay comes from the distance travelled at each medium's sound speed. Source coupling near a fluid surface is integrated over patches on the six voxel faces, which avoids turning a briefly exposed or partly submerged source into an all-air or all-water special case.
Structure-borne sound
Contact sounds can also excite connected collision solids. A* follows face-connected solid blocks, while material coupling and frequency-dependent damping determine how much vibration reaches the listener. This is the path used for cases such as footsteps travelling through a floor; it is not tied to a specific sound ID.
Dynamic updates and performance
World data is stored in immutable chunk-section snapshots. Block and fluid changes replace only affected sections, while propagation work runs away from the render thread. Active sounds are re-evaluated as the source, listener, or geometry changes, and the audio callback continuously applies the latest direction and acoustic coefficients. Quality presets adjust tracing budgets rather than switching to a different acoustic model.
Material absorption, transmission loss, scattering, medium impedance, and related band data are defined in src/client/resources/assets/acousticsystem/acoustic_materials/default.json.
Compatibility
| Minecraft | Java | Fabric | Forge | NeoForge |
|---|---|---|---|---|
| 1.21.11 | 21 | ✓ | ✓ | ✓ |
| 26.1.2 | 25 | ✓ | ✓ | ✓ |
| 26.2 | 25 | ✓ | ✓ | ✓ |
AcousticSystem is a client-side mod. Fabric installations also require the matching version of Fabric API. Its software mixer requires an OpenAL Soft device with AL_SOFT_callback_buffer support.
Installation
- Choose the JAR that matches your Minecraft version and mod loader.
- Place it in your Minecraft
modsfolder. - Open Music & Sound Options → Sound Physics to select a quality preset or adjust individual settings.
If you notice a bug or an unnatural sound, please open an issue with your Minecraft version, mod loader, and steps to reproduce it.
下载 Sound Acoustic Physics
下载 Sound Acoustic Physics
下载 Sound Acoustic Physics
下载 Sound Acoustic Physics
下载 Sound Acoustic Physics
下载 Sound Acoustic Physics
下载 Sound Acoustic Physics
下载 Sound Acoustic Physics
下载 Sound Acoustic Physics
下载 Sound Acoustic Physics
改进声学流体发射器,将声学调度从渲染线程中移出
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
让你能够在世界中的任何位置定位结构。
模组
TerraFirmaCraft (TFC) 是一个全面转换模组,对生存模式进行了彻底的改造与重新设计。
模组
一堆修复
模组
如果游戏能告知重要的刷新点,会怎样?
模组
一款适用于你选择的加载器的 Minecraft VR 模组!
模组
为盔甲架添加图形用户界面,允许你配置其姿势和其他属性
评论 0
登录后参与评分
还没有评论,来抢沙发吧