CN116560746A - Dynamic loading system and dynamic loading method for real-time weather under virtual engine platform - Google Patents
Dynamic loading system and dynamic loading method for real-time weather under virtual engine platform Download PDFInfo
- Publication number
- CN116560746A CN116560746A CN202310345667.4A CN202310345667A CN116560746A CN 116560746 A CN116560746 A CN 116560746A CN 202310345667 A CN202310345667 A CN 202310345667A CN 116560746 A CN116560746 A CN 116560746A
- Authority
- CN
- China
- Prior art keywords
- weather
- real
- engine platform
- setting
- time
- 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
Links
- 238000011068 loading method Methods 0.000 title claims abstract description 25
- 230000000694 effects Effects 0.000 claims abstract description 43
- 230000015572 biosynthetic process Effects 0.000 claims abstract description 7
- 238000003786 synthesis reaction Methods 0.000 claims abstract description 7
- 239000002245 particle Substances 0.000 claims description 60
- 238000010276 construction Methods 0.000 claims description 21
- 238000004519 manufacturing process Methods 0.000 claims description 11
- 238000005286 illumination Methods 0.000 claims description 6
- 238000000034 method Methods 0.000 claims description 6
- 230000008676 import Effects 0.000 claims description 5
- 239000000463 material Substances 0.000 claims description 3
- 241000533950 Leucojum Species 0.000 claims description 2
- 238000004458 analytical method Methods 0.000 description 2
- 238000007664 blowing Methods 0.000 description 2
- 238000004088 simulation Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000002708 enhancing effect Effects 0.000 description 1
- 230000001737 promoting effect Effects 0.000 description 1
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44521—Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
- G06F9/44526—Plug-ins; Add-ons
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T19/00—Manipulating 3D models or images for computer graphics
- G06T19/006—Mixed reality
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02A—TECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE
- Y02A90/00—Technologies having an indirect contribution to adaptation to climate change
- Y02A90/10—Information and communication technologies [ICT] supporting adaptation to climate change, e.g. for weather forecasting or climate simulation
Abstract
The invention discloses a dynamic loading system and a dynamic loading method of real-time weather under a phantom engine platform, wherein the dynamic loading system comprises a city information model importing module for importing a city information model to the phantom engine platform, a sky building module for building sky balls, a weather building module for forming various weather special effects, a real-time weather data acquisition module for acquiring weather data and a synthesis module for loading corresponding weather special effects in the city information model according to the real-time weather data.
Description
Technical Field
The invention relates to the technical field of simulation realization, in particular to a dynamic loading system and a dynamic loading method for real-time weather under a fantasy engine platform.
Background
The city information model (CIM, city Information Modeling) plays a great role in promoting the construction of smart cities, and effectively improves the urban treatment system and the urban treatment capacity. However, in the current technology, the city information model adopts a single weather mode (such as sunny days) for displaying weather, so that the display is simpler, the reality is lacking, the real city scene effect cannot be truly restored, the dynamic analysis of the city influence caused by real-time weather cannot be performed, and the development of smart city construction is restrained to a certain extent.
Disclosure of Invention
In order to overcome the defects, the invention provides the dynamic loading system and the dynamic loading method for the real-time weather under the illusion engine platform, which can combine the virtual and the reality, truly and effectively restore the weather scene in the reality, enable the user to feel the weather scene more truly, and facilitate the use and the research of the related fields of the weather.
The invention adopts the technical scheme for solving the technical problems: the utility model provides a dynamic loading system of real-time weather under illusion engine platform, includes city information model import module, sky construction module, weather construction module, real-time weather data acquisition module and synthetic module, wherein:
the city information model importing module can import the constructed city information model into the illusion engine platform and assemble the model according to the layout of the geographic space position;
the sky construction module can generate a sky sphere in the virtual engine platform according to geographic data of the city information model;
the weather construction module can form illumination of a corresponding angle for the city information model in the illusion engine platform according to time, and can also create a dynamic cloud layer in the sky sphere and create a rain and snow special effect by utilizing the particle system;
the real-time weather data acquisition module can acquire real-time weather data matched with the city information model and guide the real-time weather data into the illusion engine platform;
the synthesis module can call a VaRest plugin in the ghost engine blueprint to request to analyze the Json string of the real-time weather data acquired by the real-time weather data acquisition module, and the synthesis module calls weather special effects which are constructed by the weather construction module and correspond to the analyzed weather data in the ghost engine platform and displays the weather special effects.
A dynamic loading method of real-time weather under a fantasy engine platform comprises the following specific steps:
step one: city information model importation:
the city information model manufactured by the three-dimensional modeling software is imported into the illusion engine platform, and is assembled according to the layout of the geographic space position;
step two: constructing a sky model:
creating a sky sphere model in the illusion engine platform according to the sphere center and the radius of the earth and the distance between the sky and the earth surface, wherein the sky sphere model covers the whole urban scene and mainly comprises actual texture effects and view port effects, thereby meeting various sky display requirements;
step three: presetting various weather special effects:
(1) Setting a sunlight angle in the illusion engine platform according to time by taking the character position as a world coordinate origin;
(2) Setting volume cloud related parameters: setting the moving direction and the moving speed of the volume cloud according to the wind direction and the wind speed, and setting the cloud quantity and the cloud density of the volume cloud according to the weather type;
(3) Manufacturing a particle system, and manufacturing particles simulating rain and snow through the particle system;
step four: acquiring real-time weather data, wherein the weather data comprise time, air temperature, weather type and parameters, wind direction, wind speed and humidity data of a place;
step five: and in the illusion engine blueprint, invoking the VaRest plugin to analyze the Json string of the real-time weather data acquired in the fourth step, and determining and selecting the corresponding weather special effect according to the acquired weather data and displaying the weather special effect.
As a further improvement of the present invention, the step of manufacturing particles simulating rain and snow through the particle system in the step three is as follows:
(1) Setting particle emission positions and parameters: setting linear emission in the particle speed of the particle emission attribute, setting a Z value to enable the particles to emit downwards, setting the area of an emitter as the area of a viewing port, and setting the quantity of the emitted particles as a parameter for distinguishing the size of rain and snow;
(2) Setting the opacity of a map by using Noise in a material ball so as to manufacture the size of particles, setting the self-luminous color of the particles through a color parameter set, and further distinguishing the types of the particles simulating rain and snow;
(3) Setting particle Collision (Collision) in a particle system, starting, simulating particle blowing effect when wind direction exists, and rebounding after particles fall to the ground;
(4) The life cycle of the particles is set and the particles disappear after landing.
As a further improvement of the present invention, in the step (2) of the third step, transparent color is used to set rainwater, and white color is used to set snow.
In the fourth step, the real-time weather data is acquired by connecting the Ethernet with the weather software.
In the fourth step, weather data of the current place in the Goldmap API is called through a network application program interface accessed to the Goldmap.
In the fifth step, the address to be queried is set in the Call URL, the return content in the fourth step is obtained by the Call back, the return content is set as a character string in the illusion engine, and the character string is used as a variable parameter to execute the simulated weather special effect set in the third step after being segmented by the attribute.
As a further improvement of the present invention, in step four, the current weather data is obtained by collecting weather sensor data.
The beneficial effects of the invention are as follows: according to the invention, the city information model is imported into the illusion engine, the effect of simulating various weather is formed under the illusion engine platform, meanwhile, real-time weather data is obtained, the weather special effect corresponding to the obtained real-time weather data is displayed in the city information model, the virtual is combined with reality, the weather scene in reality is truly and effectively restored, the user can more conveniently and truly feel the city weather scene, the development of smart city construction is promoted, and meanwhile, the method can be used for the research of related weather related fields.
Drawings
FIG. 1 is a flow chart of the invention for dynamically loading real-time weather under a fantasy engine platform;
FIG. 2 is a schematic diagram of a particle system of the present invention simulating the effects of rain and snow;
FIG. 3 is a flow chart of the present invention for enhancing real-time weather data into variables.
Description of the embodiments
In order that the above-recited objects, features and advantages of the invention will be more clearly understood, a more particular description of the invention will be rendered by reference to specific embodiments thereof which are illustrated in the appended drawings.
Examples: the utility model provides a dynamic loading system of real-time weather under illusion engine platform, includes city information model import module, sky construction module, weather construction module, real-time weather data acquisition module and synthetic module, wherein:
the city information model importing module can import the constructed city information model into the illusion engine platform and assemble the model according to the layout of the geographic space position;
the sky construction module can generate a sky sphere in the virtual engine platform according to geographic data of the city information model;
the weather construction module can form illumination with a corresponding angle to the city information model in the illusion engine platform according to time, the angle of the illumination changes along with the change of time, and the weather construction module can also create a dynamic cloud layer in a sky sphere and create a rain and snow special effect by utilizing a particle system;
the real-time weather data acquisition module can acquire real-time weather data matched with the city information model and guide the real-time weather data into the illusion engine platform;
the synthesis module can call a VaRest plugin in the ghost engine blueprint to request to analyze the Json string of the real-time weather data acquired by the real-time weather data acquisition module, and the synthesis module calls weather special effects which are constructed by the weather construction module and correspond to the analyzed weather data in the ghost engine platform and displays the weather special effects.
The city information model is dynamically loaded with real-time weather special effects according to weather data through the illusion engine platform, so that the scene effect of the city information model is accurately restored in the illusion engine platform, the city influence caused by real-time weather can be dynamically analyzed, and the smart city construction is further promoted.
A dynamic loading method of real-time weather under a fantasy engine platform comprises the following specific steps:
s1: the city information model manufactured by the three-dimensional modeling software is imported into the illusion engine platform, and is assembled according to the layout of the geographic space position;
s2: constructing a sky model:
creating a sky sphere model in the illusion engine platform according to the sphere center and the radius of the earth and the distance between the sky and the earth surface, wherein the sky sphere model covers the whole urban scene and mainly comprises actual texture effects and view port effects, thereby meeting various sky display requirements;
s3: presetting various weather special effects:
s301: and (3) presetting an illumination and volume cloud system according to weather types:
setting the angle of sunlight in the illusion engine according to time by taking the position of the character as the origin of world coordinates, and synchronously changing the irradiation angle of the sunlight in the illusion engine along with time to form an illumination effect simulating reality;
setting volume cloud related parameters, namely setting a volume cloud moving mode according to wind directions and wind speeds, wherein the wind speeds are divided into 1-10 levels of wind, the volume cloud moving speeds are different under different levels of wind power, and setting the size and the density of cloud quantity according to weather categories to form a high simulation effect with reality, wherein the weather categories are divided into sunny days, cloudy days, light rain, medium rain, heavy rain, storm rain, small snow, medium snow, heavy snow, storm snow and the like;
s302, manufacturing a particle system, and forming particles for simulating rain and snow weather:
first, setting the particle emission position and parameters: setting linear emission in the particle speed of the particle emission attribute, setting a Z value to enable the particles to emit downwards, setting the area of an emitter as the area of a viewing port, and setting the quantity of the emitted particles as a parameter for distinguishing the size of rain and snow;
secondly, setting opacity of a map by using Noise in a material ball to manufacture the size of particles, setting self-luminous colors of the particles by using a color parameter set, wherein normally, rainwater is transparent, and snowflakes are white;
thirdly, setting particle Collision (Collision) opening in a particle system, simulating particle blowing effect when wind direction exists, and rebounding after particles fall to the ground;
fourth, setting the life cycle of the particles, and enabling the particles to disappear after landing;
the particle system can prevent the rain and snow from passing through the surfaces of buildings, mountain stones, personnel, animal bodies and the like to cause distortion by adopting particle collision, meanwhile, a rain splashing effect can be formed by the particle collision during raining, and the rain and snow particles can be more vivid by providing the particle collision attribute and the life cycle; meanwhile, the lighting effect and the sound effect can be set in the illusion engine, the lightning effect can be formed through the special effect of flashing, and wind sound, rain sound, thunder sound, water flow sound and the like can be formed through adding the sound effect;
step S4: acquiring real-time weather data, wherein the weather data comprise time, air temperature, weather type and parameters, wind direction, wind speed, humidity and the like of a place; the data acquisition method has a plurality of modes, can be accessed into weather software to acquire weather data, and can also acquire weather sensor data to acquire current weather data; taking the example of invoking the Goldmap API, the network application program interface accessing the Goldmap obtains the weather data of the current place, and the following array can be returned after the corresponding city is selected:
{ "Provice": "Jiangsu",
"city" Kunshan City ",
"adcode":"320583",
"weather": "sunny",
"temperature":"21",
"winddirection": "northeast",
"windpower":"4",
"humidity":"55",
"reporttime":"2022-11-01 15:06:13"};
step S5: in the Unreal Engine blueprint, a VaRest plug-in analysis request is called to analyze the Json string of the real-time weather data in the step S4, the corresponding weather special effect is determined and selected according to the acquired weather data and displayed, an address to be queried is set in a Call URL, a Goldmap API is used in an example, the return content in the step S4 can be acquired by a Call back, the return content is set as a character string in a phantom Engine, and the character string is used as a variable parameter to execute the simulated weather set in the step S3 after being segmented by attributes.
Claims (8)
1. A dynamic loading system of real-time weather under a fantasy engine platform is characterized in that: the system comprises an urban information model importing module, a sky construction module, a weather construction module, a real-time weather data acquisition module and a synthesis module, wherein:
the city information model importing module can import the constructed city information model into the illusion engine platform and assemble the model according to the layout of the geographic space position;
the sky construction module can generate a sky sphere in the virtual engine platform according to geographic data of the city information model;
the weather construction module can form illumination of a corresponding angle for the city information model in the illusion engine platform according to time, and can also create a dynamic cloud layer in the sky sphere and create a rain and snow special effect by utilizing the particle system;
the real-time weather data acquisition module can acquire real-time weather data matched with the city information model and guide the real-time weather data into the illusion engine platform;
the synthesis module can call a VaRest plugin in the ghost engine blueprint to request to analyze the Json string of the real-time weather data acquired by the real-time weather data acquisition module, and can call the weather special effect which is constructed by the weather construction module and corresponds to the weather data analyzed by the weather construction module in the ghost engine platform and display the weather special effect.
2. A dynamic loading method of real-time weather under a fantasy engine platform is characterized in that: the method comprises the following specific steps:
step one: city information model importation:
the city information model manufactured by the three-dimensional modeling software is imported into the illusion engine platform, and is assembled according to the layout of the geographic space position;
step two: constructing a sky model:
creating a sky sphere model in the illusion engine platform according to the sphere center and the radius of the earth and the distance between the sky and the earth surface, wherein the sky sphere model covers the whole urban scene and mainly comprises actual texture effects and view port effects, thereby meeting various sky display requirements;
step three: presetting various weather special effects:
(1) Setting a sunlight angle in the illusion engine platform according to time by taking the character position as a world coordinate origin;
(2) Setting volume cloud related parameters: setting the moving direction and the moving speed of the volume cloud according to the wind direction and the wind speed, and setting the cloud quantity and the cloud density of the volume cloud according to the weather type;
(3) Manufacturing a particle system, and manufacturing particles simulating rain and snow through the particle system;
step four: acquiring real-time weather data, wherein the weather data comprise time, air temperature, weather type and parameters, wind direction, wind speed and humidity data of a place;
step five: and in the illusion engine blueprint, invoking the VaRest plugin to analyze the Json string of the real-time weather data acquired in the fourth step, and determining and selecting the corresponding weather special effect according to the acquired weather data and displaying the weather special effect.
3. The dynamic loading method of real-time weather under the illusion engine platform according to claim 2, wherein: in the third step, the step of manufacturing particles simulating rain and snow through a particle system is as follows:
(1) Setting particle emission positions and parameters: setting linear emission in the particle speed of the particle emission attribute, setting a Z value to enable the particles to emit downwards, setting the area of an emitter as the area of a viewing port, and setting the quantity of the emitted particles as a parameter for distinguishing the size of rain and snow;
(2) Setting the opacity of the map by using noise waves in the material ball so as to manufacture the size of the particles, and setting the self-luminous color of the particles by using a color parameter set so as to manufacture the types of the particles;
(3) Setting particle collision opening in a particle system;
(4) The life cycle of the particles is set and the particles disappear after landing.
4. The method for dynamically loading real-time weather under a fantasy engine platform of claim 3 wherein: in the step (2) of the step three, transparent color is used for setting rainwater, and white is used for setting snowflakes.
5. The dynamic loading method of real-time weather under the illusion engine platform according to claim 2, wherein: and step four, acquiring real-time weather data in a mode of connecting the Ethernet with weather software.
6. The method for dynamically loading real-time weather under a fantasy engine platform of claim 5 wherein: and step four, calling weather data of the current place in the Goldmap API through a network application program interface accessed to the Goldmap.
7. The method for dynamically loading real-time weather under a fantasy engine platform of claim 6 wherein: and in the fifth step, an address to be queried is set in a Call URL, the returned content in the fourth step is obtained by a Call back, the returned content is set as a character string in a illusion engine, and the character string is used as a variable parameter to execute the simulated weather special effect set in the third step after being segmented by the attribute.
8. The dynamic loading method of real-time weather under the illusion engine platform according to claim 2, wherein: and step four, acquiring current weather data by acquiring weather sensor data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310345667.4A CN116560746A (en) | 2023-04-03 | 2023-04-03 | Dynamic loading system and dynamic loading method for real-time weather under virtual engine platform |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310345667.4A CN116560746A (en) | 2023-04-03 | 2023-04-03 | Dynamic loading system and dynamic loading method for real-time weather under virtual engine platform |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116560746A true CN116560746A (en) | 2023-08-08 |
Family
ID=87493701
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310345667.4A Pending CN116560746A (en) | 2023-04-03 | 2023-04-03 | Dynamic loading system and dynamic loading method for real-time weather under virtual engine platform |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116560746A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117593471A (en) * | 2024-01-18 | 2024-02-23 | 青岛国实科技集团有限公司 | Ocean three-dimensional situation visualization platform based on illusion engine |
-
2023
- 2023-04-03 CN CN202310345667.4A patent/CN116560746A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117593471A (en) * | 2024-01-18 | 2024-02-23 | 青岛国实科技集团有限公司 | Ocean three-dimensional situation visualization platform based on illusion engine |
CN117593471B (en) * | 2024-01-18 | 2024-05-03 | 青岛国实科技集团有限公司 | Ocean three-dimensional situation visualization platform based on illusion engine |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102800130B (en) | Water level-close aircraft maneuvering flight visual scene simulation method | |
CN109377541B (en) | Virtual simulation system and method for real-time representation of meteorological changes based on shader | |
CN104778744B (en) | Extensive three-dimensional forest Visual Scene method for building up based on Lidar data | |
EP1566770A2 (en) | Development tool for defining attributes within a multi-dimensional space | |
US7349830B2 (en) | Weather profiles | |
CN113674389B (en) | Scene rendering method and device, electronic equipment and storage medium | |
CN106952328B (en) | A kind of method for drafting and system of Large-scale Macro virtual scene | |
Lu et al. | Design and implementation of virtual interactive scene based on unity 3D | |
CN105205861A (en) | Tree three-dimensional visualization model realization method based on Sphere-Board | |
CN116560746A (en) | Dynamic loading system and dynamic loading method for real-time weather under virtual engine platform | |
CN111783294B (en) | Virtual simulation method for landscape plant landscaping based on Lumion | |
CN101364311A (en) | Fast and automatically modeling method in large-scale city simulation | |
CN1156797C (en) | Method of creating vivid lighting effect under virtual environment several factor effects | |
CN114937137B (en) | BIM and GIS-based building environment intelligent analysis method | |
Li | Protection of Ethnic Cultural Value: A Case Study of VR Scene Construction in Basha Village | |
Sun et al. | Application of computer technology in the visualized landscape design of modern urban garden environment | |
Zhang et al. | Simulation of snow effects in visual simulation of virtual campus based on OSG | |
CN113516777A (en) | Three-dimensional automatic modeling and visualization method for urban building | |
Klein | Managing the scalability of visual exploration using game engines to analyse UHI scenarios | |
Nishita et al. | Modeling and rendering methods of clouds | |
Chen et al. | Terrain Visual Simulation Modeling Technology Base on Agricultural Machinery Simulation | |
Liu | Design of virtual display system for Guangxi minority scenic spots based on virtual reality | |
Li et al. | Research on Landscape Architecture Modeling Simulation System Based on Computer Virtual Reality Technology | |
CN108961412B (en) | Three-dimensional cloud simulation method based on self-adaptive far-field grid | |
Ding et al. | Real-time rain and snow rendering |
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 |