摘要
为解决大规模场景中绘制实时阴影的问题,提出优化的阴影体算法.通过访问场景模型的最简单LOD,获得轮廓边缘的检测数据.采用删除面内边的方法有效提高轮廓边缘的检测效率.根据模型的位置,选用基于CPU的Z-Pass方法或基于顶点着色器的Z-Fail方法渲染阴影.优化算法在航海模拟器大规模场景的应用表明,利用该算法绘制的阴影效果满足实时性和真实感的要求.
An optimized shadow volume algorithm was developed to render shadow in large-scale scene. Detection data was obtained by accessing the simplest LOD to determine silhouette edge. Redundant internal edge was removed to improve detection efficiency. Shadows were rendered using CPU based Z-pass algorithm or Z-fail algorithm within vertex shader according to model' s position. Tests on large-scale scene of the marine simulator show that the proposed algorithm can meet the requirements of real-time and reality for shadow rendering.
出处
《大连海事大学学报》
EI
CAS
CSCD
北大核心
2008年第1期58-60,共3页
Journal of Dalian Maritime University
基金
国家"九七三"计划资助项目(2002CB312103)
关键词
大规模场景
实时阴影绘制
阴影体算法
large-scale scene
real-time shadow rendering
shadow volume algorithm