摘要
三维纹理贴图指将二维纹理图像张贴到三维模型的表面上,从而得到逼真的三维图形的过程。然而,对于复杂三维模型的纹理贴图还没有找到直接贴图的方法。论文设计了一种新式的针对OBJ三维网格曲面模型纹理贴图的方法。首先依据Floater提出的权重-保形法将三维网格降维为二维网格;然后利用OpenGL对二维网格做简单纹理贴图;最后利用二维网格与三维网格顶点坐标间同构关系,实现二维纹理到三维网格曲面的纹理贴图。
3D texture mapping refers to the procedure of posting 2D texture image to 3D surface model to obtain a real- istic 3D graphics. However, for complex 3D model, there is no direct method of texture mapping. This paper designs a new method of texture mapping with OpenGL for 3D mesh models of OBJ format file. First, According to the method weight- conformal, a 3D mesh is reduced to a 2D one. Second, 2D mesh is mapped texture by using OpenGL simply. Finally, the re- lation of vertex coordinates between the 2D and 3D mesh is used to achieve the texture mapping between the 2D texture and the 3D grid surface.
出处
《计算机与数字工程》
2015年第8期1497-1500,共4页
Computer & Digital Engineering