摘要
简单介绍了3DS文件格式,给出了3DS文件读取算法,并详细描述了3DS文件中三维模型主要顶点信息和三角面片信息的读取算法,从而得到文件中存储的三维模型的顶点和面信息,在此基础上利用OpenGL实现了读取得到的三维模型的显示和控制,实现三维模型的旋转、缩放、平移等操作。
3DS file format is introduced in this paper, and the method for reading 3DS file is given. The algorithm of reading the vertex and face information of the 3D models is provided in this paper. The vertex and face information of the 3D models are saved in arrays and displayed by OpenGL mode. The controls such as rotation, scale and translation are also achieved.
出处
《山东商业职业技术学院学报》
2009年第4期129-132,共4页
Journal of Shandong Institute of Commerce and Technology