Data processing method and device for light simulation

By optimizing the lighting model to render large scene lights and combining environmental lighting rendering processing, the problem of poor simulation effect of large scene lights in the existing technology is solved, and dynamic simulation of lights in large-scale lighting scenarios is achieved and simulation and rendering efficiency are improved.

CN119691980APending Publication Date: 2025-03-25NO 15 INST OF CHINA ELECTRONICS TECH GRP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411637189.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-15
Publication Date
2025-03-25

AI Technical Summary

Technical Problem

In the prior art, the simulation effect of large-scene lighting is poor and it is difficult to meet the large-scale lighting needs. Especially in airport lighting systems, complex lighting conditions and large-scale lighting effects are difficult to present.

Method used

A data processing method for lighting simulation is proposed. By optimizing the lighting model, the large scene lights are rendered, including obtaining the to-process data, performing light rendering based on the optimized lighting model, combining with the environmental light rendering process, and finally performing simulation processing to obtain the lighting simulation result data.

Benefits of technology

Dynamic simulation of lights in large-scale lighting scenarios is realized, simulation degree and rendering efficiency are improved, and the problem of poor simulation effect of large-scene lighting in the existing technology is solved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119691980A_ABST
    Figure CN119691980A_ABST
Patent Text Reader

Abstract

The invention discloses a data processing method and device for light simulation. The method comprises the steps of obtaining to-be-processed data, wherein the to-be-processed data is related data used for representing large-scene light simulation; light rendering processing based on an optimized illumination model is carried out on the to-be-processed data to obtain illumination rendering data, and the illumination rendering data is rendering data used for representing illumination light in the large scene; environment light rendering processing is carried out on the to-be-processed data to obtain environment light rendering data, and the environment light rendering data is rendering data used for representing environment light in the large scene; and performing simulation processing on the illumination rendering data and the environment light rendering data to obtain light simulation result data. By optimizing the illumination model, performing illumination rendering on the light-emitting object based on the optimized illumination model, and combining the light-emitting object and halo effect rendering, dynamic simulation of light in a large-scale illumination scene is realized, and the problem of poor large-scene light simulation effect in the prior art is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of simulation, and in particular to a data processing method and device for lighting simulation. Background Art

[0002] With the continuous development of simulation training, the demand for high-simulation three-dimensional simulation training in various fields is also increasing. For flight simulation training systems, the airport lighting system is an important system for ensuring the smooth taxiing, takeoff, landing and other tasks of aircraft at night or in complex weather conditions. It has the characteristics of complex lighting conditions, large lighting range, many affected objects, and various lighting types.

[0003] The number of lights with lighting effects supported by the 3D visual simulation platform is limited, and it is difficult to meet the lighting system requirements for large-scale lighting. In the prior art, the lighting simulation system for large-scale lighting requirements uses the four-lighting properties of the model to simulate the light source. This method can simulate the highlight effect of the luminous object itself in the real-time simulation system, but it cannot illuminate other surrounding models like ordinary light sources. The simulation fidelity is not high. For lights with a large illumination range and light groups with cross-illumination relationships, the complex lighting effects produced are even more difficult to present.

[0004] Therefore, the existing technology of large scene lighting simulation has the problem of poor simulation effect. Summary of the invention

[0005] The main purpose of the present application is to provide a data processing method and device for lighting simulation, so as to solve the technical problem of poor effect of large-scene lighting simulation in the prior art, and achieve the technical effect of improving the realism of lighting simulation.

[0006] In order to achieve the above-mentioned purpose, in a first aspect of the present application, a data processing method for lighting simulation is proposed, which is applied to a large-scene lighting simulation system to realize lighting simulation in a large scene. The method comprises:

[0007] Acquire data to be processed, wherein the data to be processed is relevant data for representing large-scene lighting simulation;

[0008] Performing light rendering processing on the data to be processed based on an optimized light model to obtain light rendering data, wherein the light rendering data is rendering data used to represent light in a large scene;

[0009] Performing environment light rendering processing on the data to be processed to obtain environment light rendering data, wherein the environment light rendering data is rendering data used to represent the environment light in a large scene;

[0010] The illumination rendering data and the environment light rendering data are simulated to obtain light simulation result data.

[0011] Furthermore, the data to be processed is subjected to light rendering processing based on an optimized light model, and the obtained light rendering data includes:

