摘要
针对在虚拟的雨场景中动态水滴交互的问题,提出一种水滴与玻璃表面交互的模拟方法。首先,针对水滴随机运动的描述问题,建立水滴的模型,包括几何模型和运动模型,保证水滴的运动符合自然规律;其次,引入Metaball技术,改进绘制算法中势能的球心位置计算方法,实时解决水滴碰撞后的变形问题;引入距离临界值,实现水滴之间的融合现象;然后,利用Cg语言编程实现反射和折射效果,与光照模型混合得到综合的光学效果,减少计算成本,提高实时性;最后,构建多种水滴与玻璃表面的动态交互实例。实验表明,本文方法能够快速实时模拟出水滴与玻璃表面的交互效果。
In order to solve the simulation problems which droplets interact with others in virtual rainy scenes, a method to simulate the phenomenon proposed .Firstly, the water droplet model is built, including geometr^^ and motion model to achieve natural and re-alistic water droplets movement. Secondly, the improved Metaball algorithm is introduced to achieve water droplets fusion phenomena and solve deformed droplets alter the collision real-time. Thirdly, the paper take advantage of the ability of GPU parallel, using Cg programming language to solve reflection and refraction effects, and mixed illumination model has been the scene last optical effect, reduction of computing costs and improvement of real-time performance. Finally, a variety of examples of dynamic interaction for water droplets on glass surfaces are simulated. Experiments show that this method can quickly simulate interactivity between water droplets and the surfaces of glasses real-time.
作者
唐勇
赵圆圆
吕梦雅
TANG Yong ZHAO Yuanyuan LU Mengya(School of Information Science and Engineering, Yanshan University, Qinhuangdao, Hebei 066004, China Key Laboratory for Computer Virtual Technology and System Integration of Hebei Province, Qinhuangdao, Hebei 066004, China)
出处
《燕山大学学报》
CAS
北大核心
2017年第2期164-170,共7页
Journal of Yanshan University
基金
河北省自然科学基金资助项目(F2012203084)
国家自然科学基金资助项目(60970073)
关键词
水滴
动力学建模
融合算法
实时渲染
water droplets
dynamics modeling
fusion algorithm
real-time rendering