摘要
本文叙述了如何以粒子方法实现云的建模。首先利用随机噪声产生云粒子并通过处理以形成云团,然后将云团存储在指定的二维数组,通过对二维数组进行相应的运算,即通过图形变换,实现了云团漂移、层次的云团漂移、按一定的方向以指定的速度进行模拟风向和风力,以此构造了运动云的实现算法。并以Windows XP为平台,采用Microsoft Visual C++ 2010为编程工具,使用其所带的图形资源开发,实现了云的计算机模拟。实验结果表明该方法简单、实用,适用于模拟不同种类的云,如层云、积云、卷云等。
This article describes method of how to model by cloud particle. First with random noise generation of cloud particles and handle to form a cloud, and cloud storage in a two-dimensional array of the specified, through the operation of the two-dimensional array accordingly, through graphic transformation, enables clouds drift, drift, according to certain levels of cloud to the rate specified by simulation wind direction and speed, to construct a moving cloud implementation algorithms. Under Windows XP platform, using Microsoft Visual C++2010 programming tool, by the graphics resources development, realize computer simulation of clouds. Experimental results indicate that the method is simple, practical, applicable to simulate different kinds of clouds, such as Stratus, Cumulus, Cirrus, etc.
出处
《心智与计算》
2012年第2期89-94,共6页
Mind and Computation
关键词
云模拟
云彩
粒子系统
云团
随机噪声
虚拟现实
计算机仿真
cloud simulation
cloud
particles system
cloud group
random noise
virtual reality
computer simulation