[0012] Performing identification processing based on illumination features on the data to be processed to obtain active illumination data and passive illumination data, wherein the active illumination data is illumination data for representing a light source, and the passive illumination data is illumination data for representing an illuminated object;

[0013] Performing light rendering processing based on an optimized light model on the active light data to obtain active light rendering feature data, wherein the active light rendering feature data is feature data for representing light source light rendering;

[0014] Performing light rendering processing based on an optimized light model on the passive light data to obtain passive light rendering feature data, wherein the passive light rendering feature data is feature data used to represent light rendering of an illuminated object;

[0015] The lighting rendering data is obtained according to the active lighting rendering feature data and the passive lighting rendering feature data.

[0016] Furthermore, the active lighting data is subjected to light rendering processing based on an optimized lighting model, and the active lighting rendering feature data obtained includes:

[0017] Performing identification processing based on light source characteristics on the active illumination data to obtain first light source characteristic data, second light source characteristic data and third light source characteristic data, wherein the first light source characteristic data is characteristic data for representing a directional light source, the second light source characteristic data is characteristic data for representing a fixed point light source, and the third light source characteristic data is characteristic data for representing a spotlight light source;

[0018] Performing a first light rendering process based on an optimized lighting model on the first light source characteristic data to obtain first active lighting rendering characteristic data;

[0019] Performing a second light rendering process based on an optimized lighting model on the second light source characteristic data to obtain second active lighting rendering characteristic data;

[0020] Performing a third light rendering process based on an optimized lighting model on the third light source characteristic data to obtain third active lighting rendering characteristic data;

[0021] The lighting rendering feature data is obtained according to the first active lighting rendering feature data, the second active lighting rendering feature data and the third active lighting rendering feature data.

[0022] Further, the data to be processed is subjected to environment light rendering processing to obtain environment light rendering data including:

[0023] Identifying the data to be processed to obtain ambient light data, wherein the ambient light data is light data for indicating non-lighting;

[0024] Performing halo effect generation processing on the ambient light data to obtain halo texture data and self-luminous feature data, wherein the halo texture data is data used to represent halo effect map texture, and the self-luminous feature data is feature data used to represent halo self-luminescence;

[0025] Performing ambient light rendering processing on the halo texture data and the self-luminous feature data to obtain the ambient light rendering data.

[0026] Furthermore, after simulating the illumination rendering data and the environment light rendering data to obtain light simulation result data, the method further includes:

[0027] Performing operation feature extraction processing on the simulation result data to obtain operation feature data, wherein the operation feature data is feature data used to represent the operation state of the large-scene lighting simulation system;

[0028] Performing display feature extraction processing on the simulation result data to obtain display feature data, wherein the display feature data is feature data used to represent the light display of the large-scene light simulation system;

[0029] Lighting simulation evaluation data is generated according to the operation characteristic data and the display characteristic data.

[0030] Furthermore, the optimized illumination model is:

[0031] I=I a K a +∑I l [K d (N·S)+K s e -n|H| ], where I is the light intensity at a certain point, I a ,I l are the ambient light and direct light intensity of the light source respectively; K a , K d , K sThey are the coefficients of ambient light, diffuse scattered light and specular reflection light respectively; N, S represent the unit vectors of the surface normal of the object and the direction of incident light respectively; N, S represent the unit vectors of the surface normal of the object and the direction of incident light respectively; n is the reflectivity of the object; H represents the unit vector of the similarity between the light reflection direction and the line of sight direction.

[0032] According to a second aspect of the present application, a data processing device for lighting simulation is proposed, which is applied to a large-scene lighting simulation system to realize lighting simulation in a large scene. The device includes:

[0033] A data acquisition module, used to acquire data to be processed, wherein the data to be processed is relevant data for representing large-scene lighting simulation;

[0034] A lighting rendering module, used for performing lighting rendering processing on the data to be processed based on an optimized lighting model to obtain lighting rendering data, wherein the lighting rendering data is rendering data used to represent lighting in a large scene;

[0035] An environment light rendering module, used for performing environment light rendering processing on the data to be processed to obtain environment light rendering data, wherein the environment light rendering data is rendering data used to represent the environment light in a large scene;

[0036] The simulation module is used to perform simulation processing on the illumination rendering data and the environment light rendering data to obtain light simulation result data.

[0037] Furthermore, the lighting rendering module includes:

