Volume cloud processing method and device, electronic equipment and storage medium

By providing a volumetric cloud editing interface and key components in the 3D rendering tool, users can configure parameter generation and render volumetric clouds, solving the problem of inefficiency of existing tools and achieving more efficient volumetric cloud processing.

CN120163918APending Publication Date: 2025-06-17创峰科技
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411371504.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-12-15
Filing Date
2024-09-27
Publication Date
2025-06-17

AI Technical Summary

Technical Problem

Existing 3D rendering tools are inefficient and complex when creating and rendering volumetric clouds, resulting in users facing difficulties in obtaining high-quality volumetric clouds.

Method used

Provides a processing method and device for a volume cloud. By displaying an editing interface for key components for creating and rendering a volume cloud, users can configure key parameters to generate and render a volume cloud.

Benefits of technology

Improves the creation and rendering efficiency of volumetric clouds, simplifies user operations, reduces the learning curve, and allows users to obtain high-quality volumetric clouds more efficiently.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120163918A_ABST
    Figure CN120163918A_ABST
Patent Text Reader

Abstract

The invention discloses a volume cloud processing method and device, electronic equipment and a storage medium, and relates to the technical field of data processing. A volume cloud editing interface is displayed, the editing interface comprises a first key component and a second key component, the first key component comprises a plurality of first key parameters, the second key component comprises a plurality of second key parameters, and in response to configuration operation for the first key parameters, first configuration information corresponding to the first key parameters is determined, and generating an initial volume cloud based on the first configuration information, determining second configuration information corresponding to the plurality of second key parameters in response to a configuration operation for the plurality of second key parameters, rendering the initial volume cloud based on the second configuration information to obtain a target volume cloud, and displaying the target volume cloud on the editing interface. The volume cloud editing interface is provided, and the key component for creating and rendering the volume cloud is displayed, so that a user can obtain the volume cloud more efficiently and conveniently, and the use experience of the user is improved.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] Cross - Reference to Related Applications

[0002] This application claims priority to U.S. Patent Application No. 63 / 610,871, filed with the U.S. Patent and Trademark Office on December 15, 2023, entitled "REALISTIC VOLUMETRIC 3D CLOUDS EDITING AND RENDERING SYSTEM", the entire content of which is incorporated herein by reference. Technical Field

[0003] This application relates to the field of data processing technology, and more particularly, to a method, apparatus, electronic device, and storage medium for processing volumetric clouds. Background Art

[0004] General 3D rendering engines such as Blender, Houdini, and Autodesk Maya are currently widely used by artists for modeling, texturing, lighting, animating, and rendering assets, and this artificial content has been widely applied in the film and game industries. Among these tools, there are some plugins or built-in tools for generating volumetric clouds. Although these tools provide designers with great freedom, they increase complexity, and some even require long-term training to start using, resulting in low efficiency in obtaining volumetric clouds. Summary of the Invention

[0005] In view of the above problems, this application proposes a method, apparatus, electronic device, and storage medium for processing volumetric clouds to solve the above problems.

[0006] In a first aspect, an embodiment of this application provides a method for processing volumetric clouds, the method including: displaying an editing interface for volumetric clouds, where the editing interface includes a first key component for creating volumetric clouds and a second key component for rendering volumetric clouds, the first key component includes a plurality of first key parameters, and the second key component includes a plurality of second key parameters; in response to a configuration operation for the plurality of first key parameters, determining first configuration information corresponding to each of the plurality of first key parameters; generating an initial volumetric cloud based on the first configuration information; in response to a configuration operation for the plurality of second key parameters, determining second configuration information corresponding to each of the plurality of second key parameters; rendering the initial volumetric cloud based on the second configuration information to obtain a target volumetric cloud, and displaying the target volumetric cloud on the editing interface.

[0007] Second aspect, an embodiment of the present application provides a processing device for volumetric clouds. The device includes: an editing interface display module, configured to display an editing interface for volumetric clouds, wherein the editing interface includes a first key component for creating volumetric clouds and a second key component for rendering volumetric clouds, the first key component includes a plurality of first key parameters, and the second key component includes a plurality of second key parameters; a first configuration information determination module, configured to determine first configuration information corresponding to each of the plurality of first key parameters in response to a configuration operation on the plurality of first key parameters; an initial volumetric cloud generation module, configured to generate an initial volumetric cloud based on the first configuration information; a second configuration information determination module, configured to determine second configuration information corresponding to each of the plurality of second key parameters in response to a configuration operation on the plurality of second key parameters; and a target volumetric cloud obtaining module, configured to render the initial volumetric cloud based on the second configuration information to obtain a target volumetric cloud, and display the target volumetric cloud on the editing interface.

[0008] Third aspect, an embodiment of the present application provides an electronic device, including a memory and a processor, the memory is coupled to the processor, and the memory stores instructions, and when the instructions are executed by the processor, the processor executes the above method.

[0009] Fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which program code is stored, and the program code can be called by a processor to execute the above method.

[0010] The volumetric cloud processing method, device, electronic device, and storage medium provided by the embodiments of the present application display a volumetric cloud editing interface including a first key component for creating volumetric clouds and a second key component for rendering volumetric clouds, and set that the first key component includes a plurality of first key parameters and the second key component includes a plurality of second key parameters. During the application process, in response to a user's configuration operation on the plurality of first key parameters, first configuration information corresponding to each of the plurality of first key parameters can be determined, an initial volumetric cloud can be generated based on the first configuration information, in response to a user's configuration operation on the plurality of second key parameters, second configuration information corresponding to each of the plurality of second key parameters can be determined, the initial volumetric cloud can be rendered based on the second configuration information to obtain a target volumetric cloud, and the target volumetric cloud can be displayed on the editing interface. Therefore, by providing a volumetric cloud editing interface and displaying key components for creating and rendering volumetric clouds, it is convenient for users to obtain volumetric clouds more efficiently and conveniently, and the user experience is improved. Description of the Drawings

[0011] To more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the accompanying drawings required for the description of the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present application. For those skilled in the art, without creative efforts, other accompanying drawings can be obtained based on these drawings.

[0012] Figure 1 The flowchart of the method for processing volumetric clouds provided by an embodiment of the present application is shown;

[0013] Figure 2 The system diagram for processing volumetric clouds provided by an embodiment of the present application is shown;

[0014] Figure 3 The comparison diagram showing the change of cloud appearance by rendering without changing the cloud shape is shown;

[0015] Figure 4 The flowchart of the method for processing volumetric clouds provided by an embodiment of the present application is shown;

[0016] Figure 5 The flowchart of the method for processing volumetric clouds provided by an embodiment of the present application is shown;

[0017] Figure 6 The flowchart of the method for processing volumetric clouds provided by an embodiment of the present application is shown;

[0018] Figure 7 The schematic diagram showing the optimization of the rendering process based on 3D texture provided by an embodiment of the present application is shown;

[0019] Figure 8 The block diagram of the apparatus for processing volumetric clouds provided by an embodiment of the present application is shown;

[0020] Figure 9 The block diagram of the electronic device for executing the method for processing volumetric clouds according to the embodiments of the present application provided by an embodiment of the present application is shown;

[0021] Figure 10 The storage unit for storing or carrying the program code for implementing the method for processing volumetric clouds according to the embodiments of the present application provided by an embodiment of the present application is shown. Detailed implementation manners

[0022] To enable those skilled in the art to better understand the solutions of the present application, the following will clearly and completely describe the technical solutions in the embodiments of the present application in conjunction with the accompanying drawings in the embodiments of the present application.

[0023] Among them, general 3D rendering engines are not specifically optimized for any one task, such as creating and rendering volumetric clouds, which may lead to reduced efficiency in such specialized tasks. Moreover, these tools may be resource-intensive and require a large amount of computing power to process complex scenes, including detailed volumetric cloud creation and rendering. In addition, these tools have a steep learning curve, especially for beginners. Understanding all their features and functions may take a lot of time. A large number of functions and options can sometimes be overwhelming and may lead to inefficient workflows, especially for specific tasks such as volumetric cloud creation and rendering.

