摘要
为了实现动态云场景的创建与绘制,文中提出一种基于体绘制的三维云模拟算法。算法用Perlin噪声干扰椭球模型,得到云场景区域内体素颜色的基本数据,然后对体素颜色进行软化模糊和添加阴影处理,建立绘制区域的云数据模型;同时通过ray casting对绘制区域进行体数据采样渲染,模拟出三维云的效果。仿真实验结果表明:该算法模拟出的云场景可让云形状颜色位置动态改变,也可让视点穿过云层,具有动态和交互效果,是一种可行的动态云场景模拟算法。
To realize the dynamic cloud scene constructing and rendering, propose a 3D cloud scene simulation algorithm based on volume rendering. With this algorithm, by using Perlin noise to disturb ellipsoid model, the basic color values of voxel in the cloud scene are generated, which are then processed by color soften and adding shadow, the volume data model in rendering area is produced. At the same time, with ray casting sampling and rendering the volume data in rendering area, the 3D cloud is simulated. The simulation experiment re- sults show that the cloud scene simulated by this algorithm allows the shapes, the colors, the positions to change as time changes and let viewport walk through, the clouds scene is of dynamic effect and interactivity effect, the dynamic cloud scene simulation algorithm presented in this paper is feasible.
出处
《计算机技术与发展》
2015年第2期29-32,共4页
Computer Technology and Development
基金
国家自然科学基金资助项目(60903118
61103137)
国家科技支撑计划(2012AA011801)
关键词
云场景
柏林噪声
体绘制
动态效果
交互效果
cloud scene
Perlin noise
volume rendering
dynamic effect
interactivity effect