Virtual scene generation method based on unreal engine, vehicle-mounted terminal equipment and medium

The Unreal Engine is combined with the sky sphere and particle system to generate virtual scenes based on weather and climate data, which solves the problem that the car-side scene display cannot meet the needs of the real environment and improves visual expression and user experience.

CN118587348APending Publication Date: 2024-09-03HUMAN HORIZONS (SHANGHAI) CLOUD COMPUTING TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310202444.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-03
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

Existing car scene display cannot provide dynamic scenes based on the real environment and cannot meet the needs of users, especially when the computing power of car chips is limited.

Method used

The virtual scene generation method based on Unreal Engine is used to obtain weather data, sun position data and climate data, adjust the lighting and particle system parameters of the sky ball, and combine the sky ball and particle system in Unreal Engine to generate a virtual scene to display weather and Climate-related virtual scenes.

Benefits of technology

It improves the visual expressiveness of the car-side desktop, creates an atmosphere consistent with the real environment for users, and improves the overall user experience in the cockpit.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118587348A
    Figure CN118587348A
Patent Text Reader

Abstract

The invention relates to a virtual scene generation method based on an unreal engine, in-vehicle terminal equipment and a computer readable storage medium. The method comprises the following steps: acquiring weather data, sun position data and climate data; according to the weather data and the sun position data, adjusting illumination related parameters of a sky ball in the unreal engine and particle state parameters of a particle system; adjusting background related parameters of a sky ball in the unreal engine and particle effect parameters of a particle system according to the climate data; and generating a virtual scene based on the sky ball and the particle system after parameter adjustment. According to the method, under the condition that the computing power of a vehicle regulation chip is limited, a mode of combining scene change of a sky ball in an unreal engine with a particle system is used, a virtual scene related to weather and climate is displayed at the vehicle terminal, the visual expressive force of a desktop of the vehicle terminal is improved, an atmosphere conforming to a real environment is created for a user, and the user experience is improved. And the overall user experience in the cabin is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of vehicle display processing, and in particular to a virtual scene generation method based on Unreal Engine, a vehicle terminal device, and a computer-readable storage medium. Background Art

[0002] Most of the existing car computers display two sets of skins, black and white. Some car computers use dynamic wallpapers to display scene animations, and the atmosphere is obviously not suitable for the 3D digital car desktop of the car computer. Therefore, the scene display screen of the existing car computer cannot provide dynamic scenes based on the real environment, and thus cannot meet the user needs of the car computer. Summary of the invention

[0003] Based on this, it is necessary to provide a virtual scene generation method based on Unreal Engine, a vehicle-side device and a computer-readable storage medium to address the above-mentioned technical problems. When the computing power of the vehicle-standard chip is limited, the scene transformation of the sky ball in Unreal Engine is combined with the particle system to display virtual scenes related to weather and climate on the vehicle-side, enhance the visual expressiveness of the vehicle-side desktop, create an atmosphere that conforms to the real environment for users, and enhance the overall user experience in the cockpit.

[0004] A virtual scene generation method based on Unreal Engine is applied to the Unreal Engine at the vehicle end, comprising: obtaining weather data, sun position data and climate data; adjusting the illumination related parameters of a sky ball in the Unreal Engine and the particle state parameters of a particle system according to the weather data and the sun position data; adjusting the background related parameters of a sky ball in the Unreal Engine and the particle effect parameters of a particle system according to the climate data; and generating a virtual scene based on the sky ball and the particle system after the parameter adjustment.

[0005] In one of the embodiments, the lighting related parameters of the sky sphere and the particle state parameters of the particle system in the Unreal Engine are adjusted according to the weather data and the sun position data, including: determining the input parameter data of the enhanced sun positioning component according to the sun position data; determining the input parameter data of the sky atmosphere component according to the weather data; adjusting the lighting related parameters of the sky sphere according to the input parameter data of the enhanced sun positioning component; adjusting the particle state parameters of the particle system according to the input parameter data of the sky atmosphere component.

[0006] In one of the embodiments, the enhanced solar positioning component includes a parallel light component, a skylight component and a Rayleigh scattering component inside a sky sphere; the lighting-related parameters of the sky sphere are adjusted according to the input data of the enhanced solar positioning component, including: adjusting the Rayleigh scattering parameters of the sky sphere according to the input data of the Rayleigh scattering component; adjusting the lighting intensity parameters of the sky sphere according to the input data of the parallel light component and the input data of the skylight component.

[0007] In one of the embodiments, adjusting the particle state parameters of the particle system according to the input parameter data of the sky atmosphere component includes: adjusting the particle material parameters of the particle system according to the input parameter data of the sky atmosphere component.

[0008] In one embodiment, the climate data includes season data and / or solar term data, and the background-related parameters of the sky ball in the Unreal Engine and the particle effect parameters of the particle system are adjusted according to the climate data, including: adjusting the background-related parameters of the sky ball in the Unreal Engine and the particle effect parameters of the particle system according to the season data and / or solar term data.

[0009] In one of the embodiments, adjusting background-related parameters of a sky sphere in the Unreal Engine according to seasonal data and / or solar term data includes: adjusting background lighting parameters and background HDRI parameters in the sky sphere according to seasonal data and / or solar term data.

