Three-dimensional simulation system and method based on channel operation system

By designing a 3D simulation system on the Dao operating system and combining the model machine and the target simulation machine to generate and update visual simulation images, the problem of the lack of 3D drivers in the Dao operating system is solved, and efficient 3D vision on resource-limited hardware is achieved. Scenery simulation.

CN118570350APending Publication Date: 2024-08-30CENT CHINA OPTOELECTRONICS TECH RES INST (CHINA STATE SHIPBUILDING CORP 717TH RES INST)
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410600981.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-15
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

The Dao operating system lacks a 3D driver and graphics acceleration engine, which makes it difficult to develop a 3D training simulator. It is especially difficult to implement 3D scene simulation on hardware with limited resources.

Method used

A three-dimensional simulation system based on Dao operating system is designed. By combining the model machine and the target simulation machine, the target parameters and scene parameters are solved, the target model, wave model and sky box scene are generated, and converted into pictures or video streams. , update the image cache in real time through the calculation matrix and projection matrix, and generate a visual simulation image.

Benefits of technology

It realizes efficient 3D visual simulation on hardware with limited resources, reduces the amount of calculation and resource occupation, simplifies the transplantation process, and avoids lags and abnormalities in software operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570350A
    Figure CN118570350A
Patent Text Reader

Abstract

The invention relates to a three-dimensional simulation system and method based on a channel operating system, and the system comprises a model machine which is used for solving target parameters and scene parameters, and generating a target model, a sea wave model and a sky box scene; converting the generated model into a picture or a video stream, and outputting the picture or the video stream to a target simulation machine; the target comprises a ship and an airplane; the target simulation machine is used for calculating a model matrix, a view matrix and a projection matrix of a target model through a channel operation system according to externally transmitted target track information; according to a model matrix, a view matrix and a projection matrix of the target model, converting target point information and scene environment information into an observer scene body; and according to the target parameter and the scene parameter calculated by the model machine, updating the picture or the video stream in the image cache in real time, and generating a visual simulation image. Compared with a traditional three-dimensional simulation method, the method has the advantages that through calculation of the 2D graphics library, the calculation amount is small, transplantation is easy, and few computer resources are occupied.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of three-dimensional simulation, and in particular relates to a three-dimensional simulation system and method based on a road operation system. Background Art

[0002] Dao OS is a commonly used domestic microkernel real-time embedded system. Its graphics system only supports the most basic 2D graphics interface development such as mapping, point, line and surface drawing, and does not have 3D drivers and graphics acceleration engines. At present, 3D graphics drivers based on graphics interfaces such as OpenGL, DirectX, and Vulkan often have the disadvantages of occupying a lot of resources, slow running speed, and high porting difficulty. Especially for software running on board, when there is no GPU and a tailored operating system, the above-mentioned graphics interface and related graphics engine are basically unable to be ported, or cannot be used normally after porting, which brings great difficulties to the development of 3D training simulators. Summary of the invention

[0003] In order to solve the problem that it is difficult to realize the scene of 3D drive and graphics acceleration engine on the Dao operating system, in the first aspect of the present invention, a three-dimensional simulation system based on the Dao operating system is provided, including: a model machine, used to solve target parameters and scene parameters, and generate target models, wave models and sky box scenes; convert the generated target models, sky box scenes and wave models into pictures or video streams, and output the pictures or video streams to the target simulation machine; the targets include ships and airplanes; at least one target simulation machine, used to calculate the model matrix, view matrix and projection matrix of the target model through the Dao operating system according to the target trajectory information transmitted externally; according to the model matrix, view matrix and projection matrix of the target model, convert the target point information and the scene environment information into the observer's field of view; and according to the target parameters, scene parameters and observer's field of view solved by the model machine, update the pictures or video streams in the image cache in real time to generate a visual simulation image.

[0004] In some embodiments of the present invention, the model machine includes: a solution module for solving target parameters and scene parameters; a target model construction module for generating a target model and converting the target model into a picture or video stream; a wave model construction module for generating a wave model based on the Pierson-Moskowitz model and the wave propagation angle distribution; a sky box scene construction module for generating a sky box scene and converting the sky box scene into a picture or video stream; a transmission module for outputting the picture or video stream to the target simulation machine.

