摘要
针对现有增强现实(AR)应用中阴影生成算法绘制软阴影的真实性不足,提出一种自适应采样与背景融合的阴影生成算法。首先结合考虑遮挡的平面阴影算法计算虚拟对象投影阴影的空间位置分布;其次,改进膨胀腐蚀算法中软阴影的生成过程,提出一种依据近似点光源的形状类型进行自适应采样,从而获取假想点光源集合的软阴影绘制方法;最后,针对基于膨胀腐蚀算法使用阴影灰度图方法造成阴影的颜色被限制在单通道上,提出基于多通道与背景融合的方法。实验结果表明所提算法计算软阴影的颜色更加合理,软阴影的绘制方法更为有效,提高了阴影生成算法绘制软阴影的真实性。
Since the soft shadow achieved by the existing shadow generation algorithms of Augmented Reality(AR) is unrealistic,the authors proposed a shadow generation algorithm using adaptive sampling and background fusion.First,the authors computed shadow spatial location distribution of virtual objects by using planar shadow algorithm which took occlusion into account.Then,to improve the procedure of soft shadow generation in swell and erode algorithm,an adaptive sampling method which got illuminant union according to shape types was presented.Finally,since shadow color gotten by gray image method was limited to single channel,the authors presented a method based on multi-channel and background fusion.The experimental results show that in the proposed algorithm the color of soft shadow is more reasonable and the method of soft shadow rendering is more effective.Consequently,the presented algorithm improves the realism of soft shadow.
出处
《计算机应用》
CSCD
北大核心
2012年第7期1860-1863,共4页
journal of Computer Applications
基金
教育部新世纪优秀人才支持计划项目(教技司[2008]274号)
科技部"原创动漫软件开发技术人才"计划扶持项目(2009-593)
关键词
增强现实
阴影生成
融合
自适应采样
软阴影
Augmented Reality(AR)
shadow generation
fusion
adaptive sampling
soft shadow