General visual simulation system and method suitable for photoelectric system digital simulator

By designing a general viewing simulation system including multiple modules, the problem of insufficient realism, interaction and real-time performance of the digital simulator of the optoelectronic system in viewing simulation is solved, and a higher simulation realism and interaction are achieved sex.

CN119442681APending Publication Date: 2025-02-14LUOYANG INST OF ELECTRO OPTICAL EQUIP OF AVIC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411565165.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-05
Publication Date
2025-02-14

AI Technical Summary

Technical Problem

The existing digital simulators of photoelectric systems have problems such as insufficient realism, poor interactivity and real-time performance in view simulation.

Method used

A general vision simulation system was designed, including data communication module, simulation database management module, scene conception and model loading module, vision rendering module and view control module. Through real-time vision transformation and data feedback, the simulation fidelity and Interactiveness.

Benefits of technology

It improves the realism of the visual simulation of the digital simulator of the photoelectric system, enhances the interactiveness and real-timeness, adapts to the visual simulation needs of various types of photoelectric system digital simulators, and realizes the reuse of the visual simulation system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119442681A_ABST
    Figure CN119442681A_ABST
Patent Text Reader

Abstract

The invention discloses a universal visual simulation system and method suitable for a photoelectric system digital simulator, and belongs to the technical field of computer simulation. Comprising a data communication module, a simulation database management module, a scene scenario and model loading module, a scene rendering module and a view control module. The method comprises the following steps: initializing a scene; rendering the scene; and performing visual display. Through the method, the visual simulation fidelity of the photoelectric system digital simulator can be improved, real-time visual conversion and data feedback can be performed according to the working mode of the photoelectric system digital simulator and man-machine interaction operation, and support is provided for development of the photoelectric system digital simulator, operator training and tactical decision.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of computer simulation, and in particular relates to a universal visual simulation system and method suitable for an optoelectronic system digital simulator. Background Art

[0002] As an advanced computer graphics application, visual simulation technology provides users with realistic visual experience and environmental perception by simulating visual information of the real world or specific scenes. Currently, this technology has been widely used in aerospace, architectural design and other fields.

[0003] In the optoelectronic system digital simulator, it is necessary to simulate the working state, detection effect and human-computer interaction of the optoelectronic system in a complex environment. The current optoelectronic system digital simulator has the problems of insufficient visual simulation reality, poor interactivity and real-time performance.

[0004] Therefore, the present invention provides a general vision simulation system and method applicable to an optoelectronic system digital simulator. Summary of the invention

[0005] Technical issues to be solved:

[0006] In order to avoid the shortcomings of the prior art, the present invention provides a general visual simulation system and method suitable for an optoelectronic system digital simulator. The method performs real-time visual transformation and data feedback according to the working mode of the optoelectronic system digital simulator and human-computer interaction operation, and provides support for the development of the optoelectronic system digital simulator, operator training and task decision-making. The present invention improves the visual simulation fidelity of the optoelectronic system digital simulator and can adapt to the visual simulation needs of various optoelectronic system digital simulators. In response to the simulation needs of different optoelectronic system digital simulators, a set of visual simulation interface functions that can be called by the optoelectronic system digital simulator is provided to achieve the reuse of the visual simulation system.

[0007] The technical solution of the present invention is: a universal visual simulation system suitable for an optoelectronic system digital simulator, comprising a data communication module, a simulation database management module, a scene assumption and model loading module, a visual rendering module and a view control module;

[0008] The data communication module establishes communication with the optoelectronic system digital simulator, receives scene assumption information, system control parameters and simulation control information from the optoelectronic system digital simulator; forwards the scene assumption information to the simulation database management module and the scene assumption and model loading module, forwards the system control parameters to the view control module, forwards the simulation control information to the scene rendering module, and encapsulates the scene rendering image output by the scene rendering module into an image data stream and transmits it to the optoelectronic system digital simulator;

[0009] The output end of the simulation database management module is connected to the scene assumption and model loading module and the view control module respectively, and the output end of the scene assumption and model loading module and the view control module are both connected to the scene rendering module.