[0005] Furthermore, the wave model construction module includes: a frequency distribution determination unit, which is used to determine the frequency-based energy distribution of the wave by the Pierson-Moskowitz model; a wave propagation angle distribution unit, which is used to calculate the energy distribution of the wave by the frequency-based energy distribution and the Mitsuyasu formula; and an amplitude calculation unit, which is used to calculate the amplitude of the wave by Fourier transform and the energy distribution of the wave.

[0006] In some embodiments of the present invention, the target simulation machine includes: a first calculation module, which is used to calculate the model matrix, view matrix and projection matrix of the target model according to the target trajectory information transmitted externally through the road operation system; a second calculation module, which is used to convert the target point information and the scene environment information into the observer's field of view according to the model matrix, view matrix and projection matrix of the target model; an update module, which is used to update the picture or video stream in the image cache in real time according to the target parameters, scene parameters and observer's field of view calculated by the model machine, and generate a visual simulation image.

[0007] Furthermore, the first calculation module includes: a model matrix calculation unit, used to transform the vertices of the target from the local coordinate system to the canonical cube; a view matrix calculation unit, used to transform the world coordinate system into the observer coordinate system centered on the observer; a projection matrix calculation unit, used to project the target point into the observer's field of view and transform the vertices in the view coordinate system to the display plane.

[0008] Furthermore, the background removal unit is used to remove the background of the target image based on an image mask method.

[0009] In a second aspect of the present invention, a three-dimensional simulation method based on a road operation system is provided, comprising: solving target parameters and scene parameters, and generating a target model, a wave model and a skybox scene; converting the generated target model, the skybox scene and the wave model into a picture or a video stream, and outputting the picture or the video stream to a target simulator; the target includes a ship and an aircraft;

[0010] Through the Dao operating system, according to the target trajectory information set by the user or transmitted externally, the model matrix, view matrix and projection matrix of the target model are calculated; according to the model matrix, view matrix and projection matrix of the target model, the target point information and the scene environment information are converted into the observer's field of view; and according to the target parameters, scene parameters and observer's field of view solved by the model machine, the picture or video stream in the image cache is updated in real time to generate a visual simulation image.

[0011] According to a third aspect of the present invention, there is provided an electronic device, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the three-dimensional simulation method based on the Dao operating system provided in the first aspect of the present invention.

[0012] According to a fourth aspect of the present invention, a computer-readable medium is provided, on which a computer program is stored, wherein when the computer program is executed by a processor, the three-dimensional simulation method based on the Dao operating system provided in the first aspect of the present invention is implemented.

[0013] The beneficial effects of the present invention are:

[0014] Existing 3D visual simulation software is generally developed using graphic interfaces such as OpenGL, DirectX, and Vulkan. For Dao operating systems and similar lightweight operating systems, especially for software running on board, sometimes the hardware resources are limited and insufficient to support the migration of the above-mentioned graphics drivers, or the software takes up too many resources when running after migration, resulting in software running stuck or abnormal. Compared with the above-mentioned commonly used solutions, the present invention has a small amount of calculation, is simple to migrate, and occupies less computer resources, and can realize 3D visual simulation on hardware with limited resources. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figure 1 A schematic diagram of the basic structure of a three-dimensional simulation system based on a road operation system in some embodiments of the present invention;

[0016] Figure 2 is an overall block diagram of a simulation system in some embodiments of the present invention;

[0017] Figure 3 A schematic diagram of a three-dimensional simulation process based on a distributed simulation scenario in some embodiments of the present invention;

[0018] Figure 4 A schematic diagram of a three-dimensional simulation process of a single-machine simulation scenario in some embodiments of the present invention;

[0019] Figure 5 is a flow chart of a three-dimensional simulation method based on a road operation system in some embodiments of the present invention;