[0024] Furthermore, although these general 3D rendering engines are highly customizable, they may have limitations in preset functions for specific tasks such as volumetric cloud creation and rendering, and additional plugins or custom scripts are required to achieve them.

[0025] In response to the above problems, the inventors have discovered through long-term research and proposed a method, apparatus, electronic device, and storage medium for processing volumetric clouds provided in the embodiments of the present application. By providing an editing interface for volumetric clouds and displaying key components for creating and rendering volumetric clouds, it is convenient for users to obtain volumetric clouds more efficiently and conveniently, enhancing the user experience.

[0026] That is, the method for processing volumetric clouds provided in this embodiment is specifically designed for creating and rendering volumetric clouds, providing a more realistic and efficient processing effect for this specific task. It is optimized for performance when processing volumetric data, thereby shortening the processing time for cloud-specific scenes. In addition, the editing interface for volumetric clouds provided in this embodiment is user-friendly and can be mastered for volumetric cloud design with only short-term training. Such a design enables artists to focus more on creation without having to worry about the technical difficulties of complex creation and rendering processes.

[0027] Among them, the specific method for processing volumetric clouds will be described in detail in subsequent embodiments.

[0028] Please refer to Figure 1 , Figure 1 which shows a schematic flowchart of the method for processing volumetric clouds provided in an embodiment of the present application. This method is used to provide an editing interface for volumetric clouds and display key components for creating and rendering volumetric clouds, facilitating users to obtain volumetric clouds more efficiently and conveniently, and enhancing the user experience. In a specific embodiment, the method for processing volumetric clouds is applied to a volumetric cloud processing apparatus 200 as shown in Figure 8 and an electronic device 100 configured with the volumetric cloud processing apparatus 200 ( Figure 9)。Taking an electronic device as an example below, the specific process of this embodiment will be described. Of course, it can be understood that the electronic devices to which this embodiment is applied may include desktop computers, personal computers, tablet computers, smart phones, etc., which are not limited herein. The following will be directed to Figure 1 The process shown will be elaborated in detail. The method for processing volumetric clouds may specifically include the following steps:

[0029] Step S110: Display an editing interface for volumetric clouds. Among them, the editing interface includes a first key component for creating volumetric clouds and a second key component for rendering volumetric clouds. The first key component includes a plurality of first key parameters, and the second key component includes a plurality of second key parameters.

[0030] Among them, the method for processing volumetric clouds provided in this embodiment is centered around the unique needs of 3D designers and artists, and a set of customized graphical user interface (GUI) controls is designed. The main driving force for this design is to facilitate the creation and efficient rendering of 3D cloud assets, ensuring that these assets can be seamlessly integrated into subsequent applications and projects, meeting users' expectations for high-quality visual effects and smooth workflow.

[0031] In this embodiment, the electronic device can provide an editing interface for volumetric clouds. It can be understood that this editing interface for volumetric clouds can be used for creating and rendering volumetric clouds. When designers and artists (hereinafter referred to as users) expect to design volumetric clouds, they can trigger to enter the editing interface for volumetric clouds and complete the creation and rendering of volumetric clouds in the editing interface for volumetric clouds to complete the design of volumetric clouds.

[0032] In some embodiments, the electronic device can display an editing interface for volumetric clouds when receiving a volumetric cloud editing instruction input by the user. Optionally, the electronic device can determine that it has received a volumetric cloud editing instruction input by the user when receiving the target voice information input by the user; it can determine that it has received a volumetric cloud editing instruction input by the user when detecting a click operation on the target icon, where the click operation on the target icon can be triggered by the user's finger, or can be triggered by a mouse connected to the electronic device; it can determine that it has received a volumetric cloud editing instruction input by the user when detecting a click operation on the target link, where the click operation on the target link can be triggered by the user's finger, or can be triggered by a mouse connected to the electronic device, which is not limited herein.

[0033] In some embodiments, the editing interface may include a first key component for creating a volumetric cloud and a second key component for rendering a volumetric cloud. The first key component and the second key component may help achieve the goal of rapid prototyping when designing a 3D scene, enabling users to create and render realistic volumetric clouds, thunder effects, lens flares, and divine rays (or beams known as the Tyndall effect). It is understandable that the editing interface of the volumetric cloud directly displays the first key component and the second key component, which can facilitate users to intuitively know the creation entrance and rendering entrance of the volumetric cloud, improve the efficiency of users in creating and rendering volumetric clouds through the editing interface, and thereby improve the efficiency of users in designing volumetric clouds.

[0034] See also Figure 2 , Figure 2 A schematic diagram of a system for volumetric cloud processing provided by an embodiment of the present application is shown. Figure 2 As shown, the first key component may include a cloud shape component (cloud modeling component), and the second key component may include a camera control component, a skylight system component (sky / moon / sun / lightning), and a lighting editing component (scattering control component and volume rendering component), so that volumetric clouds can be created and rendered through the cloud shape component, the camera control component, the skylight system component, and the lighting editing component to design the final volumetric cloud.

[0035] In some embodiments, the first key component may include multiple first key parameters, and the user can select or modify the multiple first key parameters included in the first key component through the editing interface. Accordingly, the editing interface can be displayed in real time so that the user can promptly know the corresponding effects of the set first key parameters.

[0036] In some embodiments, the second key component may include multiple second key parameters, and the user can select or modify the multiple second key parameters included in the second key component through the editing interface. Accordingly, the editing interface can be displayed in real time so that the user can promptly know the corresponding effects of the set second key parameters.

[0037] Please continue reading Figure 2, the multiple first key parameters included in the cloud modeling component may include: position, axis, moving direction, moving speed, density, other parameters, etc. The multiple second key parameters included in the camera control component may include: center, gaze, field of view, focal length, other parameters, etc. The multiple second key parameters included in the skylight system component may include: color, position, intensity, etc. The multiple second key parameters included in the scattering control component may include: shadow parameters, internal and external scattering parameters, other parameters, etc. The multiple second key parameters included in the volume rendering component may include: ray step distance, step size, other parameters, etc., which are not limited herein.

[0038] In some embodiments, the editing interface may further include an edit button, and the edit button can be used to trigger the editing of the volume cloud. Based on this, the electronic device can display the edit button and detect a click operation on the edit button. Optionally, the click operation on the edit button can be triggered by the user's finger, or can be triggered by a mouse connected to the electronic device, which is not limited herein. Among them, if a click operation on the edit button is detected, the click operation on the edit button can be responded to, and an ellipsoidal cloud is displayed in the editing interface, where the ellipsoidal cloud is used as the underlying model for creating the volume cloud. It can be understood that using an ellipsoid as the main element for the creation and rendering of the volume cloud can provide a stronger sense of realism when representing atmospheric phenomena. This method selection highlights the commitment to the complexity and dynamics of cloud formation, which is a key aspect in atmospheric modeling and environmental simulation.

[0039] Step S120: In response to a configuration operation for the multiple first key parameters, determine the first configuration information corresponding to each of the multiple first key parameters.

[0040] In this embodiment, during the process of the electronic device displaying the editing interface, it can detect a configuration operation for the multiple first key parameters. Optionally, the configuration operation for the multiple first key parameters can be triggered by the user's finger, or can be triggered by a mouse connected to the electronic device, which is not limited herein. Among them, if a configuration operation for the multiple first key parameters is detected, in response to the configuration operation for the multiple first key parameters, determine the first configuration information corresponding to each of the multiple first key parameters.

