摘要
为了实现三维建模数据的快速读取和解析,提出了一种解析保存3ds数据的方法并应用到实际三维漫游软件中。作为专业的三维建模软件,3ds Max提供了强大的快速建模功能。但由于需要占用大量CPU和内存资源,因此其实时交互性较差,很难直接应用到实际工程项目中。充分利用3ds Max的快速建模能力,分析3ds Max的建模文件3ds数据格式,以其内部树状数据结构为基础,按照其存储特点及数据之间的关系有效读取,并采用C++高效编码实现,以自定义的列表类、对象类、材质库类合理的组织和保存,为三维场景重建奠定基础。实际应用表明该解析算法实用有效。
To read and parse three dimensional modelling data rapidly, an approach of parsing and saving 3ds data is proposed and applied in a practical 3D walkthrough software. As a professional three dimensional modelling software, 3ds Max provides powerful and rapid functions of model- ling. But due to massive occupation of resources of CPU and memory, real - time interaction of this software is poor and practical application of engineering projects is difficult. Making full use of the advantages of rapid modelling functions of 3ds Max software, we analyzed modelling file with 3ds data format provided by 3ds Max based on its inner tree - structured data structure. C + + programming language is adopted to implement effective reading according to its saving characteristics and relationship between data. Then self- defined list class, object class and material library class are introduced to organize and save the parsed data for three dimensional reconstruction. Practical application shows the effectiveness of the proposed parsing algorithm.
出处
《大连民族学院学报》
CAS
2012年第3期260-264,共5页
Journal of Dalian Nationalities University
基金
中央高校基本科研业务费专项资金资助项目(DC110306)