节点文献
3DS文件读取、绘制与控制方法的研究与应用
Research and application on method of 3DS file read,render and control
【摘要】 OpenGL是一种强大的三维图形开发工具,3DS格式是一种通用的保存三维模型的格式,基于OpenGL对3DS模型文件的读取、绘制与控制方法进行了研究。分析了3DS文件结构,并根据块结构格式抽象出用于读入数据的面、材质、物体和模型的数据结构。基于递归的方法对文件数据进行了读取,读入的数据经过数据处理后在屏幕上进行渲染。通过平移、旋转和缩放这3种矩阵变换和OpenGL选择机制实现了对模型的交互控制。基于上述方法开发了井下作业操作仿真与演练系统,取得了良好的效果。
【Abstract】 OpenGL is a strong there-the graph develop tools, 3DS format is a common format for saving there d model. Based on OpenGL, on the method of 3DS model file read, render and control is researched. First the file structure of 3DS is analyzed, and the data structure of face, material, object and model are abstracted by chunk structure used to read in data. The file data is read in with the method of recursion, the read data renders in screen after data disposal. The interactive control of model is accomplished by three kinds of geometric transformation, translate, rotate and scale and OpenGL select mechanism. Finally, those methods are applied into the system of the borehole operation operate simulation and drilling, and achieve better results.
【Key words】 3DS file; chunk structure; OpenGL; read; render; interactive control;
- 【文献出处】 计算机工程与设计 ,Computer Engineering and Design , 编辑部邮箱 ,2009年19期
- 【分类号】TP391.9
- 【被引频次】65
- 【下载频次】528