[0010] In one embodiment, adjusting particle effect parameters of a particle system in the Unreal Engine according to seasonal data and / or solar term data includes: determining particle characteristics that match the seasonal data and / or solar term data; and adjusting particle special effect parameters of the particle system according to the particle characteristics.

[0011] In one of the embodiments, a method for generating a virtual scene based on Unreal Engine also includes: acquiring time data; generating a virtual scene based on a sky ball and a particle system with adjusted parameters, including: generating a virtual scene based on a sky ball and a particle system with adjusted parameters, time data, and weather data.

[0012] In one embodiment, the solar position data includes solar azimuth data, which is determined based on the longitude and latitude of the sun's current position and the date.

[0013] In one of the embodiments, a method for generating a virtual scene based on Unreal Engine also includes: obtaining weather information, sun position information, and climate information from a third party; normalizing the weather information, sun position information, and climate information, respectively, to obtain weather data, sun position data, and climate data.

[0014] In one of the embodiments, a method for generating a virtual scene based on the Unreal Engine also includes: obtaining external environment information through sensors of the vehicle computer; correcting weather information based on the external environment information; and normalizing the weather information, sun position information, and climate information respectively, including: normalizing the corrected weather information, sun position information, and climate information respectively.

[0015] In one embodiment, obtaining weather information, sun position information, and climate information from a third party includes: obtaining weather information, sun position information, and climate information from the third party through an Unreal Engine plug-in.

[0016] In one embodiment, generating a virtual scene based on a sky sphere and a particle system with adjusted parameters includes: obtaining a virtual vehicle, and generating a virtual scene according to the virtual vehicle, the sky sphere and the particle system with adjusted parameters.

[0017] In one of the embodiments, a method for generating a virtual scene based on Unreal Engine also includes: displaying the virtual scene on a display screen of a vehicle computer.

[0018] In one embodiment, obtaining weather data, sun position data and climate data includes: obtaining weather data, sun position data and climate data when the vehicle is parked or driving at the vehicle terminal.

[0019] A vehicle terminal device comprises: an information processing module for acquiring weather data, sun position data and climate data; a resource management module for adjusting the illumination-related parameters of a sky ball in an Unreal Engine and the particle state parameters of a particle system according to the weather data and the sun position data, adjusting the background-related parameters of a sky ball in the Unreal Engine and the particle effect parameters of the particle system according to the climate data, and generating a virtual scene based on the sky ball and the particle system after the parameters are adjusted.

[0020] In one embodiment, the resource management module includes a scene manager, a particle system manager and a parameter adjuster; the parameter adjuster is used to determine the lighting-related parameter values ​​of the sky sphere in the Unreal Engine and the particle state parameter values ​​of the particle system according to weather data and sun position data, and to determine the background-related parameter values ​​of the sky sphere in the Unreal Engine and the particle effect parameter values ​​of the particle system according to the climate data; the scene manager is used to adjust the lighting-related parameters of the sky sphere according to the lighting-related parameter values, and to adjust the background-related parameters of the sky sphere according to the background-related parameter values; the particle system manager is used to adjust the particle state parameters of the particle system according to the particle state parameter values, and to adjust the particle effect parameters of the particle system according to the particle effect parameter values.

[0021] In one of the embodiments, the vehicle-end device also includes an environment perception module; the environment perception module is used to receive external environment information from the vehicle-end sensor and input the external environment information into the information processing module; the information processing module is also used to correct the weather data according to the external environment information.

[0022] In one of the embodiments, the vehicle terminal device further includes a display screen of the vehicle; the display screen of the vehicle is used to display the virtual scene.

[0023] The present application also provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of a method for generating a virtual scene based on an Unreal Engine are implemented.

[0024] The above-mentioned virtual scene generation method based on Unreal Engine, vehicle-side device and computer-readable storage medium are applied to the Unreal Engine on the vehicle-side, including: obtaining weather data, sun position data and climate data; adjusting the lighting-related parameters of the sky ball in the Unreal Engine and the particle state parameters of the particle system according to the weather data and the sun position data; adjusting the background-related parameters of the sky ball in the Unreal Engine and the particle effect parameters of the particle system according to the climate data; generating a virtual scene based on the sky ball and particle system after parameter adjustment. Therefore, in the case of limited computing power of automotive chips, the scene transformation of the sky ball in the Unreal Engine is combined with the particle system to display virtual scenes related to weather and climate on the vehicle-side, improve the visual expressiveness of the vehicle-side desktop, create an atmosphere that conforms to the real environment for users, and improve the overall user experience in the cockpit. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1 It is a schematic diagram of an application of a method for generating a virtual scene based on Unreal Engine in one embodiment;

[0026] Figure 2 A schematic diagram of a flow chart of a method for generating a virtual scene based on Unreal Engine in one embodiment;

[0027] Figure 3 A schematic diagram of building a VaRest plug-in in Unreal Engine in one embodiment;

[0028] Figure 4 A schematic diagram of the configuration of a sky ball in one embodiment;

[0029] Figure 5 A schematic diagram of an interface display of a virtual scene corresponding to weather in one embodiment;

[0030] Figure 6 A schematic diagram of an interface display of a virtual scene corresponding to a season in an embodiment;

