针对飞行器实时仿真和三维视景显示的需求,设计并开发了飞行器实时视景仿真软件。仿真软件以OGRE图形引擎为基础,结合3DS MAX建模软件进行三维机体模型创建,利用基于MFC库和OGRE图形引擎开发的场景编辑工具实现场景生成,利用UDP协议与d SPACE主控计算机进行通信,为视景显示提供实时数据驱动。仿真软件由基础环境部分、基础开发模块、场景编辑工具和视景应用软件4大部分构成,可以实现飞行器飞行全过程的实时视景展示。仿真结果表明,视景仿真软件可以逼真地模拟飞行器飞行场景,能够实时地进行画面模拟和数据监视,具有广阔的应用前景。
To meet the needs of flying vehicle real-time simulation and visual presentation,the visual simulation software based on OGRE graphics engine is designed and developed.The three-dimensional solid model is built combined with 3DS MAX modeling soft- ware.Environment is generated by scene editing tools based on MFC library and OGRE which are developed by us.UDP communication is used to get real-time flight data and commands from another computer which controls the running of dSPACE.The software consists of the basic environment part, basic design module, scene editing tools and visual application.The result shows that the visual simulation software can realistically simulate the vehicle flying scene.It is capable of real-time scene simulation and data monitor,and has broad application prospects.