[0020] Figure 6 It is a schematic diagram of the structure of an electronic device in some embodiments of the present invention. DETAILED DESCRIPTION

[0021] The principles and features of the present invention are described below in conjunction with the accompanying drawings. The examples given are only used to explain the present invention and are not used to limit the scope of the present invention.

[0022] refer to Figure 1 and Figure 2 In a first aspect of the present invention, a three-dimensional simulation system 1 based on a road operation system is provided, comprising: a model machine 11, for solving target parameters and scene parameters, and generating a target model, a wave model and a skybox scene; converting the generated target model, skybox scene and wave model into images or video streams, and outputting the images or video streams to the target simulator; the targets include ships and aircraft; at least one target simulator 12, for calculating the model matrix, view matrix and projection matrix of the target model through the road operation system according to the target trajectory information transmitted externally; converting the target point information and the scene environment information into the observer's field of view according to the model matrix, view matrix and projection matrix of the target model; and updating the images or video streams in the image cache in real time according to the target parameters, scene parameters and observer's field of view solved by the model machine to generate a visual simulation image.

[0023] refer to Figure 3 and Figure 4 , depending on the usage scenario, the system has two working modes. One is a distributed simulation scenario, where the model machine 11 acts as a server to communicate with one or more target simulation machines 12 in real time. After solving the target and scene parameters, the simulation machine 12 transmits the relevant parameters to the model machine 11 through an interface such as a network or bus, and requests to obtain the relevant scene image or video. The model machine sends the generated image or video to the simulation machine 12, and the simulation machine 12 updates the simulation scene in real time. The other mode is a single-machine simulation. The model machine 11 generates the relevant scene and target images in advance according to the set parameters, and stores them in the simulation machine 12 as resources. Each model generates a model resource library under different parameters according to the simulation precision and simulation scene complexity. After solving the target and scene parameters, the simulation machine 12 searches for the corresponding resources in the resource library according to the relevant parameters and generates the simulation scene in real time. When the resource file of the relevant parameters is not found, the closest parameter resource is called.

[0024] In some embodiments of the present invention, the model machine 11 includes: a solution module, which is used to solve target parameters and scene parameters; a target model construction module, which is used to generate a target model and convert the target model into a picture or a video stream; a wave model construction module, which is used to generate a wave model based on the Pierson-Moskowitz model and the wave propagation angle distribution; a sky box scene construction module, which is used to generate a sky box scene and convert the sky box scene into a picture or a video stream; a transmission module, which is used to output the picture or video stream to the target simulation machine.

[0025] Furthermore, the ocean wave model construction module includes: a frequency distribution determination unit for determining the frequency-based energy distribution of ocean waves using the Pierson-Moskowitz model;

[0026] Specifically, we first define the amplitude A to determine the height of the wave, the wavelength λ to determine the length of the wave, and the phase φ to determine the starting position of the wave. We use the Pierson-Moskowitz model, which describes the frequency distribution as an energy function with the independent variable being frequency. The formula for the frequency distribution of this model is:

[0027]

[0028] Where a = 0.0008, f m =0.13g / v, g=9.81m / s 2 , v is the wind speed.

[0029] In this model, f m is the peak frequency of the frequency distribution, so this frequency belongs to the main wave type. Theoretically, knowing the peak frequency can calculate the wavelength. From the scattering equation:

[0030]

[0031] When the wind speed is known, the peak frequency can be obtained from formula (1), and the wavelength can be calculated by substituting it into formula (2).

[0032] The wave propagation angle distribution unit is used to calculate the energy distribution of the waves through the frequency-based energy distribution and the Mitsuyasu formula; specifically, with the frequency-based energy distribution, the angle distribution of the wave propagation direction can be calculated. A feasible method is to apply the Mitsuyasu formula. This formula describes the propagation direction of the waves, or it gives the energy of a wave with a frequency of f and an angle of θ relative to the wind direction, that is:

[0033]

[0034] Where:

[0035] After determining the frequency distribution and angle distribution, the total energy distribution can be obtained:

[0036] E(f,θ)=E PM (f)·D(f,θ) (4).

