Real-time rendering method and system for infrared simulation data based on multi-channel physical texture

By using a multi-channel physical texture method, CFD/FEA data is converted into a high-precision floating-point format and combined with GPU shaders for infrared radiation calculation, which solves the problems of low rendering accuracy and insufficient real-time performance in existing technologies, and realizes high-precision, real-time infrared simulation rendering.

CN123069772APending Publication Date: 2026-11-10XIAN XINGHE INTELLIGENT TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611315404.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-27
Publication Date
2026-11-10

AI Technical Summary

Technical Problem

Existing technologies cannot effectively convert CFD/FEA physical field data into high-precision, multi-parameter texture assets that can drive GPUs to perform realistic infrared physical calculations, resulting in low rendering accuracy and inability to meet real-time requirements and physical simulation needs.

Method used

A multi-channel physical texture method is adopted to obtain the three-dimensional physical field data of the target object, establish a lightweight geometric model, and store the temperature value and material identifier in a high-precision floating-point format. The GPU shader is used to perform infrared radiation calculation to generate a high-precision infrared simulation image.

Benefits of technology

It achieves high-precision infrared simulation rendering, meets real-time requirements, reflects the true physical laws of temperature and materials, supports dynamic thermal field change simulation, and is compatible with mainstream game engines.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123069772A_ABST
    Figure CN123069772A_ABST
Patent Text Reader

Abstract

This invention relates to the field of computer technology, specifically to a real-time rendering method and system for infrared simulation data based on multi-channel physical textures. The method includes: acquiring three-dimensional physical field data of a target object; establishing a lightweight, real-time rendering geometric model with UV mapping relationships; mapping the temperature value of the target object to the UV space of the geometric model to generate texture coordinates; writing the temperature value of the target object into a texture map in 32-bit floating-point format to generate a high-precision floating-point physical texture; constructing a multi-channel physical fusion texture using the high-precision floating-point physical texture; acquiring the emissivity parameters of the target object; calculating the infrared radiance based on the temperature value and emissivity parameters of the target object; and acquiring an infrared simulation image of the target object using the obtained infrared radiance. This method solves the problems of low rendering accuracy and loss of model radiation data accuracy in traditional solutions, achieving high-precision modeling and high-precision rendering result output.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of infrared imaging technology, and in particular to a method and system for real-time rendering of infrared simulation data based on multi-channel physical texture. Background Technology

[0002] Infrared imaging simulation technology has significant application value in military defense, aerospace, and industrial inspection. In the military field, infrared simulation can be used for target identification and tracking algorithm verification of infrared-guided missiles and hardware-in-the-loop simulation testing of infrared homing systems. In the aerospace field, it can be used for evaluating the infrared stealth performance of aircraft and simulating satellite infrared payload imaging. In the industrial inspection field, it can be used for thermal fault diagnosis and non-destructive testing. As the accuracy of infrared detectors continues to improve and simulation application scenarios become increasingly complex, higher and higher requirements are being placed on the realism, real-time performance, and physical accuracy of infrared simulation images.

[0003] Currently, the generation and rendering of infrared simulation data mainly involve the following technical approaches: I. Direct Rendering of Finite Element / CFD Mesh Method This method directly imports high-density simulation meshes generated by CFD (Computational Fluid Dynamics) or FEA (Finite Element Analysis) into the rendering system for visualization. However, this method has the following technical limitations: (1) Huge mesh size. In actual engineering, CFD / FEA simulation meshes typically contain 500,000 to tens of millions of faces, far exceeding the processing capacity of real-time rendering systems (which usually require more than 30fps). According to actual tests, when the number of mesh faces reaches 500,000, the rendering frame rate of traditional methods has dropped to 18fps, which cannot meet the real-time requirements; when the number of mesh faces reaches 2 million, the frame rate is only 2fps.

[0004] (2) Excessive GPU memory usage. The vertex data, index data and normal data of high-density meshes require a large amount of GPU video memory, which is difficult for ordinary commercial graphics cards to handle.

[0005] (3) Mesh topology incompatibility. CFD / FEA simulation meshes are mostly non-manifold structures, containing topological defects such as T-connections, overhangs, and overhangs, which cannot be directly imported into mainstream game engines such as Unity and Unreal for rendering.

[0006] II. Color Pseudo-coding Scheme This scheme converts the temperature field data obtained from simulation calculations into RGB color images according to pseudo-color mapping rules, and saves and displays them as two-dimensional images. This scheme has the following technical drawbacks: (1) Severe loss of temperature accuracy. Traditional 8-bit RGB textures have only 256 gray levels per channel. Quantizing the continuous temperature field to 256 levels results in a quantization error that causes a loss of 10% to 15% in temperature accuracy, which cannot meet the requirements of high-precision infrared simulation.

[0007] (2) The true physical value cannot be recovered. The pseudo-color image saves the color index value after visual mapping, rather than the actual physical value, and the accurate radiation temperature cannot be deduced from the image.

[0008] (3) Cannot be coupled with material parameters. The pseudo-color scheme can only display the visual distribution of a single temperature field and cannot perform joint calculations of temperature values ​​with physical parameters such as material emissivity and thermal conductivity. Essentially, it is a "visual display" rather than a "physical simulation".