[0038] an identification module, used for performing identification processing on the data to be processed based on illumination features to obtain active illumination data and passive illumination data, wherein the active illumination data is illumination data for representing a light source, and the passive illumination data is illumination data for representing an illuminated object;

[0039] An active lighting rendering module, used for performing light rendering processing on the active lighting data based on an optimized lighting model to obtain active lighting rendering feature data, wherein the active lighting rendering feature data is feature data for representing light source lighting rendering;

[0040] A passive lighting rendering module, used for performing light rendering processing on the passive lighting data based on an optimized lighting model to obtain passive lighting rendering feature data, wherein the passive lighting rendering feature data is feature data used to represent lighting rendering of an illuminated object;

[0041] A rendering result module is used to obtain the lighting rendering data according to the active lighting rendering feature data and the passive lighting rendering feature data.

[0042] According to a third aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the above-mentioned data processing method for light simulation.

[0043] According to a fourth aspect of the present application, an electronic device is proposed, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor executes the above-mentioned data processing method for lighting simulation.

[0044] The technical solution provided by the embodiments of the present application may have the following beneficial effects:

[0045] In the present application, data to be processed is obtained, wherein the data to be processed is relevant data for representing large-scene lighting simulation; the data to be processed is subjected to lighting rendering processing based on an optimized lighting model to obtain lighting rendering data, wherein the lighting rendering data is rendering data for representing lighting in a large scene; the data to be processed is subjected to ambient lighting rendering processing to obtain ambient lighting rendering data, wherein the ambient lighting rendering data is rendering data for representing ambient lighting in a large scene; the lighting rendering data and the ambient lighting rendering data are subjected to simulation processing to obtain lighting simulation result data. By optimizing the lighting model, lighting rendering is performed on luminous objects based on the optimized lighting model, and the rendering of luminous objects and halo effects is combined, dynamic simulation of lighting in large-scale lighting scenes is achieved, the problem of poor large-scene lighting simulation effects in the prior art is solved, and the technical effect of improving simulation degree and rendering efficiency is achieved. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] The drawings constituting a part of this application are used to provide a further understanding of this application, so that other features, purposes and advantages of this application become more obvious. The schematic embodiment drawings and their descriptions of this application are used to explain this application and do not constitute an improper limitation on this application. In the drawings:

[0047] Figure 1 A flowchart of a data processing method for lighting simulation provided in this application;

[0048] Figure 2 A flowchart of a data processing method for lighting simulation provided in this application;

[0049] Figure 3 The light color attribute table after optimizing the lighting model provided for this application;

[0050] Figure 4 The light attenuation attribute table after optimizing the lighting model provided for this application;

[0051] Figure 5 The light angle attribute table after optimizing the lighting model provided in this application;

[0052] Figure 6 A schematic diagram of a data processing device for lighting simulation provided by the present application;

[0053] Figure 7 A schematic diagram of another data processing device for lighting simulation provided in the present application. DETAILED DESCRIPTION

[0054] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0055] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0056] In the present application, the terms "upper", "lower", "left", "right", "front", "back", "top", "bottom", "inner", "outer", "middle", "vertical", "horizontal", "lateral", "longitudinal" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the drawings. These terms are mainly used to better describe the present application and its embodiments, and are not used to limit the indicated devices, elements or components to have a specific orientation, or to be constructed and operated in a specific orientation.

[0057] In addition, some of the above terms may be used to express other meanings in addition to indicating orientation or positional relationship. For example, the term "on" may also be used to express a certain dependency or connection relationship in some cases. For those of ordinary skill in the art, the specific meanings of these terms in this application can be understood according to specific circumstances.

[0058] In addition, the terms "installed", "set", "provided with", "connected", "connected", and "socketed" should be understood in a broad sense. For example, "connection" can be a fixed connection, a detachable connection, or an integral structure; it can be a mechanical connection or an electrical connection; it can be a direct connection, or an indirect connection through an intermediate medium, or it can be an internal connection between two devices, elements, or components. For those of ordinary skill in the art, the specific meanings of the above terms in this application can be understood according to specific circumstances.

