物体反射效果的模拟可以大大增强虚拟世界的真实感,目前已广泛应用于计算机仿真系统、三维动画以及计算机游戏中.现有的一部分模拟物体反射效果算法中存在实时性较差、真实感较低、算法较复杂等弊端.本文基于OpenGL的模板技术和裁剪平面技术等,模拟了静态和动态模型的反射效果.实验证明该方法具有实时性好、真实感较高且算法较易实现等特点.
The simulation of the effects of objects reflection can dramatically enhance reality of virtual world and related technologies have been widely used in various computer applications, such as simulation system, 3D animation, video game, and so on. At present, some simulation methods are confronted with some problems, for example, bad real-time per- formance,low reality in image, and complex calculation in their implementations. In this paper, we propose a new OpenGL-based method for simulating objects reflection. Some advanced programming skills are involved in our method, including template buffers and clopping plane. The experimental results demonstrate that our method has advantages of good real-time performance, high reality in image, and facility to implement.