[0041] As an implementable manner, multiple first key parameters may each correspond to a first initial parameter value, where the first initial parameter value may be default set by the electronic device. Accordingly, the user may modify the first initial parameter value corresponding to each of the multiple first key parameters through a configuration operation, obtain the first modified parameter value corresponding to each of the multiple first key parameters, and determine the first modified parameter value corresponding to each of the multiple first key parameters as the first configuration information corresponding to each of the multiple first key parameters.

[0042] As another implementable manner, none of the multiple first key parameters may correspond to a first initial parameter value. Accordingly, the user may configure the first initial parameter value corresponding to each of the multiple first key parameters through a configuration operation, obtain the first configuration parameter value corresponding to each of the multiple first key parameters, and determine the first configuration parameter value corresponding to each of the multiple first key parameters as the first configuration information corresponding to each of the multiple first key parameters.

[0043] As an example, if a configuration operation acting on "position" among the multiple first key parameters is detected, the first configuration information corresponding to "position" may be determined, where the first configuration information may include specific coordinate values; if a configuration operation acting on "moving speed" among the multiple first key parameters is detected, the first configuration information corresponding to "moving speed" may be determined, where the first configuration information may include specific speed values, etc., which are not limited herein.

[0044] Step S130: Generate an initial volume cloud based on the first configuration information.

[0045] In this embodiment, in the case of determining the first configuration information corresponding to each of the multiple first key parameters, an initial volume cloud may be generated based on the first configuration information corresponding to each of the multiple first key parameters.

[0046] In some implementation manners, in the case of determining the first configuration information corresponding to each of the multiple first key parameters, the first configuration information may be passed to a cloud modeling SDK (Software Development Kit) for generating the initial volume cloud. Optionally, the cloud modeling SDK may be provided by a game engine (such as Unreal Engine, Unity, etc.).

[0047] As an implementable manner, in the case of generating the initial volume cloud, the initial volume cloud may or may not be displayed on the editing interface, which is not limited herein.

[0048] Step S140: In response to a configuration operation for the multiple second key parameters, determine the second configuration information corresponding to each of the multiple second key parameters.

[0049] In this embodiment, during the process of the electronic device displaying the editing interface, it can detect configuration operations acting on multiple second key parameters. Optionally, the configuration operations acting on multiple second key parameters can be triggered by the user's finger, or can be triggered by a mouse connected to the electronic device, which is not limited herein. Among them, if a configuration operation acting on multiple second key parameters is detected, the second configuration information corresponding to each of the multiple second key parameters can be determined in response to the configuration operation for the multiple second key parameters.

[0050] As an implementable manner, each of the multiple second key parameters can correspond to a second initial parameter value, where the second initial parameter value can be set by default by the electronic device. Correspondingly, the user can modify the second initial parameter value corresponding to each of the multiple second key parameters through the configuration operation, obtain the second modified parameter value corresponding to each of the multiple second key parameters, and determine the second modified parameter value corresponding to each of the multiple second key parameters as the second configuration information corresponding to each of the multiple second key parameters.

[0051] As another implementable manner, none of the multiple second key parameters may correspond to a second initial parameter value. Correspondingly, the user can configure the second initial parameter value corresponding to each of the multiple second key parameters through the configuration operation, obtain the second configuration parameter value corresponding to each of the multiple second key parameters, and determine the second configuration parameter value corresponding to each of the multiple second key parameters as the second configuration information corresponding to each of the multiple second key parameters.

[0052] As an example, if a configuration operation acting on "color" among the multiple second key parameters is detected, the second configuration information corresponding to "color" can be determined, where the second configuration information can include a specific color; if a configuration operation acting on "shadow parameter" among the multiple second key parameters is detected, the second configuration information corresponding to "shadow parameter" can be determined, where the second configuration information can include a specific shadow value, etc., which is not limited herein.

[0053] Step S150: Render the initial volume cloud based on the second configuration information to obtain a target volume cloud, and display the target volume cloud on the editing interface.

[0054] In this embodiment, in the case of determining the second configuration information corresponding to each of the multiple second key parameters, the initial volume cloud can be rendered based on the second configuration information corresponding to each of the multiple second key parameters to obtain a target volume cloud, and the target volume cloud can be displayed on the editing interface, that is, the volume cloud designed by the user can be obtained and displayed, facilitating the user to see the effect of the designed volume cloud in real time.

[0055] In some embodiments, rendering the initial volume cloud based on the second configuration information to obtain the target volume cloud may include: performing volume shading, performing lighting calculation simulation, adjusting rendering parameters, performing performance optimization, etc., which are not limited herein.

[0056] Among them, performing volume shading may indicate adding a shading effect to the volume cloud to simulate the color and transparency changes of the cloud. It generally involves sampling and shading calculations on volume data to determine the color and transparency of each voxel. Optionally, a volume shader or similar technology can be used to implement this process, which may include calculations of effects such as scattering, absorption, and self - illumination.

[0057] Among them, performing lighting calculation simulation may indicate considering the influence of light sources on the volume cloud, including effects such as scattering, absorption, and self - illumination. Ray tracing or volume rendering techniques are used to calculate the lighting effect to generate a realistic cloud lighting effect. In lighting calculation, light sources such as sunlight and skylight can be introduced, and the scattering and absorption characteristics of the cloud are considered to simulate the real lighting environment.

[0058] Among them, adjusting rendering parameters may indicate adjusting rendering parameters such as step size, sampling rate, and lighting model, etc., to optimize the rendering effect of the volume cloud. These parameters will affect the rendering accuracy, speed, and visual effect, so they can be weighed and adjusted according to specific situations.

[0059] Among them, performing performance optimization may indicate optimizing the rendering performance of the volume cloud to ensure reducing resource consumption and rendering time without affecting the visual effect. Multiple optimization techniques such as spatial leaping, level of detail (LOD), and caching can be adopted to improve the rendering efficiency and performance.

[0060] Among them, in order to increase controllability and design a specific shape of the cloud, this embodiment may use a signed distance function (SDF) as the representation form based on cloud units. Using this representation form enables a fast volume ray - stepping algorithm to render the scene. The SDF makes it possible to easily combine multiple shapes and is robust to transformations, thus increasing flexibility in dynamic scenes. It is particularly effective in rendering volume effects and can reduce memory usage compared to traditional mesh representations.

[0061] Among them, the appearance of real clouds varies due to various factors, including altitude, temperature, moisture content, air currents, and atmospheric pressure. To simulate these factors, this embodiment can use different types of noise, cloud density, and scattering parameters to generate various different types of clouds with different appearances. Figure 3 A comparative schematic diagram showing the change of cloud appearance by rendering without changing the cloud shape is shown.

[0062] It can be understood that through the above method, different types of volumetric clouds can be rendered. For example, cumulus clouds, cirrus clouds, cumulonimbus clouds, etc. These can all be used as support materials for cloud simulation. In addition, volumetric clouds also include interactions with light sources and generate effects such as divine light, lens flares, and lightning effects, which can greatly enhance the overall visual experience.

[0063] In some embodiments, in the case of obtaining the target volumetric cloud, the target volumetric cloud can be deployed to a smartphone (such as an Android phone), and then users can design a volumetric cloud within a few minutes and immediately deploy it on the Android platform, which greatly shortens the development cycle and fills the gap between design and deployment. Specifically, the designed target volumetric cloud can be deployed to the Android platform through the following two methods:

[0064] First, through parameter passing: After determining the rendering result, a json parameter file can be generated, including various rendering resource information, and then pushed to the smartphone. The smartphone can also set up a rendering pipeline that replicates the electronic device, and the result can be previewed on the smartphone.

[0065] Second, through video (rendering assets) passing: Similar to the first method, but in this method, the script is responsible for pushing the video rendered by the electronic device to the smartphone, and the video is played by decoding the video and rendering it for display in the application on the smartphone.

