计算机工程与应用 ›› 2022, Vol. 58 ›› Issue (23): 278-284.DOI: 10.3778/j.issn.1002-8331.2204-0484

• 工程与应用 • 上一篇    下一篇

基于VR的驾驶仿真及安全教育系统开发

张文胜,岳康   

  1. 1.石家庄铁道大学 交通运输学院,石家庄 050043
    2.河北省交通安全与控制重点实验室,石家庄 050043
  • 出版日期:2022-12-01 发布日期:2022-12-01

Development of Driving Simulation and Safety Education System Based on VR

ZHANG Wensheng, YUE Kang   

  1. 1.School of Traffic and Transportation, Shijiazhuang Tiedao University, Shijiazhuang 050043, China  
    2.Key Laboratory of Traffic?Safety and Control of Hebei Province,Shijiazhuang 050043, China
  • Online:2022-12-01 Published:2022-12-01

摘要: 针对全国道路交通事故高发现状及传统驾驶安全教育方式单一、培训效果差的缺点,基于虚拟现实技术(VR),在引发交通事故人为因素理论基础上,开发驾驶仿真及安全教育系统。系统基于Unity3D引擎,构建了基于道路实景数据的虚拟场景,并联合SUMO实现了道路交通流仿真,通过VR技术仿真驾驶环境及驾驶行为;基于碰撞检测原理,建立了关卡违规触发机制,编码自定义屏幕空间渲染方式模拟驾驶员视觉效果,并构建了基于图像的交通事故现场三维全景,从认知、感知层面培训驾驶员安全驾驶。实用性测试结果表明,系统实现了不同道路场景、气象条件与交通状况下的驾驶模拟及安全培训,增强了使用者的学习兴趣,提高了使用者驾驶安全素养,具有较强的实用性。

关键词: 虚拟现实, 安全教育, 联合仿真, 屏幕特效, 驾驶模拟

Abstract: Aiming at the high incidence of road traffic accidents in China and the shortcomings of single traditional driving safety education mode and poor training effect, this paper develops a driving simulation and safety education system based on virtual reality technology(VR) and the theory of human factors causing traffic accidents. Based on unity3d engine, the system constructs a virtual scene based on road real scene data, and realizes road traffic flow simulation in conjunction with SUMO, and simulates driving environment and driving behavior through VR technology. Based on the principle of collision detection, a trigger mechanism for level violation is established, a user-defined screen space rendering method is coded to simulate the driver’s visual effect, and an image-based three-dimensional panorama of the traffic accident scene is constructed to train the driver to drive safely from the cognitive and perceptual levels. The practical test results show that the system has realized driving simulation and safety training under different road scenes, meteorological conditions and traffic conditions, enhanced users’ learning interest, improved users’ driving safety literacy, and has strong practicability.

Key words: virtual reality, safe education, joint simulation, screen effects, driving simulation