[0009] III. Limitations of Existing Texture Baking Techniques Texture baking techniques (such as Blender baking and baking low-poly models from high-poly models in the game industry) are relatively mature in the field of computer graphics and are widely used in the generation of graphics data such as normal maps, ambient occlusion maps, and color maps. However, directly applying existing texture baking techniques to infrared physical field data faces the following unresolved technical problems: (1) Data accuracy issues. Traditional texture baking outputs 8-bit RGB color maps, which cannot meet the high-precision storage requirements of physical field data.

[0010] (2) Multi-parameter fusion problem. Infrared simulation requires the collaborative calculation of multiple parameters such as temperature field, material properties, and thermal inertia parameters. Traditional baking textures lack the ability to organize multi-channel physical parameters.

[0011] (3) Physical calculation problem. The baking results are only used for visual texture mapping and cannot drive the GPU to perform infrared radiation calculations based on physical models.

[0012] (4) Dynamic simulation problem. Traditional baking output is a static texture, which cannot support the simulation of dynamic thermal field changes over time.

[0013] In summary, the existing technology lacks a method to convert CFD / FEA physics data into high-precision, multi-parameter texture assets that can drive GPUs for real infrared physics calculations. Summary of the Invention

[0014] To address the aforementioned technical problems, this invention provides a real-time rendering method and system for infrared simulation data based on multi-channel physical textures, which converts physical field data obtained from CFD / FEA calculations into multi-channel floating-point textures and uses GPU shaders to perform real-time calculations of infrared radiation brightness to obtain infrared simulation images of target objects.

[0015] In a first aspect, embodiments of the present invention provide a real-time rendering method for infrared simulation data based on multi-channel physical textures, including: Acquire three-dimensional physical field data of the target object, wherein the physical field data includes at least spatial coordinates and temperature values; Establish a lightweight real-time rendering geometric model with UV mapping relationships, wherein the number of faces in the geometric model does not exceed 100,000; The temperature value in the physical field data of the target object is mapped to the UV space of the geometric model, and the texture coordinates of the target object are generated. Write the temperature value of the target object corresponding to the UV coordinates after mapping into the texture map in 32-bit floating-point format to generate a high-precision floating-point physical texture of the target object. A multi-channel physical fusion texture is constructed using the high-precision floating-point physical texture of the target object. The multi-channel physical fusion texture includes at least an R channel and a G channel, wherein the R channel is used to store temperature values ​​and the G channel is used to store material identifiers. The emissivity parameters of the target object are obtained from the material identifier in the multi-channel physical fusion texture. The infrared radiance is calculated based on the temperature value and emissivity parameters of the target object. The infrared radiance is then used to obtain the infrared simulation image of the target object.

[0016] Preferably, the process of mapping the physical field data to the UV space of the geometric model includes one or more of the following methods: Blender's data transfer modifier, Blender's baking function, Substance 3D Sampler, MeshLab's vertex color baking function, ray casting algorithm, barycentric coordinate interpolation algorithm, nearest neighbor search algorithm, KD-Tree spatial matching algorithm, or mesh resampling algorithm.

[0017] Preferably, the high-precision floating-point physical texture is stored in OpenEXR format, HDR format, or Float Texture format.

[0018] Preferably, the emissivity parameters of the target object are obtained from the material identifier in the multi-channel physically fused texture in the GPU shader.

[0019] Preferably, the method for obtaining the corresponding emissivity parameter based on the material identifier is as follows: look up the material parameter table based on the material identifier to obtain the emissivity parameter, thermal conductivity parameter and specific heat capacity parameter corresponding to the material identifier.

[0020] Preferably, in the GPU shader, the infrared radiance is calculated based on the temperature value and the emissivity parameter; the calculation method includes: ; In the formula: L is the spectral radiance, λ is the wavelength, T is the absolute temperature, ε is the surface emissivity, and C1 and C2 are the radiation constants.

[0021] Preferably, the method further includes a dynamic simulation step: pre-generating a physical texture sequence of the target object at N different times; during real-time rendering, determining the two adjacent texture times at the current time according to the simulation timeline, and linearly interpolating the physical quantity values ​​of the two adjacent texture times in the GPU to obtain the physical field data at the current time, wherein the formula for the linear interpolation is: ; Where R is the interpolated physical quantity value. and These are the physical quantity values ​​at two adjacent time points, and β is the interpolation weighting coefficient.

[0022] Secondly, this embodiment provides a real-time rendering system for infrared simulation data based on multi-channel physical textures, including: Physical field data acquisition module: used to acquire three-dimensional physical field data of the target object, wherein the physical field data includes at least spatial coordinates and temperature values; Geometry Model Processing Module: Used to create lightweight real-time rendering geometry models with UV mapping relationships, wherein the number of faces in the geometry model does not exceed 100,000; Data mapping module: used to map the temperature value in the physical field data of the target object to the UV space of the geometric model, and generate the texture coordinates of the target object; Floating-point texture generation module: Used to write the temperature value of the target object corresponding to the UV coordinates after mapping into the texture map in 32-bit floating-point format, and generate a high-precision floating-point physical texture of the target object. Multi-channel fusion module: used to construct a multi-channel physical fusion texture using the high-precision floating-point physical texture of the target object. The multi-channel physical fusion texture includes at least: an R channel and a G channel, wherein the R channel is used to store temperature values; and the G channel is used to store material identifiers. Rendering module: Used to obtain the emissivity parameters of the target object based on the material identifier in the multi-channel physically fused texture, calculate the infrared radiance based on the temperature value and emissivity parameters of the target object, and use the obtained infrared radiance to obtain the infrared simulation image of the target object.