[0031] Figure 7 It is a schematic diagram of an interface display of a virtual scene of a parking scene and a driving scene in one embodiment;

[0032] Figure 8 A schematic diagram of the internal hardware structure of a vehicle terminal device in an embodiment;

[0033] Fig. 9 Schematic diagram of the internal modules of a vehicle terminal device in one embodiment. DETAILED DESCRIPTION

[0034] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0035] The virtual scene generation method based on Unreal Engine provided by this application can be applied to Figure 1 In the vehicle terminal device 100 shown in FIG. Figure 1 As shown, the front seat space of the vehicle 10 is partially configured with a vehicle-side device 100. The vehicle-side device 100 is a computer device that has the function of communicating data with other communication devices. The vehicle-side device 100 is configured with a vehicle-mounted central control screen 102. The vehicle-side device 100 is installed with an Unreal Engine. The Unreal Engine has the function of simulating virtual scenes and displaying virtual scenes. Specifically, the Unreal Engine in the vehicle-side device 100 obtains the current weather data, sun position data, and climate data from a third party, adjusts the lighting-related parameters of the sky ball in the Unreal Engine and the particle state parameters of the particle system according to the weather data and the sun position data, adjusts the background-related parameters of the sky ball in the Unreal Engine and the particle effect parameters of the particle system according to the climate data, and generates a virtual scene based on the sky ball and the particle system after the parameters are adjusted. Furthermore, the virtual scene is displayed in the vehicle-mounted central control screen 102, the visual expressiveness of the vehicle-side desktop is enhanced, an atmosphere that conforms to the real environment is created for users, and the overall user experience in the cockpit is improved.

[0036] In one embodiment, the present application provides a method for generating a virtual scene based on Unreal Engine, which is applied to Figure 1 The vehicle terminal device 100. Figure 2 As shown, a method for generating a virtual scene based on Unreal Engine comprises the following steps:

[0037] S202, obtaining weather data, sun position data and climate data.

[0038] In this embodiment, weather data, sun position data and climate data are obtained from a third party through a geographic information system. Weather data is used to characterize the current weather environment. For example, heavy snow weather, rainy weather, cloudy weather and sunny weather. Sun position data is used to characterize the current sun position. For example, the rising sun, the midday sun and the setting sun in the evening. Climate data is used to characterize the current climate conditions. For example, the climate conditions of each season in spring, summer, autumn and winter, and the climate conditions corresponding to each solar term in the 24 solar terms.

[0039] In one example, the solar position data includes solar azimuth data, which is determined based on the longitude and latitude of the sun's current position and the date.

[0040] Specifically, the solar azimuth data is determined based on the longitude and latitude of the current position of the vehicle computer and the date. The solar position data is determined based on the solar azimuth data. The solar position data includes the solar position angle.

[0041] S204, adjusting the lighting related parameters of the sky sphere in the Unreal Engine and the particle state parameters of the particle system according to the weather data and the sun position data.

[0042] In this embodiment, a sky ball is pre-created in the Unreal Engine, and the sky ball is specifically constructed by a spherical model and a material. The sky ball matches the Earth's atmosphere, and the sky ball is used to simulate a real weather environment. The created sky ball includes a variety of configurations, including configurations of lighting-related parameters. Among them, the lighting-related parameters of the sky ball are adjusted according to weather data and sun position data to adjust the light brightness and light color displayed by the sky ball, so that the displayed sky ball matches the weather data and sun position data.

[0043] The animation effect of the virtual scene in the Unreal Engine is realized by generating the animation effect in the virtual scene through the particle system that comes with the Unreal Engine. The particle system constructs a variety of weather scenes by generating multiple particles. For example, foggy weather, rainy weather, and overcast and rainy weather generate particles in different states such as sunny, rainy, snowflakes, fog, and dust. Different weather scenes are constructed by generating different particle states. Among them, the particle state parameters of the particle system in the Unreal Engine are adjusted according to the weather data and the sun position data, so that the particle system generates particles in different states, thereby constructing a weather scene that matches the weather data and the sun position data.

[0044] S206, adjusting background related parameters of the sky sphere in the Unreal Engine and particle effect parameters of the particle system according to the climate data.

[0045] In this embodiment, the background-related parameters of the sky ball are adjusted according to the climate data, so as to control the 3D background content of the sky ball and produce background materials corresponding to the climate data. For example, the climate data corresponds to the data of each season in the four seasons, and the background-related parameters of the sky ball are adjusted by the data corresponding to the season, so as to produce background materials corresponding to each season and construct climate scenes corresponding to different seasons.

[0046] According to the climate data, the particle effect parameters of the particle system in the Unreal Engine are adjusted, so as to control the particle system to produce particle effects corresponding to the climate data. For example, the climate data corresponds to the data of each season in the four seasons. The particle effect parameters of the particle system in the Unreal Engine are adjusted by the corresponding season data, so as to produce particle effects corresponding to each season. For example: the climate data is data representing the spring climate, and the particle effect parameters of the particle system in the Unreal Engine are adjusted so that the particle system produces particle effects of dandelions floating or butterflies flying. The climate data is data representing the summer climate, and the particle effect parameters of the particle system in the Unreal Engine are adjusted so that the particle system produces particle effects of summer rain falling. The climate data is data representing the autumn climate, and the particle effect parameters of the particle system in the Unreal Engine are adjusted so that the particle system produces particle effects of autumn leaves floating or autumn frost falling. The climate data is data representing the winter climate, and the particle effect parameters of the particle system in the Unreal Engine are adjusted so that the particle system produces particle effects of winter snow floating.