[0059] In the tower flight command simulation training system, the airport lighting system is an important system for the airport to ensure the smooth taxiing, takeoff, landing and other tasks of the aircraft at night or under complex weather conditions. It has the characteristics of complex lighting conditions, large lighting range, many affected objects, and various types of lighting. However, the number of lights with lighting effects supported by OpenGL used at the bottom of the 3D visual simulation platform is limited, which cannot meet the needs of such a large-scale airport lighting system. At present, most airport lighting simulation systems use the self-luminous properties of the model to simulate the light source. This method can simulate the highlight effect of the luminous object itself in the real-time simulation system, but it cannot illuminate other surrounding models like ordinary light sources, so the simulation fidelity is not high; especially for lights with a large illumination range and light groups with cross-illumination relationships, the complex lighting effects produced are even more difficult to present; at the same time, for hundreds or even thousands of light sources in the airport environment, this method also has the problem of high resource consumption and low efficiency in their management, which seriously affects the simulation effect of the entire airport night scene. Therefore, the simulation of night lighting effects has always been a difficult point in 3D visual simulation.

[0060] In response to the above problems, the present application proposes a data processing method for lighting simulation, which optimizes the lighting model, performs lighting rendering on luminous objects based on the optimized lighting model, and combines the rendering of luminous objects and halo effects to achieve dynamic simulation of lights in large-scale lighting scenes, thereby solving the problem of poor lighting simulation effects in large scenes in the prior art and achieving the technical effect of improving simulation degree and rendering efficiency.

[0061] According to the Phong lighting model, the specific formula is as follows:

[0062] I=I a K a +∑I l [K d(N·S)+K s (R.V) n ],

[0063] Where I a ,I l are the ambient light and direct light intensity of the light source respectively; K a , K d , K s They are the coefficients of ambient light, diffuse scattered light and specular reflection light respectively; N and S represent the unit vectors of the surface normal of the object and the incident direction of the light respectively; R and V represent the unit vectors of the light reflection direction and the line of sight direction respectively. n reflects the reflectivity of the object and reflects the degree of convergence of the reflected light.

[0064] A key step in the calculation of the Phong lighting model is the calculation of the reflection vector R, which is a relatively time-consuming task. At the same time, there will be lighting truncation or excessive unnatural phenomena. This is because the angle between the reflected light direction and the line of sight direction is less than 90, which makes the mirror reflection value non-zero. The calculation efficiency of the lighting model is low. When performing large-scene lighting simulation processing based on the Phong lighting model, the model processing efficiency is low during lighting rendering, which leads to low efficiency in large-scale lighting scene simulation.

[0065] According to the Blinn-Phong lighting model, the specific formula is as follows:

[0066] I=I a K a +∑I l [K d (N·S)+K s (N·H) n ],

[0067] In the formula, when all vectors are coplanar, the angle between the intermediate vector H and the normal vector N is proportional to the angle between the pure reflection vector R and the vector V facing the observer. Therefore, the calculated visual results will be similar. Among them, H = V + S, and the dot product of H and N is used to replace the dot product of the specular component vector R and the vector V in the Phong lighting model to obtain the above Blinn-Phong lighting model.

[0068] In the Blinn-Phong lighting model, the angle between the intermediate vector H and the normal vector N is proportional to the angle between the pure reflection vector R and the vector V facing the observer. However, since the ratio is nonlinear, the realism of the Blinn-Phong lighting model is not as good as that of the Phong lighting model. In addition, it is usually necessary to increase the value of the exponential glossiness n to compensate for the difference in the size of the highlight surface, which also increases the amount of calculation to a certain extent. When the Blinn-Phong lighting model is used for large scene lighting simulation, the model simulation fidelity is low.

[0069] In some optional embodiments of the present application, a data processing method for lighting simulation is proposed. The method is applied to a large-scene lighting simulation system to realize lighting simulation in a large scene. Figure 1 A flowchart of a data processing method for lighting simulation provided in this application, such as Figure 1 As shown, the method comprises the following steps:

[0070] S101: Obtaining data to be processed;

[0071] The data to be processed is the relevant data used to represent the large scene lighting simulation. The data to be processed includes the relevant data of the lighting in the scene, including the data of the light source object, the objects affected by the lighting, and the environmental auxiliary lighting.

[0072] S102: performing light rendering processing on the data to be processed based on the optimized light model to obtain light rendering data;

[0073] Lighting rendering data is used to represent the rendering data of lighting in a large scene;

[0074] The optimized lighting model is:

