摘要
海洋场景仿真一直是计算机图形学的研究热点.为解决海下光照效果实时模拟问题,提出一种海下光照的模型.首先,以光线追踪理论和比尔朗伯定律为基础,通过求解采样点的亮度值积分和透光比率解决海水与光照交互光束产生问题;其次,引入Shadow Mapping方法对深度图采样,改善物体阴影绘制实时性问题,并通过纹理映射技术模拟光散射形成的焦散现象;再次,修改相位函数非对称因子g,消除海水散射对体积光的影响,提高了光在水中传播的真实性;最后,利用线性八叉树算法对其进行优化加速,保证算法的实时性.实验对比和分析表明,能够实时绘制出逼真的海下光照效果.
The simulation of ocean scene has always been a hotspot in computer graphics research. In order to solve the real-time simulation problem of sea light effect,a sea light model is proposed. Firstly,based on the ray tracing theory and Beer Lambert's law,the problem of the interaction between seawater and light is solved by solving the luminance value integral and the light-transmitting ratio of the sampling point, Secondly, we introduce the Shadow Mapping method to sample the depth map, improve the real-time problem of the shadow of the object, and simulate the caustics formed by the light scattering through the texture mapping. Furthermore, according to the scattering phase function and the conservation law of energy, the asymmetric factor of the phaSe function is modified to eliminate the influence of seawater scattering on the volume of light and improve the authenticity of light propagation in the water. Finally, the linear octree algorithm is used to optimize the method and ensure the real-time performance. Experimental results show that the algo- rithm can achieve realistic illumination effect in real time.
作者
吕梦雅
刘丁
唐勇
李颖
周升腾
LV Meng-ya;LIU Ding;TANG Yong;LI Ying;ZHOU Sheng-teng(College of Information Science and Engineering,Yanshan University,Qinhuangdao 066004,China)(Key Laboratory for Computer Virtual Technology and System Integration of Hebei Province,Qinhuangdao 066004,China)
出处
《小型微型计算机系统》
CSCD
北大核心
2018年第10期2326-2329,共4页
Journal of Chinese Computer Systems
基金
河北省自然科学基金项目(F2018203060)资助
秦皇岛市科学技术研究与发展计划项目(201602A018)资助.