视差映射技术可以通过沿着视点方向平移纹理坐标来实现纹理图像的真实感绘制,然而不正确的纹理坐标偏移量将导致纹理图像的滑动现象.根据视差映射技术原理,通过定义纹理坐标值与高度值之间的映射函数得到偏移量与当前视点坐标的对应关系;利用GPU技术计算得到正确的纹理坐标偏移量,使得在视点动态变换时纹理图像的绘制不会产生滑动现象.实验结果表明,与传统视差映射方法及现有GPU技术校正纹理坐标偏移量方法相比,在没有增加算法复杂度的前提下,采用文中方法可改善纹理图像真实感绘制的效果.
Parallax mapping is capable of representing the realistic texture rendering by shifti texture coordinates along the view direction. However, an incorrect offset will lead to the ng the sliding phenomenon in the texture image. In this paper, we obtain a corresponding relationship between the offset and current viewpoint by establishing a mathematic function of the texture coordinates and the height values according to parallax mapping theory. Furthermore, we calculate the correct offset of texture coordinates using GPU technology in which the sliding phenomenon does not show up when the viewpoint changes. Experimental results demonstrate that the proposed method can be used to achieve better performance in representing the realistic texture image rendering than traditional methods for parallax mapping and texture coordinates offset correction in terms of GPU technology.