[0075] I=I a K a +∑I l [K d (N·S)+K s e -n|H| ], where I is the light intensity at a certain point, I a ,I l are the ambient light and direct light intensity of the light source respectively; K a , K d , K s are the ambient light, diffuse scattered light and specular reflection light coefficients respectively; N, S represent the unit vectors of the surface normal of the object and the incident direction of the light respectively; N, S represent the unit vectors of the surface normal of the object and the incident direction of the light respectively; n is the reflectivity of the object; H represents the unit vector of the similarity between the light reflection direction and the line of sight direction,

[0076] According to the geometric relationship of the law of reflection,

[0077] R×N=N×S,

[0078] (V×N)-(R×N)=(VR)×N=(V×N)-(N×S)=(V+s)×N=H×N,

[0079] It can be further obtained that (VR)×N=H×N, and the vector H represents the difference between the vector R and the vector V.

[0080] In an optional embodiment of the present application, the Phong illumination model is optimized by using the coefficient e -n|H| Instead of the coefficient (R·V) n During the calculation process, the coefficient decays with a natural exponential function, and the glossiness n only needs to be 1 / 8 to 1 / 4 of the Phong lighting model, which is 1 / 32 to 1 / 8 of the Blinn-Phong lighting model, saving the amount of calculation. And the vector H completely represents the difference between the vector R and the vector V, making the lighting effect of the optimized lighting model more realistic than the above-mentioned Blinn-Phong lighting model, while also avoiding the lighting truncation or excessive unnatural phenomenon of the Phong lighting model. When performing large-scene lighting simulation, such as the three-dimensional simulation of airport lighting, the technical effect of improving rendering efficiency and simulation is achieved.

[0081] In an optional embodiment of the present application, the scene lighting is rendered by optimizing the lighting model, and calculations are performed according to the optimized lighting model. The embodiment of the present application provides light color attributes, light attenuation attributes, and light angle attributes after optimizing the lighting model. Figure 3 The light color attribute table after the optimized lighting model provided in this application, where r is the red channel, g is the green channel, and b is the blue channel; Figure 4 This is the light attenuation attribute table after optimizing the lighting model provided in this application. c , A l , A q They represent the constant term, linear term and quadratic term parameters of attenuation respectively, and d represents the distance between the position of the fixed-point light and a point on the surface of the object; Figure 5 This is the light angle attribute table after the optimized illumination model provided in this application, where φ and γ represent the angles of the inner cone and the outer cone respectively.

[0082] In some optional embodiments of the present application, a data processing method for lighting simulation is proposed. Figure 2 A flowchart of a data processing method for lighting simulation provided in this application, such as Figure 2 As shown, the method comprises the following steps:

[0083] S201: performing recognition processing on the data to be processed based on illumination features to obtain active illumination data and passive illumination data;

[0084] Active illumination data is illumination data used to represent a light source, and passive illumination data is illumination data used to represent an illuminated object.

[0085] S202: performing light rendering processing on the active lighting data based on the optimized lighting model to obtain active lighting rendering feature data;

[0086] Active lighting rendering feature data is feature data used to represent light source lighting rendering.

[0087] In some optional embodiments of the present application, a data processing method for lighting simulation is proposed, comprising:

[0088] Performing identification processing based on light source characteristics on the active illumination data to obtain first light source characteristic data, second light source characteristic data and third light source characteristic data, wherein the first light source characteristic data is characteristic data for representing a directional light source, the second light source characteristic data is characteristic data for representing a fixed point light source, and the third light source characteristic data is characteristic data for representing a spotlight light source;

[0089] The first light source characteristic data is subjected to a first lighting rendering process based on the optimized lighting model to obtain first active lighting rendering characteristic data; the second light source characteristic data is subjected to a second lighting rendering process based on the optimized lighting model to obtain second active lighting rendering characteristic data; the third light source characteristic data is subjected to a third lighting rendering process based on the optimized lighting model to obtain third active lighting rendering characteristic data; the lighting rendering characteristic data is obtained according to the first active lighting rendering characteristic data, the second active lighting rendering characteristic data and the third active lighting rendering characteristic data.

[0090] S203: performing light rendering processing on the passive lighting data based on the optimized lighting model to obtain passive lighting rendering feature data;

[0091] The passive lighting rendering feature data is feature data used to represent the lighting rendering of the illuminated object.

[0092] S204: Obtaining lighting rendering data according to the active lighting rendering feature data and the passive lighting rendering feature data.

