particle system for cloud or smoke

拟墨画扇 提交于 2019-12-03 03:58:43

问题


I am trying to make a simple particle system for cloud and smoke simulation using OpenGL and CUDA.

How can I make the particles in the particle system behave as a real cloud or smoke would behave in some low turbulent winds?

Some problems I'm having right now is:

  1. The particles clump together in a big ball
  2. The particles spread away into infinity
  3. The particles suddenly slingshot themselves away.

I've already done the rendering of the particles so I'm satisfied in that area.


回答1:


The little grasshopper has some fantastic tutorials on particle systems of this nature: Noise Based Particles (smoke), Noise Based Particles II (smoke), Simple Fluid Simulation (smoke), and Deep Opacity Maps (clouds). Most of these are purely OpenGL but the overall techniques could be applied in CUDA / OpenGL interops if you so desired.




回答2:


Maybe you should study the Reynolds Boids, it will provide you some ideas to avoid those problems:

http://www.red3d.com/cwr/boids/



来源:https://stackoverflow.com/questions/15528159/particle-system-for-cloud-or-smoke

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!