[0066] It can be understood that in terms of integration, this embodiment can achieve compatibility with multiple software platforms (including desktop computers and mobile devices). This feature is particularly important for researchers and professionals in fields such as operating system design, game development, and educational content creation, because accurate representation of environmental conditions is crucial in these fields. The integration ability of this software ensures that it can become a valuable component in various digital production processes, thus expanding its application scope in academic and professional communities. In addition, parameterization also saves a large amount of disk space, especially for large scenes.

[0067] A method for processing volumetric clouds provided by an embodiment of the present application displays a volumetric cloud editing interface including a first key component for creating volumetric clouds and a second key component for rendering volumetric clouds. The first key component includes a plurality of first key parameters, and the second key component includes a plurality of second key parameters. In response to a configuration operation on the plurality of first key parameters, determine the first configuration information corresponding to each of the plurality of first key parameters, generate an initial volumetric cloud based on the first configuration information, in response to a configuration operation on the plurality of second key parameters, determine the second configuration information corresponding to each of the plurality of second key parameters, render the initial volumetric cloud based on the second configuration information to obtain a target volumetric cloud, and display the target volumetric cloud on the editing interface. Thus, by providing a volumetric cloud editing interface and displaying the key components for creating and rendering volumetric clouds, it is convenient for users to obtain volumetric clouds more efficiently and conveniently, improving the user experience.

[0068] Please refer to Figure 4 , Figure 4 which shows a schematic flowchart of a method for processing volumetric clouds provided by an embodiment of the present application. In this embodiment, for each first key parameter among the plurality of first key parameters, the first key parameter corresponds to a first parameter range, and the editing interface includes a first adjustment bar corresponding to the first key parameter; for each second key parameter among the plurality of second key parameters, the second key parameter corresponds to a second parameter range, and the editing interface includes a second adjustment bar corresponding to the second key parameter; the following will elaborate in detail on the Figure 4 flow shown below. The method for processing volumetric clouds may specifically include the following steps:

[0069] Step S210: Display an editing interface for volumetric clouds, where the editing interface includes a first key component for creating volumetric clouds and a second key component for rendering volumetric clouds. The first key component includes a plurality of first key parameters, and the second key component includes a plurality of second key parameters.

[0070] For the specific description of step S210, please refer to step S110 and will not be elaborated here.

[0071] Step S220: In response to a dragging operation on the first adjustment bar, determine the first configuration information corresponding to the first key parameter from the first parameter range.

[0072] Optionally, for each of the multiple first key parameters, a first parameter range can be set corresponding to the first key parameter. The editing interface can include a first adjustment bar corresponding to the first key parameter, where the first adjustment bar can be used to adjust the first parameter range. Therefore, in this embodiment, by setting the first adjustment bar in the editing interface to adjust the first parameter range, the first key parameter can be configured quickly. Determine the first parameter value corresponding to the first adjustment bar from the first parameter range, and determine the first parameter value as the first configuration information corresponding to the first key parameter, thereby improving the convenience and speed of parameter configuration for the user.

[0073] In this embodiment, during the process of displaying the first adjustment bar on the editing interface, a drag operation on the first adjustment bar can be detected. Optionally, the drag operation on the first adjustment bar can be triggered by the user's finger, or can be triggered by a mouse connected to the electronic device, which is not limited here. Among them, if a drag operation on the first adjustment bar is detected, the drag operation on the first adjustment bar can be responded to, and the first configuration information corresponding to the first key parameter can be determined from the first parameter range. As a way, if a drag operation on the first adjustment bar is detected, the drag operation on the first adjustment bar can be responded to, the value of the first adjustment bar can be read, and based on the first preset mapping relationship, the first configuration information corresponding to the value of the first adjustment bar can be determined from the first parameter range, where the first preset mapping relationship includes the corresponding relationship between multiple values of the first adjustment bar and multiple first configuration information.

[0074] As an example, assume that the first key parameter is "position", then a "position value range" corresponding to the "position" can be set, and the editing interface can include a first adjustment bar corresponding to the "position". If a drag operation on the first adjustment bar is detected, the drag operation can be responded to, and from the "position value range", the "position value" corresponding to the drag operation can be determined, and the "position value" can be used as the first configuration information corresponding to the first key parameter "position".

[0075] Step S230: Generate an initial volume cloud based on the first configuration information.

[0076] For the specific description of step S230, please refer to step S130, which will not be elaborated here.

[0077] Step S240: Respond to the drag operation on the second adjustment bar, and determine the second configuration information corresponding to the second key parameter from the second parameter range.

[0078] Optionally, for each of the multiple second key parameters, a second parameter range can be set corresponding to the second key parameter. The editing interface can include a second adjustment bar corresponding to the second key parameter, where the second adjustment bar can be used to adjust the second parameter range. Therefore, in this embodiment, by setting the second adjustment bar in the editing interface to adjust the second parameter range, the second key parameter can be configured quickly. Determine the second parameter value corresponding to the second adjustment bar from the second parameter range, and determine the second parameter value as the second configuration information corresponding to the second key parameter, thereby improving the convenience and speed of parameter configuration by the user.

[0079] In this embodiment, during the process of displaying the second adjustment bar on the editing interface, a drag operation on the second adjustment bar can be detected. Optionally, the drag operation on the second adjustment bar can be triggered by the user's finger, or can be triggered by a mouse connected to the electronic device, which is not limited here. Among them, if a drag operation on the second adjustment bar is detected, the drag operation on the second adjustment bar can be responded to, and the second configuration information corresponding to the second key parameter can be determined from the second parameter range. As a way, if a drag operation on the second adjustment bar is detected, the drag operation on the second adjustment bar can be responded to, the value of the second adjustment bar can be read, and based on the second preset mapping relationship, the second configuration information corresponding to the value of the second adjustment bar can be determined from the second parameter range, where the second preset mapping relationship includes the corresponding relationship between multiple values of the second adjustment bar and multiple second configuration information.

[0080] As an example, assume that the second key parameter is "color", then a "color value range" corresponding to the "color" can be set, and the editing interface can include a second adjustment bar corresponding to the "color". If a drag operation on the second adjustment bar is detected, then in response to the drag operation, a "color value" corresponding to the drag operation can be determined from the "color value range", and the "color value" can be used as the second configuration information corresponding to the second key parameter "color".

[0081] Step S250: Render the initial volume cloud based on the second configuration information to obtain a target volume cloud, and display the target volume cloud on the editing interface.

[0082] For the specific description of step S250, please refer to step S150 and will not be elaborated here.

[0083] Step S260: Respond to a rotation operation on the target volume cloud, and control the target volume cloud to rotate on the editing interface.

[0084] In this embodiment, when the editing interface displays the target volumetric cloud, it can detect the rotation operation applied to the target volumetric cloud. Optionally, the rotation operation applied to the target volumetric cloud can be triggered by the user's finger or by a mouse connected to the electronic device, which is not limited herein. If a rotation operation applied to the target volumetric cloud is detected, the rotation operation applied to the target volumetric cloud can be responded to, and the target volumetric cloud can be controlled to rotate on the editing interface to switch different perspectives of the volumetric cloud, thereby enhancing the user's interaction experience.

[0085] In some other embodiments, the keyboard and mouse logic can be consistent with that of most games. For example, the key positions of "W", "S", "A", and "D" correspond to forward / backward / left / right.

[0086] From the perspective of usability, the proposed method for processing volumetric clouds aims to meet the needs of a wide range of users, from experienced digital artists to novices who have just entered the field of 3D rendering. Its interface facilitates users to interact with software functions intuitively and reduces the complexity usually associated with high-end rendering tools.

