3 d s 文件是 3 d s Ma x 建模软件的标准输入输出格式,它的 应用十分广泛。各种虚拟现实项 目都可使用它作为模型格式, 甚至可以在游戏中使用,但是它的文件格式比较复杂而且没有 相关的官方文档,所以对它的读取显示一直是一个问题。笔者 通过多年的项 目经验总结了一套操作 3 d s 文件的方法,简单地 说就是使用 l i b 3 d s库对 3 d s 文件进行解析读取 ,然后利用 O p e n G L来显示 。
A OpenGL program developed in MFC IDE,which realized the 3D modeling and animation display of complex objects and also achieved a wonderful management of the objects' motion state using menu ,mouse and keyboard.The program is of great synthese as th