摘要
随着科技的进步,真实感图形的生成技术被广泛应用。真实感图形是将实际或者虚拟的场景在计算机中构建,在生成真实感图形的算法中,光线跟踪算法是最常用的一种。在光线跟踪算法中,本文主要论述了光线跟踪算法的基本原理、光线与物体的求交、反射与折射光线的确定以及包围体树。重点是在光线跟踪算法中折射光线的确定之处加入了自己的方法,改进了折射光线的计算公式,减少了计算量,提高了算法的绘制图像的速度,生成的图形也比较真实。
With the progress of science and technology, realistic graphics generation technique is widely used. Realistic graphics is built with real or virtual scene in the computer. The ray tracing algorithm is one of the most commonly used algorithms for realistic graphics generating. This paper mainly discusses the basic principle of ray tracing algorithm, the intersection of light and objects, the determination of reflection and refraction of light and the bounding volume tree. The key point is to add its own method on the determination of refraction ray in the ray tracing algorithm, improve the calculation formula of refraction of light, reduce the amount of calculation and improve the speed of image drawing of the proposed algorithm, so the generated graphics is more realistic.
出处
《山西电子技术》
2016年第6期15-17,共3页
Shanxi Electronic Technology
关键词
真实感图形
光线跟踪
光照模型
求交
realistic graphics
ray-tracing
illumination model
intersection