[0047] S208, generating a virtual scene based on the sky ball and particle system after parameter adjustment.

[0048] In this embodiment, after the parameters of the sky ball and the particle system are adjusted, the Unreal Engine generates a virtual scene in which the sky ball simulates the real physical environment, and the particle system generates particles of different states and particle special effects to simulate the weather environment and climate environment.

[0049] The above-mentioned method for generating a virtual scene based on Unreal Engine includes: obtaining weather data, sun position data and climate data; adjusting the lighting-related parameters of the sky ball in Unreal Engine and the particle state parameters of the particle system according to the weather data and the sun position data; adjusting the background-related parameters of the sky ball in Unreal Engine and the particle effect parameters of the particle system according to the climate data; generating a virtual scene based on the sky ball and particle system after parameter adjustment. Therefore, in the case of limited computing power of automotive chips, the scene transformation of the sky ball in Unreal Engine is combined with the particle system to display virtual scenes related to weather and climate on the vehicle side, improve the visual expressiveness of the desktop on the vehicle side, create an atmosphere that conforms to the real environment for users, and improve the overall user experience in the cockpit.

[0050] In one embodiment, before the above-mentioned step of obtaining weather data, solar position data and climate data, it also includes: obtaining weather information, solar position information and climate information from a third party; normalizing the weather information, solar position information and climate information respectively to obtain weather data, solar position data and climate data.

[0051] In this embodiment, third-party information is obtained according to GIS (Geographic Information System or Geo-Information system). The third-party information includes weather information, sun position information and climate information. The weather information, sun position information and climate information are normalized respectively, so that the obtained data meet the same unified measurement scale.

[0052] In one example, before the above-mentioned step of normalizing the weather information, the sun's position information and the climate information respectively, it also includes: obtaining the external environment information of the vehicle through the sensor of the vehicle computer; correcting the weather information according to the external environment information; the above-mentioned step of normalizing the weather information, the sun's position information and the climate information respectively includes: normalizing the corrected weather information, the sun's position information and the climate information respectively.

[0053] In this example, various sensors on the vehicle computer are used to receive the actual environmental data outside the vehicle and summarize the external environmental information. The weather information obtained from a third party is corrected using the external environmental information. Specifically, if the obtained weather information matches the weather indicated by the external environmental information, the obtained weather information is directly used for normalization. If the obtained weather information does not match the weather indicated by the external environmental information, the obtained weather information is corrected using the external environmental information, and the corrected weather information is then normalized.

[0054] For example, the weather information obtained from a third-party weather service includes information indicating rain, but based on the external environment information of the vehicle, it is recognized that it is not raining at the current location of the vehicle computer, so the information indicating rain in the weather information is modified to not raining.

[0055] Therefore, the accuracy of weather data can be further improved, making the simulated virtual scene more appropriate to the current vehicle environment.

[0056] In one example, the obtaining of weather information, sun position information, and climate information from a third party includes: obtaining weather information, sun position information, and climate information from a third party through an Unreal Engine plug-in.

[0057] In this example, the plug-in of the Unreal Engine is the VaRest plug-in of the Unreal Engine. For example, the VaRest plug-in of the Unreal Engine can be used to obtain network time and weather information of various places from a third party. Figure 3As shown, create a new "Blueprint Class Actor" in Unreal Engine, name it BP_HttpActor, put it into the scene, double-click BP_HTTP to enter, switch to the "Event Graph", call out the VaRestSubsystem object, call the callurl method, and then set the relevant properties. The callback property must extend a custom event to receive the callback. Use GetResponse ContentasString to convert the returned json into a string. Therefore, the construction of the VaRest plugin for Unreal Engine is completed.

[0058] In one embodiment, the above-mentioned adjustment of lighting related parameters of the sky sphere in the Unreal Engine and particle state parameters of the particle system according to weather data and sun position data includes: determining input parameter data of the enhanced sun positioning component according to the sun position data; determining input parameter data of the sky atmosphere component according to the weather data; adjusting the lighting related parameters of the sky sphere according to the input parameter data of the enhanced sun positioning component; adjusting the particle state parameters of the particle system according to the input parameter data of the sky atmosphere component.

[0059] Specifically, the enhanced sun positioning component and sky atmosphere component are used to update the data in the sky sphere and particle system in real time. The configuration of the enhanced sun positioning component and sky atmosphere component is as follows Figure 4 Specifically, the input parameter data of the enhanced solar positioning component is determined according to the solar position data, and then the enhanced solar positioning component is adjusted according to the input parameter data of the enhanced solar positioning component. The input parameter data of the sky atmosphere component is determined according to the weather data, and then the sky atmosphere component is adjusted according to the input parameter data of the sky atmosphere component.

[0060] In one example, an enhanced solar positioning component includes a parallel light component, a skylight component and a Rayleigh scattering component inside a sky sphere; the lighting-related parameters of the sky sphere are adjusted according to the input data of the enhanced solar positioning component, including: adjusting the Rayleigh scattering parameters of the sky sphere according to the input data of the Rayleigh scattering component; adjusting the lighting intensity parameters of the sky sphere according to the input data of the parallel light component and the input data of the skylight component.

[0061] In this example, the Unreal Engine obtains the sun position data and weather data in real time based on third-party data, thereby synchronously updating the input data of the parallel light component, the skylight component, and the Rayleigh scattering component in the sky sphere. Figure 3 As shown, adjust the parameters of Rayleigh in SkyAtmosphere in the sky ball according to the sun position data to control the color of the atmosphere, and adjust the parameters corresponding to DirectionalLight and SkyLight accordingly to adjust the light intensity.

[0062] In one example, the adjusting of the particle state parameters of the particle system according to the input data of the sky atmosphere component further includes: adjusting the particle material parameters of the particle system according to the input data of the sky atmosphere component.

[0063] In this example, the input data of the sky atmosphere component is determined according to the weather data, and then the particle material parameters of the particle system are adjusted to realize weather state particles, such as fog, rain, dust, etc. Specifically, a material parameter curve is created in the Weathershader, and the parameters are passed to the MaterialParameterCollection in the blueprint to control the changes in weather particle properties.

[0064] In summary, when adjusting the lighting parameters of the sky sphere and the particle state parameters of the particle system in the Unreal Engine according to the weather data and the sun position data, a virtual scene corresponding to the weather can be realized. Figure 5 shown.

[0065] In one embodiment, the climate data includes season data and / or solar term data, and the above-mentioned adjusting the background-related parameters of the sky ball in the Unreal Engine and the particle effect parameters of the particle system according to the climate data includes: adjusting the background-related parameters of the sky ball in the Unreal Engine and the particle effect parameters of the particle system according to the season data and / or solar term data.

[0066] In this embodiment, the Unreal Engine adjusts the 3D background content and particle effects in the Unreal Engine in real time according to the season data and / or solar term data of the third party. The adjustment method is: adjusting the background related parameters of the sky ball in the Unreal Engine and the particle effect parameters of the particle system according to the season data and / or solar term data, so as to achieve different sky ball backgrounds and different particle effects.

[0067] For example, the 3D background material is made from the different tones of the four seasons, and the seasonal particle effects are updated and loaded in real time according to the third-party weather data. For example, dandelions flutter, butterflies fly, autumn leaves fall, etc. The virtual scene generated is like Figure 6 shown.

[0068] In one example, adjusting background-related parameters of a sky sphere in the Unreal Engine according to season data and / or solar term data includes: adjusting background lighting parameters and background HDRI parameters in the sky sphere according to season data and / or solar term data.

[0069] Specifically, season data and solar term data are obtained according to the weather forecast information of a third party, and lighting parameters and background HDRI data are updated in BP_Checkforbackground of Unreal Engine based on the season data and / or solar term data.

[0070] In one example, adjusting particle effect parameters of a particle system in an Unreal Engine according to seasonal data and / or solar term data includes: determining particle features that match the seasonal data and / or solar term data; and adjusting particle special effect parameters of the particle system according to the particle features.

[0071] Specifically, EventDispatchers are used for inter-blueprint communication. When the season or solar term changes, the particle characteristics that match the season data and / or solar term data are determined, the particle effect parameters of the particle system are adjusted according to the particle characteristics, and the corresponding Niagara particle effects are activated. Particle effects include falling leaves, dandelions, etc.

[0072] In one example, before generating a virtual scene based on the sky sphere and particle system after parameter adjustment, the method further includes: acquiring time data. Generating a virtual scene based on the sky sphere and particle system after parameter adjustment includes: generating a virtual scene based on the sky sphere and particle system after parameter adjustment, time data, and weather data.

[0073] Specifically, call the UpdateWeather method and Updatetime method in the blueprint Ultra_Dynamic_Sky to change the background of the season or solar term and update the display of weather and time.

[0074] In summary, based on the Unreal Engine to obtain seasonal data and solar term data, real-time adjustments are made to the corresponding climate scene changes, providing users with a variety of scenes including four seasons, 24 solar terms, etc., creating an atmosphere that conforms to the real environment for users and improving the overall user experience in the cockpit.

[0075] In one embodiment, generating a virtual scene based on the sky sphere and the particle system after parameter adjustment includes: acquiring a virtual vehicle, and generating a virtual scene according to the virtual vehicle, the sky sphere and the particle system after parameter adjustment.

[0076] In one example, after the virtual scene is generated according to the virtual vehicle, the sky sphere with adjusted parameters, and the particle system with adjusted parameters, the method further includes: displaying the virtual scene on a display screen of the vehicle computer.

[0077] In this embodiment, the display screen of the vehicle is the vehicle-mounted central control screen. The virtual scene is displayed on the vehicle-mounted central control screen. The virtual scene includes a virtual vehicle, and a virtual environment related to weather and climate generated based on the sky ball with adjusted parameters and the particle system with adjusted parameters. The virtual scene displayed on the vehicle-mounted central control screen can be found in Figure 4-Figure 6 shown.

[0078] In one embodiment, the obtaining of weather data, sun position data and climate data includes: obtaining weather data, sun position data and climate data when the vehicle is parked or driving on the vehicle side.

