CN113987902A - Weather scene simulation method and device, electronic equipment and storage medium - Google Patents

Weather scene simulation method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113987902A
CN113987902A CN202111317057.0A CN202111317057A CN113987902A CN 113987902 A CN113987902 A CN 113987902A CN 202111317057 A CN202111317057 A CN 202111317057A CN 113987902 A CN113987902 A CN 113987902A
Authority
CN
China
Prior art keywords
weather
weather data
data
special effect
scene
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111317057.0A
Other languages
Chinese (zh)
Inventor
魏红震
李丹
周运彬
樊伟平
江彬
何高波
陈子申
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Arsc Underground Space Technology Development Co ltd
Original Assignee
Arsc Underground Space Technology Development Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Arsc Underground Space Technology Development Co ltd filed Critical Arsc Underground Space Technology Development Co ltd
Priority to CN202111317057.0A priority Critical patent/CN113987902A/en
Publication of CN113987902A publication Critical patent/CN113987902A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • G06F30/25Design optimisation, verification or simulation using particle-based methods

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • Geometry (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The application provides a weather scene simulation method and device, electronic equipment and a storage medium, and relates to the technical field of three-dimensional simulation. The method comprises the following steps: acquiring weather data; acquiring a weather special effect corresponding to the weather data according to the weather data; and synthesizing and displaying a three-dimensional simulated weather scene according to the weather special effect corresponding to the weather data. According to the method and the device, the three-dimensional simulated weather scene is synthesized through the weather special effect corresponding to the weather data, the virtual weather scene is combined with the reality, and the real weather scene is really and effectively restored, so that a user can feel the weather scene more really and can be used in other weather related fields.

Description

Weather scene simulation method and device, electronic equipment and storage medium
Technical Field
The invention relates to the technical field of three-dimensional simulation, in particular to a weather scene simulation method and device, electronic equipment and a storage medium.
Background
In recent years, in the construction process of smart cities, the construction of smart parks is a key ring. Current smart campus systems lack the presentation of real-time weather.
In the prior art, real weather is often simulated in an image, weather simulation is performed through setting of textures, colors and the like, two-dimensional features of the weather are simulated, and display is performed.
However, the existing two-dimensional display is simple and lacks authenticity.
Disclosure of Invention
The present invention provides a method, an apparatus, an electronic device and a storage medium for simulating a weather scene, so as to solve the problem of lack of reality in the simulated weather in the prior art.
In order to achieve the above purpose, the technical solutions adopted in the embodiments of the present application are as follows:
in a first aspect, an embodiment of the present application provides a weather scene simulation method, including:
acquiring weather data;
acquiring a weather special effect corresponding to the weather data according to the weather data;
and synthesizing and displaying a three-dimensional simulated weather scene according to the weather special effect corresponding to the weather data.
Optionally, the method further comprises:
and synthesizing the corresponding weather special effect for each type of weather data by adopting a three-dimensional particle system.
Optionally, the synthesizing, by using the three-dimensional particle system, a corresponding weather special effect for each type of weather data includes:
synthesizing a weather special effect corresponding to each type of weather data in the weather data by adopting a three-dimensional particle system according to the acquired weather data and storing the weather special effects; and/or the presence of a gas in the gas,
and calling weather data of a weather database, synthesizing weather special effects corresponding to each type of weather data by adopting a three-dimensional particle system, and storing.
Optionally, the obtaining, according to the weather data, a weather special effect corresponding to the weather data includes:
identifying the weather data, and determining at least one weather type contained in the weather data;
and determining the weather special effect corresponding to each weather type according to at least one weather type contained in the weather data.
Optionally, the synthesizing and displaying a three-dimensional simulated weather scene according to the weather special effect corresponding to the weather data includes:
analyzing and acquiring actual parameters of the weather data;
according to the actual parameters, adjusting the configuration parameters of the weather special effect corresponding to the weather data to obtain the adjusted weather special effect;
and synthesizing and displaying a three-dimensional simulated weather scene according to the adjusted weather special effect.
Optionally, the configuration parameters include at least one of: basic data configuration parameters, season configuration parameters, cloud configuration parameters, fog configuration parameters and audio configuration parameters.
Optionally, the method further comprises:
according to the weather data and the simulated weather scene, if a preset early warning condition is reached, matching and obtaining a corresponding early warning strategy;
and displaying the early warning strategy.
In a second aspect, an embodiment of the present application provides a weather scene simulation apparatus, including: the device comprises a first acquisition module, a second acquisition module and a synthesis module;
the first acquisition module is used for acquiring weather data;
the second acquisition module is used for acquiring a weather special effect corresponding to the weather data according to the weather data;
and the synthesis module is used for synthesizing and displaying a three-dimensional simulated weather scene according to the weather special effect corresponding to the weather data.
In a third aspect, an embodiment of the present application provides an electronic device, including: a processor, a storage medium storing a computer program operable on the processor, the processor executing the computer program to perform the method of any of the first aspects.
In a fourth aspect, an embodiment of the present application provides a storage medium having a computer program stored thereon, where the computer program is executed by a processor to perform the method according to any one of the above first aspects.
Compared with the prior art, the method has the following beneficial effects:
the embodiment of the application provides a weather scene simulation method, a weather scene simulation device, electronic equipment and a storage medium, wherein weather data are obtained firstly; secondly, acquiring a weather special effect corresponding to the weather data according to the weather data, and finally synthesizing and displaying a three-dimensional simulated weather scene according to the weather special effect corresponding to the weather data. According to the embodiment of the application, the corresponding weather special effect is obtained through the weather data, the weather special effect is a three-dimensional weather simulation unit and is close to the actual weather condition, then the three-dimensional simulated weather scene is synthesized according to all the weather special effects corresponding to the weather data, the virtual weather scene is combined with the reality, and the real weather scene is really and effectively restored, so that a user can feel the weather scene more really, and the weather scene can be used in other weather related fields.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a schematic flow chart of a weather scene simulation method according to an embodiment of the present disclosure;
fig. 2 is a schematic flow chart of another weather scene simulation method according to an embodiment of the present disclosure;
fig. 3 is a schematic flow chart of an implementation method for obtaining a weather special effect corresponding to weather data in a weather scene simulation method according to an embodiment of the present application;
fig. 4 is a schematic flow chart of an implementation method for synthesizing a three-dimensional simulated weather scene in a weather scene simulation method according to an embodiment of the present application;
fig. 5 is a schematic flow chart of an early warning method based on weather scene simulation according to an embodiment of the present disclosure;
fig. 6 is a schematic diagram of a weather scene simulation apparatus according to an embodiment of the present disclosure;
fig. 7 is a schematic view of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
Furthermore, the appearances of the terms "first," "second," and the like, if any, are used solely to distinguish one from another and are not to be construed as indicating or implying relative importance.
It should be noted that the features of the embodiments of the present invention may be combined with each other without conflict.
When simulating real weather, the two-dimensional characteristics of weather are usually simulated to show to the user, but the two-dimensional show is simpler, lacks the authenticity. In order to enable the weather simulation effect to be more real, the method for simulating the weather scene is provided, the three-dimensional weather scene is simulated by adopting the weather special effect to the weather data, and the three-dimensional weather scene which is more similar to the actual weather condition can be displayed.
As follows, the weather scene simulation method provided in the embodiments of the present application is explained first by using a specific example. Fig. 1 is a schematic flow chart of a weather scene simulation method according to an embodiment of the present disclosure, where an execution main body of the method may be a computer device, and the computer device may be a device with a computing processing function, such as a desktop computer, a notebook computer, a tablet computer, and the like. As shown in fig. 1, the method includes:
and S101, acquiring weather data.
Before weather simulation is carried out, weather data to be simulated needs to be acquired, the weather data can be real-time weather data, a weather scene obtained through simulation is a real-time weather scene, the weather scene can also be historical weather data, and the weather scene obtained through simulation is a historical weather scene.
The weather data may be obtained by docking the weather simulation system, for example, the weather data is obtained in real time by using a collection plug-in the weather simulation system, but not limited thereto. For example, when weather data of the current location is obtained, weather software may be interfaced to obtain the weather data, for example, the weather data is obtained by using a Baidu map, the weather data of the current location is obtained through a network application program interface accessing the Baidu map through a Unity Web Request (unified network Request), specifically, an IP address of the current location is obtained according to networking, and the weather data of the current location is obtained according to the IP address of the current location; and the weather sensor can be directly docked to obtain the current weather data.
Illustratively, the weather data includes: at least one of time, place, temperature, sensible temperature, humidity, wind level, wind direction, weather type and parameters of the weather type (for example, the weather type is rainstorm, and the parameters of the rainstorm include a start-stop range of the rainstorm, a start-stop time, an instantaneous rainfall of the rainstorm, and the like).
And S102, acquiring a weather special effect corresponding to the weather data according to the weather data.
The weather data is data in a real scene, the weather special effect is a three-dimensional simulation effect, and the weather simulation system acquires the three-dimensional simulation effect corresponding to the data in the real scene for the next scene simulation.
S103, synthesizing and displaying a three-dimensional simulated weather scene according to the weather special effect corresponding to the weather data.
And synthesizing a simulated weather scene corresponding to the weather data through the weather special effect corresponding to the weather data, wherein the simulated weather scene is also a three-dimensional simulated scene due to the three-dimensional simulated effect of the weather special effect, and the three-dimensional simulated weather scene truly and effectively restores the actual weather environment. And displaying the three-dimensional simulated weather scene for further use by the user.
In summary, the weather scene simulation method provided by the application determines the weather special effect corresponding to the weather data through the acquired weather data; and synthesizing and displaying a three-dimensional simulated weather scene according to the weather special effect corresponding to the weather data. Therefore, the corresponding three-dimensional weather scene is simulated according to the weather data, the virtual weather scene is combined with the reality, and the real weather scene is effectively restored, so that a user can feel the weather scene more really and can be used in other weather related fields.
On the basis of the weather scene simulation method shown in fig. 1, the embodiment of the present application further provides another weather scene simulation method. Fig. 2 is a schematic flow chart of another weather scene simulation method provided in the embodiment of the present application, and as shown in fig. 2, the simulation method further includes:
and S1011, synthesizing the corresponding weather special effect for each type of weather data by adopting a three-dimensional particle system.
And synthesizing the corresponding weather special effect for each type of weather data through the three-dimensional particle system, and performing color rendering on each weather special effect by adopting a coloring system in the three-dimensional particle system to obtain the weather special effect with vivid effect. Alternatively, the three-dimensional particle system may be a Unity real-time content development platform and the shading system may be a Shader in Unity.
Each type of weather is, for example, all types of weather in real weather, such as: rain, snow, wind, hail, fog, etc. The synthesized weather special effect can be changed according to the actual parameters in the weather special effect to realize the effect of truly simulating the real scene, for example, the actual parameters corresponding to the rain weather comprise rainfall, rainfall time and the like, the actual parameters are adjusted to obtain light rain, medium rain, heavy rain and the like in an adaptable way, and the rainfall time can be controlled.
The process of synthesizing the heaven effect is further described below by taking the three-dimensional particle system as Unity as an example.
Light settings, there are two types of lighting effects in the real world: direct lighting and indirect lighting, direct lighting is typically employed in simulated scenes. Direct illumination refers to light rays emitted directly by a light source, e.g., sunlight illumination, lamplight illumination. There is one direct light source that can be set for use in the Unity scene: the directllight can be used as an outdoor light source such as the sun or the moon, and the light emitted by the direct light source can affect the surfaces of all objects in the scene.
The particle special effect is a particle special effect manufacturing module which is arranged in Unity for simulating the real effects of water, fire, fog, gas and the like, a large number of single particles are combined to be in a fixed form, and the single particles are controlled to realize different motion directions, different ranges and different densities to simulate different real weather effects. Optionally, the manufacturing process of the particle special effect is specifically described by taking the effect of setting the fog as an example: there are two methods to set up Fog in Unity, the first is to open the global Fog directly, make the whole simulation scene in the Fog cage, this way can be disposed directly in Unity (the concrete disposition step is: Window- > Rendering- > Lighting Settings), there are Fog that check the frame, check the frame and open Fog, can set up the color of Fog, Fog concentration and distance starting point and terminal point influenced by Fog specifically here, adopt Linear fit parameter Start, End in Unity, the Fog appears from Start, the more dense the closer to End, reach the maximum concentration when reaching End, the maximum concentration after End too; the Exponential configurable parameter sensitivity is set by using the Exponential in Unity, the fog Density is larger, the fog is larger, and parameters such as the fog color, the fog Density and the distance starting point and the distance ending point affected by the fog can be obtained in weather data, wherein the fog color is changed according to the fog Density, and the fog color is embodied in the way that the gray scales of the fog with different densities are different. The second is to use the Fog instruction setting in the Shader in Unity, and the specific parameters are the same as above, and are not described here again.
The sky effect, there are two ways to add sky in Unity, the first is to add sky box (sky box) on the current camera, firstly, it needs to add sky box component on the main camera in Unity, and at the same time, the sky mode is selected at the key point of clear flags, in this case, the sky of the whole scene will not change, and only the currently replaced sky effect can be shown in the picture that can be shown in the Game view. The other method is to add a sky box to the current scene, and the sky effect of the whole simulated scene can be changed by adding the sky box to the current scene.
In addition, the synthesis process of the special effects also comprises post-processing, for example, a post-effect enhancement component Postprocessing built in Unity can be adopted, and various common special effects can be obtained in a very short time through the Postprocessing.
With continued reference to fig. 2, synthesizing a corresponding weather special effect for each type of weather data using the three-dimensional particle system includes: synthesizing weather special effects corresponding to each type of weather data in the weather data by adopting a three-dimensional particle system according to the acquired weather data and storing the weather special effects; and/or calling weather data of a weather database, synthesizing weather special effects corresponding to each type of weather data by adopting a three-dimensional particle system, and storing the weather special effects. The weather data can be acquired in various forms, weather special effects corresponding to all weather types in real weather are synthesized, all the weather special effects are stored, the stored weather special effects can be directly called when real weather is simulated each time, and the simulation efficiency of weather scenes is improved.
After all the weather special effects are stored, a management interface can be created (Create-Enviro Sky Manager is clicked on a Project panel in sequence to generate an Enviro Sky Manager object), a plurality of weather special effect templates are defined on the management interface for selecting the weather special effects during simulation, and meanwhile, a plurality of external interfaces can be provided to acquire data information required by weather scene simulation such as time, weather, seasons, illumination and the like.
In summary, the weather scene simulation method provided by the application synthesizes the corresponding weather special effect for each type of weather data by using the three-dimensional particle system, and stores the weather special effect. Therefore, the weather special effects of all weather types can be reserved in advance, the weather special effects can be directly called in the process of simulating real weather each time, the weather special effects do not need to be synthesized again each time, the weather simulation efficiency is greatly improved, and the expenditure is reduced.
On the basis of the weather scene simulation method shown in fig. 1, an embodiment of the present application further provides an implementation method for obtaining a weather special effect corresponding to weather data in the weather scene simulation method. Fig. 3 is a schematic flow chart of an implementation method for acquiring a weather special effect corresponding to weather data in a weather scene simulation method according to an embodiment of the present application, as shown in fig. 3, acquiring a weather special effect corresponding to weather data according to weather data in S102 may include:
s201, identifying weather data, and determining at least one weather type contained in the weather data.
The weather types include all weather in real weather scenes, for example: rain, snow, wind, hail, fog, etc. The actual weather data to be simulated are classified into different weather types, so that the weather scene simulation can be realized more accurately.
S202, determining weather special effects corresponding to the weather types according to at least one weather type contained in the weather data.
Before the weather scene simulation, the corresponding weather special effect is synthesized for each type of weather data by using the three-dimensional particle system and is stored for later use. After all weather types in the weather data are determined, the weather special effects corresponding to the weather types are matched in all the stored weather special effects, and then all the weather special effects required by weather scene simulation are obtained.
In summary, according to the implementation method for obtaining the weather special effect corresponding to the weather data, the weather data is identified, and at least one weather type included in the weather data is determined; and determining the weather special effect corresponding to each weather type according to at least one weather type contained in the weather data. Therefore, the weather data are subdivided into different weather types, and various weather special effects for weather scene simulation are determined, so that the accuracy of the weather scene simulation is improved.
On the basis of the weather scene simulation method shown in fig. 1, an embodiment of the present application further provides an implementation method for synthesizing a three-dimensional simulated weather scene in the weather scene simulation method. Fig. 4 is a schematic flowchart of a method for implementing a method for synthesizing a three-dimensional simulated weather scene in a weather scene simulation method according to an embodiment of the present application, and as shown in fig. 4, synthesizing and displaying a three-dimensional simulated weather scene according to a weather special effect corresponding to weather data in S103 may include:
and S301, analyzing and acquiring actual parameters of the weather data.
When identifying weather data, not only all weather types contained in the weather data need to be determined, but also actual parameters of the weather data need to be acquired, including: temperature, sensible temperature, humidity, wind level, wind direction, and parameters in the weather type (e.g., weather type is rainstorm, and parameters of rainstorm include start and stop range of rainstorm, start and stop time, instantaneous rainfall of rainstorm, etc.).
S302, according to the actual parameters, the configuration parameters of the weather special effect corresponding to the weather data are adjusted, and the adjusted weather special effect is obtained.
The weather data corresponds to various weather special effects, and when the various weather special effects required by the weather management interface are called, the configuration parameters of the related weather special effects can be adjusted according to the actual parameters, so that each weather special effect is vivid in actual weather conditions, the simulation effect is more real, for example, the rainfall in real-time weather is greater than the called rain special effect, the rainfall parameters can be adjusted, and the method is not particularly limited.
For example, the weather simulation system may configure and store weather data through a configuration table file, and complete the adjustment of configuration parameters for a weather special effect, for example, sequentially click on a Project panel: Create-Enviro-Weather Preset, a configuration table can be generated.
Specifically, the configuration parameters include at least one of: basic data configuration parameters, season configuration parameters, cloud configuration parameters, fog configuration parameters and audio configuration parameters.
Basic data configuration parameters, firstly, guiding the prepared weather special effect into a configuration table, and secondly, a Sky and Light Color module comprises parameters for adjusting the colors of Sky and lamplight and the intensities of lamplight and shadow; the Weather Condition module configures basic Weather parameters, such as wind speed, maximum rainfall, maximum snowfall, temperature, whether thunderstorm Weather exists or not, lightning interval time and the like, if certain attribute parameters do not exist in the current Weather field, the basic Weather parameters can be directly set to be 0, for example, the snowstorm Weather does not rain, and the rainfall can be directly set to be 0.
And configuring the seasonal parameters by a Season Configs module, wherein the seasonal parameters are selected by the Season Configs module.
The cloud configuration parameters, the cloud Configs module configures the parameters of the cloud, including: various parameters of the volume cloud are configured, and the influence of the cloud is small in the actual weather influence, so that the preset cloud parameters can be set if no special requirement exists.
Fog configuration parameters, the Fog configuration module configures Fog parameters, including: the starting distance of the fog, the ending distance of the fog, the concentration of the fog, the height of the fog and other parameters.
And Audio configuration parameters and an Audio Configs module configure the Audio parameters, and if a weather scene simulation has a sound effect requirement, various natural sounds can be added through the Audio Configs module. For example, in a rainy scene, the sound of rain may be added.
And S303, synthesizing and displaying a three-dimensional simulated weather scene according to the adjusted weather special effect.
The adjusted weather special effects are vivid in a real weather scene, and then all the adjusted weather special effects are combined to obtain a three-dimensional simulated weather scene corresponding to weather data, so that the three-dimensional simulated weather scene covers all weather conditions in the real weather scene, and further, weather effects such as day and night replacement, season change, foggy road sections, rainstorm, air temperature change and the like can be realized.
In summary, according to the implementation method for synthesizing the three-dimensional simulated weather scene provided by the application, the configuration parameters of the weather special effect corresponding to the weather data are adjusted according to the actual parameters of the weather data, the adjusted weather special effect is obtained, and then the three-dimensional simulated weather scene is synthesized and displayed according to the adjusted weather special effect. Therefore, the weather special effect corresponding to the weather data is adjusted to be the same as the weather special effect of the actual weather parameters, the three-dimensional simulated weather scene synthesized according to the adjusted weather special effect is matched with the real weather scene better, and the precision of weather scene simulation is improved.
On the basis of the weather scene simulation method shown in fig. 1 to 4, the embodiment of the application further provides a weather scene simulation early warning method. Fig. 5 is a schematic flow chart of a weather scene simulation early warning method provided in an embodiment of the present application, and as shown in fig. 5, the early warning method includes:
s401, according to the weather data and the simulated weather scene, if a preset early warning condition is reached, matching and obtaining a corresponding early warning strategy.
In the construction of actual wisdom garden, obtain three-dimensional weather scene according to weather data and simulation, carry out the weather scene rehearsal to wisdom garden, whether the inspection this weather condition causes the influence to management, the safety of wisdom garden, if the influence of weather condition to wisdom garden has reached the preset early warning condition, and then matches the early warning strategy that the weather influence corresponds.
Exemplarily, rainstorm weather can influence the traffic condition and the drainage facility of the intelligent park, rainfall within the range of the rain can be truly simulated in the three-dimensional simulated weather scene, and then the drainage and water accumulation conditions of the intelligent park can be simulated, and if the drainage and water accumulation conditions of the intelligent park reach preset early warning conditions, traffic management and drainage management can be adjusted.
The early warning strategy can be a prestored strategy scheme, such as a drainage emergency scheme, a dredging scheme and the like. Or only the prompt information can be protected, and the relevant personnel can be prompted to perform prevention and treatment, and the like, without limitation.
S402, displaying the early warning strategy.
The corresponding early warning strategy is displayed to the user, the weather influence on the intelligent park can be predicted in advance, the intelligent park is further managed and adjusted in time according to the early warning strategy, and the influence of weather on the normal operation of the intelligent park is reduced as far as possible.
In summary, the weather scene simulation early warning method provided by the embodiment of the application judges the weather conditions through the weather data and the simulated weather scene, and if the preset early warning conditions are met, the corresponding early warning strategies are obtained in a matching manner, and are displayed. Therefore, the intelligent park management is adjusted in time according to the actual weather conditions, so that the cost of the park management is reduced and the efficiency is improved.
The following describes a weather scene simulation apparatus, an electronic device, a storage medium, and the like for executing the weather scene simulation apparatus, the electronic device, the storage medium, and the like provided by the present application, and specific implementation processes and technical effects thereof are referred to above, and are not described in detail below.
Fig. 6 is a schematic diagram of a weather scene simulation apparatus according to an embodiment of the present disclosure, and as shown in fig. 6, the simulation apparatus 600 may include:
a first obtaining module 601, configured to obtain weather data;
a second obtaining module 602, configured to obtain a weather special effect corresponding to the weather data according to the weather data;
the first synthesizing module 603 is configured to synthesize and display a three-dimensional simulated weather scene according to the weather special effect corresponding to the weather data.
Further, the simulation apparatus 600 further includes: and a second synthesizing module 604, configured to synthesize a corresponding weather special effect for each type of weather data by using the three-dimensional particle system.
Further, the second synthesizing module 604 is specifically configured to synthesize and store a weather special effect corresponding to each type of weather data in the weather data by using a three-dimensional particle system according to the acquired weather data; and/or calling weather data of a weather database, synthesizing weather special effects corresponding to each type of weather data by adopting a three-dimensional particle system, and storing the weather special effects.
Further, the second obtaining module 602 is specifically configured to identify the weather data, and determine at least one weather type included in the weather data; and determining the weather special effect corresponding to each weather type according to at least one weather type contained in the weather data.
Further, the first synthesis module 603 is specifically configured to analyze and obtain actual parameters of the weather data;
according to the actual parameters, adjusting the configuration parameters of the weather special effect corresponding to the weather data to obtain the adjusted weather special effect;
and synthesizing and displaying a three-dimensional simulated weather scene according to the adjusted weather special effect.
Further, the first synthesizing module 603 is further specifically configured to enable the configuration parameter to include at least one of the following: basic data configuration parameters, season configuration parameters, cloud configuration parameters, fog configuration parameters and audio configuration parameters.
Further, the simulation apparatus 600 further includes: the early warning module 605 is configured to, according to the weather data and the simulated weather scene, match and acquire a corresponding early warning policy if a preset early warning condition is reached; and displaying the early warning strategy.
These above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more Application Specific Integrated Circuits (ASICs), or one or more microprocessors (DSPs), or one or more Field Programmable Gate Arrays (FPGAs), among others. For another example, when one of the above modules is implemented in the form of a Processing element scheduler code, the Processing element may be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor capable of calling program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
Fig. 7 is a schematic diagram of an electronic device according to an embodiment of the present application, where the electronic device may be a computing device or a server with a computing processing function.
The electronic device 700 includes: a processor 701, a storage medium 702. The processor 701 and the storage medium 702 are connected by a bus.
The storage medium 702 is used for storing programs, and the processor 701 calls the programs stored in the storage medium 702 to execute the above-mentioned method embodiments. The specific implementation and technical effects are similar, and are not described herein again.
Optionally, the invention also provides a program product, for example a computer-readable storage medium, comprising a program which, when being executed by a processor, is adapted to carry out the above-mentioned method embodiments.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A weather scene simulation method is characterized by comprising the following steps:
acquiring weather data;
acquiring a weather special effect corresponding to the weather data according to the weather data;
and synthesizing and displaying a three-dimensional simulated weather scene according to the weather special effect corresponding to the weather data.
2. The method of claim 1, further comprising:
and synthesizing the corresponding weather special effect for each type of weather data by adopting a three-dimensional particle system.
3. The method of claim 2, wherein synthesizing the corresponding weather special effect for each type of weather data using the three-dimensional particle system comprises:
synthesizing a weather special effect corresponding to each type of weather data in the weather data by adopting a three-dimensional particle system according to the acquired weather data and storing the weather special effects; and/or the presence of a gas in the gas,
and calling weather data of a weather database, synthesizing weather special effects corresponding to each type of weather data by adopting a three-dimensional particle system, and storing.
4. The method according to claim 1, wherein the obtaining of the weather special effect corresponding to the weather data according to the weather data comprises:
identifying the weather data, and determining at least one weather type contained in the weather data;
and determining the weather special effect corresponding to each weather type according to at least one weather type contained in the weather data.
5. The method of claim 1, wherein the synthesizing and displaying a three-dimensional simulated weather scene according to the weather special effect corresponding to the weather data comprises:
analyzing and acquiring actual parameters of the weather data;
according to the actual parameters, adjusting the configuration parameters of the weather special effect corresponding to the weather data to obtain the adjusted weather special effect;
and synthesizing and displaying a three-dimensional simulated weather scene according to the adjusted weather special effect.
6. The method of claim 5, wherein the configuration parameters comprise at least one of: basic data configuration parameters, season configuration parameters, cloud configuration parameters, fog configuration parameters and audio configuration parameters.
7. The method according to any one of claims 1-6, further comprising:
according to the weather data and the simulated weather scene, if a preset early warning condition is reached, matching and obtaining a corresponding early warning strategy;
and displaying the early warning strategy.
8. A weather scene simulation apparatus, comprising: the device comprises a first acquisition module, a second acquisition module and a synthesis module;
the first acquisition module is used for acquiring weather data;
the second acquisition module is used for acquiring a weather special effect corresponding to the weather data according to the weather data;
and the synthesis module is used for synthesizing and displaying a three-dimensional simulated weather scene according to the weather special effect corresponding to the weather data.
9. An electronic device, comprising: a processor, a storage medium storing a computer program operable on the processor, the processor executing the computer program to perform the method of any of the preceding claims 1-7.
10. A storage medium, having stored thereon a computer program which, when executed by a processor, performs the method according to any one of claims 1-7.
CN202111317057.0A 2021-11-09 2021-11-09 Weather scene simulation method and device, electronic equipment and storage medium Pending CN113987902A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111317057.0A CN113987902A (en) 2021-11-09 2021-11-09 Weather scene simulation method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111317057.0A CN113987902A (en) 2021-11-09 2021-11-09 Weather scene simulation method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113987902A true CN113987902A (en) 2022-01-28

Family

ID=79747246

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111317057.0A Pending CN113987902A (en) 2021-11-09 2021-11-09 Weather scene simulation method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113987902A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116109800A (en) * 2022-10-26 2023-05-12 润芯微科技(江苏)有限公司 Real-time 3D weather system based on illusion engine and implementation method thereof

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116109800A (en) * 2022-10-26 2023-05-12 润芯微科技(江苏)有限公司 Real-time 3D weather system based on illusion engine and implementation method thereof

Similar Documents

Publication Publication Date Title
US10345483B2 (en) Observer-based meteorology and image identification
CN103984553B (en) A kind of 3D desktop display methods and system
CN112927336B (en) Shadow processing method and device for three-dimensional building for road information display
Hou et al. A comprehensive framework for evaluating the quality of street view imagery
CN112507444B (en) AI-construction-based digital urban building night scene generation method and system
CN114820964A (en) Method and system for constructing digital twin real-time weather scene based on unknown Engine
CN112347547A (en) Sunshine duration simulation method and device and electronic equipment
CN114140588A (en) Digital sand table creating method and device, electronic equipment and storage medium
CN113987902A (en) Weather scene simulation method and device, electronic equipment and storage medium
CN115457408A (en) Land monitoring method and device, electronic equipment and medium
CN116011322A (en) Urban information display method, device, equipment and medium based on digital twinning
US20200340823A1 (en) Dynamic streetview with view images enhancement
Rubinowicz Visualisation of DSM as 3D-mesh for urban analyses
CN115130171A (en) AR scene-based environment analysis system and method, electronic device and storage medium
CN114528425A (en) Three-dimensional visualization system and method for intelligent building
CN111581808A (en) Pollutant information processing method and device, storage medium and terminal
CN112598993B (en) City map platform visualization method and device based on CIM and related products
Favorskaya et al. Innovations in Remote Sensing of Forests
Lee Case study on emerging trends in geospatial technologies for study of urban form
CN112802190B (en) Method and device for establishing meteorological observation field operation management model
CN116738772B (en) Digital twinning-based power supply path tracing method, device, equipment and medium
CN115578506B (en) Rendering method and device of digital twin city model and electronic equipment
CN117689808A (en) City data integrated management method, system, equipment and medium based on CIM
Kolivand et al. ReLiShaft: realistic real-time light shaft generation taking sky illumination into account
Miller et al. The application of VR modelling in assessing potential visual impacts of rural development

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination