摘要
介绍了WebGL技术及其应用框架Three.js,描述了交互平台基本架构搭建和各个功能模块的设计与实现过程,并针对OBJ格式的3维模型提出一个模型加载算法解析模型的顶点、面和法向量等数据,然后把三维模型加载到网页平台中来,最后本文对平台进行了跨浏览器测试和模型载入速度测试,测试结果表明系统不需修改任何代码就能直接运行在Firefox、Chrome和Opera这3大主流浏览器上,并且模型载入速度较快,显示效果流畅。
We introduce the WebGL technology and Three.j s which is one of WebGL application framework,we also describe the design and implementation of basic structure and each module of interactive platform,and propose an algorithm of loading 3D model to load the OBJ model by parsing data of model’s vertex,face,normal vector and so on.At last we do the mult-browser testing and loading speed testing,the result shows that this platform can run correctly on Firefo,Chrome and Opera without modifying any code,its loading speed is fast and the platform can display the model smoothly.
出处
《电子测量技术》
2015年第8期119-122,128,共5页
Electronic Measurement Technology
基金
上海市科委"科技创新行动计划"高新技术领域(14511108202)项目