[0037] This is the final result of the energy distribution of the wave, which is a function of the frequency and the angle between the wind and the wave. With this formula, the amplitude of the wave can be calculated.

[0038] The amplitude calculation unit is used to calculate the amplitude of the wave through Fourier transform and the energy distribution of the wave. Specifically, to calculate the amplitude, Fourier transform is required, and the Fourier transform is calculated by formula 3-5

[0039]

[0040] in, is the first-order derivative of k. According to the dispersion relation Available

[0041]

[0042] So the amplitude can be calculated:

[0043]

[0044] In some embodiments of the present invention, the target simulation machine 12 includes: a first calculation module, which is used to calculate the model matrix, view matrix and projection matrix of the target model according to the target trajectory information transmitted externally through the road operation system; a second calculation module, which is used to convert the target point information and the scene environment information into the observer's field of view according to the model matrix, view matrix and projection matrix of the target model; an update module, which is used to update the picture or video stream in the image cache in real time according to the target parameters, scene parameters and observer's field of view calculated by the model machine, and generate a visual simulation image.

[0045] Furthermore, the first calculation module includes:

[0046] The model matrix calculation unit is used to transform the vertices of the target from the local coordinate system to the canonical cube; specifically, the function of the model view projection matrix is ​​to transform the vertices of the target from the local coordinate system to the canonical cube (CanonicalView Volnme). Model view projection matrix = projection matrix × view matrix × model matrix. The model matrix transforms the vertices from the local coordinate system to the world coordinate system, the view matrix transforms the vertices from the world coordinate system to the view coordinate system, and the projection matrix transforms the vertices from the view coordinate system to the canonical cube.

[0047] The model matrix transforms the vertex coordinates in the local coordinate system into the world coordinate system. Let the coordinate vector of the original object in space be The object coordinate vector after transformation is When the object is translated, its coordinate transformation is as follows:

[0048]

[0049] Rotation transformation: When the object rotates around the z-axis by an angle of θ, its coordinate transformation is as follows:

[0050]

[0051] When rotating around the x-axis by an angle of θ, the coordinate transformation is as follows:

[0052]

[0053] When rotating around the y-axis by angle θ, the coordinate transformation is as follows:

[0054]

[0055] When the object is enlarged by Sx, Sy, and Sz times along the x, y, and z axes respectively, its coordinate transformation is as follows:

[0056]

[0057] The view matrix calculation unit is used to transform the world coordinate system into the observer coordinate system centered on the observer; specifically,

[0058] With the observer as the world coordinate origin, when the observer's position and direction change, it is equivalent to the position and direction of the entire scene changing in the opposite direction. The view matrix is ​​used to transform the world coordinate system into the observer coordinate system centered on the observer. If the observer is regarded as a model, then the view matrix is ​​the inverse matrix of the observer's model matrix.

[0059] When the observer translates in the scene by (tx, ty, tz), the entire world translates by (-tx, -ty, -tz), and the view matrix is

[0060]

[0061] The observer rotates around the Z axis by an angle of θ, which is equivalent to the entire world rotating around the Z axis by -θ degrees. The view matrix is:

[0062]

[0063] Similarly, when the observer rotates around the x-axis by an angle θ, the view matrix is:

[0064]

[0065] When the observer rotates around the y-axis by angle θ, the view matrix is:

[0066]

[0067] The view matrix and model matrix determine the relative position of the target and the observer, so the product of the two is called the model view matrix.

[0068] The projection matrix calculation unit is used to project the target point into the observer's viewing volume and transform the vertices in the view coordinate system to the display plane.

[0069] Specifically, in order to achieve perspective projection, the projection matrix projects the target point into the observer's viewing volume and transforms the vertices in the view coordinate system onto the plane. As shown in the figure, the projection matrix transforms the vertex coordinates into the canonical cube coordinate system (Xc, Yc, Zc). The viewing volume represents the observable space of the observer, which mainly depends on the spatial parameters of the camera. The viewing volume is a four-sided pyramid. Objects in the viewing volume represent visible objects. The projection matrix maps the objects in the viewing volume into the canonical cube. The canonical cube is a cube with a side length of 2, where x, y, and z are all in the interval [-1, 1]. It represents the observation plane, as shown below. The coordinates of the vertex in it, its x value and y value are directly the coordinates of the vertex on the screen, and the z coordinate value can be used to represent the depth of the vertex and determine the occlusion relationship between objects.