[0023] Thirdly, an electronic device includes: One or more processors, namely CPU and GPU; the CPU makes calls, and the GPU performs the calculations; Memory, used to store one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the real-time rendering method for infrared simulation data based on multi-channel physical textures.

[0024] Fourthly, a computer-readable medium storing a computer program that, when executed by a processor, implements the aforementioned method for real-time rendering of infrared simulation data based on multi-channel physical textures.

[0025] The beneficial effects of this invention are as follows: 1. This application uses 32-bit floating-point textures to store physical quantity values, fully preserving the numerical accuracy of the original CFD / FEA calculation results. Actual measurements show that the temperature storage error is less than 0.00001K, far superior to the 10%–15% quantization error of traditional 8-bit textures.

[0026] 2. By jointly driving the infrared radiation calculation through three channels—R (temperature), G (material ID), and B (thermal inertia)—the temperature field, material parameters, and thermal response characteristics are synergistically involved. The simulation results can reflect the true physical laws of different materials at the same temperature and with different infrared brightness, solving the problems of low rendering accuracy and loss of model radiation data accuracy in traditional solutions, and achieving high-precision modeling and high-precision rendering output.

[0027] 3. This invention performs infrared radiation calculations based on Planck's law within a GPU shader, producing output results with clear physical meaning that can be used for subsequent quantitative analyses such as radiation integrals and atmospheric transport simulations. Unlike existing pseudo-color display schemes, this invention represents true physical simulation.

[0028] 4. This invention uses a lightweight model with no more than 100,000 faces, combined with parallel computing using GPU shaders, and the rendering frame rate can reach more than 100fps, which fully meets the requirements of real-time simulation (≥30fps).

[0029] 5. This invention achieves dynamic simulation of continuous thermal field changes through GPU linear interpolation of time-series textures, without the need for re-baking or re-calculation of CFD.

[0030] 6. The texture assets and rendering methods generated by this invention are compatible with mainstream game engines and graphics development frameworks such as Unity, Unreal Engine, OSG, and OpenGL, and have plug-and-play engineering practicality. Attached Figure Description

[0031] Figure 1 A flowchart illustrating a real-time rendering method for infrared simulation data based on multi-channel physical textures, provided in an embodiment of the present invention; Figure 2 This is a structural block diagram of a real-time rendering system for infrared simulation data based on multi-channel physical textures, as described in an embodiment of the present invention. Figure 3 This is a structural block diagram of an electronic device provided in an embodiment of the present invention. Detailed Implementation

[0032] To enable those skilled in the art to better understand the technical solutions of the present invention, exemplary embodiments of the present invention are described below in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to aid understanding. These should be considered merely exemplary. Therefore, those skilled in the art should recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and brevity, descriptions of well-known functions and structures are omitted in the following description.

[0033] Where there is no conflict, the various embodiments of the present invention and the features thereof may be combined with each other.

[0034] As used herein, the term “and / or” includes any and all combinations of one or more related enumerated entries.

[0035] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the invention. As used herein, the singular forms “a” and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will also be understood that when the terms “comprising” and / or “made of” are used in this specification, the presence of the stated feature, integral, step, operation, element, and / or component is specified, but the presence or addition of one or more other features, integrals, steps, operations, elements, components, and / or groups thereof is not excluded. Terms such as “connected” or “linked” are not limited to physical or mechanical connections but can include electrical connections, whether direct or indirect.

[0036] Unless otherwise specified, all terms used herein (including technical and scientific terms) have the same meaning as commonly understood by one of ordinary skill in the art. It will also be understood that terms such as those defined in commonly used dictionaries should be interpreted as having the meaning consistent with their meaning in the context of the relevant art and the invention, and will not be interpreted as having an idealized or overly formal meaning unless expressly so defined herein.

[0037] In the technical solution of this invention, the collection, storage, use, processing, transmission, provision, and disclosure of user personal information all comply with relevant laws and regulations and do not violate public order and good morals. The use of user data in this technical solution follows relevant national laws and regulations (e.g., the "Information Security Technology - Personal Information Security Specification"). For example: appropriate measures are taken for personal information access control; restrictions are imposed on the display of personal information; the purpose of using personal information does not exceed the scope of direct or reasonable association; and explicit identity targeting is eliminated when using personal information to avoid precisely locating a specific individual. Example

[0038] This embodiment provides, for example Figure 1 The aforementioned method for real-time rendering of infrared simulation data based on multi-channel physical textures includes the following steps: Step S1: Acquire three-dimensional physical field data of the target object, wherein the physical field data includes at least spatial coordinates and temperature values. In this embodiment, three-dimensional physical field data of the target object is obtained through CFD or FEA simulation software. The physical field data includes at least the spatial coordinates (X, Y, Z) of each sampling point on the surface of the target object and the corresponding physical quantity values. The physical quantity values ​​include at least the temperature field T, and may further include at least one of heat flux density Q and radiation intensity E.