[0087] The method for processing volumetric clouds provided by an embodiment of the present application, compared with Figure 1 the method for processing volumetric clouds shown, in this embodiment, a corresponding first parameter range is also set for each first key parameter, and the editing interface is set to include a first adjustment bar corresponding to the first key parameter. Then, the user can determine the first configuration information corresponding to the first key parameter from the first parameter range by dragging the first adjustment bar, so as to improve the convenience of the user for creating volumetric clouds. In addition, a corresponding second parameter range is also set for each second key parameter, and the editing interface is set to include a second adjustment bar corresponding to the second key parameter. Then, the user can determine the second configuration information corresponding to the second key parameter from the second parameter range by dragging the second adjustment bar, so as to improve the convenience of the user for rendering volumetric clouds. In addition, in this embodiment, the user is also set to control the rotation of the secret protection volumetric cloud on the editing interface through the rotation operation applied to the target volumetric cloud, so as to enhance the interactivity with the user.

[0088] Please refer to Figure 5 , Figure 5 which shows a schematic flowchart of the method for processing volumetric clouds provided by an embodiment of the present application. In this embodiment, the editing interface further includes a third key component for increasing the details of the volumetric cloud. The third key component includes a plurality of third key parameters. The following will elaborate in detail on the Figure 5 shown process. The method for processing volumetric clouds may specifically include the following steps:

[0089] Step S310: Display an editing interface for the volumetric cloud. Among them, the editing interface includes a first key component for creating the volumetric cloud and a second key component for rendering the volumetric cloud. The first key component includes a plurality of first key parameters, and the second key component includes a plurality of second key parameters.

[0090] Step S320: In response to a configuration operation for the plurality of first key parameters, determine the first configuration information corresponding to each of the plurality of first key parameters.

[0091] Step S330: Generate an initial volumetric cloud based on the first configuration information.

[0092] Among them, for the specific descriptions of steps S310 - S330, please refer to steps S110 - S130, which will not be elaborated here.

[0093] Step S340: In response to a configuration operation for the plurality of third key parameters, determine the third configuration information corresponding to each of the plurality of third key parameters. Among them, the third configuration information includes noise information.

[0094] In this embodiment, the editing interface may include a third key component for increasing the details of the volumetric cloud. Among them, through the third key component, it can help users increase the details of the designed volumetric cloud when designing the volumetric cloud. It can be understood that directly displaying the third key component on the editing interface of the volumetric cloud can facilitate users to intuitively know the entry for improving the details of the volumetric cloud, improve the efficiency of users to improve the details of the volumetric cloud on the editing interface, and further improve the efficiency of users to design the volumetric cloud.

[0095] In some embodiments, the third key component includes a plurality of third key parameters. Users can select or modify the plurality of third key parameters included in the third key component through the editing interface. Correspondingly, the editing interface can be displayed in real time so that users can timely know the effects corresponding to the set third key parameters.

[0096] Please continue to refer to Figure 2 , the plurality of third key parameters included in the third key component may include: noise type, frequency, octal, etc., which are not limited here.

[0097] In this embodiment, during the process of the electronic device displaying the editing interface, it can detect configuration operations on multiple third key parameters. Optionally, the configuration operations on multiple third key parameters can be triggered by the user's finger, or can be triggered by a mouse connected to the electronic device, which is not limited herein. Among them, if a configuration operation on multiple third key parameters is detected, then in response to the configuration operation on multiple third key parameters, the third configuration information corresponding to each of the multiple third key parameters can be determined. Optionally, the third configuration information may include noise information.

[0098] As an implementable manner, each of the multiple third key parameters may correspond to a third initial parameter value, where the third initial parameter value can be default set by the electronic device. Correspondingly, the user can modify the third initial parameter value corresponding to each of the multiple third key parameters through a configuration operation, obtain the third modified parameter value corresponding to each of the multiple third key parameters, and determine the third modified parameter value corresponding to each of the multiple third key parameters as the third configuration information corresponding to each of the multiple third key parameters.

[0099] As another implementable manner, none of the multiple third key parameters may correspond to a third initial parameter value. Correspondingly, the user can configure the third initial parameter value corresponding to each of the multiple third key parameters through a configuration operation, obtain the third configuration parameter value corresponding to each of the multiple third key parameters, and determine the third configuration parameter value corresponding to each of the multiple third key parameters as the third configuration information corresponding to each of the multiple third key parameters.

[0100] As an example, if a configuration operation on the "noise type" among the multiple third key parameters is detected, then the third configuration information corresponding to the "noise type" can be determined, where the third configuration information may include specific noise types, such as Gaussian noise type, uniform noise type, salt-and-pepper noise type, etc., which is not limited herein.

[0101] Step S350: Increase the details of the initial volume cloud based on the third configuration information.

[0102] In this embodiment, in the case of determining the third configuration information corresponding to each of the multiple third key parameters, the details of the initial volume cloud can be increased based on the third configuration information corresponding to each of the multiple third key parameters.

[0103] In some embodiments, a noise generation algorithm (such as a Gaussian noise generation algorithm) can be used to generate noise data according to a set mean and standard deviation (the third configuration information). These noise data usually appear as a series of random values, which are used to simulate the random errors or variations that may exist in the real environment. The generated noise data is added to the initial volume cloud. This usually involves offsetting the coordinates of each point in the initial volume cloud, and the offset amount is determined by the corresponding noise value. In this way, the details and complexity of the cloud can be increased without changing the overall shape of the cloud.

[0104] As an example, the noise can be divided into Perlin and Worley, both of which simulate naturally generated textures, but with different details. This embodiment can provide a mixed noise of different frequency domains. High-frequency Perlin noise combined with low density is suitable for simulating fragmented volume clouds, and low-frequency Worley noise combined with high density is suitable for simulating thick and massive volume clouds.

[0105] Step S360: In response to a configuration operation for the multiple second key parameters, determine the second configuration information corresponding to each of the multiple second key parameters.

[0106] Step S370: Render the initial volume cloud based on the second configuration information to obtain a target volume cloud, and display the target volume cloud on the editing interface.

[0107] For the specific descriptions of steps S360 - S370, please refer to steps S140 - S150, which will not be elaborated here.

[0108] The method for processing a volume cloud provided by an embodiment of the present application, compared with Figure 1 the method for processing a volume cloud described above, this embodiment also sets the editing interface to include a third key component for increasing the details of the volume cloud. The third key component includes multiple third key parameters. In the case of generating an initial volume cloud, in response to a user's configuration operation for the multiple third key parameters, the third configuration information corresponding to each of the multiple third key parameters can be determined. Among them, the third configuration information includes noise information, and based on the third configuration information, the details of the initial volume cloud are increased, so that the created volume cloud can be made more realistic and the processing effect for the volume cloud can be improved.

[0109] Please refer to Figure 6 , Figure 6 shows a schematic flowchart of the method for processing a volume cloud provided by an embodiment of the present application. In this embodiment, the second configuration information includes weather information. The following will elaborate in detail on the Figure 6 flow shown. The method for processing a volume cloud can specifically include the following steps:

[0110] Step S410: Display an editing interface for the volumetric cloud. Among them, the editing interface includes a first key component for creating the volumetric cloud and a second key component for rendering the volumetric cloud. The first key component includes multiple first key parameters, and the second key component includes multiple second key parameters.

[0111] Step S420: In response to a configuration operation for the multiple first key parameters, determine the first configuration information corresponding to each of the multiple first key parameters.

[0112] Step S430: Generate an initial volumetric cloud based on the first configuration information.

[0113] Step S440: In response to a configuration operation for the multiple second key parameters, determine the second configuration information corresponding to each of the multiple second key parameters.

[0114] Among them, for the specific descriptions of steps S410 - S440, please refer to steps S110 - S140, which will not be elaborated here.

[0115] Step S450: Combine the initial volumetric cloud and the weather information through the weather scene assembly SDK to form a weather scene.

[0116] Optionally, the second configuration information may include weather information. For example, the second configuration information may include temperature, humidity, wind direction, wind speed, precipitation, sunshine intensity, etc., which are not limited here.