[0010] A further technical solution of the present invention is: the simulation database management module receives the simulation model information in the scenario assumption information transmitted by the data communication module, the simulation model information includes the simulation model type and the target / carrier trajectory type, and after retrieving from the simulation database, sends the corresponding simulation model data to the scenario assumption and model loading module, and sends the corresponding target / carrier trajectory data to the view control module; the simulation database management module can manage the addition, deletion, and search of the simulation database.

[0011] A further technical solution of the present invention is: the scenario assumption and model loading module receives the scenario initialization information in the scenario assumption information transmitted by the data communication module, and at the same time, receives the simulation model data transmitted by the simulation database management module, parses the simulation model storage path, and initializes the assumption scenario in combination with the scenario initialization information.

[0012] A further technical solution of the present invention is: the scene rendering module outputs a scene rendering image based on the open source OSG three-dimensional rendering engine; the smoothness of the scene rendering is improved through streaming loading; the output scene rendering image is packaged by the data communication module and sent to the optoelectronic system digital simulator.

[0013] A further technical solution of the present invention is: the view control module receives the system control parameters transmitted by the data communication module and the target / carrier trajectory data transmitted by the simulation database management module, the system control parameters include working mode, sensor parameters, and situation information; the view control module calculates the projection matrix in real time according to the current system control parameters and the relative posture of the carrier and the target, and modifies the current camera viewport based on the callback function of the camera control class in OSG, and transmits the corresponding changes to the scene rendering module.

[0014] A further technical solution of the present invention is that the photoelectric system digital simulator includes an initialization function, a configuration parameter function, a simulation start function, a visual data receiving function, a visual data display function, a control instruction sending function, and a simulation close function;

[0015] The initialization function establishes a communication connection between the optoelectronic system digital simulator and the visual simulation system; initializes simulation-related variables and a simulation buffer, and applies for memory for the simulation-related variables and the simulation buffer;

[0016] The configuration parameter function obtains the scenario information of the user and forwards it to the scenario and model loading module and the simulation database management module through the data communication module; the scenario information includes simulation model information and scenario initialization information, the simulation model information includes the target model type, scenario model type, interference model type, target / carrier motion trajectory type, the scenario initialization information includes carrier attitude, initial working mode, initial sensor parameters, the scenario information is configured through an independent scenario interface, and an XML file is generated for the configuration parameter function to read;

[0017] The start simulation function controls the start of the simulation process, transmits the simulation start control signal to the visual rendering module through the data communication module, and controls the visual rendering module to start outputting the visual image;

[0018] The visual data receiving function receives the image data stream encapsulated by the data communication module in real time, and stores the valid data in the simulation buffer after unpacking for the visual data display function to call;

[0019] The visual data display function reads the visual rendering image data from the simulation buffer, calls a third-party open source multimedia development library, and displays the visual rendering image data in real time on the display and control interface of the optoelectronic system digital simulator;

[0020] The control instruction sending function sends the system control parameters and the simulation control signal to the data communication module, and the data communication module passes the system control parameters to the view control module for processing, and passes the simulation control signal to the view rendering module for processing;

[0021] The simulation closing function controls the end of the simulation process, and transmits a simulation end control signal to the visual rendering module through the data communication module, so that the visual rendering module stops outputting the visual image.

[0022] A general visual simulation method applicable to an optoelectronic system digital simulator, the specific steps are as follows:

[0023] Scene initialization: Initialize the simulation environment through the optoelectronic system digital simulator, read the scenario information recorded in the configuration parameter file, and then enter the visual simulation system modules through the data communication module for processing to complete the scene loading;

[0024] Scene rendering; after controlling the scene rendering to start, the corresponding scene rendering image is obtained according to the change of the system control parameters. When the simulation is closed, the scene rendering module is controlled to stop outputting the scene rendering image;

[0025] Visual display: the original visual image data is obtained by controlling the visual rendering module, and after being processed by the data communication module, it is sent to the optoelectronic system digital simulator for reading and display.