[0039] The physical field data output by simulation software is usually stored in the form of a grid, with each grid node or cell center recording spatial coordinates and the corresponding physical quantity value. The precision of this data is double-precision floating-point (float64) or single-precision floating-point (float32), and the temperature precision can reach 0.01K or even higher.

[0040] Step S2: Establish a lightweight real-time rendering geometric model with UV mapping relationship, wherein the number of faces of the geometric model does not exceed 50,000; This embodiment establishes a lightweight real-time rendering geometric model of the target object; this model has the following technical features: (1) The number of facets in the model does not exceed 50,000; models with fewer than 50,000 facets can achieve a rendering frame rate of over 100fps on mainstream commercial GPUs, while preserving the main geometric features of the target object. By controlling the number of facets in the model below this threshold, the real-time performance of subsequent GPU rendering is ensured.

[0041] (2) The model has UV unwrapping capability, that is, each vertex on the model surface has predefined UV coordinates, and a mapping relationship from the three-dimensional surface to the two-dimensional UV space is established. UV unwrapping can be achieved by using existing technologies such as planar mapping, cylindrical mapping or spherical mapping. The mapping methods used are common knowledge and conventional means in this technical field, and will not be described in detail here.

[0042] In one embodiment, the physical field data on the high-density simulation mesh obtained in step S1 is mapped to the UV space of the lightweight real-time rendering geometric model established in step S2, thereby establishing the correspondence between physical quantities and UV coordinates.

[0043] The core purpose of this step is to transfer the temperature values ​​on a high-density simulation mesh (e.g., 2 million faces) to the surface of a low-face-count real-time model (e.g., 50,000 faces) and further map them onto two-dimensional UV texture coordinates to generate subsequent texture maps.

[0044] S3: Map the temperature value in the physical field data of the target object to the UV space of the geometric model, and generate the texture coordinates of the target object; Mapping methods include: (1) Establishing spatial correspondence: Establishing the spatial correspondence between the original physical field mesh and the real-time rendered geometric model. For each target point on the surface of the real-time model, find points or patches in the original physical field mesh that are close to its spatial location; (2) Calculation of physical quantity values: Based on the known physical quantity values ​​on the nearby points or patches, the physical quantity values ​​on the target point are calculated by interpolation; (3) UV coordinate association: The calculated physical quantity values ​​are associated with the UV coordinates of the target point to form a correspondence table between (U, V) coordinates and physical quantity values.

[0045] The above mapping process can be implemented using existing commercial software or open-source tools, including but not limited to: Blender's "Data Transfer Modifier" or "Bake" function; Substance 3D Sampler's 3D scan-to-texture function; MeshLab's vertex color baking feature; Ray Casting Algorithm: A ray is emitted from the target point along the normal direction, intersects with the physical field mesh, and the physical quantity values ​​at the intersection point are obtained; The Nearest Neighbor Search algorithm searches for the node closest to the target point in the physical field grid and assigns the physical quantity value of that node to the target point. Barycentric Interpolation Algorithm: Determine the physical field grid cell where the target point is located, and interpolate the physical quantity values ​​at the cell vertices using the barycentric coordinates; KD-Tree spatial matching algorithm: accelerates the nearest neighbor search process using KD-Tree; Mesh Resampling Algorithm: Resamples the physics mesh to generate physical quantity values ​​that are consistent with the vertex distribution of the real-time model.

[0046] This invention does not limit the above mapping algorithm itself, and those skilled in the art can choose an appropriate mapping method according to actual accuracy and efficiency requirements.

[0047] Step S4: Write the temperature value of the target object corresponding to the mapped UV coordinates into the texture map in 32-bit floating-point format to generate a high-precision floating-point physical texture of the target object. The specific method includes: (1) High-precision storage: The physical quantity value of each channel is stored in 32-bit floating-point format (float32). Unlike the existing technology that uses 8-bit integers (0-255) to store color values, the 32-bit floating-point format can completely preserve the numerical precision of the original physical quantity. Taking the temperature field as an example, the original CFD calculation output temperature value is 300.1234K. After being stored in 32-bit floating-point texture, it is still 300.1234K (error <0.01K), while after being stored in 8-bit texture, it will be quantized into a limited discrete level, with an error of 10% to 15%.

[0048] (2) Texture format: Stored in OpenEXR, HDR (High Dynamic Range) or Float Texture format. The above formats support reading and writing 32-bit floating-point data and are supported by mainstream graphics APIs (OpenGL, DirectX, Vulkan); fully preserving the original physical quantity precision.

[0049] (3) High resolution: The texture resolution can be selected from 2048×2048 to 8192×8192 pixels to meet the expression requirements of the surface details of the target object. The choice of resolution depends on the balance between the geometric complexity of the target object, the texture detail requirements and the GPU memory capacity.

[0050] (4) Continuous physical quantity field: Unlike traditional RGB color textures which store discrete and nonlinear color values, this invention stores continuous physical quantity values ​​(such as temperature field and heat flux density field), and the value of each pixel has a clear physical meaning and dimension.

[0051] Step S5: Construct a multi-channel physical fusion texture using the high-precision floating-point physical texture of the target object. The multi-channel physical fusion texture includes at least an R channel and a G channel. The R channel is used to store temperature values, and the G channel is used to store material identifiers. In this embodiment, a multi-channel physically fused texture, Texture_M, is created to store multi-dimensional physical information according to the following channel definitions:

[0052] The core of the aforementioned multi-channel texture lies in the fact that it is not a simple "data packaging," but rather a texture jointly driven by physical parameters. Specifically: (1) The temperature value stored in the R channel determines the basic intensity of infrared radiation; temperature is the core parameter that determines the blackbody radiation spectrum distribution, and the fourth power of temperature is proportional to the total radiation energy (Stefant-Boltzmann law).

[0053] (2) The material identifier stored in the G channel determines the emissivity ε; emissivity is a proportionality coefficient describing the radiation capability of an actual object relative to a blackbody. Different materials have different emissivity at the same temperature (for example, the emissivity of polished metal is as low as 0.02-0.1, while the emissivity of non-metals such as glass and ceramics can reach 0.8-0.95). Therefore, two regions with the same temperature but different materials can have significantly different infrared radiation brightness, realizing the physical simulation capability of "same temperature, different materials, different infrared brightness".

[0054] (3) The thermal inertia parameters stored in channel B determine the dynamic thermal response speed. The thermal inertia parameters (related to thermal conductivity k, density ρ, and specific heat capacity c) describe how fast the temperature of an object changes when it is subjected to thermal excitation, which is crucial for dynamic thermal field simulation.

[0055] The physical parameters of the R, G, and B channels work together in the GPU shader to calculate infrared radiation. All three are indispensable and work together to achieve accurate simulation of the physical processes of real infrared radiation.

[0056] Step S6: Obtain the emissivity parameters of the target object based on the material identifier in the multi-channel physical fusion texture, calculate the infrared radiance based on the temperature value and emissivity parameters of the target object, and use the obtained infrared radiance to obtain the infrared simulation image of the target object. Step 6 is performed in the GPU shader (Pixel Shader / Fragment Shader); the specific methods include: (1) Texture decoding: Sample the multi-channel physical fusion texture Texture_M in the GPU shader and read the R channel value (temperature T), G channel value (material ID), and B channel value (thermal inertia parameter H) corresponding to the current pixel position.

[0057] (2) Material parameter lookup: Based on the material ID read from the G channel, the corresponding material parameter is looked up in the pre-built material parameter table uploaded to the GPU. The material parameter table includes at least the emissivity ε corresponding to each material ID, and may further include thermal conductivity k and specific heat capacity c. Example data of the material parameter table is as follows:

[0058] (3) Infrared radiation calculation: Based on the temperature T read from the texture and the emissivity ε obtained from the material table, the infrared radiation brightness is calculated using Planck's law: ; In the formula: L is the spectral radiance, with units of W·m. -3 ·sr -1 (W·μm) -3 ·sr -1 λ is the wavelength, in meters (or μm), T is the absolute temperature, in K, ε is the surface emissivity, ranging from 0 to 1, with ε=1 for a blackbody, C1 and C2 are the radiation constants; C1 is the first radiation constant, C1=2hc 2 =3.74177×10 -16 W·m 2 C2 is the second radiation constant, C2 = hc / k = 1.43878 × 10⁻⁶. -2 m·K; h is Planck's constant, h = 6.62607015 × 10 -34 J.s; c is the speed of light in a vacuum, c = 2.99792458 × 10 8 m / s; k is the Boltzmann constant, k = 1.380649 × 10 -23 J / K.

[0059] Step S7: Dynamic simulation, the specific methods include: (1) Texture sequence generation: The physical texture sequences Texture1, Texture2, and Texture_N of the target object at N different times are generated in advance. Each texture is generated according to the method in steps S4 and S5, and the temperature field distribution, material identifier and thermal inertia parameters of the target object surface at that time are recorded.

[0060] (2) Runtime interpolation: During real-time rendering, the two adjacent texture times at the current time i are determined according to the simulation timeline. and The physical quantity values ​​are linearly interpolated in the GPU shader to the physical quantity values ​​of adjacent textures: ; Where: R is the interpolated physical quantity value. and These are the physical quantity values ​​at two adjacent time points, and β is the interpolation weighting coefficient.

[0061] The above interpolation method enables the simulation of dynamic changes in the continuous thermal field without the need for recalculation of CFD or rebaking of the texture.

[0062] Example 2 This embodiment uses the infrared feature simulation of a certain type of aircraft as an example for detailed explanation.

[0063] Step S1: The aircraft was subjected to CFD simulation using ANSYS Fluent software. The simulation conditions were: flight speed Ma=0.8, flight altitude H=5000m, and angle of attack α=5°. The simulation mesh consisted of 1.2 million tetrahedral elements. After the calculation converged, the spatial coordinates (X, Y, Z) and temperature values ​​T of each node on the surface were exported in CSV file format, with the temperature values ​​set to double-precision floating-point numbers.

[0064] Step S2: A lightweight, real-time rendered geometric model of the aircraft was created using Autodesk Maya software. The modeling process is as follows: Using the aircraft CAD model as a reference, the original high-precision model (approximately 2 million faces) was simplified to a low-precision model with 30,000 faces by using a face reduction operation, while retaining the shape details of the wing leading edge, air intake lip and other areas with significant infrared features.