[0117] In this embodiment, the electronic device is built - in with a weather scene assembly SDK and a weather scene rendering SDK. It can be understood that the weather scene assembly SDK can be used to assemble the created volumetric cloud and weather information to form a weather scene, and the weather scene rendering SDK can be used to render the weather scene. Among them, the weather scene assembly SDK can provide all the basic functions and interfaces required for creating and managing the weather scene. The weather scene rendering SDK can provide all the basic functions and interfaces required for rendering and managing the weather scene.

[0118] In some embodiments, when determining the initial volume cloud and weather information, the interfaces or functions provided by the weather scene assembly SDK can be used to load the pre-prepared initial volume cloud (possibly obtained through physical simulation, scanning, or other means) into the memory, and adjust the parameters of the initial volume cloud as needed, such as the density, shape, position, size, etc. of the cloud, to match specific weather conditions or visual effects. Input the weather information into the weather scene assembly SDK to establish a mapping relationship between the weather information and the parameters of the initial volume cloud. For example, higher humidity may mean denser clouds, while strong wind direction and speed may affect the moving direction and speed of the clouds. Then, utilize the functions of the weather scene assembly SDK to combine the initial volume cloud and the weather information to form a complete weather scene.

[0119] Optionally, operations such as coordinate transformation and dynamic simulation may be required during this process to ensure that the characteristics such as the movement, shape, and density of the clouds conform to the current weather conditions.

[0120] In addition, the weather scene can be further adjusted and optimized as needed, such as adding light and shadow effects, adjusting color balance, etc., to enhance the realism and visual quality of the scene.

[0121] Step S460: Render the weather scene through the weather scene rendering SDK to obtain the target weather including the target volume cloud, and display the target weather on the editing interface.

[0122] In this embodiment, when obtaining the weather scene, the renderer in the weather scene rendering SDK can be loaded and configured. The renderer is responsible for converting the weather scene into the final visual image or video.

[0123] In some embodiments, the rendering parameters can be set according to requirements, such as resolution, frame rate, anti-aliasing level, etc. These parameters will affect the clarity and performance of the rendering result. Then, the rendering process can be started to convert the assembled weather scene into the target weather image or video. During the rendering process, the renderer will generate a realistic target volume cloud and the target weather including the target volume cloud according to the shape, density, and dynamic characteristics of the volume cloud, as well as the influence of the weather information.

[0124] Please refer to Figure 7 , Figure 7 which shows a schematic diagram of the rendering process optimized based on 3D texture provided by the embodiments of the present application. As Figure 7As shown, as an implementable way, obtaining a target weather including target volumetric clouds by rendering a weather scene through a weather scene rendering SDK may include: storing the weather scene in one or more 3D textures, reading the weather scene from the one or more 3D textures through the weather scene rendering SDK, and rendering the weather scene to obtain the target weather including the target volumetric clouds.

[0125] Among them, since the weather scene rendering SDK requires a large number of samples at different positions and cloud densities when calculating the scattering of light in the clouds, the sampling efficiency is crucial. Therefore, in each frame of rendering, the method of writing density to a 3D texture by the weather scene assembly SDK according to the current scene state has at least the following advantages:

[0126] First, by storing the density information of the clouds in the 3D texture, the texture sampling and filtering functions of the graphics processor can be directly utilized. These functions are highly optimized on the graphics processor and can greatly improve the rendering efficiency.

[0127] Second, compared with traditional tree structures (such as octrees or KD trees), 3D textures provide a more continuous and intuitive data access method. During the rendering process, the graphics processor can very quickly access the cloud density values at any position through texture coordinates without performing complex tree traversals.

[0128] Third, 3D textures can be easily extended to larger sizes or higher resolutions to adapt to weather scenes of different scales and complexities. In addition, by adjusting the mipmap level of the texture, a balance can be found between different rendering details and performance requirements.

[0129] As an implementable way, obtaining a target weather including target volumetric clouds by rendering a weather scene through a weather scene rendering SDK may include: determining rendering parameters, where the rendering parameters are determined based on the second configuration information, and the weather scene rendering SDK renders the weather scene based on the volume rendering technology and the rendering parameters to obtain the target weather including the target volumetric clouds.

[0130] Optionally, the rendering parameters may include shadow parameters, internal scattering and external scattering parameters, etc., which are not limited herein. Among them, the shadow parameters may refer to specular shadow parameters, which are used to simulate the specular effect and shadow effect of light on the surface or inside of clouds during cloud rendering. The specular effect can highlight the texture and shape of the clouds, while the shadow effect adds a three-dimensional and depth sense to the clouds. These parameters are usually closely related to the position, direction, intensity and color of the light source, and work together on cloud rendering to produce a realistic lighting effect. The internal scattering and external scattering parameters may refer to skylight scattering, which refers to the phenomenon of sunlight or other light source rays scattering in the atmosphere. In cloud rendering, the skylight scattering parameters determine how light propagates and scatters through the inside of the clouds and the interaction between the clouds. This affects the color, brightness and transparency of the clouds, especially during sunrise, sunset or cloudy weather, the effect of skylight scattering is particularly significant.

[0131] Among them, volume rendering technology is a technology specifically used for rendering three-dimensional volume data (such as clouds, smoke, fire, etc.). It allows rendering objects with internal structure and scattering characteristics directly in three-dimensional space, rather than just the surface. In cloud rendering, volume rendering technology can simulate complex phenomena such as density changes, light scattering and absorption inside the clouds, so as to generate realistic cloud effects.

[0132] The introduction of volume rendering technology is crucial for achieving the authenticity of cloud simulation, but it also brings challenges of huge computing requirements. Volume rendering can finely depict the scattering, absorption of light in the clouds and the subtle changes in density, which is crucial for realistic performance. However, these detailed calculations require a large amount of processing power, especially for dynamic and changing cloud scenes. In order to achieve a balance between visual fidelity and performance, this embodiment can adopt a variety of optimization methods. Among them, in addition to the optimization method of storing the weather scene in one or more 3D textures, the following optimization methods may also be included:

[0133] During the process of rendering a weather scene based on volume rendering technology and rendering parameters, ray marching is traced. If it is traced that the ray hits the surface of an opaque object, or if it is traced that the opacity accumulated by the ray reaches the opacity threshold, the tracing of the ray is stopped. Specifically, when a ray passes through volume clouds and touches an opaque surface (such as the ground, a building, etc.), it can be considered that the part of the ray after this point no longer contributes to the final image, so the further processing of this ray can be stopped; or, in volume rendering, the opacity of the medium (such as clouds) along each ray is accumulated. When the accumulated opacity reaches a certain threshold, it can be considered that the subsequent medium has little contribution to the final color, so the further processing of this ray can also be stopped. The advantage of this strategy is that unnecessary calculations can be avoided, especially when dealing with large scenes or high-resolution images, which can significantly reduce the rendering time.

[0134] During the process of rendering a weather scene based on volume rendering technology and rendering parameters, the rendering influencing factors of the rendering area are detected. Among them, the rendering influencing factors include one or a combination of several of the level of detail, color change, opacity, and distance. Based on the detected rendering influencing factors, the sampling rate is determined. Specifically, for areas in volume clouds with large density changes, complex textures, or significant lighting effects, the sampling rate can be automatically increased to capture more details and more accurate lighting effects; on the contrary, in areas of volume clouds that are relatively uniform and have gentle changes, the sampling rate can be automatically reduced. When the object to be sampled is far away, a forward method with a longer step size is adopted; when the object to be sampled is close, a forward method with a shorter step size is adopted. Thus, by evaluating the local characteristics of each sampling point, sampling resources can be intelligently allocated. Adaptive sampling can maximize the rendering efficiency while ensuring the rendering quality.

[0135] During the process of rendering a weather scene based on volume rendering technology and rendering parameters, the hardware resources of the electronic device on which the weather scene rendering SDK runs are determined, and the shader is optimized based on the hardware resources. Specifically, avoid the negative impact of excessive branches on GPU parallel computing, minimize the use of conditional statements (such as if, else, switch), and change them to polynomial operations. Pre-compute 3D perlin / worley noise and directly load it into memory during runtime. To avoid these costly computational shaders, 3D textures with different precisions can be optionally used.