[0093] In an optional embodiment of the present application, rendering is performed based on the above-mentioned optimized lighting model through a three-dimensional simulation platform. The OpenSceneGraph (OSG) three-dimensional simulation platform can be used for rendering. The lighting effects of the three light sources of directional light, fixed-point light, and spotlight, as well as the rendering effects of objects affected by the lighting are calculated according to the above-mentioned optimized lighting model. The calculation equations of the lighting effects of the above three light sources and the rendering effects of the luminous objects are handed over to the GPU through the shader for effect rendering. In an optional embodiment of the present application, the calculation of the lighting effects of the three light sources and the rendering effects of the luminous objects are handed over to the GPU to complete, thereby improving the rendering efficiency of the lighting effects. This makes the system smoother during operation, reduces the phenomenon of jamming, and improves the clarity and accuracy of the simulated vision in order to obtain a clear and accurate visual environment during simulated flight.

[0094] S103: Performing environment light rendering processing on the data to be processed to obtain environment light rendering data;

[0095] The ambient light rendering data is rendering data used to represent the ambient light in a large scene.

[0096] In some optional embodiments of the present application, a data processing method for lighting simulation is proposed, including: identifying data to be processed to obtain ambient lighting data, the ambient lighting data being lighting data for representing non-lighting; performing halo effect generation processing on the ambient lighting data to obtain halo texture data and self-luminous feature data, wherein the halo texture data is data for representing a halo effect map texture, and the self-luminous feature data is feature data for representing halo self-luminescence; performing ambient lighting rendering processing on the halo texture data and the self-luminous feature data to obtain ambient lighting rendering data.

[0097] In an optional embodiment of the present application, a corresponding halo effect map texture is produced according to the ambient light data. For example, the halo effect map texture produced by external DDC software is imported into the engine, and the self-luminous effect of the halo is controlled by using its own shader to assist in simulating the scene lighting effect. Since the self-luminous effect and halo do not participate in the actual lighting, the impact on the rendering performance is small, and the halo effect seen by the human eye can be simulated.

[0098] S104: Simulate the illumination rendering data and the environment light rendering data to obtain light simulation result data.

[0099] In some optional embodiments of the present application, a data processing method for light simulation is proposed. After simulating the illumination rendering data and the environment light rendering data to obtain the light simulation result data, the method further includes:

[0100] The simulation result data is subjected to operation feature extraction processing to obtain operation feature data, wherein the operation feature data is feature data for representing the operation status of the large-scene lighting simulation system; the simulation result data is subjected to display feature extraction processing to obtain display feature data, wherein the display feature data is feature data for representing the lighting display of the large-scene lighting simulation system; and the lighting simulation evaluation data is generated according to the operation feature data and the display feature data.

[0101] The large-scene lighting simulation system is run through a three-dimensional simulation platform. During the operation of the large-scene lighting system, display feature data and frame rate (Frame Rate) are extracted, and operation feature data are extracted. The operation feature data includes the number of graphics rendering interface calls (DrawCall) and GPU load. Lighting simulation evaluation data is generated based on the above display feature data and operation feature data.

[0102] The DrawCall value is the CPU's call to the underlying graphics drawing interface to command the GPU to perform rendering operations. When the DrawCall value is too large, the CPU will consume more overhead to prepare for work, affecting rendering performance. Too many DrawCalls will cause CPU rendering performance bottlenecks, GPU idleness, and waste rendering resources. The GPU load reflects the time required for rendering lighting, and the frame rate is severely reduced when a large number of lights interact with each other. Frame Rate The frame rate of the video per second. Due to the special structure of the human eye, if the frame rate is greater than 16 frames per second, the picture can be considered coherent. However, for three-dimensional dynamic pictures, it needs to be controlled at 60 frames per second or above to achieve a comfortable visual sensory experience.

[0103] In some optional embodiments of the present application, a data processing device for light simulation is proposed, which is applied to a large-scene light simulation system to realize light simulation in a large scene. Figure 6 A schematic diagram of a data processing device for lighting simulation provided in this application, such as Figure 6 As shown, including:

[0104] A data acquisition module 31 is used to acquire data to be processed, wherein the data to be processed is relevant data for representing large-scene lighting simulation;