[0079] In this embodiment, when the vehicle is parked or driving, a method for generating a virtual scene based on Unreal Engine is triggered. Figure 7 As shown, the in-vehicle central control screen displays the virtual scenes of the vehicle's parking scene and driving scene. In addition, in any of the parking scenes and driving scenes, the weather data, sun position data and climate data at each moment are obtained, and a virtual scene is generated based on the weather data, sun position data and climate data, and the generated virtual scene is displayed on the in-vehicle central control screen of the vehicle computer. Therefore, the generation and display of virtual scenes can be triggered in different scenes.

[0080] In summary, when the computing power of automotive chips is limited, the combination of sky ball scene change and particle system can maximize the visual expression of the car desktop. In addition, according to weather data, sun position data, season data, and solar term data, the 3D background content in the Unreal Engine is adjusted in real time, and seasonal particle effects are updated and loaded in real time, which can provide users with real-time dynamic virtual scenes that match the external environment.

[0081] It should be understood that, although the various steps in the flow chart are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flow chart may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.

[0082] In one embodiment, the present application further provides a vehicle terminal device. The vehicle terminal device is as follows Figure 1 As shown Figure 1 The corresponding content description. Among them, the internal hardware structure of the vehicle terminal equipment can be found in Figure 8 shown.

[0083] Furthermore, this embodiment describes the internal structure of the vehicle terminal device:

[0084] like Fig. 9As shown, a vehicle terminal device includes an information processing module 902 and a resource management module 904. The information processing module 902 is used to obtain weather data, sun position data and climate data; the resource management module 904 is used to adjust the lighting related parameters of the sky ball in the Unreal Engine and the particle state parameters of the particle system according to the weather data and the sun position data, adjust the background related parameters of the sky ball in the Unreal Engine and the particle effect parameters of the particle system according to the climate data, and generate a virtual scene based on the sky ball and the particle system after the parameters are adjusted.

[0085] In one embodiment, Fig. 9 As shown, the resource management module 904 includes a scene manager, a particle system manager and a parameter adjuster; the parameter adjuster is used to determine the lighting-related parameter values ​​of the sky sphere in the Unreal Engine and the particle state parameter values ​​of the particle system according to the weather data and the sun position data, and to determine the background-related parameter values ​​of the sky sphere in the Unreal Engine and the particle effect parameter values ​​of the particle system according to the climate data; the scene manager is used to adjust the lighting-related parameters of the sky sphere according to the lighting-related parameter values, and to adjust the background-related parameters of the sky sphere according to the background-related parameter values; the particle system manager is used to adjust the particle state parameters of the particle system according to the particle state parameter values, and to adjust the particle effect parameters of the particle system according to the particle effect parameter values.

[0086] In one embodiment, Fig. 9 As shown, the vehicle-side device also includes an environment perception module 906; the environment perception module 906 is used to receive the external environment information from the vehicle-side sensor and input the external environment information into the information processing module 902; the information processing module 902 is also used to correct the weather data according to the external environment information.

[0087] In one embodiment, the vehicle terminal device further includes a vehicle display screen 908; the vehicle display screen 909 is used to display the virtual scene.

[0088] Specifically, Fig. 9 As shown, the information processing module 902 is connected to an external third party for communication. For example, it is connected to an external weather service for communication to obtain weather information. It is connected to an external sun position service for communication to obtain sun position information. It is connected to an external calendar service for communication to obtain solar term information. Furthermore, the information processing module 902 obtains weather data and climate data from the weather information, obtains sun position data from the sun position information, and obtains climate data from the solar term information.

[0089] The environment perception module 906 uses various sensors on the vehicle computer to receive the actual environment data outside the vehicle, obtains the environment information outside the vehicle after summarizing and processing, and inputs the environment information outside the vehicle into the information processing module 902.

[0090] The information processing module 902 corrects the weather and solar terms based on the external environmental information perceived outside the vehicle; normalizes the weather information, sun position information and climate information respectively to obtain weather data, sun position data and climate data, and inputs them into the resource management module 904.

[0091] The scene manager, particle system manager and parameter regulator in the resource management module 904 are used to provide a component basis for the Unreal Engine. When the Unreal Engine generates a virtual scene, it is displayed on the display screen 908 of the vehicle computer.

[0092] For the specific definition of a vehicle-side device, please refer to the definition of a virtual scene generation method based on Unreal Engine above, which will not be repeated here. Each module in the above-mentioned vehicle-side device can be implemented in whole or in part through software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0093] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented: obtaining weather data, solar position data, and climate data; adjusting lighting-related parameters of a sky sphere in an Unreal Engine and particle state parameters of a particle system according to the weather data and solar position data; adjusting background-related parameters of a sky sphere in an Unreal Engine and particle effect parameters of a particle system according to the climate data; and generating a virtual scene based on the sky sphere and particle system after parameter adjustment.

[0094] In one embodiment, when the computer program is executed by the processor to implement the above-mentioned steps of adjusting the lighting related parameters of the sky sphere in the Unreal Engine and the particle state parameters of the particle system according to the weather data and the sun position data, the following steps are specifically implemented: determining the input parameter data of the enhanced sun positioning component according to the sun position data; determining the input parameter data of the sky atmosphere component according to the weather data; adjusting the lighting related parameters of the sky sphere according to the input parameter data of the enhanced sun positioning component; adjusting the particle state parameters of the particle system according to the input parameter data of the sky atmosphere component.

