摘要
为了模拟逼真的三维云场景,该文针对现有模拟三维云的光照模型实现复杂、计算耗时、不能充分展示三维云物理特性的问题,提出了一种基于体绘制技术的改进光照模型的方法。基本思想是采用体绘制技术,把三维云分成粒子集,引入光线投影算法,通过对现有的多次前向散射光照模型散射次数进行简化和散射分布进行改进,然后运用VC++和OpenGL开发工具,直接从三维数据场中模拟光线在云内部与云中粒子相互作用的细节,实现了三维云的模拟。结果表明该方法实现简便,生成的三维云较好地展示了云的物理特性,达到了理想的可视化效果。
In order to simulate the lifelike three dimensional cloud scene, at present, the existent three dimensional cloud simulation illumi- nation model is confronted with the phenomena such as complexity in implementation, time consuming and not displaying the physical character of the cloud completely,so it presents a method of improved illumination model based on volume rendering. The basic idea of this method is to use the volume rendering, and divides the three dimensional cloud into particles, taking the ray-casting algorithm into account,through simplifying the scattering times and improving the scattering distribution of the current multiple forward light scattering illumination modal,moreover making use of tools such as VC++ and OpenGL,visualizing the details of the interaction between the light and the particles in the clouds directly, finally creating lifelike three dimensional cloud. The result of the simulation shows that the method is simple in implementing and the result of the visualization can display the physical character of the cloud and get the perfect visual effect.
出处
《计算机技术与发展》
2012年第5期79-82,86,共5页
Computer Technology and Development
基金
国家重点基础研究发展计划(973计划)项目(2010CB731800)
中央高校基金项目(ZXH2010D020)
关键词
三维云绘制
多次散射
光照模型
光线投影
three dimensional cloud rendering
multiple scattering
illumination model
ray-casting