阴影贴图采样不足会导致严重的走样问题,全局光照算法虽能实现逼真的效果,但算法复杂、计算量大,只能用于离线渲染。针对这些缺陷,提出一种结合基于光线跟踪的离线渲染方法和遮挡区间映射技术的算法。其生成的软阴影更具真实感,克服了阴影映射算法产生的锯齿现象和全局光照的计算复杂问题。实验结果表明,该算法能以很高的帧率,实现大规模复杂场景下随光照变化产生动态软阴影的逼真效果。
Shadow mapping leads to serious aliasing problems because of inadequate sampling.Global illumination based on ray tracing guarantees real rendering,but the algorithm is complex and the calculation is large.So it only can be used for offline rendering.To solve these problems,an algorithms was proposed that combining offline rendering based on ray tracing methods and the occlusion interval mapping techniques.The algorithm can generate more realistic shadows,and overcome the aliasing issue of shadow mapping and complex computational problems of global illumination.Experimental results show that the algorithm can satisfy the requirements of virtual reality applications.