Surface texture mapping and its application in 3D modeling system
In this paper, a technique is discussed for surface texture mapping in 3D modeling system. An ideal work-flow approach to texture mapping is designed by analysis texture mapping and its key technique. An index table is firstly constructed, including index No., filename of texture image, size of texture image, etc. A class approach for the data of solid-model is used to distinguish which unit of the model will be textured, and what image will be mapped onto the unit. We provide two modes for texture mapping, namely patch mapping and block mapping, which are implemented in C using the OpenGL library. Finally, a 3D scene can be drawn based on defined texture coordinate and geometry coordinate. Furthermore, we present a concrete example to demonstrate the application of the proposed method. The result shows that 3D model can be displayed more vividly and naturally.