Light source control method and device and storage medium
Through adaptive lighting algorithms and dynamic light source simulation, the dynamic characteristics of airport and aircraft light sources are determined, and the problems of insufficient realism and performance of lighting systems in the existing technology are solved, and efficient and real-time lighting simulation effects are achieved to meet the needs of flight training and airport operation simulation.
Patent Information
- Application Number
- CN202510147303.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-10
- Publication Date
- 2025-04-11
AI Technical Summary
The night lighting systems of existing airports and flight simulation scenarios have shortcomings in terms of reality and performance, and it is difficult to restore the physical propagation characteristics and environmental interaction characteristics of light. The calculation overhead in large-scale multi-light source renderings leads to a decrease in frame rate and affects the real-time performance of the system.
Adaptive lighting algorithm is used to determine the dynamic characteristics of airport light sources, and dynamic light source simulation is used to determine the dynamic characteristics of aircraft light sources, improving the real-time interaction between the lighting effect and the environment. Through frame rate optimization and resource management, the system's real-time and coherence are improved.
Provide more realistic, accurate and efficient lighting simulation effects, improve the real-time and coherence of the system, and meet the needs of flight training and airport operation simulation.
Smart Images

Figure CN119815636A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the fields of computer vision and graphics, and in particular to a light source control method, a light source control device, and a computer-readable storage medium. Background Art
[0002] With the development of international air transportation and the advancement of smart airports, flight simulation and airport simulation systems play an increasingly important role in improving training effects and airport operation management. However, the current night lighting systems of airports and flight simulation scenes have obvious deficiencies in realism and performance. Existing technologies mostly use static rendering or simple light source simulation, which makes it difficult to restore the physical propagation characteristics and environmental interaction characteristics of light. At the same time, the lights of airport buildings lack the ability to interact with the environment in real time. In addition, complex multi-light source scenes place high demands on rendering performance, but existing methods are prone to excessive computational overhead in large-scale multi-light source rendering, resulting in a decrease in the frame rate of the rendering, affecting the real-time performance of the system. Moreover, it is difficult to balance high precision and high performance in lighting rendering, and it is difficult to meet the needs of flight training and airport operation simulation.
[0003] In order to overcome the above-mentioned defects of the prior art, the art urgently needs an improved light source control method to provide a more realistic, accurate and efficient lighting simulation effect, enhance the real-time interaction capability of the lighting effect and the environment, and improve the real-time and continuity of the system while ensuring the lighting rendering effect, so as to meet the needs of flight training and airport operation simulation. Summary of the invention
[0004] A brief summary of one or more aspects is given below to provide a basic understanding of these aspects. This summary is not an exhaustive overview of all conceived aspects, and is neither intended to identify the key or decisive elements of all aspects nor to define the scope of any or all aspects. Its only purpose is to give some concepts of one or more aspects in a simplified form as a prelude to a more detailed description that will be given later.
[0005] In order to overcome the above-mentioned defects in the prior art, the present invention provides a light source control method, a light source control device and a computer-readable storage medium, which can determine the dynamic characteristics of the airport light source by adopting an adaptive lighting algorithm, and determine the dynamic characteristics of the aircraft light source by using dynamic light source simulation, so as to provide a more realistic, accurate and efficient lighting simulation effect. In addition, the airport environment interaction optimization can be performed to improve the real-time interaction capability between the lighting effect and the environment. In addition, frame rate optimization and resource management can be performed to improve the real-time and continuity of the system while ensuring the lighting rendering effect, thereby meeting the needs of flight training and airport operation simulation.
[0006] Specifically, the light source control method provided according to the first aspect of the present invention comprises the following steps: obtaining environmental data of the airport and dynamic parameters of the aircraft. The environmental data at least includes the natural light intensity, weather conditions and object reflectivity of the airport, and the dynamic parameters at least include the attitude, speed and flight trajectory of the aircraft; determining the first dynamic characteristics of at least one airport light source according to the environmental data; determining the second dynamic characteristics of at least one aircraft light source according to the dynamic parameters; and simulating the lighting effects corresponding to the airport environment and the aircraft operating status according to the first dynamic characteristics and the second dynamic characteristics.
[0007] Furthermore, in some embodiments of the present invention, the first dynamic characteristic includes at least the brightness, color temperature and light and shadow characteristics of the airport light source. The step of determining the first dynamic characteristic of at least one airport light source according to the environmental data includes: determining the brightness L of the airport light source according to the luminous flux of the airport light source and the area illuminated by the airport light source:
[0008]
[0009] Where, I is the luminous flux of the airport light source. A is the area illuminated by the airport light source. According to the weather conditions of the airport, the color temperature T of the airport light source is determined:
[0010] T=T0+ΔT
[0011] Wherein, T0 is the reference color temperature under the weather conditions; ΔT is the color temperature deviation; and the light and shadow characteristics of the airport light source are determined according to the natural light intensity and the object reflectivity.
[0012] Furthermore, in some embodiments of the present invention, the light and shadow characteristics at least include the reflected light intensity and the refracted light angle of the light of the airport light source on the surface of the object. The step of determining the light and shadow characteristics of the airport light source according to the natural light intensity and the object reflectivity includes: determining the reflected light intensity I according to the natural light intensity and the object reflectivity. reflected :
[0013] I reflected =I incident ×ρ
[0014] Among them, I incident is the natural light intensity. ρ is the reflectivity of the object; and the refracted light angle is determined according to the incident angle, the outgoing angle, and the refractive index of the incident object and the outgoing object of the airport light source:
[0015] n1sinθ1=n2sinθ2
[0016] Wherein, n1 is the refractive index of the incident object, n2 is the refractive index of the outgoing object, θ1 is the incident angle of the airport light source, and θ2 is the outgoing angle of the airport light source.
[0017] Furthermore, in some embodiments of the present invention, after determining the first dynamic characteristic of at least one airport light source based on the environmental data, the light source control method also includes the following steps: determining the geometric shape and material characteristics of each of the airport light sources based on the first dynamic characteristic; and simulating the lighting effects produced by each of the airport light sources based on the geometric shape and the material characteristics.
[0018] Furthermore, in some embodiments of the present invention, the step of determining the second dynamic characteristic of at least one aircraft light source based on the dynamic parameters includes: obtaining the light intensity, color characteristics, light propagation angle and light flickering frequency of the aircraft light source; and adjusting at least one of the light intensity, color characteristics, light propagation angle and light flickering frequency of the aircraft light source based on the dynamic parameters.
[0019] Furthermore, in some embodiments of the present invention, the step of adjusting the light flashing frequency of the aircraft light source includes: establishing a timeline corresponding to the operation process of the aircraft; determining a time range of the timeline according to the operation time of the aircraft, and setting the light flashing frequencies of multiple ordinary frames of the timeline within the time range; and determining at least one key frame of the timeline according to the operation status of the aircraft, and adjusting the light flashing frequency of the key frame.
[0020] Furthermore, in some embodiments of the present invention, the light source control method also includes the following steps: obtaining the motion state of multiple objects in the airport; and determining the first dynamic characteristics and the second dynamic characteristics of the light of each of the airport light sources and each of the aircraft light sources on the surface of the moving object and the static object according to the motion state of each of the objects.
[0021] In addition, the light source control device provided according to the second aspect of the present invention includes a memory and a processor. The memory stores computer instructions. The processor is connected to the memory and is used to execute the computer instructions stored in the memory to implement the light source control method provided by the first aspect of the present invention.
[0022] Furthermore, in some embodiments of the present invention, the processor includes a sensor module, an adaptive illumination adjustment module, and a dynamic light source simulation module. The sensor module is used to obtain environmental data of the airport. The adaptive illumination adjustment module is used to determine a first dynamic characteristic of the airport light source according to the environmental data. The dynamic light source simulation module is used to obtain dynamic parameters of the aircraft, and determine a second dynamic characteristic of the aircraft light source according to the dynamic parameters.
[0023] Furthermore, in some embodiments of the present invention, the processor also includes an environmental interaction optimization module, which is used to respectively determine the first dynamic characteristics and the second dynamic characteristics of the light of the airport light source and the aircraft light source on the surfaces of moving objects and static objects, so as to update the lighting effects corresponding to the airport environment and the aircraft operating status.
[0024] In addition, the computer-readable storage medium provided in the third aspect of the present invention stores computer instructions, which, when executed by a processor, implement the light source control method provided in the first aspect of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] The above features and advantages of the present invention can be better understood after reading the detailed description of the embodiments of the present disclosure in conjunction with the following drawings. In the drawings, the components are not necessarily drawn to scale, and components with similar related properties or features may have the same or similar reference numerals.
[0026] Figure 1 A schematic structural diagram of a light source control device provided according to some embodiments of the present invention is shown.
[0027] Figure 2 A schematic flow chart of a light source control method provided according to some embodiments of the present invention is shown.
[0028] Reference numerals:
[0029] 10 Processor
[0030] 11 Sensor Module
[0031] 12 Adaptive Lighting Adjustment Module
[0032] 13 Dynamic light source simulation module
[0033] 14 Environmental Interaction Optimization Module
[0034] 15 Frame rate and resource management module
[0035] 20 Unreal Engine DETAILED DESCRIPTION
[0036] The following specific embodiments illustrate the implementation of the present invention, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. Although the description of the present invention will be introduced in conjunction with the preferred embodiment, this does not mean that the features of this invention are limited to this implementation. On the contrary, the purpose of introducing the invention in conjunction with the implementation is to cover other options or modifications that may be extended based on the claims of the present invention. In order to provide a deep understanding of the present invention, the following description will include many specific details. The present invention can also be implemented without using these details. In addition, in order to avoid confusion or blurring the focus of the present invention, some specific details will be omitted in the description.
[0037] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0038] In addition, the terms "upper", "lower", "left", "right", "top", "bottom", "horizontal" and "vertical" used in the following description should be understood as the directions shown in the paragraph and the related drawings. Such relative terms are only used for the convenience of description and do not mean that the device described therein must be manufactured or operated in a specific direction, and therefore should not be understood as limiting the present invention.
[0039] It is understood that although the terms "first", "second", "third", etc. may be used herein to describe various components, regions, layers and / or parts, these components, regions, layers and / or parts should not be limited by these terms, and these terms are only used to distinguish different components, regions, layers and / or parts. Therefore, the first component, region, layer and / or part discussed below may be referred to as a second component, region, layer and / or part without departing from some embodiments of the present invention.
[0040] As mentioned above, the current night lighting systems of airports and flight simulation scenes have obvious deficiencies in realism and performance. Existing technologies mostly use static rendering or simple light source simulation, which makes it difficult to restore the physical propagation characteristics and environmental interaction characteristics of light. At the same time, the lights of airport buildings lack the ability to interact with the environment in real time. In addition, complex multi-light source scenes place high demands on rendering performance, but existing methods are prone to excessive computational overhead in large-scale multi-light source rendering, resulting in a decrease in the rendering frame rate, affecting the real-time performance of the system. Moreover, it is difficult to balance high precision and high performance in lighting rendering, and it is difficult to meet the needs of flight training and airport operation simulation.
[0041] In order to overcome the above-mentioned defects in the prior art, the present invention provides a light source control method, a light source control device and a computer-readable storage medium, which can determine the dynamic characteristics of the airport light source by adopting an adaptive lighting algorithm, and determine the dynamic characteristics of the aircraft light source by using dynamic light source simulation, so as to provide a more realistic, accurate and efficient lighting simulation effect. In addition, the airport environment interaction optimization can be performed to improve the real-time interaction capability between the lighting effect and the environment. In addition, frame rate optimization and resource management can be performed to improve the real-time and continuity of the system while ensuring the lighting rendering effect, thereby meeting the needs of flight training and airport operation simulation.
[0042] In some non-limiting embodiments, the light source control device provided in the second aspect of the present invention includes a memory and a processor. Here, the memory includes but is not limited to the computer-readable storage medium provided in the third aspect, on which computer instructions are stored. The processor is connected to the memory and is configured to execute the computer instructions stored in the memory to implement the light source control method provided in the first aspect of the present invention.
[0043] Please refer to Figure 1 . Figure 1 A schematic structural diagram of a light source control device provided according to some embodiments of the present invention is shown.
[0044] Further, in Figure 1 In the illustrated embodiment, the processor 10 includes a sensor module 11, an adaptive illumination adjustment module 12, and a dynamic light source simulation module 13. Here, the sensor module 11 is used to obtain environmental data of the airport. The adaptive illumination adjustment module 12 is used to determine the first dynamic characteristics of the airport light source according to the environmental data. The dynamic light source simulation module 13 is used to obtain dynamic parameters of the aircraft, and determine the second dynamic characteristics of the aircraft light source according to the dynamic parameters.
[0045] In addition, Figure 1 In the illustrated embodiment, the processor 10 further includes an environment interaction optimization module 14. Here, the environment interaction optimization module 14 is used to respectively determine the first dynamic characteristics and the second dynamic characteristics of the light of the airport light source and the aircraft light source on the surface of the moving object and the static object, so as to update the lighting effects corresponding to the airport environment and the aircraft operating status.
[0046] In addition, Figure 1In the illustrated embodiment, the processor 10 further includes a frame rate and resource management module 15. Here, the frame rate and resource management module 15 uses frame rate optimization and resource management technology, and improves system performance while ensuring the quality of light rendering through level of detail (LOD, Level of Detail), GPU parallel computing, adaptive resource allocation and partition loading mechanism, and ensures the real-time and continuity of light rendering.
[0047] In addition, Figure 1 In the illustrated embodiment, the light source control device may also be preferably configured with an unreal engine 20. Here, the unreal engine 20 may be combined with the sensor module 11, the adaptive illumination adjustment module 12, the dynamic light source simulation module 13, the environment interaction optimization module 14 and the frame rate and resource management module 15 in the processor 10 to simulate the airport environment and the aircraft operation state, and is used to simulate the lighting effects corresponding to the airport environment and the aircraft operation state according to the first dynamic characteristics and the second dynamic characteristics.
[0048] The working principle of the above-mentioned light source control device will be described below in conjunction with some embodiments of the light source control method. Those skilled in the art will understand that these embodiments of the light source control method are only some non-limiting implementation methods provided by the present invention, and are intended to clearly demonstrate the main concept of the present invention and provide some specific solutions that are convenient for the public to implement, rather than limiting all functions or all working modes of the light source control device. Similarly, the light source control device is also only a non-limiting implementation method provided by the present invention, and does not constitute a limitation on the execution subject and execution order of each step in these light source control methods.
[0049] Please refer to Figure 2 . Figure 2 A schematic flow chart of a light source control method provided according to some embodiments of the present invention is shown.
[0050] like Figure 2 As shown, the light source control device may first obtain the environmental data of the airport via the sensor module 11. Here, the environmental data at least includes the natural light intensity, weather conditions and object reflectivity of the airport.
[0051] Specifically, technicians can deploy multiple sensor modules 11 at multiple locations in the airport (for example, the edge of the runway, the top of the terminal). Here, the sensor module 11 can use the photoelectric effect to convert the optical signal into an electrical signal via a light sensor to measure the light intensity in lux (lx). For example, at noon on a sunny day, the center of the runway may collect light intensity data of 10000lx via a light sensor. In addition, the sensor module 11 can obtain real-time weather conditions (for example, sunny, cloudy, and rainy) from the weather station via a meteorological monitoring device. For example, the weather station feedback indicates that it is currently cloudy. In addition, the sensor module 11 can obtain the reflectivity of different objects via a specific reflectivity measuring device. For example, the reflectivity of the runway surface is about 0.2, that is, 20% of the light irradiated to the runway surface will be reflected.
[0052] Furthermore, the light source control device can implement data input through the blueprint visual script system in the Unreal Engine 20. Specifically, the light source control device can open the blueprint editor in the Unreal Engine 20 to create a new blueprint class, add variables such as "light intensity", "weather conditions", and "object reflectivity", and pass the above environmental data in through node connections. For example, the light sensor value can be passed to the "light intensity" variable through a custom "get light intensity" function node.
[0053] Those skilled in the art will appreciate that the above-mentioned embodiments of manually inputting environmental data by establishing nodes are merely some non-limiting implementation methods provided by the present invention, which are intended to clearly demonstrate the main concepts of the present invention and provide some specific solutions that are convenient for the public to implement, rather than to limit the scope of protection of the present invention.
[0054] Optionally, in other embodiments, those skilled in the art may also use C++ scripts to define data structures to store data and write function assignments to automatically input environmental data collected by the sensor module 11 into the Unreal Engine 20 .
[0055] Afterwards, if Figure 2 As shown, the light source control device can determine the first dynamic characteristic of at least one airport light source according to the environmental data via the adaptive lighting adjustment module 12 .
[0056] Furthermore, in some embodiments, the first dynamic characteristic at least includes brightness, color temperature and light and shadow characteristics of the airport light source.
[0057] Specifically, the adaptive illumination adjustment module 12 can determine the brightness L of the airport light source according to the luminous flux of the airport light source and the area illuminated by the airport light source:
[0058]
[0059] Where I is the luminous flux of the airport light source, in lumens (lm). A is the area illuminated by the airport light source, in square meters (m 2 ). Here, the brightness L of the airport light source refers to the radiation intensity of the light emitted by the airport light source per unit area, and the unit is lux (lx).
[0060] In addition, the adaptive illumination adjustment module 12 can also determine the color temperature T of the airport light source according to the weather conditions of the airport:
[0061] T=T0+ΔT
[0062] Among them, T0 is the reference color temperature under weather conditions, in Kelvin (K). For example, on a sunny day, the reference color temperature is about 5500K. ΔT is the color temperature deviation, which is the color temperature deviation caused by factors such as weather conditions. The color temperature T of the airport light source refers to the color of the light emitted by the airport light source, in Kelvin (K). The calculation of color temperature is related to the emission spectrum characteristics of the light source. Different weather conditions and object reflectivity will affect the calculation of color temperature.
[0063] In addition, the adaptive illumination adjustment module 12 can also determine the light and shadow characteristics of the airport light source according to the natural light intensity and the object reflectivity.
[0064] Furthermore, in some embodiments, the light and shadow characteristics include at least the reflected light intensity and refracted light angle of the light from the airport light source on the surface of the object, including the angle and intensity of the light reflected on the surface of the object and the changes in the light penetrating the transparent object.
[0065] Specifically, the adaptive illumination adjustment module 12 can determine the reflected light intensity I according to the natural illumination intensity and the object reflectivity. reflected :
[0066] I reflected =I incident ×ρ
[0067] Among them, I incident is the natural light intensity. ρ is the object reflectivity, that is, the proportion of light reflected from the object surface.
[0068] In addition, the adaptive illumination adjustment module 12 can also determine the refracted light angle according to the incident angle, the outgoing angle, and the refractive index of the incident object and the outgoing object of the airport light source:
[0069] n1sinθ1=n2sinθ2
[0070] Among them, n1 is the refractive index of the incident object, n2 is the refractive index of the outgoing object, θ1 is the incident angle of the airport light source, and θ2 is the outgoing angle of the airport light source.
[0071] In addition, in some preferred embodiments, the light source control device can also dynamically adjust the first dynamic characteristics of the airport light source according to the environmental data. Afterwards, the light source control device can also determine the geometric shape and material characteristics of each airport light source according to the first dynamic characteristics, and simulate the lighting effects generated by each airport light source through the Unreal Engine 20 according to the geometric shape and material characteristics.
[0072] For example, when the weather conditions are cloudy, the light source control device can reduce the brightness of the airport light source according to the scattering and absorption characteristics of the clouds to the light, and appropriately adjust the color temperature to make it cooler. For light and shadow characteristics, the light source control device can calculate the light reflection angle and intensity according to the reflectivity of the object to simulate the light and shadow details, and use the material and geometry modeling functions in the Unreal Engine 20 to simulate the geometry and material characteristics of the airport light source, such as simulating the reflection effect of the surface of metal material lamps. For example, in the early morning of the airport runway scene, the sensor module 11 collects 1000lx light intensity and the weather conditions are sunny. The light source control device can increase the brightness of the street lights on both sides of the runway and adjust it to a warm yellow temperature, thereby simulating the soft lighting effect in the early morning. At the same time, the light source control device can accurately calculate and simulate the reflection and scattered light and shadow of light on the surface of these objects according to the reflectivity of the runway surface and surrounding buildings, making the scene more realistic.
[0073] After that, if Figure 2 As shown, the light source control device can exchange data with the network communication interface of the flight simulation system via the dynamic light source simulation module 13 to obtain the dynamic parameters of the aircraft. Afterwards, the dynamic light source simulation module 13 can determine the second dynamic characteristics of at least one aircraft light source according to the dynamic parameters. Here, the above-mentioned dynamic parameters at least include the attitude (e.g., pitch angle, yaw angle, roll angle), speed and flight trajectory of the aircraft.
[0074] Specifically, the dynamic light source simulation module 13 can first obtain the light intensity, color characteristics, light propagation angle and light flickering frequency of the aircraft light source. For example, the light intensity of the aircraft landing light is 5000cd, the color is white, and the RGB value is 255, 255, 255, and the light propagation angle is 45°.
[0075] At the same time, the light source control device can use the light source object creation tool in the level editor of Unreal Engine 20 to add point light sources or spotlights to simulate the lighting effects of the aircraft, and can configure the luminous angle, color and brightness of the aircraft light source.
[0076] Afterwards, the dynamic light source simulation module 13 can adjust at least one of the light intensity, color characteristics, light propagation angle, and light flickering frequency of the aircraft light source according to the dynamic parameters, and manually or automatically associate the dynamic parameters with the dynamic characteristics of the aircraft light source using a blueprint or C++ script in the Unreal Engine 20 to facilitate dynamic and real-time adjustment thereof. For example, when the attitude of the aircraft changes, the dynamic light source simulation module 13 can adjust the light rotation angle to ensure the same direction. When the speed of the aircraft increases, the dynamic light source simulation module 13 can increase the light flickering frequency to simulate the dynamic effect of high-speed flight.
[0077] Furthermore, in the process of adjusting the light flickering frequency of the aircraft light source, the light source control device can establish a timeline corresponding to the operation process of the aircraft in the blueprint via the timeline tool in the Unreal Engine 20. Afterwards, the light source control device can determine the time range of the timeline according to the operation time of the aircraft, and set the light flickering frequency of multiple common frames of the timeline in the time range. Afterwards, the light source control device can determine at least one key frame of the timeline according to the operation status of the aircraft, and adjust the light flickering frequency of the key frame.
[0078] For example, the light source control device can set the time range of the time axis to 0 to 10 seconds. At 0 seconds, the light flashing frequency is 1 Hz, that is, flashing once per second, at 5 seconds, the frequency is adjusted to 2 Hz, and at 10 seconds, the frequency returns to 1 Hz.
[0079] In this way, the light source control device can dynamically adjust the flashing frequency of the aircraft light source according to the distance between the aircraft and the observation point. For example, in the simulation of aircraft takeoff, the aircraft accelerates and takes off from one end of the runway. As the speed of the aircraft increases, the flashing frequency of its landing lights gradually increases from the initial 1Hz to 3Hz, and the light intensity is appropriately attenuated according to the distance from the observation point.
[0080] Afterwards, the light source control device can simulate the lighting effects corresponding to the airport environment and the aircraft operating status according to the first dynamic characteristics and the second dynamic characteristics through the Unreal Engine 20.
[0081] In addition, in some preferred embodiments, the light source control module can also obtain the motion status of multiple objects in the airport, and according to the motion status of each object, determine the first dynamic characteristics and the second dynamic characteristics of the light of each airport light source and each aircraft light source on the surface of moving objects (for example: aircraft, vehicles, etc.) and static objects (for example: buildings, runway facilities, etc.).
[0082] Specifically, the light source control device can use the 3D modeling software to build a high-precision 3D model of the corresponding airport scene through the Unreal Engine 20. During the modeling process, the Unreal Engine 20 can depict various facilities in the airport including runways, terminals, control towers, etc. in detail to ensure that the geometric shape and details of the model are accurate. For example, when modeling the terminal, the Unreal Engine 20 can accurately restore its architectural structure, door and window positions, glass materials and other details.
[0083] Those skilled in the art will appreciate that the above-mentioned embodiments of modeling airport scenes using 3D modeling software are merely some non-limiting implementation methods provided by the present invention, which are intended to clearly demonstrate the main concepts of the present invention and provide some specific solutions that are convenient for the public to implement, rather than to limit the scope of protection of the present invention.
[0084] Optionally, in other embodiments, those skilled in the art may also import existing models into Unreal Engine 20.
[0085] Afterwards, Unreal Engine 20 can use the material editor to assign corresponding material properties to different parts of the model, such as assigning a rough asphalt material to the runway and a transparent material with reflective properties to the glass, so as to simulate real light reflection and refraction effects.
[0086] After that, Unreal Engine 20 can calculate the propagation path of light in the scene, including surface reflection, transmission and scattering, through the Lumen ray tracing system. In the scene setting, Unreal Engine 20 can set the parameters in the Lumen ray tracing system (e.g., ray tracing accuracy, number of reflections, etc.). For example, the ray tracing accuracy is set to high and the number of reflections is set to 5 times to ensure accurate simulation of light in complex scenes.
[0087] Furthermore, in some embodiments, when an object moves in the scene, such as when an airplane taxis on a runway, Unreal Engine 20 can monitor the position and state changes of the object in real time through the Lumen ray tracing system, and dynamically update the propagation path of light and the light and shadow effects. For example, when an airplane is taxiing, the reflected light on its fuselage surface will change in real time as the airplane moves, and the Lumen ray tracing system can accurately simulate the interaction between light and moving objects.
[0088] At the same time, the light source control device can use the dynamic rendering engine of Unreal Engine 20 to adjust the propagation path and intensity of light on the surface of moving objects and static objects in real time. Specifically, the light source control device can set appropriate rendering modes and parameters in the rendering settings. For example, the light source control device can select a delayed rendering mode to improve rendering efficiency.
[0089] In addition, in some optional embodiments, the light source control device can also dynamically adjust the intensity and color of the light according to the motion state and lighting conditions of the object by writing a blueprint or C++ script. For example, when the aircraft enters the shadow area of the terminal, the dynamic rendering engine automatically reduces the light intensity on the aircraft surface and adjusts the color to make it darker, simulating a real shadow effect. When the weather conditions are rainy, the waterlogged area on the runway will also produce realistic light and shadow changes due to the reflection and refraction of light, accurately simulating the interaction between light and various objects.
[0090] In this way, the light source control device provided in the second aspect of the present invention can further enhance the overall interaction effect between the light and the airport scene via the environment interaction optimization module 14 .
[0091] In addition, in some preferred embodiments, the above-mentioned light source control method provided in the first aspect of the present invention can adopt frame rate optimization and resource management technology through the frame rate and resource management module 15, through the detail level technology (LOD, Level of Detail), GPU parallel computing, adaptive resource allocation and partition loading mechanism, while ensuring the quality of light rendering, the system performance is improved, and the real-time and continuity of light rendering are ensured.
[0092] Specifically, in terms of light source rendering optimization, the frame rate and resource management module 15 can apply detail level technology to long-distance light sources (for example, navigation lights far away from the airport) to reduce their computational complexity, thereby improving the rendering efficiency of the light source control device. The frame rate and resource management module 15 can create models with different levels of detail for multiple light sources. For example, the high-level-of-detail model in the navigation light model includes the texture of the lamp pole, the details of the light bulb, etc., while the low-level-of-detail model is simplified to a simple light point. At the same time, the Unreal Engine 20 can automatically switch models with different levels of detail according to the distance between the light source and the camera by setting LOD related parameters. For example, when the navigation light is far away from the camera, it automatically switches to a low-level-of-detail model, thereby reducing computational complexity and improving rendering efficiency.
[0093] In addition, the frame rate and resource management module 15 can also optimize the lighting rendering efficiency by using the GPU parallel computing technology of the Niagara particle system. In the Unreal Engine 20, by setting a rendering pipeline, the lighting rendering task is assigned to multiple cores of the GPU for parallel processing to ensure high frame rate performance in complex scenes.
[0094] Furthermore, in some preferred embodiments, the frame rate and resource management module 15 cooperates with the environment interaction optimization module 14 and the Unreal Engine 20, and uses the Niagara particle system in combination with the Lumen ray tracing system to achieve dynamic coupling rendering of particle effects and ambient light, thereby improving the authenticity of the overall light and shadow interaction.
[0095] In addition, the frame rate and resource management module 15 can also monitor the system load in real time (for example, CPU and GPU usage, memory usage, etc.) based on the adaptive resource allocation algorithm. In the Unreal Engine 20, these data are obtained by calling the system performance monitoring function. For example, using the performance analysis tool provided by the Unreal Engine 20, the current CPU usage is 70% and the GPU usage is 80%. Dynamically adjust computing resources according to system load and operating requirements. For example, when the system detects a large number of complex light and shadow calculation tasks, such as rendering multiple aircraft lights and complex environmental reflection effects at the same time, more GPU resources are automatically allocated to the lighting rendering module to ensure that the rendering task can be completed efficiently.
[0096] In addition, the frame rate and resource management module 15 can also preload scene data in advance during the multi-scene switching process by using the partition loading mechanism of the Unreal Engine 20. For example, the Unreal Engine 20 can divide the airport scene into multiple areas, such as the runway area, the terminal area, the apron area, etc. The scene file of each area contains the model, texture, lighting and other data of the area. When the Unreal Engine 20 detects that it is about to switch to a certain area, it preloads the scene data of the area in advance. For example, when the aircraft takes off from the runway and flies towards the terminal, the Unreal Engine 20 can preload the scene data of the terminal area in advance, including the 3D model of the terminal, the internal lighting settings, etc. In this way, the frame rate and resource management module 15 can optimize the resource scheduling during the scene switching process, avoid the screen freeze phenomenon caused by data loading delay, and ensure that the pilot can immerse himself in a coherent and realistic lighting environment for training or simulated flight.
[0097] In this way, the light source control device provided in the second aspect of the present invention can improve the performance of the system while ensuring the quality of light rendering through the frame rate and resource management module.
[0098] In summary, the above-mentioned light source control method, light source control device and computer-readable storage medium provided by the present invention can determine the dynamic characteristics of the airport light source by adopting an adaptive lighting algorithm, and determine the dynamic characteristics of the aircraft light source by using dynamic light source simulation, so as to provide a more realistic, accurate and efficient lighting simulation effect. Moreover, by optimizing the interaction with the airport environment, it is used to improve the real-time interaction capability between the lighting effect and the environment. In addition, by performing frame rate optimization and resource management, it is used to improve the real-time and continuity of the system while ensuring the lighting rendering effect, thereby meeting the needs of flight training and airport operation simulation.
[0099] Although the above methods are illustrated and described as a series of actions for simplicity of explanation, it should be understood and appreciated that these methods are not limited by the order of the actions, because according to one or more embodiments, some actions may occur in a different order and / or concurrently with other actions from those illustrated and described herein or not illustrated and described herein but understandable to those skilled in the art.
[0100] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. The software module may reside in a RAM memory, a flash memory, a ROM memory, an EPROM memory, an EEPROM memory, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to a processor so that the processor can read and write information from / to the storage medium. In an alternative, a storage medium may be integrated into a processor. The processor and the storage medium may reside in an ASIC. The ASIC may reside in a user terminal. In an alternative, the processor and the storage medium may reside in a user terminal as discrete components.
[0101] In one or more exemplary embodiments, the functions described may be implemented in hardware, software, firmware, or any combination thereof. If implemented as a computer program product in software, each function may be stored on or transmitted by a computer-readable medium as one or more instructions or codes. Computer-readable media include both computer storage media and communication media, including any medium that facilitates the transfer of a computer program from one place to another. Storage media may be any available medium that can be accessed by a computer. As an example and not limitation, such a computer-readable medium may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, disk storage or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of an instruction or data structure and can be accessed by a computer. Any connection is also properly referred to as a computer-readable medium. For example, if the software is transmitted from a website, a server, or other remote source using a coaxial cable, a fiber optic cable, a twisted pair, a digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwaves, the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwaves are included in the definition of the medium. Disk and disc as used herein include compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk and Blu-ray disc, wherein disk often reproduces data magnetically, while disc reproduces data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.
[0102] The previous description of the disclosure is provided to enable any person skilled in the art to make or use the disclosure. Various modifications to the disclosure will be apparent to those skilled in the art, and the general principles defined herein may be applied to other variations without departing from the spirit or scope of the disclosure. Thus, the disclosure is not intended to be limited to the examples and designs described herein, but should be granted the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A light source control method, characterized in that: The following steps are involved: Acquire environmental data of the airport and dynamic parameters of the aircraft, wherein the environmental data at least includes the natural light intensity, weather conditions and object reflectivity of the airport, and the dynamic parameters at least include the attitude, speed and flight trajectory of the aircraft; determining a first dynamic characteristic of at least one airfield light source based on the environmental data; determining a second dynamic characteristic of at least one aircraft light source based on the dynamic parameter; as well as According to the first dynamic characteristic and the second dynamic characteristic, the lighting effect corresponding to the airport environment and the aircraft operation status is simulated.
2. The light source control method according to claim 1, characterized in that: The first dynamic characteristic includes at least brightness, color temperature and light and shadow characteristics of the airport light source, and the step of determining the first dynamic characteristic of at least one airport light source according to the environmental data includes: According to the luminous flux of the airport light source and the area illuminated by the airport light source, the brightness l of the airport light source is determined: Wherein, I is the luminous flux of the airport light source, and A is the area illuminated by the airport light source; According to the weather conditions of the airport, the color temperature T of the airport light source is determined: T=T0+ΔT Wherein, T0 is the reference color temperature under the weather conditions, and ΔT is the color temperature deviation; and The light and shadow characteristics of the airport light source are determined according to the natural light intensity and the object reflectivity.
3. The light source control method according to claim 2, characterized in that: The light and shadow characteristics at least include the reflected light intensity and the refracted light angle of the light of the airport light source on the surface of the object. The step of determining the light and shadow characteristics of the airport light source according to the natural light intensity and the reflectivity of the object includes: According to the natural light intensity and the object reflectivity, the reflected light intensity I is determined. reflected : I reflected =I incident ×ρ Among them, I incident is the natural light intensity, ρ is the object reflectivity; and The refracted light angle is determined according to the incident angle, the outgoing angle, and the refractive index of the incident object and the outgoing object of the airport light source: n1sinθ1=n2sinθ2 Wherein, n1 is the refractive index of the incident object, n2 is the refractive index of the outgoing object, θ1 is the incident angle of the airport light source, and θ2 is the outgoing angle of the airport light source.
4. The light source control method according to claim 1, characterized in that: After determining the first dynamic characteristic of at least one airport light source according to the environmental data, the light source control method further comprises the following steps: Determining the geometric shape and material characteristics of each of the airport light sources according to the first dynamic characteristics; and According to the geometric shape and the material characteristics, the lighting effects produced by the airport light sources are simulated.
5. The light source control method according to claim 1, characterized in that: The step of determining a second dynamic characteristic of at least one aircraft light source according to the dynamic parameter comprises: Obtaining the light intensity, color characteristics, light propagation angle and light flickering frequency of the aircraft light source; and At least one of the light intensity, color characteristics, light propagation angle, and light flashing frequency of the aircraft light source is adjusted according to the dynamic parameters.
6. The light source control method according to claim 5, characterized in that: The step of adjusting the light flashing frequency of the aircraft light source comprises: Establishing a timeline corresponding to the operation process of the aircraft; Determining a time range of the time axis according to the operation time of the aircraft, and setting light flashing frequencies of a plurality of common frames of the time axis within the time range; and At least one key frame of the timeline is determined according to the operating state of the aircraft, and the light flashing frequency of the key frame is adjusted.
7. The light source control method according to claim 1, characterized in that: The following steps are also included: Acquiring motion states of multiple objects in the airport; and According to the motion state of each of the objects, the first dynamic characteristics and the second dynamic characteristics of the light of each of the airport light sources and each of the aircraft light sources on the surface of the moving object and the static object are determined respectively.
8. A light source control device, characterized in that: include: a memory having computer instructions stored thereon; as well as A processor is connected to the memory and is used to execute computer instructions stored in the memory to implement the light source control method according to any one of claims 1 to 7.
9. The light source control device according to claim 8, characterized in that: The processor comprises: Sensor module, used to obtain environmental data of the airport; an adaptive lighting adjustment module, configured to determine a first dynamic characteristic of an airport light source according to the environmental data; and The dynamic light source simulation module is used to obtain the dynamic parameters of the aircraft and determine the second dynamic characteristics of the aircraft light source according to the dynamic parameters.
10. The light source control device according to claim 8, characterized in that: The processor further comprises: The environment interaction optimization module is used to respectively determine the first dynamic characteristics and the second dynamic characteristics of the light of the airport light source and the aircraft light source on the surface of the moving object and the static object, so as to update the lighting effects corresponding to the airport environment and the aircraft operating status.
11. A computer-readable storage medium having computer instructions stored thereon, characterized in that: When the computer instructions are executed by a processor, the light source control method according to any one of claims 1 to 7 is implemented.