| Visual simulation of spacecraft is of great significance for mastering the status quo of spacecraft operation and completing the launch task of new spacecraft.This paper uses OpenSceneGraph rendering engine to design a simulation system on the platform of the winning Kirin system,which integrates the functions of spacecraft launch,satellite in-orbit flight and satellite orbital motion,based on the background of space scene and digital earth and the scene visualization of camera following technology.The main contents of this paper are as follows:(1)Analysis of simulation system.The purpose of spacecraft flight process simulation system is to visualize the launch process of spacecraft and satellite missions in orbit and orbit.The system is divided into three functional modules: basic scene,visual model and camera following.This paper focuses on the construction of digital earth and the realization of camera following surveillance function.(2)Constructing digital earth.The realization of digital earth includes: loading earth nodes in OSG scene tree to build earth visualization model,using Mipmap technology to add global high-definition earth texture to the earth,using multi-resolution LOD pyramid model as the basis,using TIN algorithm to build elevation geographic information system.Digital earth and sky background constitute the basic scene of the simulation system.The positions of the digital earth and stars are calculated by Julian.Time is the driving force to achieve the unity of time and space.(3)Camera following surveillance.The location matrix information of the target node is obtained by accessing the monitoring target node.Set the matrix to the position change matrix information of the camera.The camera is "attached" to the aircraft node for tracking.Camera nodes and target nodes are added to the scene update callback to achieve real-time camera tracking target.Complete the visual scene display following the camera.This paper designs and completes the visual simulation of spacecraft.A high-definition digital earth is constructed and camera following is realized.The simulation and demonstration functions of rocket launching process,satellite in-orbit flight,satellite high and low orbit round trip and other space missions are completed.The simulation results of the system are real,stable and efficient.It meets the needs of system development. |