To deal with the high cost and the inflexible opening hours for traditional labs, a 3D virtual laboratory system based on X3DOM engine has been designed. The system is developed based on the browser/server architecture. The server provides laboratory scene, virtual experimental instruments, XML template, and file storage and access services. The browser uses MVC design pattern. According to the idea of component development, X3DOM is used to render the view. Javascript is used to build the simulation module and the extensible component library is built. Taking the Ping experiment in the computer network course as an example, the design and implementation of the virtual laboratory has been verified. The results show that the system can be used to effectively assist experimental teaching.%针对当前实体实验室建设成本高、开放时间不灵活等间题, 设计了一种基于X3DOM引擎的3D虚拟实验室系统. 该系统采用浏览器/服务器架构, 其中, 服务器端主要提供实验室场景、实验仪器模型和XML模板数据文件等数据存储与访间服务; 浏览器端采用MVC设计模式, 根据组件化开发的思想, 采用三维视图, 建立了可扩展的组件库. 以计算机网络课程中的Ping实验为例, 对设计实现的虚拟实验室进行了验证, 结果表明, 该系统能够有效满足实验教学的要求.
展开▼