[0065] The simplified model is UV unwrapped using a combination of planar mapping and cylindrical mapping to unwrap the surface of the 3D model into a 2D UV space. Appropriate texture padding is maintained between UV islands to prevent boundary overflow during texture sampling.

[0066] The exported model file is in FBX format and contains information such as vertex positions, normals, and UV coordinates.

[0067] S3: Use Blender software to map the CFD temperature field data from step S1 to the lightweight model: (1) Import the CFD mesh (as a reference object) and the lightweight model (as the target object) into Blender at the same time.

[0068] (2) Add a Data Transfer Modifier to the lightweight model, set the source object to the CFD mesh, and check the Vertex Color Transfer option.

[0069] (3) Set the transfer method to "Nearest Face Interpolated" and click "Apply" to complete the data transfer.

[0070] (4) Use Blender’s baking function to bake the temperature values ​​transferred to the vertices of the lightweight model into a texture map. In the baking settings, select “Float (32-bit)” for the texture format and set the resolution to 4096×4096.

[0071] Through the above mapping process, the temperature data of 1.2 million nodes on the CFD mesh is transferred to the 30,000 vertices of the lightweight model and their corresponding UV coordinates.

[0072] Step S4: Following the baking result of step S3, a high-precision floating-point physical texture is generated. The specific implementation is as follows: (1) In the Blender baking settings, select OpenEXR as the output format and 32-bit floating-point (float32) as the color depth.

[0073] (2) Set the baking channel to "Combined", but change the baking data source from lighting to vertex color data.

[0074] (3) Perform the baking operation to obtain an OpenEXR format floating-point texture containing temperature data.

[0075] (4) Export the texture as a standalone EXR file, with a file size of approximately 32MB (4096×4096×4 channels×4 bytes).

[0076] It has been verified that the temperature value stored in the EXR texture is consistent with the original CFD output value, with a maximum error of less than 0.005K.

[0077] Step S5: In texture editing software (such as Substance 3D Designer), construct multi-channel physically blended textures: (1) Using the temperature EXR texture generated in step S4 as input, connect it to the R channel of the blended texture.

[0078] (2) Create material ID texture: Based on the material properties of each part of the aircraft (the skin is aluminum alloy, the canopy is glass, and the engine exhaust nozzle is nickel-based alloy), draw a material partition map in the UV space, assign different gray values ​​to different material areas (e.g., aluminum alloy = 9, glass = 6, nickel-based alloy = 5), and connect the gray map to the G channel of the blend texture.

[0079] (3) Create thermal inertia parameter texture: Calculate thermal inertia parameters (thermal diffusivity) based on the density, specific heat capacity and thermal conductivity of each material; write the normalized parameters into the B channel of the fused texture.

[0080] The final output is a four-channel OpenEXR format blended texture, with each channel having 32-bit floating-point precision.

[0081] Step S6: Setting up a GPU shader execution environment in a custom rendering engine based on OSG: (1) Import the fused texture generated in step S4 into OSG, set the texture type to “Default”, uncheck the “sRGB (Color Texture)” option (because it stores linear physical values ​​rather than color values), and set the texture format to “EXR32-bit”.

[0082] (2) Write a custom shader (based on HLSL / Cg language) to implement the following functions: (a) Use the tex2D function in the fragment shader to sample and blend the texture, and decode to obtain the temperature value T (R channel), material ID (G channel), and thermal inertia parameter (B channel).

[0083] (b) Using the material ID as an index, look up the corresponding emissivity ε, thermal conductivity k, and specific heat capacity c in the material parameter array (uploaded to the GPU's UniformBuffer via a C++ program).

[0084] (c) Calculate the integrated radiance in the 8-14 μm band according to Planck's law. The specific integration method is as follows: sample 100 wavelength points at equal intervals in the 8-14 μm band, calculate the spectral radiance of each wavelength point, and then use the trapezoidal numerical integration method to calculate the integrated radiance of the band.

[0085] (d) The calculated radiance values ​​are normalized and mapped (based on the radiance range corresponding to the highest and lowest temperatures in the scene) to convert them into RGB color values ​​in the range of 0-255 and output to the frame buffer.

[0086] (3) Attach the prepared shader to the material sphere of the aircraft model and run the OSG scene for real-time rendering.

[0087] In actual testing, on an NVIDIA GeForce RTX 3060 GPU, the rendering frame rate of this embodiment remained stable at 115fps, meeting the requirements for real-time simulation (≥30fps). In the output image, the engine exhaust nozzle area (high temperature, material emissivity 0.3-0.9) exhibited significant infrared radiation characteristics, while the wing skin area (lower temperature, material emissivity 0.1-0.3) showed significantly lower radiation brightness, realistically reflecting the combined effect of different temperatures and materials on infrared radiation.

[0088] In one embodiment, such as Figure 2As shown, a real-time rendering system for infrared simulation data based on multi-channel physical texture is provided; Physical field data acquisition module: used to acquire three-dimensional physical field data of the target object, wherein the physical field data includes at least spatial coordinates and temperature values; Geometry Model Processing Module: Used to create lightweight real-time rendering geometry models with UV mapping relationships, wherein the number of faces in the geometry model does not exceed 100,000; Data mapping module: used to map the temperature value in the physical field data of the target object to the UV space of the geometric model, and generate the texture coordinates of the target object; Floating-point texture generation module: Used to write the temperature value of the target object corresponding to the UV coordinates after mapping into the texture map in 32-bit floating-point format, and generate a high-precision floating-point physical texture of the target object. Multi-channel fusion module: used to construct a multi-channel physical fusion texture using the high-precision floating-point physical texture of the target object. The multi-channel physical fusion texture includes at least: an R channel and a G channel, wherein the R channel is used to store temperature values; and the G channel is used to store material identifiers. Rendering module: Used to obtain the emissivity parameters of the target object based on the material identifier in the multi-channel physically fused texture, calculate the infrared radiance based on the temperature value and emissivity parameters of the target object, and use the obtained infrared radiance to obtain the infrared simulation image of the target object.

[0089] Based on the same inventive concept, embodiments of the present invention also provide an electronic device. Figure 3 This is a structural block diagram of an electronic device provided in an embodiment of the present invention. Figure 3 As shown, an embodiment of the present invention provides an electronic device including: one or more processors 101, a memory 102, and one or more I / O interfaces 103. The memory 102 stores one or more programs, which, when executed by the one or more processors, enable the one or more processors to implement any of the infrared simulation data real-time rendering methods based on multi-channel physical textures as described in the above embodiments; the one or more I / O interfaces 103 are connected between the processor and the memory, configured to enable information interaction between the processor and the memory.

[0090] The processor 101 is a device with data processing capabilities, including but not limited to a central processing unit (CPU); the memory 102 is a device with data storage capabilities, including but not limited to random access memory (RAM, more specifically SDRAM, DDR, etc.), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), and flash memory (FLASH); the I / O interface (read / write interface) 103 is connected between the processor 101 and the memory 102, and can realize information interaction between the processor 101 and the memory 102, including but not limited to a data bus (Bus).

