吉林大学学报(理学版)

• 计算机科学 • 上一篇    下一篇

一种改进的阴影映射算法

曹家乐, 冯月萍   

  1. 吉林大学 计算机科学与技术学院, 长春 130012
  • 收稿日期:2016-11-01 出版日期:2018-01-26 发布日期:2018-01-24
  • 通讯作者: 冯月萍 E-mail:fengyp@jlu.edu.cn

An Improved Algorithm of Shadow Mapping

CAO Jiale, FENG Yueping   

  1. College of Computer Science and Technology, Jilin University, Changchun 130012, China
  • Received:2016-11-01 Online:2018-01-26 Published:2018-01-24
  • Contact: FENG Yueping E-mail:fengyp@jlu.edu.cn

摘要: 使用动态、 静态两种类型深度纹理相结合的方法对传统阴影映射方法进行改进. 在渲染复杂场景时, 对静止物体应用静态深度纹理, 对运动物体应用动态深度纹理, 计算阴影时两种深度纹理取最小值再与当前深度进行比较. 该方法需要在渲染过程中实时监测场景中物体的运动和静止状态, 将不同状态物体的深度信息记录到不同类型的深度纹理中. 实验结果表明, 该方法在复杂场景下渲染速度明显提升, 改进了虚拟现实场景渲染的流畅度.

关键词: 阴影渲染, 深度纹理, 阴影映射

Abstract: We used two types of depth textures called dynamic depth texture and static depth texture to improve traditional shadow mapping method. When rendering complex scenes, the static depth texture was applied to the static objects, and the dynamic depth texture was applied to the moving objects. The minimum value of two depth textures was compared with the current depth when calculated shadows. The method required real\|time monitoring of the motion and static states of the objects in the rendering process, and recording depth information of different states of objects into different kinds of depth textures. The experimental results show that this method improves the rendering speed obviously in a complex scene, thus improving the fluency of virtual reality scene rendering.

Key words: depth texture, shadow mapping, shadow rendering

中图分类号: 

  • TP391.9