[0070] The closest distance to the observer in the camera space is near, and the farthest distance to the observer is far. The screen aspect ratio is aspect, and the horizontal viewing angle is fov. The projection matrix can be calculated:

[0071]

[0072] Through the above analysis, the position and posture of the target and observer in the three-dimensional space are known, and the parameters of the observer's field of view, such as the near plane, far plane, aspect ratio, horizontal viewing angle, etc., are known. The display matrix = projection matrix × view matrix × model matrix. The vertex coordinates multiplied by the matrix can get their coordinates in the canonical cube, thereby obtaining their position on the screen.

[0073] Furthermore, the background removal unit is used to remove the background of the target image based on an image mask method.

[0074] Continue to refer Figure 2 In some embodiments of the present invention, the visual simulation system (3D simulation system based on the Tao operating system) includes wave model construction, skybox scene construction, ship and aircraft model construction, target trajectory simulation, scene viewpoint control and simulation video generation implemented by multiple modules. This system builds a 3D wave model under the Windows operating system, stores the model in a video stream file format, reads the file under the Tao system, and realizes the 3D wave motion effect by real-time solving the file data and selecting the video stream for playback according to the timing and scene.

[0075] For the entire scene structure, by analyzing the skybox model commonly used in 3D visual simulation, this system unfolds the skybox constructed under the Windows system, rebuilds the scene model, and adds lighting, reflection, fog and other processing effects to the scene model in advance to get as close to the real scene as possible. Finally, the constructed scene model is saved in the operating system in JPEG file format. When building the scene, the JPEG picture is cropped according to the window position and size to realize the display of the training simulation scene.

[0076] By writing model image generation software under Windows, we can build models of three-dimensional targets such as aircraft, ships, submarines, etc., generate target model image stream files in different postures, control the movement of these targets in the scene according to their theoretical trajectories, calculate the position and posture image of the target model on the display screen through the model view projection matrix, and update the scene in real time.

[0077] For the entire scene structure, by analyzing the skybox model commonly used in 3D visual simulation, this system expands the skybox constructed under the Windows system, reconstructs the 360° panoramic scene, and adds lighting, reflection, fog and other processing effects to the scene model in advance to get close to the real scene to the greatest extent. Finally, the constructed scene model is saved in the operating system in JPEG file format. After the simulation starts, the system loads the panoramic image data into the computer memory and calculates the scene information in real time according to the current observer's position and direction.

[0078] The simulation video generation includes: a model file generation module and a transparent image display module, wherein the specific steps of the model file generation include: an accurate three-dimensional model is an important factor in the realism of the visual simulation system. Since the equipment models such as ships and aircraft are relatively complex, it is very difficult to directly draw and map them under the system. In order to achieve a more realistic model effect, this system writes model image generation software under Windows, reads the three-dimensional model generated by 3DMAX software, and generates target models in different postures. The target model image is then saved in the data file in the format of a compressed image stream. When the simulation starts, the corresponding model image is matched by the table lookup method according to the posture of the target model, and after multiplying it by the projection matrix, the display of the target model is realized.

[0079] The specific steps of the transparent image display module include:

[0080] Since the target model often has irregular boundaries, and the VxWorks operating system only supports rectangular images, and does not support transparent background images like PNG images under Windows, in order to display images with complex boundaries, it is necessary to process the target model image data and remove the background in the target image. This system uses the image mask method to remove the background of the target image. The mask is a binary image composed of 0 and 1. When the mask is applied in a certain function, the 1-value area is processed and the masked 0-value area is not included in the calculation. Masks are often used to exclude some irrelevant or easily disturbed areas in the rectangular image window, so that only the areas of interest in the image window can be counted and analyzed to improve the accuracy of image window statistics and analysis.

