An infrared simulation method for simulator visuals
The infrared simulation process is implemented using the shader language, which solves the problem of synchronizing infrared imaging simulation with visible light scene in existing technologies, improves simulation speed and accuracy, and has broad engineering application value.
Patent Information
- Application Number
- CN202311852121.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-28
- Publication Date
- 2026-11-17
- Estimated Expiration
- 2043-12-28
AI Technical Summary
Existing infrared imaging simulation methods cannot achieve synchronization with visible light scenes in flight simulators, and the simulation efficiency and similarity are difficult to meet engineering requirements. In particular, the infrared module in the early version of Vega 3.7 can no longer meet the needs of modern simulation.
The infrared simulation process is implemented using the shader language. By acquiring the 3D model of the entity, preprocessing and adding material textures, using the shader program to calculate the infrared radiation, and outputting the coloring effect on the 3D model, the infrared scene simulation is synchronized with the visible light scene.
It improves simulation speed and accuracy, can synchronize with visible light scenes, has broad engineering application value, and has been applied to multiple models of flight simulators.
Smart Images

Figure CN117788713B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of visual simulation technology, and more specifically to an infrared simulation method for simulator visual scenes. Background Technology
[0002] In recent years, flight simulators have been widely used in pilot training, not only improving training efficiency but also saving significant training costs. As the requirements for simulator realism increase, infrared imaging simulation must accurately reflect the radiation field changes of the simulated target while also possessing high simulation efficiency.
[0003] Currently, engineering-grade infrared imaging simulation is generally implemented using two methods. One method involves building an infrared scene based on a simulation software package. A typical example is using the infrared module (IRSensor) in Presagis's Creator modeling software and Vega's view-driven software to simulate the infrared scene. This method fully utilizes the powerful infrared simulation capabilities of Vega's IRSensor module to produce realistic infrared scene simulations. However, because this module contains fighter jet-related information, the software developer has implemented sales controls for security reasons. Currently, the infrared module used in engineering projects is mostly from the earlier Vega 3.7 version (released in the 1990s), which is far from meeting current simulation requirements. The other method involves using commercial modeling software to build an infrared model of the scene, and then using OpenGL or other view-driven software for low-level rendering to simulate the infrared scene. This method is mostly only for a single simulation stage, and the similarity and efficiency of the simulation are difficult to meet engineering requirements.
[0004] Therefore, to improve the practicality of the research, it is necessary to establish a complete infrared image simulation method, establish an infrared scene simulation synchronized with visible light scenes, and realize the simulation from scene simulation to the final observation results. Summary of the Invention
[0005] To address the above problems, the present invention aims to provide an infrared simulation method for simulator scenes. The method uses shader language to implement the infrared simulation process, enabling infrared scene simulation synchronized with visible light scenes, thus effectively improving the simulation speed.
[0006] To achieve the above objectives, the present invention employs the following technical solution: In a first aspect, the present invention discloses an infrared simulation method for simulator visual scenes, comprising: Obtain the 3D model of the entity and perform preprocessing on the model based on the heat source components of the 3D model; Based on the preprocessed 3D model, establish the initialization environment for the shader program; Create shader programs for different 3D models, and write corresponding shader programs for 3D models with or without internal heat sources; Bind the preprocessed 3D model to the shader program; The system obtains the real-time temperature of the solid part on the 3D model, the area of the target cross section, the position relative to the heat source, and the current time information. It then uses a shader program to calculate the infrared radiation of the solid part and outputs the corresponding shading effect on the 3D model.
[0007] Furthermore, the process of obtaining a 3D model of the entity and preprocessing the model based on the heat source components of the 3D model includes: Obtain the 3D model of the entity, decompose the model parts according to whether there is a heat source inside the 3D model of the entity, and separate the model parts with heat sources into the child nodes of the model. Based on the different emissivity of the materials of different child nodes, material textures are created using image processing software; Add material textures to the texture library of the solid 3D model; Set the newly added material texture to Layer 1 of the model texture, and the existing visible light texture to Layer 0 of the model texture; Assigning the UV mapping of visible light texture to the material texture outputs a 3D model with multiple textures.
[0008] Furthermore, the process of acquiring the real-time temperature of the solid component on the 3D model, the area of the target cross-section, its position relative to the heat source, and the current time information, calculating the infrared radiation of the solid component using a shader program, and outputting the corresponding shading effect on the 3D model includes: The system obtains the real-time temperature of solid parts on the 3D model and the area of the colored target cross section, and calculates the radiation of the corresponding solid based on Planck's law formula. Obtain the position relative to the heat source and the current time information, and calculate the solar radiation based on the eye-point coordinate system; The total radiation of the entity is calculated based on the entity's radiation and solar radiation. The total radiation of an entity is quantized into gray levels; Based on the grayscale level, the corresponding parts are colored and displayed on the 3D model.
[0009] Furthermore, the step of obtaining the real-time temperature of the solid component on the 3D model, the area of the tinted target cross-section, and calculating the radiation of the corresponding entity based on Planck's law includes: Obtain the real-time temperature of solid parts on the 3D model and the area of the shading target cross section; Through formula Calculate the radiation of an entity ; in, Where wavelength is T and solid temperature is T. The emissivity of the entity; This is Planck's law formula, where h, k, c1, and c2 are Planck's constants, c is the speed of light, and S1 is the area of the cross-section of the colored target. The angle between the normal of the colored target section and the viewing direction.
[0010] Furthermore, the step of obtaining the position and current time information relative to the heat source, and calculating the solar radiation based on the eye-point coordinate system, includes: Assuming the sun's position is S, the position of vertex p of the aircraft component entity is P, the surface normal vector is N, and the blackbody radiation intensity is I, then at the current time t, the solar radiance of vertex p is... Expressed by the following formula:
[0011] in, ,vector , This is the azimuth angle of the sun relative to the observation point. The altitude angle of the sun relative to the observation point.
[0012] Furthermore, the calculation of the total radiation of the entity based on the entity's radiation and solar radiation includes: Entity-based radiation and solar radiation Using the formula L=L I +Ls calculates the total radiation L of the entity.
[0013] Furthermore, quantizing the total radiation of an entity into gray levels includes: According to the formula Calculate the gray level G; in, This is the lower limit of radiation levels. This is the upper limit of radiation levels. To quantize the lower limit value of grayscale levels, This is the upper limit for quantizing grayscale levels.
[0014] Secondly, the present invention also discloses an infrared simulation system for simulator visual scenes, comprising: The model preprocessing module is configured to acquire the 3D model of the entity and perform model preprocessing based on the heat source components of the 3D model. The initialization module configures the initialization environment for the shader program based on the preprocessed 3D model. Write modules and configure shader programs for creating different 3D models. Write corresponding shader programs for 3D models with or without internal heat sources. The binding module is configured to bind preprocessed 3D models to shader programs. The calculation and shading module is configured to obtain the real-time temperature of the solid parts on the 3D model, the area of the target cross section, the position relative to the heat source, and the current time information. It uses the shader program to calculate the infrared radiation of the solid parts and outputs the corresponding shading effect on the 3D model.
[0015] Thirdly, the present invention also discloses an infrared simulation device for simulator visual scenes, comprising: Memory for storing infrared simulation programs used in simulator visuals; A processor, configured to implement the steps of the infrared simulation method for simulator scenes as described above when executing the infrared simulation program for simulator scenes.
[0016] Fourthly, the present invention also discloses a readable storage medium storing an infrared simulation program for a simulator scene, wherein the infrared simulation program for the simulator scene, when executed by a processor, implements the steps of the infrared simulation method for the simulator scene as described in any of the above.
[0017] Compared with existing technologies, the advantages of this invention are as follows: This invention discloses an infrared simulation method for simulator visual scenes, comprising three parts: model preprocessing, radiation calculation, and coloring using a shader program. In the model preprocessing stage, this invention divides the solid model into two parts: one affected by an internal heat source and the other unaffected. Key information such as the temperature of the components is transmitted to the Shader language via external parameters to complete the calculation, thus solving the problem of traditional methods being unable to handle the significant changes in infrared grayscale caused by drastic changes in the internal heat source. This invention uses a Shader language to implement the infrared simulation process, enabling infrared scene simulation synchronized with visible light visual scenes, effectively improving simulation speed. The method proposed in this invention has broad engineering application value and has already been applied to multiple models of flight simulators. Furthermore, this method can also be combined with other visual driving engines, showing broad prospects for wider application.
[0018] Therefore, it is evident that the present invention has outstanding substantive features and significant progress compared with the prior art, and the beneficial effects of its implementation are also obvious. Attached Figure Description
[0019] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.
[0020] Figure 1 This is a flowchart illustrating a specific embodiment of the present invention; Figure 2 This is a system structure diagram of a specific embodiment of the present invention.
[0021] In the diagram, 1 is the model preprocessing module; 2 is the initialization module; 3 is the programming module; 4 is the binding module; and 5 is the calculation and coloring module. Detailed Implementation
[0022] To enable those skilled in the art to better understand the present invention, the invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. Obviously, the described embodiments are merely some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0023] See Figure 1 As shown, this embodiment provides an infrared simulation method for simulator visual scenes. Taking an aircraft as an example, the method specifically includes the following steps: S1: Obtain the 3D model of the aircraft and perform preprocessing based on the heat source components of the 3D model.
[0024] In this specific implementation, the purpose of this step is to use model processing software to process the nodes and material textures of the aircraft's 3D model, generating a model file that meets the requirements. Specifically, this step includes the following sub-steps: S11: Decompose the model components based on whether there are heat sources inside the model, and separate the components with heat sources into child nodes of the model. Specifically, set the aircraft nose, aircraft skin, and tail nozzle as child nodes of the aircraft.
[0025] S12: Based on the different emissivity of the materials, use image processing software to create material textures.
[0026] Among them, Photoshop can be used for image processing.
[0027] S13: Add material textures to the model's texture library.
[0028] Specifically, in Creator, select Palettes, then Texture, then File -> Read Palette, and finally Info -> List Texture. Replace the corresponding file with Replace File to add a new texture to the texture library.
[0029] S14: Set the newly added material texture to Layer 1 of the model texture, and the existing visible light texture to Layer 0 of the model texture.
[0030] Specifically, assuming the existing texture is tex1 and the newly added texture is tex2, in the Attributes menu, select Texture-base=0 (0 is the label of tex1) as the search condition in NewAttributes Search. After starting the search, all textures will be selected. In the Attributes menu, select Modify Attributes->Textures->set Layer1 to the label of tex2.
[0031] S15: Assign the UV mapping of the visible light texture to the material texture, and output a flt (OpenFlight) model with multiple textures.
[0032] Specifically, with the face selected, select Layer1 for the View in the pop-up dialog box, select the Texture Composer option in ModTexture on the left side of the creator, click Import UVs in the Texture Composer interface, select Layer0-All (i.e., the UVs corresponding to tex1) in the pop-up dialog box, and then select Apply. This will directly map the UVs of tex1 to tex2.
[0033] S2: Based on the preprocessed 3D model, establish the initialization environment for the shader program.
[0034] In specific implementations, different initialization environments for shader programs are established depending on the visual simulation platform.
[0035] S3: Create shader programs for different 3D models, and write corresponding shader programs for 3D models with or without internal heat sources.
[0036] S4: Bind the preprocessed 3D model to the shader program.
[0037] S5: Obtain the real-time temperature, area of the shading target section, position relative to the sun, and current time information of the aircraft component entity on the 3D model. Use the shader program to calculate the infrared radiation of the aircraft component entity and output the corresponding shading effect on the 3D model.
[0038] In the specific implementation method, this step includes the following sub-steps: S51: Obtain the real-time temperature of the aircraft component entities on the 3D model and the area of the colored target cross section, and calculate the radiation of the corresponding entities based on Planck's law formula.
[0039] Specifically, through the formula Calculate the radiation of an entity .
[0040] in, Where wavelength is T and solid temperature is T. The emissivity of the entity; This is the formula for Planck's law, where Planck's constant h = 6.6260755. 10 -34 Js (joule-second), Boltzmann constant k = 1.380658 10⁻²³ JK⁻¹ (joules / K), speed of light c=3 10⁻⁸ ms⁻¹ (m / s) c₁ = 2 hc 2 =3.741774 10⁻¹⁶ W·m²; c² = hc / k = 1.4387869 10⁻² m·K (meters per square kilometer). S1 is the area of the colored target cross-section. The angle between the normal of the colored target section and the viewing direction.
[0041] S51: Obtain the current time information and calculate the solar radiation based on the eye-point coordinate system.
[0042] Specifically, this step simulates the change in the side of the object receiving sunlight based on the sun's position over a 24-hour period. Assuming the sun's position is S, the vertex p's position is P, the surface normal vector is N, and the blackbody radiation intensity is I (represented by the color at the vertex), then at time t, the solar radiance at vertex p is... Expressed by the following formula:
[0043] in Because the sun is far enough away from the scene, we can treat the scene as a point and obtain the azimuth and elevation angles of the sun relative to the observation point. Then the vector Therefore, it can be calculated that .
[0044] S53: Calculate the total radiation of the entity based on the entity's radiation and solar radiation.
[0045] It should be noted that the total amount of traditional physical radiation can be expressed by the formula... Calculated. Among them, The total amount of radiation detected by the sensor on the physical object; The blackbody radiation at an isothermal temperature on the solid surface detected by the sensor; Solar radiation reflected from the physical surface as detected by the sensor; Radiation in the physical environment detected by the sensor; The atmospheric path radiation between the target and the sensor is considered. Since the radiation from the physical environment is mainly solar radiation, therefore... Approximately 0, atmospheric path radiation accounts for a small proportion of the total radiant energy, therefore it will also It is approximately 0.
[0046] For the reasons mentioned above, in this step, the radiation amount is based on the entity. and solar radiation Using the formula L=L I +Ls calculates the total radiation L of the entity.
[0047] S54: Quantize the total radiation of an entity into gray levels.
[0048] Specifically, infrared images use different gray levels to represent the magnitude of radiation, with the gray level ranging from 0 to 255. Therefore, it is necessary to quantize the radiation into the gray level range. The linear high-brightness gray level quantization method is usually used. First, the upper and lower limits of the quantized gray level are determined. Secondly, determine the upper and lower limits of the radiation dose that needs to be quantified. Then, it is quantified using the following formula:
[0049] In the formula, G represents the quantized gray level; L represents the infrared radiation to be quantized; generally =0, =255.
[0050] S55: Based on the grayscale level, color the corresponding parts on the 3D model.
[0051] As an example, the calculation process of step S51 is as follows: The constant variables PlanckH = 6.626075e-34; PlanckK = 1.380658e-23; PlanckC1 = 3.741774e-16; PlanckC2 = 1.4387869e-2 are set respectively. The emissivity of the skin is OSEMIC = 0.9, the wavelength is Lamda1 = 3e-6, and the wavelength is Lamda2 = 5e-6. The temperature change of the skin is represented by the function MIC(t), where t is the simulation time.
[0052] The function calculatePlunckI(Lamda1,Lamda2,MIC(t)) is used to calculate To obtain the radiation amount of the entity .
[0053] Specifically, the Planck value of the skin is calculated by using the vertex-view matrix M and the vertex position vector V to calculate the vertex-to-observer vector VToE=-M. V, from which the cosine of the angle between the target section normal and the viewing direction can be calculated as cosine of the angle between V and the viewing direction, cos(VN.N(VToE)), where VN is the normalized normal vector of the vertex in the eye-point coordinates. This is obtained by normalizing M... N is obtained (N is the normal vector of the vertex in model coordinates), and N(VToE) represents the normalized VToE, from which the radiance of the entity can be calculated. .
[0054] As an example, the calculation process of step S52 is as follows: Assuming the sun's position vector is S, the azimuth and elevation angles of the sun relative to the observation point can be calculated in the eye-point coordinate system. If the position of vertex p is P, then we can obtain PS = Because the position of the vertex relative to the sun changes constantly throughout the day, only the side facing the sun receives solar radiation. Therefore, the solar radiance of vertex p at time t can be expressed as Ls = I (VN.(PS))cos(t 2 pi / 48), where I is the intensity of blackbody radiation of the entity caused by solar radiation.
[0055] In some embodiments, the infrared simulation method for simulator visuals disclosed in this invention can be implemented using the visual driving software VegaPrime. Specifically, in Figure 1In the disclosed infrared simulation method for simulator visuals, steps S2-S5 can be performed in the visual driver software VegaPrime. To call the Shader language in VP, first, a Shader initialization environment must be established. Then, different Shader programs are created depending on the object requiring parallel computation, and finally, they are called according to the actual situation. It is important to note that the process of binding the shader must be performed after vpApp::configure is executed. Based on this, the specific steps for coloring using the shader program include the following: Step 1: Define the shader program. Write the shader program using the GLSL language, create a shader pointer through the shader factory, and associate the filename of the shader program to be executed with the shader pointer. Create separate vertex, shader, and pixel shader programs for different entity parts, each associated with different executable code.
[0056] Step 2: Define the external parameters that need to be input into the shader. In the process of infrared radiation calculation, a large number of external inputs are required, including Planck value in step S51 for calculating radiation value, relative position PS between the sun and the vertex in step S52, temperature, atmospheric parameters, and time. These inputs have different data types and need to be converted according to different data types in VP before being passed to the GLSL program.
[0057] Step 3: Use the shader factory to create a shader program. In the shader program, specify the required shader language as GLSL, and insert the vertex shader program and pixel shader program created in step 1 into the shader program.
[0058] Step 4: Calculate the final radiation amount and apply shading. After initializing the shaders, different shader programs need to be implemented on entities, effects, and terrain. The entity shader program mainly calculates the solar radiation energy and the radiation energy from the entity's own heat generation before shading the model; the effects shader program mainly calculates its own radiation energy and passes it to the effects texture through the Sample variable for shading, and the alpha value of the texture after calculation should be the same as the original. The terrain shader program mainly calculates the solar radiation energy before shading the terrain texture.
[0059] As can be seen, this invention provides an infrared simulation method for simulator visual scenes. This method uses VegaPrime (VP) as the visual driving engine and utilizes a shader language to calculate the infrared radiation of three main types of entities in the scene, constructing a large-scale infrared simulation scene. This method has broad engineering application value and has already been applied to multiple models of flight simulators. Furthermore, this method can also be used in conjunction with other visual driving engines, showing promising prospects for wider application.
[0060] See Figure 2 As shown, the present invention also discloses an infrared simulation system for simulator visual scenes, including: a model preprocessing module 1, an initialization module 2, a writing module 3, a binding module 4, and a calculation and coloring module 5.
[0061] Model preprocessing module 1 is configured to acquire the 3D model of the entity and perform model preprocessing based on the heat source components of the 3D model.
[0062] Initialization module 2 is configured to establish the initialization environment for the shader program based on the preprocessed 3D model.
[0063] Write module 3 to configure the shader program for creating different 3D models. Write the corresponding shader program for 3D models with or without internal heat sources.
[0064] Binding module 4 is configured to bind the preprocessed 3D model to the shader program.
[0065] The calculation and shading module 5 is configured to obtain the real-time temperature of the solid parts on the 3D model, the area of the shading target cross section, the position relative to the sun, and the current time information. It uses the shader program to calculate the infrared radiation of the solid parts and outputs the corresponding shading effect on the 3D model.
[0066] The specific implementation of the infrared simulation system for simulator visuals in this embodiment is basically the same as the specific implementation of the infrared simulation method for simulator visuals described above, and will not be repeated here.
[0067] The present invention also discloses an infrared simulation device for simulator visuals, comprising a processor and a memory; wherein, when the processor executes the infrared simulation program for simulator visuals stored in the memory, it implements the steps of the infrared simulation method for simulator visuals as described in any of the above.
[0068] Furthermore, the infrared simulation device for simulator visuals in this embodiment may further include: The input interface is used to acquire infrared simulation programs imported from external sources for simulator visuals and save these programs to the memory. It can also acquire various instructions and parameters transmitted from external terminal devices and transmit them to the processor, allowing the processor to perform corresponding processing using these instructions and parameters. In this embodiment, the input interface may specifically include, but is not limited to, a USB interface, a serial interface, a voice input interface, a fingerprint input interface, and a hard disk read interface.
[0069] An output interface is used to output various data generated by the processor to connected terminal devices, so that other terminal devices connected to the output interface can obtain the various data generated by the processor. In this embodiment, the output interface may include, but is not limited to, a USB interface, a serial interface, etc.
[0070] A communication unit is used to establish a remote communication connection between the infrared simulation device used for simulator visuals and an external server, so that the infrared simulation device used for simulator visuals can mount the image file to the external server. In this embodiment, the communication unit may specifically include, but is not limited to, a remote communication unit based on wireless communication technology or wired communication technology.
[0071] The keyboard is used to acquire various parameter data or commands input by the user through real-time keystrokes.
[0072] The display is used to show in real time relevant information about the infrared simulation process used for simulator visuals.
[0073] A mouse can be used to assist users in inputting data and simplifying user operations.
[0074] This invention also discloses a readable storage medium, which includes random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable hard disk, CD-ROM, or any other form of storage medium known in the art. The readable storage medium stores an infrared simulation program for a simulator scene, which, when executed by a processor, implements the steps of the infrared simulation method for a simulator scene as described in any of the preceding claims.
[0075] In summary, this invention uses the shader language to implement the infrared simulation process, which effectively improves the simulation accuracy and speed.
[0076] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. The methods disclosed in the embodiments are described simply because they correspond to the systems disclosed in the embodiments; relevant details can be found in the method section.
[0077] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.
[0078] In the embodiments provided by this invention, it should be understood that the disclosed systems, methods, and approaches can be implemented in other ways. For example, the system embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between systems or units may be electrical, mechanical, or other forms.
[0079] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0080] In addition, the functional modules in the various embodiments of the present invention can be integrated into one processing unit, or each module can exist physically separately, or two or more modules can be integrated into one unit.
[0081] Similarly, in the various embodiments of the present invention, each processing unit can be integrated into a functional module, or each processing unit can exist physically, or two or more processing units can be integrated into a functional module.
[0082] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented directly by hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.
[0083] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0084] The infrared simulation method, system, device, and readable storage medium for simulator visuals provided by this invention have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of this invention. The descriptions of the embodiments above are merely for the purpose of helping to understand the method and core ideas of this invention. It should be noted that those skilled in the art can make various improvements and modifications to this invention without departing from its principles, and these improvements and modifications also fall within the protection scope of the claims of this invention.
Claims
1. An infrared simulation method for a simulator scene, characterized by, include: Obtain the 3D model of the entity and perform preprocessing on the model based on the heat source components of the 3D model; Based on the preprocessed 3D model, establish the initialization environment for the shader program; Create shader programs for different 3D models, and write corresponding shader programs for 3D models with or without internal heat sources; Bind the preprocessed 3D model to the shader program; The system obtains the real-time temperature of the solid parts on the 3D model, the area of the target cross section, the position relative to the heat source, and the current time information. It then uses a shader program to calculate the infrared radiation of the solid parts and outputs the corresponding shading effect on the 3D model. The process involves acquiring the real-time temperature of the solid component on the 3D model, the area of the shading target cross-section, its position relative to the heat source, and the current time information; calculating the infrared radiation of the solid component using a shader program; and outputting the corresponding shading effect on the 3D model, including: The system obtains the real-time temperature of solid parts on the 3D model and the area of the cross-section of the shading target, and calculates the radiation of the corresponding solid based on Planck's law formula. Obtain the position relative to the heat source and the current time information, and calculate the solar radiation based on the eye-point coordinate system; The total radiation of the entity is calculated based on the entity's radiation and solar radiation. The total radiation of an entity is quantized into gray levels; Based on the grayscale level, the corresponding parts are colored and displayed on the 3D model; The process of obtaining the real-time temperature of the solid components on the 3D model, the area of the colored target cross-section, and calculating the radiation of the corresponding entity based on Planck's law includes: Obtain the real-time temperature of solid parts on the 3D model and the area of the shading target cross section; The amount of radiation of the entity is calculated by the formula ; wherein, λ is the wavelength, T is the entity temperature, ε is the emissivity of the entity, λ1 and λ2 are the lower and upper wavelength limits of the integration of Planck's law, respectively; is the Planck's law formula, h is the Planck's constant, k is the Boltzmann constant, c is the speed of light, c1=2πhc 2 , c2=hc / k, S1 is the area of the cross section of the colored object, is the angle between the normal of the cross section of the colored object and the observation direction; The process of acquiring the position relative to the heat source and the current time information, and calculating the solar radiation based on the eye-point coordinate system, includes: Assuming the position of the sun as S, the position of the vertex p of the aircraft component entity as P, the surface normal vector as N, and the blackbody radiation intensity as I, the solar radiation degree of the vertex p at the current time t is This can be expressed by the following equation: wherein , the vector , is the azimuth angle of the sun relative to the observation point, is the altitude angle of the sun relative to the observation point.
2. The method of claim 1, wherein: The process of obtaining a 3D model of the entity and preprocessing the model based on the heat source components of the 3D model includes: Obtain the 3D model of the entity, decompose the model parts according to whether there is a heat source inside the 3D model of the entity, and separate the model parts with heat sources into the child nodes of the model. Based on the different emissivity of the materials of different child nodes, material textures are created using image processing software; Add material textures to the texture library of the solid 3D model; Set the newly added material texture to Layer 1 of the model texture, and the existing visible light texture to Layer 0 of the model texture; Assigning the UV mapping of visible light texture to the material texture outputs a 3D model with multiple textures.
3. The method of claim 1, wherein the infrared simulation of a simulator view is performed by: The calculation of the total radiation of an entity based on its radiation and solar radiation includes: Entity-based radiation and solar radiation Using the formula L=L I +Ls calculates the total radiation L of the entity.
4. The infrared simulation method for simulator visuals according to claim 3, characterized in that, The process of quantizing the total radiation of an entity into gray levels includes: According to the formula Calculate the gray level G; in, This is the lower limit of radiation levels. This is the upper limit of radiation levels. To quantize the lower limit value of grayscale levels, This is the upper limit for quantizing grayscale levels.
