2D烟/火/烟雾算法 [英] 2D smoke/fire/mist algorithm

查看:439
本文介绍了2D烟/火/烟雾算法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在哪里可以找到一个好的算法,或者仅仅是一个良好的开端,实现实时,非交互式冒烟或起火或雾,在2D?

Where can I find a good algorithm, or where is just a good place to start, to implement real-time, non-interactive smoke or fire or mist, in 2D?

我遇到这种简单的和的这个复杂的3D 之一,但我希望的东西之间​​。任何人都知道有任何好的算法?

I've come across this simple one and this complex 3D one but I was hoping for something in between. Anyone know of any good algorithms?

推荐答案

在中间的算法,是常用的最好的是一个粒子系统,描述的这里

The best "in-between" algorithm that is in common use is a particle system, described here.

从本质上讲,创建了一堆的精灵,并根据简单的规则动画。有了正确的参数和纹理,为您打造的烟,因为它是在几乎所有出版的游戏进行。

Essentially, you create a bunch of sprites and animate them according to simple rules. With the right parameters and textures, you create smoke as it is done in just about every game published.

它有点黑色艺术得到它的权利,但有资源的负荷起步,如果你知道<一个href="http://www.google.com/search?client=safari&rls=en-us&q=particle+system+$c$c&ie=UTF-8&oe=UTF-8"相对=nofollow>去哪里找。

Its a bit of a black art getting it right, but there's loads of resources for getting started if you know where to look.

这篇关于2D烟/火/烟雾算法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