[0081] In order to realize the function of automatically generating image masks, this system uses specific RGB values ​​to draw the model background when generating model image data. When generating the mask, the computer traverses the image. When it detects that the RGB value of a pixel is the RGB value of the background pixel, the corresponding position in the mask image is set to 0, otherwise it is set to 1.

[0082] In order to eliminate noise points, a 9*9 template is used. When the 8 pixels around it are not background pixels, they can be regarded as noise points and the corresponding positions are set to 1. When the image is displayed, the original image data and the binary image data of the mask are imported into the memory to create the target image. The original image pixels are drawn at the positions where the mask data is 1, and the positions where the mask data is 0 are not drawn. The display of a transparent image can be realized, as shown in the figure, which shows the display of the target model in the scene.

[0083] In order to realize motion simulation, the system can plan the motion trajectory of the loaded model according to the simulation plot, and convert it into corresponding posture and position data and output it to other systems for visual simulation.

[0084] Example 2

[0085] refer to Figure 5 In a second aspect of the present invention, a three-dimensional simulation method based on a road operation system is provided, comprising: S100. solving target parameters and scene parameters, and generating a target model, a wave model and a skybox scene; converting the generated target model, the skybox scene and the wave model into a picture or a video stream, and outputting the picture or the video stream to a target simulator; the target includes a ship and an aircraft;

[0086] S200. Through the Dao operating system, according to the target trajectory information set by the user or transmitted externally, the model matrix, view matrix and projection matrix of the target model are calculated; according to the model matrix, view matrix and projection matrix of the target model, the target point information and the scene environment information are converted into the observer's field of view; and according to the target parameters, scene parameters and observer's field of view solved by the model machine, the picture or video stream in the image cache is updated in real time to generate a visual simulation image.

[0087] Further, in step S200, the calculation of the model matrix, view matrix and projection matrix of the target model by the operation system according to the target trajectory information set by the user or transmitted externally includes: transforming the vertices of the target from the local coordinate system to the canonical cube; transforming the world coordinate system into the observer coordinate system centered on the observer; projecting the target point into the observer's field of view, and transforming the vertices in the view coordinate system to the display plane.

[0088] Example 3

[0089] refer to Figure 6 According to a third aspect of the present invention, an electronic device is provided, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the three-dimensional simulation method based on the Dao operating system according to the first aspect of the present invention.

[0090] The electronic device 500 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage device 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the electronic device 500 are also stored. The processing device 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.

[0091] Typically, the following devices may be connected to the I / O interface 505: an input device 506 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 507 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 508 including, for example, a hard disk, etc.; and a communication device 509. The communication device 509 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 6 The electronic device 500 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead. Figure 6 Each block shown in the figure may represent one device, or may represent multiple devices as required.

[0092] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through a communication device 509, or installed from a storage device 508, or installed from a ROM 502. When the computer program is executed by the processing device 501, the above functions defined in the method of the embodiment of the present disclosure are executed. It should be noted that the computer-readable medium described in the embodiment of the present disclosure can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to, an electrical connection with one or more conductors, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In an embodiment of the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In an embodiment of the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to: wire, optical cable, RF (radio frequency), etc., or any suitable combination of the foregoing.

[0093] The computer-readable medium may be included in the electronic device, or may exist independently without being installed in the electronic device. The computer-readable medium carries one or more computer programs. When the one or more programs are executed by the electronic device, the electronic device:

[0094] Computer program code for performing the operations of embodiments of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, Python, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on a user's computer, partially on a user's computer, as a separate software package, partially on a user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0095] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0096] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A three-dimensional simulation system based on a road operation system, characterized in that: include: A model machine, used to solve target parameters and scene parameters, and generate target models, wave models and skybox scenes; Converting the generated target model, skybox scene and wave model into pictures or video streams, and outputting the pictures or video streams to the target simulator; the targets include ships and aircraft; At least one target simulation machine, used to calculate the model matrix, view matrix and projection matrix of the target model according to the target trajectory information transmitted externally through the track operation system; convert the target point information and the scene environment information into the observer's visual volume according to the model matrix, view matrix and projection matrix of the target model; And according to the target parameters, scene parameters and observer viewing volume solved by the model machine, the pictures or video streams in the image cache are updated in real time to generate a visual simulation image.