[0026] A further technical solution of the present invention is: the scene initialization workflow steps are as follows:

[0027] Step 1: Initialize the simulation environment through the initialization function, including initializing simulation related variables, initializing interface data, establishing data receiving buffer, initializing Ethernet, and creating data receiving and data display threads; the interface data is unified through a pre-defined interface control file;

[0028] Step 2: Read the configuration parameter file through the configuration parameter function. The configuration parameter file records the scenario information in XML format, including target model, background model, target / aircraft situation information, field of view, resolution, aiming line angle, and sensor type.

[0029] Step 3: Assign the scenario information to the interface data, and then send it to the simulation database management module through the data communication module;

[0030] Step 4: The simulation database management module retrieves the storage path of the target / background model and the path where the trajectory data is located; sends the simulation model data to the scene assumption and model loading module, and sends the trajectory data to the view control module;

[0031] Step 5: The scene assumption and model loading module parses the simulation model storage path and scene initialization parameters, reads the simulation model path, sets the model initial state according to the model initial position, defines the camera, defines the event handler, initializes the rover, and configures the texture parameters;

[0032] Step 6: After the scene is loaded, the scene initialization workflow ends.

[0033] A further technical solution of the present invention is: the specific steps of the scene rendering workflow are as follows:

[0034] Step 1: Determine whether to turn on the simulation. If not, keep judging.

[0035] Step 2: If the simulation is turned on, a simulation start control signal is sent to control the start of scene rendering;

[0036] Step 3: After the scene rendering starts, determine whether the system control parameters have changed. If the system control parameters have not changed, directly output the scene rendering image of the current state;

[0037] Step 4: If the system control parameters change, the changed system control parameters are sent to the view control module, which solves the control parameters and updates the projection matrix. The projection matrix acts on the scene rendering module to update the scene rendering image.

[0038] Step 5: Determine whether to turn off the simulation. If not, repeat steps 3 to 4.

[0039] Step 6: If the simulation is closed, a simulation end control signal is sent to control the scene rendering module to stop outputting the scene rendering image, thereby ending the scene rendering workflow.

[0040] A further technical solution of the present invention is: the specific steps of the visual display workflow are as follows:

[0041] Step 1: Determine whether to turn on the simulation. If not, keep judging.

[0042] Step 2: If the simulation is turned on, a simulation start control signal is sent to control the start of scene rendering;

[0043] Step 3: The scene rendering module obtains the original scene image data from the frame buffer in the drawing callback function and sends it to the data communication module;

[0044] Step 4: After the data communication module splits the original visual image data into data lengths that can be transmitted by UDP, it adds a frame header, a frame footer and a data length to the original data, and sends it to the optoelectronic system digital simulator in the format of an image data stream through UDP;

[0045] Step 5: The optoelectronic system digital simulator reads the image code stream data in the visual data receiving thread, parses the valid data according to the frame header, frame tail and data length, and stores it in the visual image receiving buffer;

[0046] Step 6: Read a frame of visual image data in the visual data display thread, and display the image data on the display interface of the optoelectronic system digital simulator through the SDL multimedia development library;

[0047] Step 7: Determine whether to turn off the simulation. If not, repeat steps 3 to 6.

[0048] Step 8: If the simulation is closed, a simulation end control signal is sent to control the scene rendering module to stop outputting the scene rendering image, thus ending the scene display workflow.

[0049] Beneficial Effects

[0050] The beneficial effects of the present invention are as follows: In view of the problems of insufficient visual simulation realism, poor interactivity and real-time performance in current optoelectronic system digital simulators, the present invention proposes a universal visual simulation method, including a visual simulation system and a visual simulation interface function. This method can adapt to the visual simulation needs of various optoelectronic system digital simulators. In view of the simulation needs of different optoelectronic system digital simulators, a set of visual simulation interface functions that can be called by the optoelectronic system digital simulator is provided to realize the reuse of the visual simulation system. The specific advantages are as follows:

[0051] 1. Establish a connection between the traditional visual simulation system and the optoelectronic system digital simulator, so that the traditional visual simulation system can respond to the control instructions of the optoelectronic system digital simulator based on the visual generation. According to the working mode of the optoelectronic system digital simulator and human-computer interaction, real-time visual transformation and data feedback can be performed to provide support for the development of the optoelectronic system digital simulator, operator training and tactical decision-making.

[0052] 2. Use the simulation database to enrich the simulation scenes of the optoelectronic system digital simulator and improve the realism of the visual simulation of the optoelectronic system digital simulator.

[0053] 3. Aiming at the simulation needs of different optoelectronic system digital simulators, a set of visual simulation interface functions that can be called by optoelectronic system digital simulators is provided to realize the reuse of visual systems and the rapid development of simulator visual simulation effects. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] Figure 1 Functional composition diagram of visual simulation system;

[0055] Figure 2 Data transmission relationship diagram between visual simulation system and optoelectronic system digital simulator;

[0056] Figure 3 The workflow diagram of the optoelectronic system digital simulator scenario initialization;

[0057] Figure 4 Optoelectronic system digital simulator visual rendering workflow diagram;

[0058] Figure 5 Optoelectronic system digital simulator visual display workflow diagram. DETAILED DESCRIPTION

[0059] The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, but should not be construed as limiting the present invention.

[0060] Based on the problems that the current optoelectronic system digital simulator has insufficient visual simulation realism, poor interactivity and real-time performance, the present invention provides a general visual simulation system suitable for the optoelectronic system digital simulator, referring to Figure 1 As shown in Figure 1, it includes simulation database management module, scenario and model loading module, visual rendering module, view control module, and data communication module. The data transmission relationship between the visual simulation system and the optoelectronic system digital simulator is shown in Figure 1. Figure 2 shown.

[0061] The main functions of the simulation database management module are to retrieve simulation data, manage simulation data, and send simulation data. Retrieve simulation data to quickly retrieve the corresponding storage path and trajectory data of the corresponding simulation model type through the Map data structure according to the scenario information. The simulation data management function dynamically maintains the addition and deletion of simulation data in the simulation database through the Map data structure. The simulation data sending function sends the simulation model data to the scenario and model loading module, and sends the target / carrier trajectory data to the view control module.

[0062] The main functions of the scenario and model loading module are to parse the scenario information, load simulation data, and initialize the scenario. The scenario information is parsed to parse the simulation model storage path and scene initialization parameters. The simulation model includes terrain model, target model, interference model, and scene initialization parameters include the initial position of the target, camera viewport size, initial attitude of the carrier, and initial aiming line position of the optoelectronic system. Load simulation data to read the simulation model path and set the initial state of the model according to the initial position of the model. The initialization scenario function includes defining the camera, defining the event handler, initializing the rover, configuring texture parameters, etc.

[0063] The main functions of the scene rendering module are scene rendering and scene output. The scene rendering function is based on the rendering mechanism of OSG, combined with the set scene parameters and the real-time camera projection matrix, to generate the scene image under the corresponding viewing angle. The scene output function obtains the original scene image data from the frame buffer in the drawing callback function and sends it to the data communication module.

[0064] The main functions of the view control module are to analyze system control parameters and solve the projection matrix. The system control parameter analysis function analyzes system working mode, carrier / target attitude information, sensor parameters and other parameters for use in solving the projection matrix. The projection matrix solution function converts the three-dimensional model into a projection in two-dimensional space through translation and rotation based on the OSG camera rover class, generates a projection matrix for the view rendering module to call.

[0065] The main functions of the data communication module are receiving simulator data and sending visual rendering images. The function of receiving simulator data receives the scenario information, system control parameters and simulation control information from the optoelectronic system digital simulator in the data receiving thread. The scenario information is forwarded to the scenario and model loading module and the simulation database management module respectively, the system control parameters are forwarded to the view control module, and the simulation control information is forwarded to the visual rendering module. The function of sending visual rendering images encapsulates the original visual rendering image and then transmits the visual rendering image to the optoelectronic system digital simulator in the form of a data stream.

