三维模型轻量化技术

3D model lightweight technology

  • 摘要: 针对三维模型数据量增大时加载速度降低且浏览不流畅的问题,在分析Cesium模型格式3DTiles的基础上,提出了一种三维模型轻量化技术。将模型中的纹理图片依据材质和模型网格进行合并,实现正确纹理贴图,降低了DrawCall调用次数;将纹理和顶点进行压缩,降低了纹理图片文件大小;采用Mipmap生成不同分辨率的纹理图片,有利于网络传输;使用LOD和三角面简化技术,逐级降低模型的顶点和三角面数量;根据模型复杂程度,自适应选择八叉树深度,按需加载模型的某一部分,从而降低GPU的渲染数据量,提高三维场景流畅性。基于Cesium平台对三维模型轻量化处理前后的帧速率进行测试,结果表明,三维模型经轻量化处理后帧速率有所提高,达到了三维模型高效加载且浏览流畅的目的。

     

    Abstract: When the data volume of the 3D model increases, the model loading speed decreases and the browsing is not smooth. In order to solve the above problems, a 3D model lightweight technology based on the analysis of Cesium's model format 3DTiles is proposed. The texture images in the model are merged according to the material and the model mesh to achieve correct texture mapping and reduce the number of DrawCall calls. The texture and vertices are compressed to reduce the file size of the texture image. Mipmap is used to generate texture images of different resolutions, which is helpful for network transmission. LOD and triangle simplification technology are used to reduce the number of vertices and triangles of the model gradually. According to the complexity of the model, the depth of the octree is adaptively selected to load a certain part of the model on demand so as to reduce the amount of GPU rendering data and improve the smoothness of the 3D scene. Based on the Cesium platform, the frame rate before and after the lightweight processing of the 3D model is tested. The results show that the frame rate is increased after the lightweight processing of the 3D model, which achieves the purpose of efficient loading of the 3D model and smooth browsing.

     

/

返回文章
返回