[0095] In one embodiment, the enhanced solar positioning component includes a parallel light component, a skylight component and a Rayleigh scattering component inside a sky sphere; when the computer program is executed by the processor to implement the above-mentioned steps of adjusting the lighting-related parameters of the sky sphere according to the input data of the enhanced solar positioning component, the following steps are specifically implemented: adjusting the Rayleigh scattering parameters of the sky sphere according to the input data of the Rayleigh scattering component; adjusting the lighting intensity parameters of the sky sphere according to the input data of the parallel light component and the input data of the skylight component.

[0096] In one embodiment, when the computer program is executed by a processor to implement the above-mentioned steps of adjusting the particle state parameters of the particle system according to the input data of the sky atmosphere component, the following steps are specifically implemented: adjusting the particle material parameters of the particle system according to the input data of the sky atmosphere component.

[0097] In one embodiment, the climate data includes season data and / or solar term data. When the computer program is executed by the processor to implement the above-mentioned steps of adjusting the background-related parameters of the sky ball in the Unreal Engine and the particle effect parameters of the particle system according to the climate data, the following steps are specifically implemented: adjusting the background-related parameters of the sky ball in the Unreal Engine and the particle effect parameters of the particle system according to the season data and / or solar term data.

[0098] In one embodiment, when the computer program is executed by a processor to implement the above-mentioned steps of adjusting the background-related parameters of the sky sphere in the Unreal Engine according to the seasonal data and / or the solar term data, the following steps are specifically implemented: adjusting the background lighting parameters and background HDRI parameters in the sky sphere according to the seasonal data and / or the solar term data.

[0099] In one embodiment, when the computer program is executed by a processor to implement the above-mentioned steps of adjusting the particle effect parameters of the particle system in the Unreal Engine according to the seasonal data and / or the solar term data, the following steps are specifically implemented: determining the particle characteristics that match the seasonal data and / or the solar term data; and adjusting the particle special effects parameters of the particle system according to the particle characteristics.

[0100] In one of the embodiments, the computer program is executed by the processor to further implement the following steps: acquiring time data; when the computer program is executed by the processor to implement the above-mentioned steps of generating a virtual scene based on the sky ball and particle system after parameter adjustment, the following steps are specifically implemented: generating a virtual scene based on the sky ball and particle system after parameter adjustment, time data and weather data.

[0101] In one embodiment, the solar position data includes solar azimuth data, which is determined based on the longitude and latitude of the sun's current position and the date.

[0102] In one embodiment, the computer program executed by the processor also implements the following steps: obtaining weather information, solar position information and climate information from a third party; normalizing the weather information, solar position information and climate information respectively to obtain weather data, solar position data and climate data.

[0103] In one of the embodiments, the computer program is executed by the processor to implement the following steps: obtaining external environment information through the vehicle's sensor; correcting the weather information according to the external environment information; when the computer program is executed by the processor to implement the above-mentioned steps of normalizing the weather information, sun position information and climate information respectively, the following steps are specifically implemented: normalizing the corrected weather information, sun position information and climate information respectively.

[0104] In one embodiment, when the computer program is executed by the processor to implement the above-mentioned steps of obtaining weather information, sun position information and climate information from a third party, the following steps are specifically implemented: obtaining weather information, sun position information and climate information from a third party through an Unreal Engine plug-in.

[0105] In one of the embodiments, when the computer program is executed by a processor to implement the above-mentioned steps of generating a virtual scene based on the sky sphere and the particle system after parameter adjustment, the following steps are specifically implemented: obtaining a virtual vehicle, and generating a virtual scene based on the virtual vehicle, the sky sphere after parameter adjustment, and the particle system after parameter adjustment.

[0106] In one of the embodiments, the computer program is executed by the processor to further implement the following steps: displaying a virtual scene on a display screen of the vehicle computer.

[0107] In one embodiment, when the computer program is executed by the processor to implement the above-mentioned steps of obtaining weather data, sun position data and climate data, the following steps are specifically implemented: when the vehicle on the vehicle side is parked or driving, weather data, sun position data and climate data are obtained.

[0108] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0109] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0110] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A method for generating a virtual scene based on Unreal Engine, characterized in that: The method is applied to the Unreal Engine on the vehicle side, and the method includes: Get weather data, sun position data, and climate data; Adjusting the lighting related parameters of the sky sphere and the particle state parameters of the particle system in the Unreal Engine according to the weather data and the sun position data; Adjusting background-related parameters of the sky sphere in the Unreal Engine and particle effect parameters of the particle system according to the climate data; The virtual scene is generated based on the sky sphere and particle system after parameter adjustment.

2. The method according to claim 1, characterized in that The step of adjusting the illumination-related parameters of the sky sphere in the Unreal Engine and the particle state parameters of the particle system according to the weather data and the sun position data comprises: Determining input parameter data of an enhanced sun positioning assembly according to the sun position data; Determine input parameter data of a sky atmosphere component according to the weather data; adjusting illumination-related parameters of the sky sphere according to input data of the enhanced sun positioning assembly; The particle state parameters of the particle system are adjusted according to the input parameter data of the sky atmosphere component.