[0136] The method for processing volume clouds provided by an embodiment of this application, compared with Figure 1For the method of processing the volume cloud shown, in this embodiment, the second configuration information is further set to include weather information. The initial volume cloud and the weather information are combined through the weather scene assembly SDK to form a weather scene, and the weather scene is rendered through the weather scene rendering SDK to obtain a target weather including the target volume cloud. Thus, the rendered volume cloud can be combined with the weather scene, making it more realistic and improving the processing effect of the volume cloud.

[0137] Please refer to Figure 8 , Figure 8 which shows a block diagram of a volume cloud processing device provided by an embodiment of the present application. The following will elaborate on the Figure 8 block diagram shown. The volume cloud processing device 200 includes: an editing interface display module 210, a first configuration information determination module 220, an initial volume cloud generation module 230, a second configuration information determination module 240, and a target volume cloud acquisition module 250, where:

[0138] The editing interface display module 210 is used to display an editing interface for the volume cloud. Among them, the editing interface includes a first key component for creating the volume cloud and a second key component for rendering the volume cloud. The first key component includes a plurality of first key parameters, and the second key component includes a plurality of second key parameters.

[0139] The first configuration information determination module 220 is used to determine the first configuration information corresponding to each of the plurality of first key parameters in response to a configuration operation on the plurality of first key parameters.

[0140] Further, for each first key parameter among the plurality of first key parameters, the first key parameter corresponds to a first parameter range, and the editing interface includes a first adjustment bar corresponding to the first key parameter; the first configuration information determination module 220 includes:

[0141] The first configuration information determination sub-module is used to determine the first configuration information corresponding to the first key parameter from the first parameter range in response to a dragging operation on the first adjustment bar.

[0142] The initial volume cloud generation module 230 is used to generate an initial volume cloud based on the first configuration information.

[0143] The second configuration information determination module 240 is used to determine the second configuration information corresponding to each of the plurality of second key parameters in response to a configuration operation on the plurality of second key parameters.

[0144] Further, for each of the multiple second key parameters, a second parameter range corresponds to the second key parameter, and the editing interface includes a second adjustment bar corresponding to the second key parameter; the second configuration information determination module 240 includes: a second configuration information determination sub-module, where:

[0145] The second configuration information determination sub-module is configured to, in response to a dragging operation on the second adjustment bar, determine the second configuration information corresponding to the second key parameter from the second parameter range.

[0146] The target volume cloud obtaining module 250 is configured to render the initial volume cloud based on the second configuration information to obtain a target volume cloud, and display the target volume cloud on the editing interface.

[0147] Further, the second configuration information includes weather information, and the target volume cloud obtaining module 250 includes: a weather scene formation sub-module and a target volume cloud obtaining sub-module, where:

[0148] The weather scene formation sub-module is configured to combine the initial volume cloud and the weather information through a weather scene assembly SDK to form a weather scene.

[0149] The target volume cloud obtaining sub-module is configured to render the weather scene through a weather scene rendering SDK to obtain a target weather including the target volume cloud.

[0150] Further, the target volume cloud obtaining sub-module includes: a weather scene storage unit and a first target volume cloud obtaining unit, where:

[0151] The weather scene storage unit is configured to store the weather scene in one or more 3D textures.

[0152] The first target volume cloud obtaining unit is configured to read the weather scene from the one or more 3D textures through the weather scene rendering SDK, and render the weather scene to obtain the target weather including the target volume cloud.

[0153] Further, the target volume cloud obtaining sub-module includes: a rendering parameter determination unit and a second target volume cloud obtaining unit, where:

[0154] The rendering parameter determination unit is configured to determine rendering parameters, where the rendering parameters are determined based on the second configuration information;

[0155] The second target volume cloud obtaining unit is configured to render the weather scene through the weather scene rendering SDK based on volume rendering technology and the rendering parameters to obtain the target weather including the target volume cloud.

[0156] Furthermore, the target volume cloud obtaining sub-module further includes: a ray tracing unit and a stop tracing unit, where:

[0157] The ray tracing unit is configured to trace ray steps during the rendering of the weather scene based on the volume rendering technique and the rendering parameters.

[0158] The stop tracing unit is configured to stop tracing the ray if it is traced that the ray hits the surface of an opaque object, or if the opacity accumulated by the ray reaches the opacity threshold.

[0159] Furthermore, the target volume cloud obtaining sub-module further includes: a rendering influence factor detection unit and a sampling rate determination unit, where:

[0160] The rendering influence factor detection unit is configured to detect the rendering influence factors in the rendering area during the rendering of the weather scene based on the volume rendering technique and the rendering parameters, where the rendering influence factors include one or a combination of several of the level of detail, color change, opacity, and distance.

[0161] The sampling rate determination unit is configured to determine the sampling rate based on the detected rendering influence factors.

[0162] Furthermore, the target volume cloud obtaining sub-module further includes: a hardware resource determination unit and a shader optimization unit, where:

[0163] The hardware resource determination unit is configured to determine the hardware resources of the electronic device on which the weather scene rendering SDK runs during the rendering of the weather scene based on the volume rendering technique and the rendering parameters.

[0164] The shader optimization unit is configured to optimize the shader based on the hardware resources.

[0165] Furthermore, the volume cloud processing device 200 further includes: a volume cloud rotation control module, where:

[0166] The volume cloud rotation control module is configured to control the rotation of the target volume cloud on the editing interface in response to a rotation operation applied to the target volume cloud.

[0167] Furthermore, the editing interface includes an editing button for triggering the editing of the volume cloud, and the volume cloud processing device 200 further includes: a touch operation response module, where:

[0168] A touch operation response module, configured to respond to a click operation on the editing button, and display a cloud of ellipsoids on the editing interface, where the cloud of ellipsoids is used as an underlying model for creating a volume cloud.

[0169] Further, the editing interface further includes a third key component for increasing the details of the volume cloud. The third key component includes a plurality of third key parameters. The processing device 200 of the volume cloud further includes: a third configuration information determination module and a detail increase module, where:

[0170] The third configuration information determination module is configured to respond to a configuration operation on the plurality of third key parameters, and determine third configuration information corresponding to each of the plurality of third key parameters, where the third configuration information includes noise information.

[0171] The detail increase module is configured to increase the details of the initial volume cloud based on the third configuration information.

[0172] Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the foregoing method embodiments, and will not be described herein again.

[0173] In several embodiments provided in the present application, the coupling between modules can be electrical, mechanical, or other forms of coupling.

[0174] In addition, in each embodiment of the present application, the various functional modules can be integrated into one processing module, or each module can exist physically alone, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules.

[0175] Please refer to Figure 9 , which shows a structural block diagram of an electronic device 100 provided in an embodiment of the present application. The electronic device 100 in the present application may include one or more of the following components: a processor 110, a memory 120, and one or more application programs, where one or more application programs can be stored in the memory 120 and configured to be executed by one or more processors 110, and one or more programs are configured to execute the method described in the foregoing method embodiments.

[0176] Among them, the processor 110 may include one or more processing cores. The processor 110 connects various parts within the entire electronic device 100 through various interfaces and circuits. By running or executing instructions, programs, code sets, or instruction sets stored in the memory 120, and by calling data stored in the memory 120, it performs various functions of the electronic device 100 and processes data. Optionally, the processor 110 may be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), or programmable logic array (PLA). The processor 110 may integrate a combination of one or more of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, application programs, etc.; the GPU is responsible for rendering and drawing the content to be displayed; the modem is used to process wireless communication. It can be understood that the above-mentioned modem may not be integrated into the processor 110 and may be implemented separately through a communication chip.