[0066] The visual simulation workflow of the optoelectronic system digital simulator is divided into three types: scene initialization process, visual rendering process, and visual display process.

[0067] The scene initialization workflow is as follows Figure 3 As shown, the specific steps are as follows:

[0068] Step 1: Initialize the simulation environment through the initialization function, including initializing simulation related variables, initializing interface data, establishing data receiving buffer, initializing Ethernet, and creating data receiving and data display threads. The interface data is unified through the pre-defined interface control file;

[0069] Step 2: Read the configuration parameter file through the configuration parameter function. The configuration parameter file records the scenario information in XML format, including target model, background model, target / aircraft situation information, field of view, resolution, aiming line angle, sensor type and other information;

[0070] Step 3: Assign the scenario information to the interface data, and then send it to the simulation database management module through the data communication module;

[0071] Step 4: The simulation database management module retrieves the storage path of the target / background model and the path where the trajectory data is located. The simulation model data is sent to the scene assumption and model loading module, and the trajectory data is sent to the view control module;

[0072] Step 5: The scene assumption and model loading module parses the simulation model storage path and scene initialization parameters, reads the simulation model path, sets the model initial state according to the model initial position, defines the camera, defines the event handler, initializes the rover, and configures the texture parameters;

[0073] Step 6: After the scene is loaded, the scene initialization workflow ends.

[0074] The scene rendering workflow is as follows Figure 4 As shown, the specific steps are as follows:

[0075] Step 1: Determine whether to turn on the simulation. If not, keep judging.

[0076] Step 2: If the simulation is turned on, a simulation start control signal is sent to control the start of scene rendering;

[0077] Step 3: After the scene rendering starts, determine whether the system control parameters have changed. If the system control parameters have not changed, directly output the scene rendering image of the current state;

[0078] Step 4: If the system control parameters change, the changed system control parameters are sent to the view control module, which solves the control parameters and updates the projection matrix. The projection matrix acts on the scene rendering module to update the scene rendering image.

[0079] Step 5: Determine whether to turn off the simulation. If not, repeat steps 3 to 4.

[0080] Step 6: If the simulation is closed, a simulation end control signal is sent to control the scene rendering module to stop outputting the scene rendering image, thereby ending the scene rendering workflow.

[0081] The visual display workflow is as follows: Figure 5 As shown, the specific steps are as follows:

[0082] Step 1: Determine whether to turn on the simulation. If not, keep judging.

[0083] Step 2: If the simulation is turned on, a simulation start control signal is sent to control the start of scene rendering;

[0084] Step 3: The scene rendering module obtains the original scene image data from the frame buffer in the drawing callback function and sends it to the data communication module;

[0085] Step 4: After the data communication module splits the original visual image data into data lengths that can be transmitted by UDP, it adds a frame header, a frame footer and a data length to the original data, and sends it to the optoelectronic system digital simulator in the format of an image data stream through UDP;

[0086] Step 5: The optoelectronic system digital simulator reads the image code stream data in the visual data receiving thread, parses the valid data according to the frame header, frame tail and data length, and stores it in the visual image receiving buffer;

[0087] Step 6: Read a frame of visual image data in the visual data display thread, and display the image data on the display interface of the optoelectronic system digital simulator through the SDL multimedia development library;

[0088] Step 7: Determine whether to turn off the simulation. If not, repeat steps 3 to 6.

[0089] Step 8: If the simulation is closed, a simulation end control signal is sent to control the scene rendering module to stop outputting the scene rendering image, thus ending the scene display workflow.

[0090] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations on the present invention. A person skilled in the art may change, modify, replace and modify the above embodiments within the scope of the present invention without departing from the principles and purpose of the present invention.

Claims

