
Weapons of Mass Destruction
WMD 使用基于 GPU 加速的粒子系统和计算着色器进行视觉模拟,从而添加核弹。
功能:
WMD 添加了 3 种以不同方式引发核爆炸的物品。
首先是 NukeBlock(核弹方块),当它被红石信号激活时,会在其所在位置生成一颗核弹。它提供 4 种当量变体:0.25 千吨、1 千吨、2 千吨和 5 千吨。
其次是 FallingNuke(下落核弹),它在被激活时会播放下落动画,并在落地时引爆。它也具有相同的 4 种当量变体。下落核弹支持 Valkyrien Skies(VS),这意味着如果在 VS 飞船上引爆它,它将继承飞船的速度并计算出一个半真实的落点位置。
最后是 nuke spawner(核弹生成器),它会在你注视的方向生成一颗核弹,其当量由副手物品决定:
- 铁粒:0.01 千吨
- 铁锭:0.1 千吨
- 空/铁块:1 千吨
- 金粒:2 千吨
- 金锭:5 千吨
- 金块:15 千吨
- 钻石:25 千吨
- 钻石块:50 千吨
- 下界合金锭:100 千吨
- 下界合金块:200 千吨
核弹爆炸时会形成陨石坑和隆起的边缘。周围区域的方块也会发生热转化,例如原木会变成玄武岩,草方块会变成粗泥等。受影响区域也会被转化为核废土生物群系。
核弹视觉效果使用计算着色器来模拟每一刻的粒子运动,位置随后通过稳定的基数排序算法进行排序,并渲染为 GPU 实例化的 alpha 混合 billboard(始终面向摄像机的平面)。泛光效果针对每个粒子单独计算,并由热量值驱动,因此只有真正热的粒子(靠近核心部分)才会发光。该视觉效果灵感来源于 HBM's Nuclear Tech 模组。
WMD 还完全支持 Distant Horizons(远山),这意味着你可以从很远的地方看到核弹,这是其他大多数添加核弹功能的模组所不具备的特性。
此模组还具有基于与 nukemap 相同的 sfss 模型的辐射 fallout 系统。目前它未在游戏中实际使用,但你可以查看 "wmd_debug" 文件夹中的生成结果,并使用以 "/radiation" 开头的命令。
如果你想在远处进行测试,还可以使用 "/spawnnuke" 命令来测试核弹。你可以使用 "/spawnnuke direct x y z yield" 在指定坐标立即生成爆炸,或者使用 "/spawnnuke falling x z yield" 投放带有下落动画的核弹。
大多数功能都可以在服务器配置和客户端配置中进行调整。客户端配置还有一个游戏内 GUI 设置,你可以从模组选项卡中打开它。
请注意,此模组处于测试版且正在开发中,如果遇到 bug 请不要惊讶。
已知问题包括:
- 粒子有时会随机方向高速飞出(在较大当量时更常见)。
- 在使用光影配合 DH 时,粒子深度会根据你的原版渲染距离按比例出现偏移。
- 在地面以上引爆的核弹(空中爆炸)无法正常工作。
要求:

Weapons of Mass Destruction
WMD adds nukes using a GPU-accelerated particle system and compute shaders for the visual simulation.
Features:
WMD adds 3 items that all spawn nuclear explotions in different ways.
First we have the NukeBlock which spawns a nuke at its location when powered by redstone, it comes in 4 yield variations: 0.25kt, 1kt, 2kt and 5kt.
Then we have the FallingNuke which plays a falling animation when powered and detonates where it lands, this also comes in the same 4 yield variations. The falling nuke has valkyrien skies support, meaning if you detonate one on a VS ship it will inherit the ships velocity and calculate a semi-realistic landing position.
And lastly we have the nuke spawner which spawns a nuke wherever you are looking, the yield is determined by the item in your offhand:
- Iron Nugget: 0.01 kt
- Iron Ingot: 0.1 kt
- Empty/Iron Block: 1 kt
- Gold Nugget: 2 kt
- Gold Ingot: 5 kt
- Gold Block: 15 kt
- Diamond: 25kt
- Diamond Block: 50 kt
- Netherite Ingot: 100 kt
- Netherite Block: 200 kt
When a nuke explodes it creates a crater and a raised rim. Blocks in the surrounding area also get thermally converted, things like logs turn into basalt, grass into coarse dirt and so on. The affected area also gets converted to the nuclear wasteland biome.
The nuke visual uses compute shaders to simulate particle movement each tick, the positions are then sorted using a stable radix sort and rendered as gpu instanced alpha blended billboards. Bloom is per particle and driven by a heat value so only actually hot particles(near the core) glow. The visual is inspired by HBMs nuclear tech mod.
WMD also has full distant horizons support meaning you can see nukes from far away, something pretty much no other mod that adds nukes does.
This mod also has a fallout system based on the same sfss model that nukemap uses. Its not currently used in any gameplay but you can see generation results in the "wmd_debug" folder and use the commands that start with "/radiation".
You can also use the "/spawnnuke" command to test the nukes if you want to do some faraway tests. So you can use "/spawnnuke direct x y z yield" to spawn an explosion instantly at the coordinates or "/spawnnuke falling x z yield" to drop a nuke with a falling animation.
Most features can be tweaked in the server and client configs. The client config also has an ingame GUI config you can open from the mods tab.
Keep in mind that this mod is in beta and under development so don't be surprised if you encounter bugs.
Known issues include:
- Particles sometimes get launched with high velocities in random directions(more common at larger yields).
- when using shaders along with DH the particle depth will appear shifted proportionally to your vanilla render distance.
- Nukes detonated above ground (airbursts) do not work properly.
Requirements:
评论 0
登录后参与评分
还没有评论,来抢沙发吧