[0105] The lighting rendering module 32 is used to perform lighting rendering processing on the data to be processed based on the optimized lighting model to obtain lighting rendering data, wherein the lighting rendering data is rendering data used to represent the lighting lights in the large scene;

[0106] An environment light rendering module 33 is used to perform environment light rendering processing on the data to be processed to obtain environment light rendering data, wherein the environment light rendering data is rendering data used to represent the environment light in the large scene;

[0107] The simulation module 34 is used to perform simulation processing on the illumination rendering data and the environment light rendering data to obtain light simulation result data.

[0108] Figure 7 A schematic diagram of a data processing device for lighting simulation provided in this application, such as Figure 7 As shown, including:

[0109] The identification module 41 is used to perform identification processing on the data to be processed based on the illumination characteristics to obtain active illumination data and passive illumination data, wherein the active illumination data is illumination data used to represent the light source, and the passive illumination data is illumination data used to represent the illuminated object;

[0110] An active lighting rendering module 42 is used to perform light rendering processing on the active lighting data based on an optimized lighting model to obtain active lighting rendering feature data, wherein the active lighting rendering feature data is feature data used to represent light source lighting rendering;

[0111] A passive lighting rendering module 43 is used to perform light rendering processing on the passive lighting data based on an optimized lighting model to obtain passive lighting rendering feature data, wherein the passive lighting rendering feature data is feature data used to represent lighting rendering of an illuminated object;

[0112] The rendering result module 44 is used to obtain lighting rendering data according to the active lighting rendering feature data and the passive lighting rendering feature data.

[0113] The specific manner of executing the operation of each unit in the above embodiment has been described in detail in the embodiment of the method, and will not be elaborated here.

[0114] In summary, in the present application, the data to be processed is obtained, wherein the data to be processed is relevant data for representing large-scene lighting simulation; the data to be processed is subjected to lighting rendering processing based on an optimized lighting model to obtain lighting rendering data, wherein the lighting rendering data is rendering data for representing lighting in a large scene; the data to be processed is subjected to ambient lighting rendering processing to obtain ambient lighting rendering data, wherein the ambient lighting rendering data is rendering data for representing ambient lighting in a large scene; the lighting rendering data and the ambient lighting rendering data are subjected to simulation processing to obtain lighting simulation result data. By optimizing the lighting model, lighting rendering is performed on luminous objects based on the optimized lighting model, and the rendering of luminous objects and halo effects is combined, dynamic simulation of lighting in large-scale lighting scenes is achieved, the problem of poor large-scene lighting simulation effects in the prior art is solved, and the technical effect of improving simulation degree and rendering efficiency is achieved.

[0115] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0116] Obviously, those skilled in the art should understand that the above-mentioned units or steps of the present application can be implemented by a general-purpose computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. In this way, the present application is not limited to any specific combination of hardware and software.

[0117] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. A data processing method for lighting simulation, characterized in that: Applied to a large scene lighting simulation system to achieve lighting simulation in a large scene, the method includes: Acquire data to be processed, wherein the data to be processed is relevant data for representing large-scene lighting simulation; Performing light rendering processing on the data to be processed based on an optimized light model to obtain light rendering data, wherein the light rendering data is rendering data used to represent light in a large scene; Performing environment light rendering processing on the data to be processed to obtain environment light rendering data, wherein the environment light rendering data is rendering data used to represent the environment light in a large scene; The illumination rendering data and the environment light rendering data are simulated to obtain light simulation result data.

2. The data processing method according to claim 1, characterized in that: The data to be processed is subjected to light rendering processing based on an optimized light model, and the light rendering data obtained includes: Performing identification processing based on illumination features on the data to be processed to obtain active illumination data and passive illumination data, wherein the active illumination data is illumination data for representing a light source, and the passive illumination data is illumination data for representing an illuminated object; Performing light rendering processing based on an optimized light model on the active light data to obtain active light rendering feature data, wherein the active light rendering feature data is feature data for representing light source light rendering; Performing light rendering processing based on an optimized light model on the passive light data to obtain passive light rendering feature data, wherein the passive light rendering feature data is feature data used to represent light rendering of an illuminated object; The lighting rendering data is obtained according to the active lighting rendering feature data and the passive lighting rendering feature data.

