Infrared simulation method, system, computer and readable storage medium
By building an infrared simulation system in the terrain editor to calculate and display the radiation intensity of the target scene, the problem of high computer performance in the existing technology is solved and an efficient infrared simulation effect is achieved.
Patent Information
- Application Number
- CN202310209272.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-07
- Publication Date
- 2025-10-17
- Estimated Expiration
- 2043-03-07
AI Technical Summary
Existing infrared simulation technology mainly simulates single-frame images and single scenes, which cannot meet the needs of modern real-time simulation. The use of a large number of shaders and high-precision maps leads to high computer performance consumption and increased costs.
By inputting the 3D model and scene information of the target scene into the terrain editor, calculating the solar radiation intensity and atmospheric attenuation coefficient, building an atmospheric radiation transfer model, calculating the radiation intensity of the object surface, and performing grayscale processing, the simulation results are dynamically displayed, reducing the use of shaders and preloading, and using two sets of maps.
Significantly reduces the number of shaders used, reduces processor consumption, lowers computer performance requirements, and reduces the cost of infrared simulation.
Smart Images

Figure CN116167239B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of simulation technology, in particular to an infrared simulation method, system, computer and readable storage medium. BACKGROUND
[0002] With the rapid development of infrared technology, infrared imaging systems have played an important role in many fields. In the research process of infrared equipment, the parameters of the equipment often need to be adjusted to achieve the best imaging effect, but these adjustments often need to be made through long-term field experiments, which will consume a lot of manpower and material resources. In addition, due to the uncontrollable environmental conditions of the field, sometimes the field experiments cannot obtain the required data, resulting in huge economic losses. Therefore, infrared imaging simulation technology has emerged as the times require. The prior art can accurately set the parameters of the experimental environment through infrared imaging simulation technology, thereby simulating the infrared imaging effect in a specific or extreme environment, greatly reducing the cost required for field experiments; in addition, mature infrared simulation technology can also be used for testing new models of infrared imaging equipment, which can also save a lot of time and economic cost. Therefore, the research on infrared simulation technology has important economic significance for the application of infrared technology, which can greatly shorten the development cycle of the equipment and thus reduce the development cost of the equipment.
[0003] In order to simulate the real infrared imaging as much as possible, the existing traditional infrared simulation technology needs to collect infrared image data of various materials, calculate the corresponding infrared image of each material according to the infrared radiation model, establish an image database with these images, and then model the target object and use the infrared image data in the database for rendering to simulate the overall infrared characteristics of the target object under different environmental temperatures, atmospheric radiation and solar radiation.
[0004] The existing infrared simulation technology of the prior art mostly only simulates single-frame images, which cannot meet the modern real-time simulation requirements. In addition, the existing infrared simulation technology mainly simulates images of single scene and single object, and cannot meet the infrared simulation requirements of multiple objects coexisting in a complex environment. Moreover, the existing infrared simulation uses a large number of shaders and repeatedly loads them during rendering, and there is a problem of using high-precision maps consistent with the visible light scene in the infrared scene, which leads to a large consumption of processors and thus a high requirement for computer performance, thereby increasing the cost of infrared simulation. SUMMARY
[0005] Based on this, the purpose of the present application is to provide an infrared simulation method, system, computer and readable storage medium, so as to solve the problem that the existing infrared simulation technology is mostly only for single frame image simulation, which cannot meet the modern real-time simulation demand, in addition, the existing infrared simulation technology mainly simulates the image of single scene and single object, which cannot meet the infrared simulation demand of multiple objects coexisting in complex environment, and the existing infrared simulation uses a large number of shaders, and repeatedly loads during rendering, and there is the problem of using high-precision maps consistent with the visible light scene in the infrared scene, which leads to large consumption of processor, so that the requirement of computer performance is higher, thereby increasing the infrared simulation cost.
[0006] The first aspect of the embodiment of the present application proposes an infrared simulation method, the method comprises:
[0007] The target three-dimensional model corresponding to each object in the target scene is input into the terrain editor, and the scene information corresponding to the target scene is input into the terrain editor through the first preset script, so as to obtain the solar radiation intensity and the atmospheric attenuation coefficient corresponding to the target scene;
[0008] The solar radiation angle corresponding to the target scene is calculated through the first preset script, and the atmospheric radiation transmission model corresponding to the solar radiation angle, the solar radiation intensity and the atmospheric attenuation coefficient is constructed, so as to calculate the first surface radiation intensity of the surface of each object according to the atmospheric radiation transmission model;
[0009] Based on the first surface radiation intensity, the target radiation intensity of each object mapped to the target virtual imaging device is calculated through the second preset script, and the target radiation intensity is grayed through the third preset script;
[0010] The gray color corresponding to each object is displayed in the display picture of the target virtual imaging device, and the display picture is dynamically and real-timely displayed, so as to complete the infrared simulation of the target scene.
[0011] The beneficial effects of the present application are: by inputting the target three-dimensional model corresponding to each object in the target scene into the terrain editor, and inputting the scene information corresponding to the target scene into the terrain editor through the first preset script, the solar radiation intensity and the atmospheric attenuation coefficient corresponding to the target scene are obtained; further, the solar radiation angle corresponding to the target scene is calculated through the first preset script, and the atmospheric radiation transmission model corresponding thereto is constructed according to the solar radiation angle, the solar radiation intensity and the atmospheric attenuation coefficient, so as to calculate the first surface radiation intensity of the surface of each object according to the atmospheric radiation transmission model; on this basis, the target radiation intensity of each object mapped onto the target virtual imaging device is calculated through the second preset script based on the first surface radiation intensity, and the target radiation intensity is grayed through the third preset script; finally, the gray color corresponding to each object can be displayed in the display picture of the target virtual imaging device, and the display picture is dynamically and real-timely displayed, so as to complete the infrared simulation of the target scene. Through the above-mentioned manner, the number of shaders can be significantly reduced, the preloading of the shaders can be saved, and two sets of maps are used in the visible light and infrared scenes, so that the consumption of the processor can be significantly reduced, and the requirement for the computer performance is reduced, thereby reducing the cost of the infrared simulation.
[0012] Preferably, the step of inputting the target three-dimensional model corresponding to each object in the target scene into the terrain editor comprises:
[0013] When the target scene is determined, each object appearing in the target scene is detected based on a preset recognition algorithm, and the target three-dimensional model corresponding to each object is respectively constructed through a preset program;
[0014] The target three-dimensional model is input into the terrain editor, and a map shader corresponding to the target three-dimensional model is selected in the terrain editor, so as to add a corresponding map to the target three-dimensional model through the map shader.
[0015] Preferably, the step of constructing the atmospheric radiation transmission model corresponding thereto according to the solar radiation angle, the solar radiation intensity and the atmospheric attenuation coefficient, and calculating the first surface radiation intensity of the surface of each object according to the atmospheric radiation transmission model comprises:
[0016] When the atmospheric radiation transmission model is obtained, the actual solar radiation intensity and the sky background radiation intensity of the sunlight transmitted into the atmosphere are calculated through the atmospheric radiation transmission model, and a corresponding fourth preset script is added to each object, so as to identify the material type corresponding to each object through the fourth preset script;
[0017] According to the material type, radiation emissivity corresponding to each object is found in a preset database to construct a corresponding infrared radiation characteristic model, and a first surface radiation intensity of each object surface is calculated according to the solar radiation intensity and the infrared radiation characteristic model.
[0018] Preferably, the method further comprises:
[0019] When the actual solar radiation intensity and the sky background radiation intensity are acquired, the third preset script is invoked, and a radiation value of a sky background texture mapping materializer is modified according to the actual solar radiation intensity and the sky background radiation intensity through the third preset script to complete rendering of atmospheric radiation.
[0020] Preferably, when the target scene contains an internal heat source object, the method further comprises:
[0021] A fifth preset script is added to the internal heat source object, and an internal heat source intensity, a heat source radius and a heat source attenuation coefficient inside the internal heat source object are simulated through the fifth preset script;
[0022] A surface temperature of the internal heat source object is calculated through a sixth preset script, and a second surface radiation intensity corresponding to the internal heat source object is calculated according to a material type of the internal heat source object, an object self radiation intensity, the solar radiation intensity and the surface temperature to complete radiation rendering of the internal heat source object.
[0023] The second aspect of the embodiment of the application provides an infrared simulation system, which comprises:
[0024] The acquisition module is configured to input target three-dimensional models corresponding to each object in a target scene into a terrain editor, and input scene information corresponding to the target scene into the terrain editor through a first preset script to acquire a solar radiation intensity and an atmospheric attenuation coefficient corresponding to the target scene.
[0025] The calculation module is configured to calculate a solar radiation angle corresponding to the target scene through the first preset script, and construct an atmospheric radiation transmission model according to the solar radiation angle, a solar radiation intensity and the atmospheric attenuation coefficient to calculate a first surface radiation intensity of each object surface according to the atmospheric radiation transmission model.
[0026] The processing module is configured to calculate a target radiation intensity of each object mapped onto a target virtual imaging device through a second preset script based on the first surface radiation intensity, and perform a gray scale processing on the target radiation intensity through a third preset script.
[0027] The simulation module is configured to display a gray color corresponding to each object in a display screen of the target virtual imaging device, and to dynamically and real-timely display the display screen to complete infrared simulation of the target scene.
[0028] In the infrared simulation system, the acquisition module is configured to:
[0029] When the target scene is determined, each object appearing in the target scene is detected based on a preset recognition algorithm, and the target three-dimensional model corresponding to each object is respectively constructed through a preset program;
[0030] The target three-dimensional model is input into the terrain editor, and a map shader corresponding to the target three-dimensional model is selected in the terrain editor to add a corresponding map to the target three-dimensional model through the map shader.
[0031] In the infrared simulation system, the calculation module is configured to:
[0032] When the atmospheric radiation transfer model is acquired, the actual solar radiation intensity and the sky background radiation intensity of sunlight transmitted into the atmosphere are calculated through the atmospheric radiation transfer model, and a fourth preset script corresponding to each object is added to respectively identify the material type corresponding to each object through the fourth preset script;
[0033] According to the material type, the emissivity corresponding to each object is found in a preset database to construct a corresponding infrared radiation characteristic model, and the first surface radiation intensity of the surface of each object is calculated according to the solar radiation intensity and the infrared radiation characteristic model.
[0034] In the infrared simulation system, the infrared simulation system further includes a first rendering module, and the first rendering module is configured to:
[0035] When the actual solar radiation intensity and the sky background radiation intensity are acquired, the third preset script is called, and the radiation value of a sky background texture map materializer is modified according to the actual solar radiation intensity and the sky background radiation intensity through the third preset script to complete rendering of atmospheric radiation.
[0036] In the infrared simulation system, when the target scene includes an internal heat source object, the infrared simulation system further includes a second rendering module, and the second rendering module is configured to:
[0037] A fifth preset script is added to the inner heat source object, and the inner heat source strength, heat source radius and heat source attenuation coefficient inside the inner heat source object are simulated through the fifth preset script;
[0038] The surface temperature of the inner heat source object is calculated through a sixth preset script, and the second surface radiation intensity corresponding to the inner heat source object is calculated according to the material type of the inner heat source object, the object self-radiation intensity, the solar radiation intensity and the surface temperature, so as to complete the radiation rendering of the inner heat source object.
[0039] The third aspect of the embodiment of the present application provides a computer, including a memory, a processor and a computer program stored in the memory and executable on the processor, and the processor implements the infrared simulation method as described above when executing the computer program.
[0040] The fourth aspect of the embodiment of the present application provides a readable storage medium, and a computer program is stored on the readable storage medium, and the computer program is executable on the processor and implements the infrared simulation method as described above.
[0041] Additional aspects and advantages of the present application will be described in part in the description which follows, and in part will become apparent to those skilled in the art upon examination of the following description and the accompanying drawings. BRIEF DESCRIPTION OF DRAWINGS
[0042] Figure 1 The flow chart of the infrared simulation method provided by the first embodiment of the present application is shown in the figure;
[0043] Figure 2 The structural block diagram of the infrared simulation system provided by the sixth embodiment of the present application is shown in the figure.
[0044] The following specific implementation will further illustrate the present application in combination with the above-mentioned drawings. DETAILED DESCRIPTION
[0045] In order to facilitate the understanding of the present application, the present application will be described more fully below with reference to the related drawings. The figures show several embodiments of the present application. However, the present application can be realized in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present application more thorough and comprehensive.
[0046] It should be noted that when an element is referred to as being "fixedly attached" to another element, it can be directly on the other element or there can be an intervening element. When an element is referred to as being "connected" to another element, it can be directly connected to the other element or intervening elements can be present. The terms "vertical", "horizontal", "left", "right" and similar expressions as used herein are for the purpose of illustration only.
[0047] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used in the description herein is for describing particular embodiments only and is not intended to be limiting of the application. As used herein, the term "and / or" includes any and all combinations of one or more of the associated listed items.
[0048] The prior art infrared simulation technology is mostly only for single frame image simulation, which cannot meet the modern real-time simulation demand. In addition, the existing infrared simulation technology mainly simulates images of single scene and single object, and cannot meet the infrared simulation demand of multiple objects coexisting in complex environment. Moreover, the existing infrared simulation uses a large number of shaders and repeatedly loads during rendering, and there is a problem of using high-precision maps consistent with the visible light scene in the infrared scene, which causes large consumption of the processor and high requirement for computer performance, thereby increasing the cost of infrared simulation.
[0049] Please refer to Figure 1 , which is an infrared simulation method provided by the first embodiment of the application. The infrared simulation method provided by the embodiment can significantly reduce the number of shaders used, and can eliminate the preloading of shaders. In addition, two sets of maps are used in the visible light and infrared scenes, which can significantly reduce the consumption of the processor, thereby reducing the requirement for computer performance and the cost of infrared simulation.
[0050] Specifically, the infrared simulation method provided by the embodiment specifically includes the following steps:
[0051] Step S10, input each object in the target scene into the terrain editor respectively, and input the scene information corresponding to the target scene in the terrain editor through a first preset script to obtain the solar radiation intensity and the atmospheric attenuation coefficient corresponding to the target scene.
[0052] Specifically, in the embodiment, first of all, it needs to be pointed out that the infrared simulation method provided by the embodiment is specifically applied in the field of scene simulation technology. Further, the infrared simulation method provided by the embodiment is implemented based on the shader and the terrain editor set in the background, which can effectively reduce the consumption of the processor and the cost of infrared simulation.
[0053] Therefore, in this step, it should be noted that when the target scene to be simulated by infrared is obtained, the objects present in the target scene are first identified. Simultaneously, a target 3D model corresponding to each of the objects is constructed using pre-set 3D software, and the constructed target 3D model is then input into the terrain editor in real time. Preferably, in this embodiment, the target scene provided by this embodiment can be a scene such as the sky, a city, trees, or a lake, all of which fall within the scope of this embodiment.
[0054] Furthermore, this embodiment will further input scene information corresponding to the current target scene in real time in the current terrain editor through a pre-set first preset script, so as to obtain the solar radiation intensity and atmospheric attenuation coefficient corresponding to the current target scene. Specifically, the scene information provided by this embodiment includes latitude and longitude, time, weather and other information.
[0055] Step S20, calculating the solar radiation angle corresponding to the target scene through the first preset script, and constructing a corresponding atmospheric radiation transmission model based on the solar radiation angle, solar radiation intensity, and atmospheric attenuation coefficient, so as to calculate the first surface radiation intensity of each of the object surfaces according to the atmospheric radiation transmission model;
[0056] Furthermore, in this embodiment, it should be noted that after obtaining the required solar radiation intensity and atmospheric attenuation coefficient through the above steps, this step will further calculate the solar radiation angle corresponding to the current target scene through the above-mentioned first preset script. At the same time, a corresponding atmospheric radiation transmission model is constructed based on the current solar radiation angle, solar radiation intensity, and atmospheric attenuation coefficient. On this basis, the first surface radiation intensity corresponding to each object surface in the current target scene is further calculated through the atmospheric radiation transmission model. Preferably, the first preset script provided in this embodiment is set to the SunIntensity (solar radiation simulation) script.
[0057] Step S30, based on the first surface radiation intensity, calculating the target radiation intensity of each of the objects mapped to the target virtual imaging device using a second preset script, and gray-scaling the target radiation intensity using a third preset script;
[0058] Specifically, in the embodiment, it is to be noted that after the first surface radiation intensity of each object is further obtained through the above steps, the current target radiation intensity of each object mapped to the target virtual imaging device is calculated through the second preset script set in advance, and the current target radiation intensity is further subjected to corresponding gray processing through the third preset script set in advance, wherein it is to be noted that the higher the value of the target radiation intensity of the object mapped to the target virtual imaging device, the darker the corresponding gray color. Preferably, the second preset script provided in the embodiment is set as an AirIntensity (atmospheric radiation transmission simulation) script.
[0059] In step S40, the gray color corresponding to each object is displayed in the display screen of the target virtual imaging device, and the display screen is dynamically and real-timely displayed to complete the infrared simulation of the target scene.
[0060] Finally, in the step, it is to be noted that the gray color corresponding to each object is further displayed in the display screen of the target virtual imaging device in real time, and at the same time, the current display screen is dynamically and real-timely displayed to finally complete the infrared simulation of the current target scene.
[0061] In use, the target three-dimensional model corresponding to each object in the target scene is input into the terrain editor, and the scene information corresponding to the target scene is input into the terrain editor through the first preset script to obtain the solar radiation intensity and the atmospheric attenuation coefficient corresponding to the target scene. Further, the solar radiation angle corresponding to the target scene is calculated through the first preset script, and the corresponding atmospheric radiation transmission model is constructed according to the solar radiation angle, the solar radiation intensity and the atmospheric attenuation coefficient, so as to calculate the first surface radiation intensity of the surface of each object according to the atmospheric radiation transmission model. On this basis, the target radiation intensity of each object mapped to the target virtual imaging device is calculated through the second preset script based on the first surface radiation intensity, and the target radiation intensity is subjected to gray processing through the third preset script. Finally, the gray color corresponding to each object can be displayed in the display screen of the target virtual imaging device, and the display screen is dynamically and real-timely displayed to complete the infrared simulation of the target scene. Through the above manner, the number of used shaders can be significantly reduced, the preloading of the shaders can be saved, and two sets of maps are used in the visible light and infrared scenes, so that the consumption of the processor can be significantly reduced, and the requirement for the computer performance is reduced, and the cost of the infrared simulation is reduced.
[0062] It should be noted that the above implementation process is only for the purpose of illustrating the feasibility of the present application, but it does not mean that the infrared simulation method of the present application has only the above unique implementation process, on the contrary, as long as the infrared simulation method of the present application can be implemented, it can be included in the feasible implementation scheme of the present application.
[0063] In summary, the infrared simulation method provided by the above embodiments of the present application can significantly reduce the number of shaders used, while eliminating the need for preloading of shaders, and using two sets of maps in visible light and infrared scenes, thereby significantly reducing the consumption of the processor, and reducing the requirement for computer performance, thereby reducing the cost of infrared simulation.
[0064] The second embodiment of the present application also provides an infrared simulation method, and the difference between the infrared simulation method provided by the present embodiment and the infrared simulation method provided by the first embodiment is:
[0065] Specifically, in the present embodiment, it should be noted that the above step of inputting each object in the target scene corresponding to the target three-dimensional model into the terrain editor includes:
[0066] When the target scene is determined, each object appearing in the target scene is detected based on a preset recognition algorithm, and a target three-dimensional model corresponding to each object is respectively constructed through a preset program;
[0067] The target three-dimensional model is input into the terrain editor, and a map shader corresponding to the target three-dimensional model is selected in the terrain editor, so as to add a corresponding map to the target three-dimensional model through the map shader.
[0068] Specifically, in the present embodiment, it should be noted that when the present embodiment determines the required target scene, the present embodiment will immediately detect each object appearing in the current target scene through a preset recognition algorithm, and at the same time, a target three-dimensional model corresponding to each object appearing in the current target scene is respectively constructed through a preset program, wherein it should be noted that the present embodiment will detect each object appearing in the current target scene through a pre-set convolutional neural network, and further, the present embodiment will construct a target three-dimensional model corresponding to each object appearing in the current target scene through a pre-set three-dimensional software such as ug and solidworks.
[0069] Further, the embodiment further inputs the target three-dimensional model constructed in real time into the above-mentioned terrain editor, and simultaneously, the embodiment further selects a map shader corresponding to the target three-dimensional model in the current terrain editor, and on this basis, adds a corresponding map to the current target three-dimensional model through the selected map shader. Preferably, in the embodiment, the terrain editor provided by the embodiment is set as a unity3d editor, and in addition, the embodiment selects different map shaders corresponding to the types of objects in real time, wherein it needs to be pointed out that the types of objects provided by the embodiment specifically include an internal heat source type object and a non-internal heat source type object. For example, when the identified object is a car, the corresponding selected map shader is an internal heat source shader infMatHeatIn.
[0070] It needs to be pointed out that the implementation principle and some technical effects generated by the method provided by the second embodiment of the application are the same as those of the first embodiment, and for brief description, the second embodiment is not mentioned in the first embodiment. The corresponding content provided by the first embodiment can be referred to.
[0071] In summary, the infrared simulation method provided by the above-mentioned embodiments of the application can significantly reduce the number of used shaders, and can save the preloading of the shaders, and can use two sets of maps in the visible light and infrared scenes, so as to significantly reduce the consumption of the processor, and further reduce the requirement for the computer performance, and correspondingly reduce the cost of the infrared simulation.
[0072] The third embodiment of the application also provides an infrared simulation method, and the infrared simulation method provided by the embodiment is different from the infrared simulation method provided by the first embodiment in that:
[0073] Specifically, in the embodiment, it also needs to be explained that the step of constructing a corresponding atmospheric radiation transmission model according to the solar radiation angle, the solar radiation intensity and the atmospheric attenuation coefficient to calculate the first surface radiation intensity of each object surface includes:
[0074] When the atmospheric radiation transmission model is acquired, the actual solar radiation intensity and the sky background radiation intensity of the sunlight transmitted into the atmosphere are calculated through the atmospheric radiation transmission model, and a corresponding fourth preset script is added to each object to identify the material type corresponding to each object through the fourth preset script;
[0075] The emissivity corresponding to each object is found in a preset database according to the material type, to construct a corresponding infrared radiation characteristic model, and the first surface radiation intensity of each object surface is calculated according to the solar radiation intensity and the infrared radiation characteristic model.
[0076] Specifically, in the embodiment, it can be understood that the sunlight will be attenuated in the process of transmission, that is, the sunlight will also be attenuated in the process of transmission in the earth's atmosphere, so when the above atmospheric radiation transmission model is acquired, the embodiment will further calculate the actual solar radiation intensity and the corresponding sky background radiation intensity of the sunlight transmitted into the atmosphere through the current atmospheric radiation transmission model. At the same time, a corresponding fourth preset script is added to each object in the current target scene, and the material type corresponding to each object is further identified through the fourth preset script. Preferably, the fourth preset script provided by the embodiment is set as the MaterialTypeCtrl (object radiation calculation) script.
[0077] On this basis, since the radiation reflectivity of different types of objects is different, the embodiment needs to further find out the radiation emissivity corresponding to each object in the preset database through the material type acquired in real time, and construct the required infrared radiation feature model accordingly. On this basis, the first surface radiation intensity of the surface of each object is further calculated according to the above solar radiation intensity and the current infrared radiation feature model.
[0078] It should be pointed out that the method provided by the third embodiment of the present application has the same implementation principle and some technical effects as the first embodiment. For brevity, the unmentioned parts of the embodiment can be referred to the corresponding contents provided by the first embodiment.
[0079] In summary, the infrared simulation method provided by the above embodiments of the present application can significantly reduce the number of shaders used, and can save the preloading of shaders. In addition, two sets of maps are used in the visible light and infrared scenes, so that the consumption of the processor can be significantly reduced, and the requirement for computer performance is reduced, and the cost of infrared simulation is reduced.
[0080] The fourth embodiment of the present application also provides an infrared simulation method. The infrared simulation method provided by the fourth embodiment is different from the infrared simulation method provided by the first embodiment in that:
[0081] Further, in the embodiment, it should be pointed out that the above method further comprises:
[0082] When the actual solar radiation intensity and the sky background radiation intensity are acquired, the third preset script is called, and the radiation value of the sky background texture map materializer is modified according to the actual solar radiation intensity and the sky background radiation intensity through the third preset script, so as to complete the rendering of the atmospheric radiation.
[0083] Specifically, in the embodiment, it is to be noted that when the target scene provided by the embodiment contains the sky, it can be understood that the atmosphere also exists in the sky, and thus the embodiment also needs to render the radiation of the atmosphere.
[0084] Specifically, when the actual solar radiation intensity and the sky background radiation intensity are acquired, the third preset script is immediately called, and at the same time, the radiation value of the sky background texture map materializer is modified according to the current actual solar radiation intensity and the sky background radiation intensity through the third preset script, so that the rendering of the atmospheric radiation can be simply and effectively completed. Preferably, the third preset script provided by the embodiment is set as a GrayCal (radiation gray mapping) script.
[0085] It should be pointed out that the method provided by the fourth embodiment of the application has the same implementation principle and some technical effects as the first embodiment, and for brief description, the contents not mentioned in the fourth embodiment can be referred to the corresponding contents provided by the first embodiment.
[0086] In summary, the infrared simulation method provided by the above-mentioned embodiments of the application can significantly reduce the number of used shaders, and can save the preloading of the shaders, and can use two sets of maps in the visible light and infrared scenes, so that the consumption of the processor can be significantly reduced, and the requirement for the computer performance is reduced, and the cost of the infrared simulation is reduced.
[0087] The fifth embodiment of the application also provides an infrared simulation method, and the infrared simulation method provided by the embodiment is different from the infrared simulation method provided by the first embodiment in that:
[0088] Specifically, in the embodiment, it is to be noted that when the target scene provided by the embodiment contains the sky, it can be understood that the atmosphere also exists in the sky, and thus the embodiment also needs to render the radiation of the atmosphere.
[0089] The fifth preset script is added to the internal heat source object, and the internal heat source intensity, the heat source radius and the heat source attenuation coefficient inside the internal heat source object are simulated through the fifth preset script.
[0090] The surface temperature of the internal heat source object is calculated through the sixth preset script, and the second surface radiation intensity corresponding to the internal heat source object is calculated according to the material type of the internal heat source object, the object self-radiation intensity, the solar radiation intensity and the surface temperature, so as to complete the radiation rendering of the internal heat source object.
[0091] Specifically, in the embodiment, it is to be noted that when the embodiment detects an internal heat source object such as an airplane, a car, and a train in the target scene, the embodiment immediately adds a fifth preset script to the current internal heat source object, and at the same time, further simulates the internal heat source strength, the heat source radius, and the heat source attenuation coefficient inside the current internal heat source object through the fifth preset script. Preferably, the fifth preset script provided by the embodiment is set as a heatInSourceCal (internal heat source simulation) script.
[0092] Further, the embodiment further calculates the surface temperature of the current internal heat source object through a sixth preset script, and further calculates the second surface radiation intensity corresponding to the current internal heat source object according to the material type of the current internal heat source object, the object self-radiation intensity, the solar radiation intensity, and the surface temperature, so as to simply and conveniently complete the radiation rendering of the current internal heat source object. Preferably, the sixth preset script provided by the embodiment is set as a TemperatureCtrl (internal heat source radiation calculation) script.
[0093] It is to be noted that the method provided by the fifth embodiment of the application has the same implementation principle and some technical effects as the first embodiment. For brevity, the unmentioned part of the embodiment can be referred to the corresponding content provided by the first embodiment.
[0094] In summary, the infrared simulation method provided by the above-mentioned embodiments of the application can significantly reduce the number of used shaders, and can save the preloading of the shaders, and can use two sets of maps in the visible light and infrared scenes, so as to significantly reduce the consumption of the processor, and further reduce the requirement for the computer performance, and correspondingly reduce the cost of the infrared simulation.
[0095] Referring to Figure 2 , an infrared simulation system provided by the sixth embodiment of the application is shown, and the system comprises:
[0096] The acquisition module 12 is configured to input target three-dimensional models corresponding to each object in a target scene into a terrain editor, and input scene information corresponding to the target scene into the terrain editor through a first preset script, so as to acquire solar radiation intensity and atmospheric attenuation coefficients corresponding to the target scene.
[0097] The calculation module 22 is configured to calculate a solar radiation angle corresponding to the target scene through the first preset script, and construct an atmospheric radiation transmission model according to the solar radiation angle, the solar radiation intensity, and the atmospheric attenuation coefficients, so as to calculate first surface radiation intensities of surfaces of each object according to the atmospheric radiation transmission model.
[0098] The processing module 32 is configured to calculate target radiation intensity of each object on a target virtual imaging device based on the first surface radiation intensity by a second preset script, and perform grayscale processing on the target radiation intensity by a third preset script.
[0099] The simulation module 42 is configured to display a grayscale color corresponding to each object in a display screen of the target virtual imaging device, and dynamically and real-timely display the display screen to complete infrared simulation of the target scene.
[0100] In the infrared simulation system, the acquisition module 12 is specifically configured to:
[0101] When the target scene is determined, each object appearing in the target scene is detected based on a preset recognition algorithm, and the target three-dimensional model corresponding to each object is respectively constructed by a preset program.
[0102] The target three-dimensional model is input into the terrain editor, and a map shader corresponding to the target three-dimensional model is selected in the terrain editor, so that the target three-dimensional model is added with a corresponding map by the map shader.
[0103] In the infrared simulation system, the calculation module 22 is specifically configured to:
[0104] When the atmospheric radiation transmission model is acquired, the actual solar radiation intensity and the sky background radiation intensity of sunlight transmitted into the atmosphere are calculated by the atmospheric radiation transmission model, and each object is added with a corresponding fourth preset script to respectively identify the material type corresponding to each object by the fourth preset script.
[0105] According to the material type, the radiation emissivity corresponding to each object is found in a preset database to construct a corresponding infrared radiation characteristic model, and the first surface radiation intensity of the surface of each object is calculated according to the solar radiation intensity and the infrared radiation characteristic model.
[0106] In the infrared simulation system, the infrared simulation system further comprises a first rendering module 52, and the first rendering module 52 is specifically configured to:
[0107] When the actual solar radiation intensity and the sky background radiation intensity are acquired, the third preset script is called, and the radiation value of a sky background texture map materializer is modified according to the actual solar radiation intensity and the sky background radiation intensity by the third preset script to complete rendering of atmospheric radiation.
[0108] The infrared simulation system further comprises a second rendering module 62 when the internal heat source object exists in the target scene, and the second rendering module 62 is specifically configured to:
[0109] A fifth preset script is added to the internal heat source object, and the internal heat source strength, the heat source radius and the heat source attenuation coefficient inside the internal heat source object are simulated through the fifth preset script.
[0110] The surface temperature of the internal heat source object is calculated through a sixth preset script, and the second surface radiation intensity corresponding to the internal heat source object is calculated according to the material type of the internal heat source object, the object itself radiation intensity, the solar radiation intensity and the surface temperature, so as to complete the radiation rendering of the internal heat source object.
[0111] The seventh embodiment of the present application provides a computer comprising a memory, a processor and a computer program stored in the memory and executable on the processor, and the processor implements the infrared simulation method provided by the above-mentioned embodiments when executing the computer program.
[0112] The eighth embodiment of the present application provides a readable storage medium having a computer program stored thereon, and the program is executed by a processor to implement the infrared simulation method provided by the above-mentioned embodiments.
[0113] In summary, the infrared simulation method, system, computer and readable storage medium provided by the above-mentioned embodiments of the present application can significantly reduce the number of used shaders, and can save the preloading of the shaders, and use two sets of maps in the visible light and infrared scenes, so as to significantly reduce the consumption of the processor, and further reduce the requirement for the computer performance, thereby reducing the cost of the infrared simulation.
[0114] It should be noted that the above-mentioned modules can be functional modules or program modules, and can be implemented by software or hardware. For the modules implemented by hardware, the above-mentioned modules can be located in the same processor, or the above-mentioned modules can be located in different processors in any combination.
[0115] The logic and / or steps represented in the flowcharts or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing the logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (e.g., a computer-based system, a system including a processor, or other system that can fetch and execute instructions from an instruction execution system, apparatus, or device). For purposes of this specification, a "computer-readable medium" can be any device that can contain, store, communicate, propagate, or transport a program for use by, or in conjunction with, an instruction execution system, apparatus, or device.
[0116] More specific examples (a non-exhaustive list) of computer-readable media include the following: an electrical connection with one or more wires (electronic devices), a portable computer disk cartridge (magnetic devices), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disc read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting, or processing it in another suitable manner as necessary, and then storing it in a computer memory.
[0117] It should be understood that various components of the present invention may be implemented using hardware, software, firmware, or a combination thereof. In the above-described embodiments, multiple steps or methods may be implemented using software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented using hardware, as in another embodiment, any one of the following technologies known in the art or a combination thereof may be used: a discrete logic circuit having logic gate circuits for implementing logic functions on data signals, an application-specific integrated circuit having suitable combinational logic gate circuits, a programmable gate array (PGA), a field-programmable gate array (FPGA), etc.
[0118] Throughout this specification, reference to terms such as "one embodiment," "some embodiments," "examples," "specific examples," or "some examples" means that a specific feature, structure, material, or characteristic described in conjunction with that embodiment or example is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
[0119] The above embodiments only express several implementation manners of the present application, and the description is more specific and detailed, but it should not be understood as a limitation on the patent scope of the present application. It should be noted that for ordinary skilled persons in the art, without departing from the concept of the present application, several modifications and improvements can be made, which are all within the protection scope of the present application. Therefore, the protection scope of the patent of the present application should be subject to the appended claims.
Claims
1. An infrared simulation method, characterized in that: The method comprises: Inputting target three-dimensional models corresponding to respective objects in the target scene into a terrain editor, and inputting scene information corresponding to the target scene into the terrain editor through a first preset script to obtain solar radiation intensity and atmospheric attenuation coefficient corresponding to the target scene; Calculating the solar radiation angle corresponding to the target scene through the first preset script, and constructing a corresponding atmospheric radiation transmission model according to the solar radiation angle, solar radiation intensity, and atmospheric attenuation coefficient, so as to calculate the first surface radiation intensity of each of the object surfaces according to the atmospheric radiation transmission model; Based on the first surface radiation intensity, a target radiation intensity of each of the objects mapped onto a target virtual imaging device is calculated using a second preset script, and the target radiation intensity is grayscaled using a third preset script; Grayscale colors corresponding to the respective objects are displayed on the display screen of the target virtual imaging device, and the display screen is dynamically displayed in real time to complete the infrared simulation of the target scene.
2. The infrared simulation method according to claim 1, wherein: The step of inputting the target three-dimensional models corresponding to the respective objects in the target scene into the terrain editor comprises: When the target scene is determined, each object appearing in the target scene is detected based on a preset recognition algorithm, and the target three-dimensional model corresponding to each of the objects is constructed respectively through a preset program; The target three-dimensional model is input into the terrain editor, and a texture shader corresponding to the target three-dimensional model is selected in the terrain editor, so as to add a corresponding texture to the target three-dimensional model through the texture shader.
3. The infrared simulation method according to claim 1, wherein: The step of constructing a corresponding atmospheric radiation transmission model according to the solar radiation angle, the solar radiation intensity, and the atmospheric attenuation coefficient, and calculating the first surface radiation intensity of each of the object surfaces according to the atmospheric radiation transmission model includes: When the atmospheric radiation transfer model is obtained, the actual solar radiation intensity transmitted into the atmosphere and the sky background radiation intensity are calculated using the atmospheric radiation transfer model, and a corresponding fourth preset script is added to each of the objects to identify the material type corresponding to each of the objects using the fourth preset script; According to the material type, the radiation emissivity corresponding to each of the objects is searched in the preset database to construct the corresponding infrared radiation characteristic model, and the first surface radiation intensity of each of the object surfaces is calculated according to the solar radiation intensity and the infrared radiation characteristic model.
4. The infrared simulation method according to claim 3, wherein: The method further comprises: When the actual solar radiation intensity and the sky background radiation intensity are obtained, the third preset script is called, and the radiation value of the sky background texture map material device is modified according to the actual solar radiation intensity and the sky background radiation intensity through the third preset script to complete the rendering of atmospheric radiation.
5. The infrared simulation method according to claim 1, wherein: When there is an internal heat source object in the target scene, the method further includes: Adding a fifth preset script to the internal heat source object, and simulating the internal heat source intensity, heat source radius, and heat source attenuation coefficient inside the internal heat source object through the fifth preset script; The surface temperature of the internal heat source object is calculated by the sixth preset script, and the second surface radiation intensity corresponding to the internal heat source object is calculated based on the material type of the internal heat source object, the object's own radiation intensity, the solar radiation intensity and the surface temperature to complete the radiation rendering of the internal heat source object.
6. An infrared simulation system, characterized in that: The system comprises: an acquisition module, configured to input target three-dimensional models corresponding to respective objects in a target scene into a terrain editor, and input scene information corresponding to the target scene into the terrain editor through a first preset script, so as to obtain solar radiation intensity and atmospheric attenuation coefficient corresponding to the target scene; a calculation module, configured to calculate the solar radiation angle corresponding to the target scene using the first preset script, and construct a corresponding atmospheric radiation transmission model based on the solar radiation angle, the solar radiation intensity, and the atmospheric attenuation coefficient, so as to calculate the first surface radiation intensity of each of the object surfaces according to the atmospheric radiation transmission model; a processing module, configured to calculate, based on the first surface radiation intensity, a target radiation intensity of each of the objects mapped onto a target virtual imaging device using a second preset script, and perform grayscale processing on the target radiation intensity using a third preset script; The simulation module is used to display the grayscale color corresponding to each of the objects in the display screen of the target virtual imaging device, and to dynamically display the display screen in real time to complete the infrared simulation of the target scene.
7. The infrared simulation system according to claim 6, characterized in that: The acquisition module is specifically used for: When the target scene is determined, each object appearing in the target scene is detected based on a preset recognition algorithm, and the target three-dimensional model corresponding to each of the objects is constructed respectively through a preset program; The target three-dimensional model is input into the terrain editor, and a texture shader corresponding to the target three-dimensional model is selected in the terrain editor, so as to add a corresponding texture to the target three-dimensional model through the texture shader.
8. The infrared simulation system according to claim 6, characterized in that: The calculation module is specifically used for: When the atmospheric radiation transfer model is obtained, the actual solar radiation intensity transmitted into the atmosphere and the sky background radiation intensity are calculated using the atmospheric radiation transfer model, and a corresponding fourth preset script is added to each of the objects to identify the material type corresponding to each of the objects using the fourth preset script; According to the material type, the radiation emissivity corresponding to each of the objects is searched in the preset database to construct the corresponding infrared radiation characteristic model, and the first surface radiation intensity of each of the object surfaces is calculated according to the solar radiation intensity and the infrared radiation characteristic model.
9. A computer comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the infrared simulation method according to any one of claims 1 to 5 is implemented.
10. A readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the infrared simulation method according to any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Infrared reflection characteristic simulation method based on GPU (graphics processing unit) programming
CN102968521A
Real-time space-based infrared visual simulation method
CN106570253A