1. A general visual simulation system suitable for an optoelectronic system digital simulator, characterized in that: It includes data communication module, simulation database management module, scenario setting and model loading module, scene rendering module and view control module; The data communication module establishes communication with the optoelectronic system digital simulator, receives scene assumption information, system control parameters and simulation control information from the optoelectronic system digital simulator; forwards the scene assumption information to the simulation database management module and the scene assumption and model loading module, forwards the system control parameters to the view control module, forwards the simulation control information to the scene rendering module, and encapsulates the scene rendering image output by the scene rendering module into an image data stream and transmits it to the optoelectronic system digital simulator; The output end of the simulation database management module is connected to the scene assumption and model loading module and the view control module respectively, and the output end of the scene assumption and model loading module and the view control module are both connected to the scene rendering module.

2. A general visual simulation system suitable for an optoelectronic system digital simulator according to claim 1, characterized in that: The simulation database management module receives the simulation model information in the scenario information transmitted by the data communication module, the simulation model information including the simulation model type and the target / carrier trajectory type, and after retrieving from the simulation database, sends the corresponding simulation model data to the scenario and model loading module, and sends the corresponding target / carrier trajectory data to the view control module; The simulation database management module can manage the addition, deletion and search of the simulation database.

3. A general visual simulation system suitable for an optoelectronic system digital simulator according to claim 2, characterized in that: The scenario assumption and model loading module receives the scenario initialization information in the scenario assumption information transmitted by the data communication module, and at the same time, receives the simulation model data transmitted by the simulation database management module, parses the simulation model storage path, and initializes the assumption scenario in combination with the scenario initialization information.

4. A general visual simulation system suitable for an optoelectronic system digital simulator according to claim 3, characterized in that: The visual rendering module outputs a visual rendering image based on the open source OSG three-dimensional rendering engine; the smoothness of the visual rendering is improved through streaming loading; the output visual rendering image is packaged by the data communication module and sent to the optoelectronic system digital simulator.

5. A universal visual simulation system suitable for an optoelectronic system digital simulator according to claim 4, characterized in that: The view control module receives the system control parameters transmitted by the data communication module and the target / carrier trajectory data transmitted by the simulation database management module. The system control parameters include working mode, sensor parameters, and situation information. The view control module calculates the projection matrix in real time according to the current system control parameters and the relative posture of the carrier and the target, and modifies the current camera viewport based on the callback function of the camera control class in OSG, and transmits the corresponding changes to the scene rendering module.

6. A universal visual simulation system suitable for an optoelectronic system digital simulator according to claim 5, characterized in that: The optoelectronic system digital simulator includes an initialization function, a configuration parameter function, a simulation start function, a visual data receiving function, a visual data display function, a control instruction sending function, and a simulation close function; The initialization function establishes a communication connection between the optoelectronic system digital simulator and the visual simulation system; initializes simulation-related variables and a simulation buffer, and applies for memory for the simulation-related variables and the simulation buffer; The configuration parameter function obtains the scenario information of the user and forwards it to the scenario and model loading module and the simulation database management module through the data communication module; the scenario information includes simulation model information and scenario initialization information, the simulation model information includes the target model type, scenario model type, interference model type, target / carrier motion trajectory type, the scenario initialization information includes carrier attitude, initial working mode, initial sensor parameters, the scenario information is configured through an independent scenario interface, and an XML file is generated for the configuration parameter function to read; The start simulation function controls the start of the simulation process, transmits the simulation start control signal to the visual rendering module through the data communication module, and controls the visual rendering module to start outputting the visual image; The visual data receiving function receives the image data stream encapsulated by the data communication module in real time, and stores the valid data in the simulation buffer after unpacking for the visual data display function to call; The visual data display function reads the visual rendering image data from the simulation buffer, calls a third-party open source multimedia development library, and displays the visual rendering image data in real time on the display and control interface of the optoelectronic system digital simulator; The control instruction sending function sends the system control parameters and the simulation control signal to the data communication module, and the data communication module passes the system control parameters to the view control module for processing, and passes the simulation control signal to the view rendering module for processing; The simulation closing function controls the end of the simulation process, and transmits a simulation end control signal to the visual rendering module through the data communication module, so that the visual rendering module stops outputting the visual image.