[0177] The memory 120 may include random access memory (RAM) and may also include read-only memory. The memory 120 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 120 may include a program storage area and a data storage area. Among them, the program storage area may store instructions for implementing the operating system, instructions for implementing functions (such as touch function, sound playback function, image playback function, etc.), instructions for implementing the following various method embodiments, etc. The data storage area may also store data created during the use of the electronic device 100 (such as phone book, audio and video data, chat record data, etc.).

[0178] Please refer to Figure 10 , which shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application. Program code is stored in the computer-readable medium 300, and the program code can be called by a processor to execute the methods described in the above method embodiments.

[0179] The computer-readable storage medium 300 can be an electronic memory such as a flash memory, EEPROM (Electrically Erasable Programmable Read-Only Memory), EPROM, a hard disk, or a ROM. Optionally, the computer-readable storage medium 300 includes a non-transitory computer-readable storage medium. The computer-readable storage medium 300 has a storage space for program code 310 that executes any of the method steps in the above-described method. These program codes can be read out from or written into one or more computer program products. The program code 310 can be compressed in a suitable form, for example.

[0180] In summary, the method, apparatus, electronic device, and storage medium for processing volumetric clouds provided in the embodiments of the present application display a volumetric cloud editing interface including a first key component for creating a volumetric cloud and a second key component for rendering the volumetric cloud, set the first key component to include a plurality of first key parameters, and the second key component to include a plurality of second key parameters. During the application process, in response to a user's configuration operation on the plurality of first key parameters, the first configuration information corresponding to each of the plurality of first key parameters can be determined, an initial volumetric cloud can be generated based on the first configuration information, in response to a user's configuration operation on the plurality of second key parameters, the second configuration information corresponding to each of the plurality of second key parameters can be determined, the initial volumetric cloud can be rendered based on the second configuration information to obtain a target volumetric cloud, and the target volumetric cloud can be displayed on the editing interface. Thus, by providing a volumetric cloud editing interface and displaying the key components for creating and rendering the volumetric cloud, it is convenient for users to obtain volumetric clouds more efficiently and conveniently, improving the user experience.

[0181] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application and are not intended to limit them. Although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments or perform equivalent replacements for some of the technical features. However, such modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for processing volumetric cloud, characterized in that: The method comprises: Displaying an editing interface for a volume cloud, wherein the editing interface includes a first key component for creating a volume cloud and a second key component for rendering the volume cloud, the first key component includes a plurality of first key parameters, and the second key component includes a plurality of second key parameters; In response to the configuration operation for the plurality of first key parameters, determining first configuration information corresponding to each of the plurality of first key parameters; generating an initial volume cloud based on the first configuration information; In response to the configuration operation for the plurality of second key parameters, determining second configuration information corresponding to each of the plurality of second key parameters; The initial volume cloud is rendered based on the second configuration information to obtain a target volume cloud, and the target volume cloud is displayed on the editing interface.

2. The method according to claim 1, characterized in that For each first key parameter of the plurality of first key parameters, the first key parameter corresponds to a first parameter range, and the editing interface includes a first adjustment bar corresponding to the first key parameter; The step of determining, in response to the configuration operation on the plurality of first key parameters, first configuration information corresponding to each of the plurality of first key parameters comprises: In response to a drag operation on the first adjustment bar, first configuration information corresponding to the first key parameter is determined from the first parameter range.

3. The method according to claim 1, characterized in that For each second key parameter of the plurality of second key parameters, the second key parameter corresponds to a second parameter range, and the editing interface includes a second adjustment bar corresponding to the second key parameter; The step of determining, in response to the configuration operation on the plurality of second key parameters, second configuration information corresponding to each of the plurality of second key parameters comprises: In response to the dragging operation on the second adjustment bar, second configuration information corresponding to the second key parameter is determined from the second parameter range.

4. The method according to claim 1, characterized in that: After rendering the initial volume cloud based on the second configuration information to obtain a target volume cloud and displaying the target volume cloud on the editing interface, the method further includes: In response to a rotation operation applied to the target volume cloud, the target volume cloud is controlled to rotate in the editing interface.

5. The method according to claim 1, characterized in that The editing interface includes an editing button, and the editing button is used to trigger editing of the volume cloud. After the editing interface of the volume cloud is displayed, the editing interface further includes: In response to a click operation on the edit button, an ellipsoidal cloud is displayed on the edit interface, wherein the ellipsoidal cloud is used as an underlying model for creating a volumetric cloud.

6. The method according to any one of claims 1 to 5, characterized in that: The editing interface further includes a third key component for increasing cloud volume details, the third key component including a plurality of third key parameters, and after generating an initial volume cloud based on the first configuration information, further includes: In response to the configuration operation for the plurality of third key parameters, determining third configuration information corresponding to each of the plurality of third key parameters, wherein the third configuration information includes noise information; The details of the initial volumetric cloud are increased based on the third configuration information.

7. The method according to any one of claims 1 to 5, characterized in that: The second configuration information includes weather information, and the rendering the initial volume cloud based on the second configuration information to obtain a target volume cloud includes: The initial volume cloud and the weather information are combined by a weather scene assembly SDK to form a weather scene; The weather scene is rendered by a weather scene rendering SDK to obtain target weather including the target volumetric cloud.

8. The method according to claim 7, characterized in that The step of rendering the weather scene by using a weather scene rendering SDK to obtain target weather including the target volume cloud includes: storing the weather scene in one or more 3D textures; The weather scene is read from the one or more 3D textures through the weather scene rendering SDK, and the weather scene is rendered to obtain the target weather including the target volumetric cloud.

9. The method according to claim 7, characterized in that: The step of rendering the weather scene by using a weather scene rendering SDK to obtain target weather including the target volume cloud includes: Determining rendering parameters, wherein the rendering parameters are determined based on the second configuration information; The target weather including the target volume cloud is obtained by rendering the weather scene based on the volume rendering technology and the rendering parameters through the weather scene rendering SDK.

10. The method according to claim 9, characterized in that The method further comprises: In the process of rendering the weather scene based on the volume rendering technique and the rendering parameters, tracing ray steps; If the ray is traced to hit the surface of an opaque object, or if the accumulated opacity of the ray reaches an opacity threshold, the tracing of the ray is stopped.

11. The method according to claim 9, characterized in that The method further comprises: In the process of rendering the weather scene based on the volume rendering technology and the rendering parameters, detecting rendering influencing factors of the rendering area, wherein the rendering influencing factors include one or a combination of detail level, color change, opacity, and distance; Based on the detected rendering impact factors, the sampling rate is determined.

12. The method according to claim 9, characterized in that The method further comprises: In the process of rendering the weather scene based on the volume rendering technology and the rendering parameters, determining the hardware resources of the electronic device on which the weather scene rendering SDK runs; The shader is optimized based on the hardware resources.

13. A volume cloud processing device, characterized in that: The device comprises: An editing interface display module, used for displaying an editing interface of a volume cloud, wherein the editing interface includes a first key component for creating a volume cloud and a second key component for rendering a volume cloud, the first key component includes a plurality of first key parameters, and the second key component includes a plurality of second key parameters; A first configuration information determining module, configured to determine first configuration information corresponding to each of the plurality of first key parameters in response to a configuration operation on the plurality of first key parameters; An initial volume cloud generating module, configured to generate an initial volume cloud based on the first configuration information; A second configuration information determining module, configured to determine second configuration information corresponding to each of the plurality of second key parameters in response to a configuration operation on the plurality of second key parameters; The target volume cloud obtaining module is used to render the initial volume cloud based on the second configuration information to obtain a target volume cloud, and display the target volume cloud on the editing interface.

14. An electronic device, characterized in that: The method comprises a memory and a processor, wherein the memory is coupled to the processor, the memory stores instructions, and when the instructions are executed by the processor, the processor executes the method according to any one of claims 1 to 12.

15. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program codes, and the program codes can be called by a processor to execute the method according to any one of claims 1 to 12.