2. The three-dimensional simulation system based on the Dao operating system according to claim 1 is characterized in that: The model machine comprises: Solving module, used to solve target parameters and scene parameters; A target model building module, used to generate a target model and convert the target model into a picture or a video stream; The wave model building module is used to generate the wave model based on the Pierson-Moskowitz model and the wave propagation angle distribution; A skybox scene construction module, used to generate a skybox scene and convert the skybox scene into a picture or a video stream; The transmission module is used to output the picture or video stream to the target simulation machine.

3. The three-dimensional simulation system based on the Dao operating system according to claim 2 is characterized in that: The wave model construction module comprises: Frequency distribution determination unit, used for Pierson-Moskowitz model to determine the frequency-based energy distribution of waves; Wave propagation angle distribution unit, used to calculate the energy distribution of ocean waves using frequency-based energy distribution and Mitsuyasu's formula; The amplitude calculation unit is used to calculate the amplitude of the waves through Fourier transform and the energy distribution of the waves.

4. The three-dimensional simulation system based on the Dao operating system according to claim 1 is characterized in that: The target simulation machine comprises: The first calculation module is used to calculate the model matrix, the view matrix and the projection matrix of the target model according to the target trajectory information transmitted externally through the track operation system; A second calculation module is used to convert the target point information and the scene environment information into the observer's viewing volume according to the model matrix, the view matrix and the projection matrix of the target model; The updating module is used to update the pictures or video streams in the image cache in real time according to the target parameters, scene parameters and observer viewing volume solved by the model machine to generate a visual simulation image.

5. The three-dimensional simulation system based on the Dao operating system according to claim 4 is characterized in that: The first calculation module includes: Model matrix calculation unit, used to transform the vertices of the target from the local coordinate system to the canonical cube; A view matrix calculation unit, used to transform the world coordinate system into an observer coordinate system centered on the observer; The projection matrix calculation unit is used to project the target point into the observer's viewing volume and transform the vertices in the view coordinate system to the display plane.

6. The three-dimensional simulation system based on the Dao operating system according to claim 4 is characterized in that: The update module includes: The background removal unit is used to remove the background of the target image based on the image mask method.

7. A three-dimensional simulation method based on a road operation system, characterized in that: include: Solve the target parameters and scene parameters, and generate the target model, wave model and skybox scene; Converting the generated target model, skybox scene and wave model into pictures or video streams, and outputting the pictures or video streams to the target simulator; the targets include ships and aircraft; Through the operation system, according to the target trajectory information set by the user or transmitted externally, the model matrix, the view matrix and the projection matrix of the target model are calculated; according to the model matrix, the view matrix and the projection matrix of the target model, the target point information and the scene environment information are converted into the observer's visual volume; And according to the target parameters, scene parameters and observer viewing volume solved by the model machine, the pictures or video streams in the image cache are updated in real time to generate a visual simulation image.

8. The three-dimensional simulation method based on the road operation system according to claim 7 is characterized in that: The operation system calculates the model matrix, the view matrix and the projection matrix of the target model according to the target trajectory information set by the user or transmitted externally, including: Transform the target's vertices from the local coordinate system to the canonical cube; Convert the world coordinate system to the observer coordinate system centered on the observer; Project the target point into the observer's viewing volume and transform the vertex in the view coordinate system to the display plane.

9. An electronic device, comprising: one or more processors; A storage device for storing one or more programs, which, when executed by the one or more processors, enables the one or more processors to implement the three-dimensional simulation method based on the Dao operating system as described in any one of claims 7 to 8.

10. A computer readable medium having a computer program stored thereon, wherein: When the computer program is executed by a processor, the three-dimensional simulation method based on the Dao operating system as described in any one of claims 7 to 8 is implemented.