7. A general visual simulation method applicable to an optoelectronic system digital simulator, implemented based on the general visual simulation system applicable to an optoelectronic system digital simulator as claimed in any one of claims 1 to 6; characterized in that The specific steps are as follows: Scene initialization: Initialize the simulation environment through the optoelectronic system digital simulator, read the scenario information recorded in the configuration parameter file, and then enter the visual simulation system modules through the data communication module for processing to complete the scene loading; Scene rendering; after controlling the scene rendering to start, the corresponding scene rendering image is obtained according to the change of the system control parameters. When the simulation is closed, the scene rendering module is controlled to stop outputting the scene rendering image; Visual display: the original visual image data is obtained by controlling the visual rendering module, and after being processed by the data communication module, it is sent to the optoelectronic system digital simulator for reading and display.

8. A general visual simulation method applicable to an optoelectronic system digital simulator according to claim 7, characterized in that: The steps of the scene initialization workflow are as follows: Step 1: Initialize the simulation environment through the initialization function, including initializing simulation related variables, initializing interface data, establishing data receiving buffer, initializing Ethernet, and creating data receiving and data display threads; The interface data is unified through a predefined interface control file; Step 2: Read the configuration parameter file through the configuration parameter function. The configuration parameter file records the scenario information in XML format, including target model, background model, target / aircraft situation information, field of view, resolution, aiming line angle, and sensor type. Step 3: Assign the scenario information to the interface data, and then send it to the simulation database management module through the data communication module; Step 4: The simulation database management module retrieves the storage path of the target / background model and the path where the trajectory data is located; sends the simulation model data to the scene assumption and model loading module, and sends the trajectory data to the view control module; Step 5: The scene assumption and model loading module parses the simulation model storage path and scene initialization parameters, reads the simulation model path, sets the model initial state according to the model initial position, defines the camera, defines the event handler, initializes the rover, and configures the texture parameters; Step 6: After the scene is loaded, the scene initialization workflow ends.

9. A general visual simulation method applicable to an optoelectronic system digital simulator according to claim 8, characterized in that: The specific steps of the scene rendering workflow are as follows: Step 1: Determine whether to turn on the simulation. If not, keep judging. Step 2: If the simulation is turned on, a simulation start control signal is sent to control the start of scene rendering; Step 3: After the scene rendering starts, determine whether the system control parameters have changed. If the system control parameters have not changed, directly output the scene rendering image of the current state; Step 4: If the system control parameters change, the changed system control parameters are sent to the view control module, which solves the control parameters and updates the projection matrix. The projection matrix acts on the scene rendering module to update the scene rendering image. Step 5: Determine whether to turn off the simulation. If not, repeat steps 3 to 4. Step 6: If the simulation is closed, a simulation end control signal is sent to control the scene rendering module to stop outputting the scene rendering image, thereby ending the scene rendering workflow.

10. A general visual simulation method applicable to an optoelectronic system digital simulator according to claim 9, characterized in that: The specific steps of the visual display workflow are as follows: Step 1: Determine whether to turn on the simulation. If not, keep judging. Step 2: If the simulation is turned on, a simulation start control signal is sent to control the start of scene rendering; Step 3: The scene rendering module obtains the original scene image data from the frame buffer in the drawing callback function and sends it to the data communication module; Step 4: After the data communication module splits the original visual image data into data lengths that can be transmitted by UDP, it adds a frame header, a frame footer and a data length to the original data, and sends it to the optoelectronic system digital simulator in the format of an image data stream through UDP; Step 5: The optoelectronic system digital simulator reads the image code stream data in the visual data receiving thread, parses the valid data according to the frame header, frame tail and data length, and stores it in the visual image receiving buffer; Step 6: Read a frame of visual image data in the visual data display thread, and display the image data on the display interface of the optoelectronic system digital simulator through the SDL multimedia development library; Step 7: Determine whether to turn off the simulation. If not, repeat steps 3 to 6. Step 8: If the simulation is closed, a simulation end control signal is sent to control the scene rendering module to stop outputting the scene rendering image, thus ending the scene display workflow.