3. The data processing method according to claim 2, characterized in that: The active lighting data is subjected to light rendering processing based on an optimized lighting model to obtain active lighting rendering feature data including: Performing identification processing based on light source characteristics on the active illumination data to obtain first light source characteristic data, second light source characteristic data and third light source characteristic data, wherein the first light source characteristic data is characteristic data for representing a directional light source, the second light source characteristic data is characteristic data for representing a fixed point light source, and the third light source characteristic data is characteristic data for representing a spotlight light source; Performing a first light rendering process based on an optimized lighting model on the first light source characteristic data to obtain first active lighting rendering characteristic data; Performing a second light rendering process based on an optimized lighting model on the second light source characteristic data to obtain second active lighting rendering characteristic data; Performing a third light rendering process based on an optimized lighting model on the third light source characteristic data to obtain third active lighting rendering characteristic data; The lighting rendering feature data is obtained according to the first active lighting rendering feature data, the second active lighting rendering feature data and the third active lighting rendering feature data.

4. The data processing method according to claim 1, characterized in that: Performing environmental light rendering processing on the data to be processed to obtain environmental light rendering data includes: Identifying the data to be processed to obtain ambient light data, wherein the ambient light data is light data for indicating non-lighting; Performing halo effect generation processing on the ambient light data to obtain halo texture data and self-luminous feature data, wherein the halo texture data is data used to represent halo effect map texture, and the self-luminous feature data is feature data used to represent halo self-luminescence; Performing ambient light rendering processing on the halo texture data and the self-luminous feature data to obtain the ambient light rendering data.

5. The data processing method according to claim 1, characterized in that: After simulating the illumination rendering data and the environment light rendering data to obtain light simulation result data, the method further includes: Performing operation feature extraction processing on the simulation result data to obtain operation feature data, wherein the operation feature data is feature data used to represent the operation state of the large-scene lighting simulation system; Performing display feature extraction processing on the simulation result data to obtain display feature data, wherein the display feature data is feature data used to represent the light display of the large-scene light simulation system; Lighting simulation evaluation data is generated according to the operation characteristic data and the display characteristic data.

6. The data processing method according to claim 1, characterized in that: The optimized illumination model is: I=I a K a +∑I l [K d (N·S)+K s e -n|H| ], where I is the light intensity at a certain point, I a ,I l are the ambient light and direct light intensity of the light source respectively; K a , K d , K s They are the coefficients of ambient light, diffuse scattered light and specular reflection light respectively; N, S represent the unit vectors of the surface normal of the object and the direction of incident light respectively; N, S represent the unit vectors of the surface normal of the object and the direction of incident light respectively; n is the reflectivity of the object; H represents the unit vector of the similarity between the light reflection direction and the line of sight direction.

7. A data processing device for lighting simulation, characterized in that: Applied to a large scene lighting simulation system to achieve lighting simulation in a large scene, the device comprises: A data acquisition module, used to acquire data to be processed, wherein the data to be processed is relevant data for representing large-scene lighting simulation; A lighting rendering module, used for performing lighting rendering processing on the data to be processed based on an optimized lighting model to obtain lighting rendering data, wherein the lighting rendering data is rendering data used to represent lighting in a large scene; An environment light rendering module, used for performing environment light rendering processing on the data to be processed to obtain environment light rendering data, wherein the environment light rendering data is rendering data used to represent the environment light in a large scene; The simulation module is used to perform simulation processing on the illumination rendering data and the environment light rendering data to obtain light simulation result data.

8. The data processing device according to claim 7, characterized in that: Lighting rendering module, including: an identification module, used for performing identification processing on the data to be processed based on illumination features to obtain active illumination data and passive illumination data, wherein the active illumination data is illumination data for representing a light source, and the passive illumination data is illumination data for representing an illuminated object; An active lighting rendering module, used for performing light rendering processing on the active lighting data based on an optimized lighting model to obtain active lighting rendering feature data, wherein the active lighting rendering feature data is feature data for representing light source lighting rendering; A passive lighting rendering module, used for performing light rendering processing on the passive lighting data based on an optimized lighting model to obtain passive lighting rendering feature data, wherein the passive lighting rendering feature data is feature data used to represent lighting rendering of an illuminated object; A rendering result module is used to obtain the lighting rendering data according to the active lighting rendering feature data and the passive lighting rendering feature data.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the data processing method for light simulation according to any one of claims 1 to 6.

10. An electronic device, characterized in that: include: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor executes the data processing method for lighting simulation according to any one of claims 1 to 6.