3. The method according to claim 2, characterized in that The enhanced sun positioning component includes a parallel light component, a skylight component and a Rayleigh scattering component inside the sky sphere; The step of adjusting the illumination-related parameters of the sky sphere according to the input data of the enhanced sun positioning assembly comprises: Adjusting the Rayleigh scattering parameters of the sky sphere according to the input parameter data of the Rayleigh scattering component; The illumination intensity parameter of the sky sphere is adjusted according to the input parameter data of the parallel light component and the input parameter data of the skylight component.

4. The method according to claim 2, characterized in that: The step of adjusting the particle state parameters of the particle system according to the input parameter data of the sky atmosphere component includes: The particle material parameters of the particle system are adjusted according to the input data of the sky atmosphere component.

5. The method according to claim 1, characterized in that: The climate data includes season data and / or solar term data, and the step of adjusting the background-related parameters of the sky ball in the Unreal Engine and the particle effect parameters of the particle system according to the climate data includes: The background related parameters of the sky sphere and the particle effect parameters of the particle system in the Unreal Engine are adjusted according to the season data and / or solar term data.

6. The method according to claim 5, characterized in that The step of adjusting the background related parameters of the sky ball in the Unreal Engine according to the season data and / or solar term data includes: The background illumination parameters and background HDR I parameters in the sky sphere are adjusted according to the season data and / or solar term data.

7. The method according to claim 5, characterized in that The step of adjusting the particle effect parameters of the particle system in the Unreal Engine according to the season data and / or solar term data includes: Determining particle features that match the seasonal data and / or solar term data; The particle special effect parameters of the particle system are adjusted according to the particle characteristics.

8. The method according to claim 1, characterized in that The method further comprises: acquiring time data; The generating the virtual scene based on the sky ball and particle system after parameter adjustment includes: The virtual scene is generated based on the sky ball and particle system after parameter adjustment, the time data and the weather data.

9. The method according to claim 1, characterized in that: The solar position data includes solar azimuth data, which is determined based on the longitude and latitude of the current position of the sun and the date.

10. The method according to claim 1, characterized in that The method further comprises: Obtain weather information, sun position information, and climate information from third parties; The weather information, the sun position information and the climate information are respectively normalized to obtain the weather data, the sun position data and the climate data.

11. The method according to claim 10, characterized in that The method further comprises: Obtaining information about the external environment through the vehicle's sensors; Correcting the weather information according to the external environment information; The normalizing the weather information, the sun position information and the climate information respectively includes: The corrected weather information, the sun position information and the climate information are normalized respectively.

12. The method according to claim 10, characterized in that The obtaining of weather information, sun position information and climate information from a third party includes: Weather information, sun position information and climate information are obtained from a third party through a plug-in of the Unreal Engine.

13. The method according to claim 1, characterized in that The generating the virtual scene based on the sky ball and particle system after parameter adjustment includes: A virtual vehicle is obtained, and the virtual scene is generated according to the virtual vehicle, the sky sphere after the parameter adjustment, and the particle system after the parameter adjustment.

14. The method according to claim 13, characterized in that The method further comprises: The virtual scene is displayed on the display screen of the vehicle computer.

15. The method according to claim 1, characterized in that The obtaining of weather data, sun position data and climate data comprises: When the vehicle on the vehicle machine side is parked or driving, weather data, sun position data and climate data are obtained.

16. A vehicle terminal device, characterized in that: The vehicle terminal device includes: An information processing module for obtaining weather data, sun position data and climate data; A resource management module is used to adjust the lighting-related parameters of the sky ball in the Unreal Engine and the particle state parameters of the particle system according to the weather data and the sun position data, adjust the background-related parameters of the sky ball in the Unreal Engine and the particle effect parameters of the particle system according to the climate data, and generate the virtual scene based on the sky ball and particle system after the parameters are adjusted.

17. The vehicle terminal device according to claim 16, characterized in that: The resource management module includes a scene manager, a particle system manager and a parameter regulator; The parameter regulator is used to determine the illumination-related parameter values ​​of the sky sphere in the Unreal Engine and the particle state parameter values ​​of the particle system according to the weather data and the sun position data, and to determine the background-related parameter values ​​of the sky sphere in the Unreal Engine and the particle effect parameter values ​​of the particle system according to the climate data; A scene manager, configured to adjust illumination-related parameters of the sky sphere according to the illumination-related parameter values, and to adjust background-related parameters of the sky sphere according to the background-related parameter values; The particle system manager is used to adjust the particle state parameters of the particle system according to the particle state parameter values, and to adjust the particle effect parameters of the particle system according to the particle effect parameter values.

18. The vehicle terminal device according to claim 16, characterized in that: The vehicle terminal device also includes an environment perception module; The environment perception module is used to receive the external environment information from the sensor of the vehicle computer and input the external environment information into the information processing module; The information processing module is also used to correct the weather data according to the external environment information.

19. The vehicle terminal device according to claim 16, characterized in that: The vehicle terminal device also includes a display screen of the vehicle; The display screen of the vehicle computer is used to display the virtual scene.

20. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 15 are implemented.