本文介绍了游戏如何制作火焰和烟雾效果?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在互联网上搜索了有关粒子系统和火焰效果的信息,但没有找到任何好的答案.

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

有些游戏有某种电影显示为火,这很不错,但不适用于靠近观众的火.

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.

如何在游戏中制作逼真的火焰和烟雾效果?我正在寻找好的示例代码或如何执行此操作的说明.

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.

推荐答案

如果您真的想开始模拟类似流体的效果(实际上包括烟雾和火焰),那么请查看 Jos Stam 出色的稳定流体" 论文.如果您不熟悉地形,它可能在数学上有些涉及.但是,如果您通过方程式(这可能会有所帮助),没那么难.并且有很多可用的实现.

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.

这篇关于游戏如何制作火焰和烟雾效果?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-16 08:10