摘要
地铁线路三维模型的自动生成有助于快速实现三维视景仿真。以线路平面和纵断面数据为基础,研究了线路路径点的坐标计算方法;采用Unity3D和C#程序,结合数据库技术,实现了数据读取与路径生成;采用线渲染器组件和生成Mesh网格的方法,实现了轨道、道岔等模型的创建;并通过Douglas–Peucker算法,实现对轨道三维模型的简化,有效提升了画面渲染速度和帧率;运用碰撞检测、消息广播等技术,实现了虚拟场景漫游和列车运行模拟。基于该研究开发的软件可快速构建地铁线路模型并进行驱动,为地铁运营场景仿真提供三维视景基础。
The automatic generation of the 3D models of metro line is beneficial to the rapid realization of 3D visual simulation.Based on the route plan and profile data,this paper researched on the coordinate calculation of the route path point,implemented data reading and path generation by using Unity3D and C#program and database technology,used the line renderer component and the method of generating mesh to create models such as tracks and turnouts,and simplified the 3D models of the track by the Douglas–Peucker algorithm,which effectively improved the rendering speed and frame rate,used technologies like collision detection,message broadcasting to implement virtual scene roaming and train operation simulation.The software developed based on this research can quickly construct and drive metro line models,provided a 3D visual basis for the simulation of metro operation scenarios.
作者
周徐熠
郎诚廉
ZHOU Xuyi;LANG Chenglian(College of Electronics and Information Engineering,Tongji University,Shanghai200331,China)
出处
《铁路计算机应用》
2022年第5期71-76,共6页
Railway Computer Application