[0091] In some embodiments, the processor 101, memory 102, and I / O interface 103 are interconnected via bus 104, and thus connected to other components of the computing device.

[0092] In some embodiments, the one or more processors 101 include a field-programmable gate array.

[0093] This invention also provides a computer-readable medium. The computer-readable medium stores a computer program, which, when executed by a processor, implements the steps of any of the real-time rendering methods for infrared simulation data based on multi-channel physical textures described in the above embodiments. The computer-readable storage medium can be volatile or non-volatile.

[0094] This invention also provides a computer program product, including computer-readable code, or a non-volatile computer-readable storage medium carrying computer-readable code. When the computer-readable code is run in the processor of an electronic device, the processor in the electronic device executes the above-described real-time rendering method for infrared simulation data based on multi-channel physical texture.

[0095] Those skilled in the art will understand that all or some of the steps, systems, and apparatuses disclosed above, and their functional modules / units, can be implemented as software, firmware, hardware, or suitable combinations thereof. In hardware implementations, the division between functional modules / units mentioned above does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed collaboratively by several physical components. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit (ASIC). Such software can be distributed on a computer-readable storage medium, which may include computer storage media (or non-transitory media) and communication media (or transient media).

[0096] As is known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information, such as computer-readable program instructions, data structures, program modules, or other data. Computer storage media includes, but is not limited to, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), static random access memory (SRAM), flash memory or other memory technologies, portable compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical disc storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and is accessible to a computer. Furthermore, it is known to those skilled in the art that communication media typically contain computer-readable program instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.

[0097] The computer-readable program instructions described herein can be downloaded from computer-readable storage media to various computing / processing devices, or downloaded via a network, such as the Internet, local area network, wide area network, and / or wireless network, to an external computer or external storage device. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. A network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards them to the computer-readable storage media in the respective computing / processing device.

[0098] The computer program instructions used to perform the operations of this invention may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Smalltalk, C++, etc., and conventional procedural programming languages ​​such as the "C" language or similar programming languages. The computer-readable program instructions may be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the 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). In some embodiments, electronic circuitry, such as programmable logic circuitry, field-programmable gate arrays (FPGAs), or programmable logic arrays (PLAs), is personalized by utilizing state information from the computer-readable program instructions. This electronic circuitry can execute the computer-readable program instructions to implement various aspects of the invention.

[0099] The computer program product described herein can be implemented specifically through hardware, software, or a combination thereof. In one alternative embodiment, the computer program product is specifically embodied in a computer storage medium; in another alternative embodiment, the computer program product is specifically embodied in a software product, such as a software development kit (SDK), etc.

[0100] Various aspects of the present invention are described herein with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer-readable program instructions.

[0101] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to produce a machine such that, when executed by the processor of the computer or other programmable data processing apparatus, they create means for implementing the functions / actions specified in one or more blocks of the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium that causes a computer, programmable data processing apparatus, and / or other device to operate in a particular manner; thus, the computer-readable medium storing the instructions comprises an article of manufacture that includes instructions for implementing aspects of the functions / actions specified in one or more blocks of the flowchart and / or block diagram.

[0102] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to perform the functions / actions specified in one or more boxes of a flowchart and / or block diagram.

[0103] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of an instruction, which contains one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions marked in the blocks may occur in a different order than those shown in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.

