摘要
利用Perlin噪声建立云图像、用指数函数对云图像进行锐化、得到了云彩灰度图像;通过HLS颜色模型将灰度图像转换成彩色云彩图像;改变参数能模拟不同气候条件下的云彩效果。实验表明:运用OpenGL开发工具和纹理映射方法将云彩置入3维虚拟环境中,能在PC机上产生了逼真的云彩效果。
By using Perlin noise to create cloud images, and exponential function to sharpen the cloud images, grayscale cloud images can be obtained. Grayscale cloud images be converted into color one by HLS color mode. The cloud images under the different weather condition can be imitated by changing parameter. Findings show that making use of such tools as OpenGL and texture mapping can enable cloud to be put into 3D virtual environment and create a vivid cloud simulation on the PC platform.
出处
《微计算机应用》
2008年第2期63-65,共3页
Microcomputer Applications
基金
湖南省教育厅资助科研项目
(项目编号:07C216)