如何让游戏火和烟的效果?效果、游戏

2023-09-08 00:36:48 作者:失去的东西就别捡了,太脏!

我在网上搜索有关粒子系统和火灾影响的信息,但我还没有找到什么好的答案。

I searched the internet for information about particle systems and fire effects but I haven't found any good answers.

某些游戏有某种表现为火,这是pretty的好电影,但不是火灾这是贴近观众。

Some games have some sort of movie shown as the fire, which is pretty good, but not for fires which are close to the viewer.

我如何才能在游戏中逼真的火灾和烟雾效果?我找了很好的样本code或描述如何做到这一点。

How can I make realistic fire and smoke effects in a game? I am looking for good sample code or descriptions how to do this.

推荐答案

如果你真的想在流体样作用(这实际上包括烟和火)的模拟上手再看看乔斯斯塔姆的出色的稳定的流体的文件。这也许是数学上有所涉及,如果你不熟悉地形。但是,如果你过去式(这可能帮助),它是没有那么难。并有大量可用的实现。

If you really want to get started on the simulation of fluid like effects (which actually include smoke and fire) then have a look at Jos Stam's excellent "stable fluids" paper. It is perhaps mathematically somewhat involved if you're not familiar with the terrain. But if you get past the equations (this might help), it's not that hard. And there are plenty of implementations available.

只是谷歌稳定液体:)也许不是实际的粒子系统,但非常有趣不过。

Just Google "Stable Fluids" :) Perhaps not an actual particle system, but great fun nonetheless.