[0104] Example embodiments have been disclosed herein, and while specific terminology has been used, it is for illustrative purposes only and should be construed as such, and is not intended to be limiting. In some instances, it will be apparent to those skilled in the art that features, characteristics, and / or elements described in conjunction with particular embodiments may be used alone, or in combination with features, characteristics, and / or elements described in conjunction with other embodiments, unless otherwise expressly indicated. Therefore, those skilled in the art will understand that various changes in form and detail may be made without departing from the scope of the invention as set forth in the appended claims.

Claims

1. A real-time rendering method for infrared simulation data based on multi-channel physical texture, characterized in that, include: Acquire three-dimensional physical field data of the target object, wherein the physical field data includes at least spatial coordinates and temperature values; Establish a lightweight real-time rendering geometric model with UV mapping relationships, wherein the number of faces in the geometric model does not exceed 100,000; The temperature value in the physical field data of the target object is mapped to the UV space of the geometric model, and the texture coordinates of the target object are generated. Write the temperature value of the target object corresponding to the UV coordinates after mapping into the texture map in 32-bit floating-point format to generate a high-precision floating-point physical texture of the target object. A multi-channel physical fusion texture is constructed using the high-precision floating-point physical texture of the target object. The multi-channel physical fusion texture includes at least an R channel and a G channel, wherein the R channel is used to store temperature values ​​and the G channel is used to store material identifiers. The emissivity parameters of the target object are obtained from the material identifier in the multi-channel physical fusion texture. The infrared radiance is calculated based on the temperature value and emissivity parameters of the target object. The infrared radiance is then used to obtain the infrared simulation image of the target object.

2. The real-time rendering method for infrared simulation data based on multi-channel physical texture according to claim 1, characterized in that, The process of mapping the physical field data to the UV space of the geometric model can be carried out using one or more of the following methods: Blender's data transfer modifier, Blender's baking function, Substance 3D Sampler, MeshLab's vertex color baking function, ray casting algorithm, barycentric coordinate interpolation algorithm, nearest neighbor search algorithm, KD-Tree spatial matching algorithm, or mesh resampling algorithm.

3. The real-time rendering method for infrared simulation data based on multi-channel physical texture according to claim 1, characterized in that, The high-precision floating-point physical texture is stored in OpenEXR, HDR, or Float Texture format.

4. The real-time rendering method for infrared simulation data based on multi-channel physical texture according to claim 1, characterized in that, Obtaining the emissivity parameters of the target object from the material identifier in the multi-channel physically fused texture is done in the GPU shader.

5. The real-time rendering method for infrared simulation data based on multi-channel physical texture according to claim 4, characterized in that, The method for obtaining the corresponding emissivity parameters based on the material identifier is as follows: look up the material parameter table based on the material identifier to obtain the emissivity parameters, thermal conductivity parameters, and specific heat capacity parameters corresponding to the material identifier.

6. The real-time rendering method for infrared simulation data based on multi-channel physical texture according to claim 4, characterized in that, In the GPU shader, the infrared radiance is calculated based on the temperature value and the emissivity parameter; the calculation method includes: ; In the formula: L is the spectral radiance, λ is the wavelength, T is the absolute temperature, ε is the surface emissivity, and C1 and C2 are the radiation constants.

7. The real-time rendering method for infrared simulation data based on multi-channel physical texture according to claim 1, characterized in that, It also includes a dynamic simulation step: pre-generating a physical texture sequence of the target object at N different times; during real-time rendering, determining the two adjacent texture times at the current time based on the simulation timeline, and performing linear interpolation on the physical quantity values ​​of the two adjacent texture times in the GPU to obtain the physical field data at the current time, wherein the formula for the linear interpolation is: ; Where R is the interpolated physical quantity value. and These are the physical quantity values ​​at two adjacent time points, and β is the interpolation weighting coefficient.

8. A real-time rendering system for infrared simulation data based on multi-channel physical textures, characterized in that, include: Physical field data acquisition module: used to acquire three-dimensional physical field data of the target object, wherein the physical field data includes at least spatial coordinates and temperature values; Geometry Model Processing Module: Used to create lightweight real-time rendering geometry models with UV mapping relationships, wherein the number of faces in the geometry model does not exceed 100,000; Data mapping module: used to map the temperature value in the physical field data of the target object to the UV space of the geometric model, and generate the texture coordinates of the target object; Floating-point texture generation module: Used to write the temperature value of the target object corresponding to the UV coordinates after mapping into the texture map in 32-bit floating-point format, and generate a high-precision floating-point physical texture of the target object. Multi-channel fusion module: used to construct a multi-channel physical fusion texture using the high-precision floating-point physical texture of the target object. The multi-channel physical fusion texture includes at least: an R channel and a G channel, wherein the R channel is used to store temperature values; and the G channel is used to store material identifiers. Rendering module: Used to obtain the emissivity parameters of the target object based on the material identifier in the multi-channel physically fused texture, calculate the infrared radiance based on the temperature value and emissivity parameters of the target object, and use the obtained infrared radiance to obtain the infrared simulation image of the target object.

9. An electronic device, characterized in that, include: One or more processors, including CPUs and GPUs; The CPU makes the calls, and the GPU performs the calculations. Memory, used to store one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement a real-time rendering method for infrared simulation data based on multi-channel physical textures as described in any one of claims 1 to 7.

10. A computer-readable medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements a real-time rendering method for infrared simulation data based on multi-channel physical texture as described in any one of claims 1 to 7.