Volumetric cloud processing method, device and electronic device

By partitioning the volume cloud, the problem of the inability to partition the volume cloud in the existing technology is solved, and higher cloud controllability and user experience are achieved.

CN114419215BActive Publication Date: 2025-04-25NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111648246.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-29
Publication Date
2025-04-25
Estimated Expiration
2041-12-29

AI Technical Summary

Technical Problem

The prior art cannot partition the morphology of volume clouds, resulting in the inability to create multi-layer clouds, sub-regional control and cloud mixing.

Method used

By obtaining the volume cloud to be adjusted, and determining the partition range in different directions based on its width and height information, morphological partitioning adjustments are performed to generate the adjusted volume cloud.

Benefits of technology

It realizes more refined control of the volumetric cloud, improves the controllability of the cloud, and allows developers to create more hierarchical and interesting pictures, improving user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114419215B_ABST
    Figure CN114419215B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, device and electronic device for processing volume cloud. The method comprises: obtaining a volume cloud to be adjusted; determining a first partition range of the volume cloud to be adjusted in a first direction according to the width information of the volume cloud to be adjusted, and determining a second partition range of the volume cloud to be adjusted in a second direction according to the height information of the volume cloud to be adjusted, wherein the first direction is different from the second direction; performing partition adjustment on the shape of the volume cloud to be adjusted based on the first partition range and the second partition range to obtain the adjusted volume cloud. The present invention solves the technical problem that the prior art cannot perform partition adjustment on the shape of the volume cloud.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of model rendering, and in particular to a volume cloud processing method, device and electronic equipment. Background Art

[0002] The sky and atmosphere in the game have a great impact on the tone and atmosphere of the picture, and clouds are an important part of it. Making good use of volumetric clouds can well set off the atmosphere of our game pictures, increase the layering and fun of the pictures. At present, the volumetric clouds in the relevant development engines can only be one layer. It can only control the shape of the cloud as a whole by default. It is impossible to create multiple layers of clouds, control them by area, and even more impossible to mix multiple clouds.

[0003] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0004] The embodiments of the present invention provide a method, device and electronic device for processing volumetric cloud, so as to at least solve the technical problem that the prior art cannot perform partition adjustment on the shape of volumetric cloud.

[0005] According to one aspect of an embodiment of the present invention, a method for processing a volume cloud is provided, including: obtaining a volume cloud to be adjusted; determining a first partition range of the volume cloud to be adjusted in a first direction according to width information of the volume cloud to be adjusted, and determining a second partition range of the volume cloud to be adjusted in a second direction according to height information of the volume cloud to be adjusted, wherein the first direction is different from the second direction; and performing partition adjustment on the shape of the volume cloud to be adjusted based on the first partition range and the second partition range to obtain an adjusted volume cloud.

[0006] Furthermore, the volumetric cloud processing method also includes: obtaining the first channel range of the first color channel corresponding to the first mask map corresponding to the volumetric cloud to be adjusted and the width information of the volumetric cloud to be adjusted; vertically projecting the volumetric cloud to be adjusted onto the first mask map to obtain the projection result; determining the first partition range of the volumetric cloud to be adjusted in the first direction according to the first channel range and the projection result.

[0007] Furthermore, the volume cloud processing method also includes: obtaining height information of the volume cloud to be adjusted; determining a second channel range of the volume cloud to be adjusted in the second color channel according to the height information; and determining a second partition range of the volume cloud to be adjusted in the second direction according to the second channel range.

[0008] Furthermore, the volume cloud processing method also includes: determining at least one adjustment area of ​​the volume cloud to be adjusted based on the first partition range and the second partition range; determining a target adjustment area from at least one adjustment area; and performing morphological adjustment on the target adjustment area of ​​the volume cloud to be adjusted to obtain an adjusted volume cloud.

[0009] Furthermore, the volume cloud processing method also includes: partitioning and adjusting the shape of the volume cloud to be adjusted based on the first partition range and the second partition range to obtain the adjusted volume cloud, and then obtaining multiple types of volume clouds; mixing the multiple types of volume clouds to obtain a mixed volume cloud.

[0010] Furthermore, the volume cloud processing method also includes: before obtaining the volume cloud to be adjusted, obtaining a first texture map and initial thickness information of the volume cloud to be adjusted; adjusting the initial thickness information of the volume cloud to be adjusted based on the brightness information in the first texture map to obtain the target thickness of the volume cloud to be adjusted; obtaining a second texture map and initial height information of the volume cloud to be adjusted; adjusting the initial height information of the volume cloud to be adjusted based on the brightness information in the second texture map to obtain the target height of the volume cloud to be adjusted; obtaining a third texture map and initial width information of the volume cloud to be adjusted, and projecting the third texture map in a first direction to obtain a projection result; adjusting the initial width information of the volume cloud to be adjusted based on the projection result to obtain the target width of the volume cloud to be adjusted; generating the volume cloud to be adjusted based on the target thickness, and / or, target height, and / or, target width.

[0011] Furthermore, the volume cloud processing method also includes: before obtaining the volume cloud to be adjusted, obtaining a scene terrain height map; obtaining the scene terrain height of the scene where the volume cloud to be adjusted is located from the scene terrain height map; calculating the difference between the scene terrain height and the target height of the volume cloud to be adjusted to obtain the height difference; calculating the ratio of the height difference to the target thickness, and adjusting the height of the volume cloud to be adjusted according to the ratio.

[0012] Furthermore, the volume cloud processing method also includes: obtaining a scene terrain corresponding to a scene terrain height map; creating a proxy terrain based on the scene terrain; capturing terrain information of the proxy terrain, converting the terrain information into a height map, and obtaining a scene terrain height map.

[0013] Furthermore, the volume cloud processing method also includes: obtaining a volume map corresponding to a preset model; offsetting the volume map in the horizontal direction to obtain an offset volume map; adjusting the offset volume map based on the three-dimensional mask space of the preset model to obtain an adjusted volume map; rendering the preset model based on the adjusted volume map to obtain the volume cloud to be adjusted.

[0014] Furthermore, the volume cloud processing method also includes: after rendering a preset model based on the adjusted volume map to obtain the volume cloud to be adjusted, adjusting the texture space and three-dimensional mask space of the offset volume map to determine the placement position of the volume cloud to be adjusted; and placing the volume cloud to be adjusted based on the placement position.

[0015] Furthermore, the volume cloud processing method also includes: after rendering the preset model based on the adjusted volume map to obtain the volume cloud to be adjusted, obtaining the first volume map corresponding to the volume cloud to be adjusted; time-shifting the first volume map to obtain the shifted first volume map; adjusting the shifted first volume map to obtain the second volume map; calculating the product of the texture space of the second volume map and the texture space of the shifted volume map to obtain the distorted texture space; processing the volume cloud to be adjusted based on the distorted texture space to obtain the target volume cloud, wherein the target volume cloud is a volume cloud that changes dynamically over time.

[0016] According to another aspect of an embodiment of the present invention, a volume cloud processing device is also provided, including: an acquisition module, used to acquire the volume cloud to be adjusted; a determination module, used to determine a first partition range of the volume cloud to be adjusted in a first direction according to width information of the volume cloud to be adjusted, and to determine a second partition range of the volume cloud to be adjusted in a second direction according to height information of the volume cloud to be adjusted, wherein the first direction is different from the second direction; an adjustment module, used to perform partition adjustment on the shape of the volume cloud to be adjusted based on the first partition range and the second partition range to obtain an adjusted volume cloud.

[0017] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned volume cloud processing method when running.

[0018] According to another aspect of an embodiment of the present invention, there is also provided an electronic device, which includes one or more processors; a storage device for storing one or more programs, which, when the one or more programs are executed by the one or more processors, enables the one or more processors to run the programs, wherein the programs are configured to execute the above-mentioned volumetric cloud processing method when running.

[0019] In the embodiment of the present invention, the volume cloud to be adjusted is partitioned to obtain the adjusted volume cloud, by first obtaining the volume cloud to be adjusted, then determining the first partition range of the volume cloud to be adjusted in the first direction according to the width information of the volume cloud to be adjusted, and determining the second partition range of the volume cloud to be adjusted in the second direction according to the height information of the volume cloud to be adjusted, thereby partitioning the shape of the volume cloud to be adjusted based on the first partition range and the second partition range to obtain the adjusted volume cloud. The first direction is different from the second direction.

[0020] In the above process, by determining the partition range of the volume cloud to be adjusted in two directions, the partition area of ​​the volume cloud to be adjusted in space is determined. Furthermore, by partitioning and adjusting the shape of the volume cloud to be adjusted based on the partition area of ​​the volume cloud to be adjusted, the problem of only being able to control the shape of the cloud as a whole in the prior art is avoided, thereby improving the controllability of the volume cloud, allowing developers to create more layered and interesting pictures based on the volume cloud, thereby improving the user experience.

[0021] It can be seen that the solution provided in the present application achieves the purpose of partitioning the volume cloud to be adjusted to obtain the adjusted volume cloud, thereby achieving the effect of improving the controllability of the volume cloud, and further solving the technical problem that the prior art cannot partition the shape of the volume cloud. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0023] Figure 1 is a schematic diagram of an optional volume cloud processing method according to an embodiment of the present invention;

[0024] Figure 2 is a schematic diagram of an optional first mask map according to an embodiment of the present invention;

[0025] Figure 3 is a schematic diagram of an optional volume cloud to be adjusted vertically projected onto a first mask map according to an embodiment of the present invention;

[0026] Figure 4 is a schematic diagram of an optional second color channel according to an embodiment of the present invention;

[0027] Figure 5 is a schematic diagram of an optional second color channel according to an embodiment of the present invention;

[0028] Figure 6 is a schematic diagram of at least one adjustment region of an optional volume cloud to be adjusted according to an embodiment of the present invention;

[0029] Figure 7 is a schematic diagram of an optional mixed processing of multiple types of volumetric clouds according to an embodiment of the present invention;

[0030] Figure 8 is a schematic diagram of an optional display of a single type of volumetric cloud according to an embodiment of the present invention;

[0031] Fig. 9A schematic diagram of an optional node in a ground cloud area according to an embodiment of the present invention;

[0032] Fig.10 is a schematic diagram of an optional volume cloud node to be adjusted according to an embodiment of the present invention;

[0033] Fig.11 is a schematic diagram of an optional cloud layer height and cloud bottom height of a volume cloud to be adjusted according to an embodiment of the present invention;

[0034] Fig.12 is a top view of a volume cloud to be adjusted with an optional target width of 1 km according to an embodiment of the present invention;

[0035] Fig.13 is a perspective view of a volume cloud to be adjusted with an optional target width of 1 km according to an embodiment of the present invention;

[0036] Fig.14 is a schematic diagram of optional initial height information of a volume cloud to be adjusted according to an embodiment of the present invention;

[0037] Fig.15 is a schematic diagram of multiplying a normalized height of an optional basic cloud node and a volume cloud to be adjusted according to an embodiment of the present invention;

[0038] Fig.16 is a schematic diagram of an optional basic cloud node according to an embodiment of the present invention;

[0039] Fig.17 is a schematic diagram of an optional basic cloud node multiplied by the normalized height of the volume cloud to be adjusted according to an embodiment of the present invention;

[0040] Fig.18 is a schematic diagram of an optional addition / subtraction operation on initial height information according to an embodiment of the present invention;

[0041] Fig.19 is a schematic diagram of an optional addition / subtraction operation on initial height information according to an embodiment of the present invention;

[0042] Fig. 20 is a schematic diagram of an optional addition / subtraction operation on initial height information according to an embodiment of the present invention;

[0043] Fig.21 is a schematic diagram of an optional addition / subtraction operation on initial height information according to an embodiment of the present invention;

[0044] Fig. 22 is a schematic diagram of an optional addition / subtraction operation on initial height information according to an embodiment of the present invention;

[0045] Fig.23 is a schematic diagram of an optional multiplication operation on initial height information according to an embodiment of the present invention;

[0046] Fig.24 is a schematic diagram of an optional multiplication operation on initial height information according to an embodiment of the present invention;

[0047] Fig.25 is a schematic diagram of an optional multiplication operation on initial height information according to an embodiment of the present invention;

[0048] Fig.26 is a schematic diagram of an optional multiplication operation on initial height information according to an embodiment of the present invention;

[0049] Fig. 27 is a schematic diagram of an optional scaling operation on initial height information according to an embodiment of the present invention;

[0050] Fig.28 is a schematic diagram of an optional scaling operation on initial height information according to an embodiment of the present invention;

[0051] Fig.29 is a schematic diagram of an optional scaling operation on initial height information according to an embodiment of the present invention;

[0052] Fig.30 is a schematic diagram of an optional verification of adjusted initial height information according to an embodiment of the present invention;

[0053] Fig.31 is a schematic diagram of an optional verification of adjusted initial height information according to an embodiment of the present invention;

[0054] Fig.32 is a schematic diagram of an optional verification of adjusted initial height information according to an embodiment of the present invention;

[0055] Fig.33 is a schematic diagram of a volume cloud to be adjusted corresponding to an optional adjusted initial height information according to an embodiment of the present invention;

[0056] Fig.34 is a schematic diagram of an optional second texture map according to an embodiment of the present invention;

[0057] Fig.35 is a schematic diagram of an optional target height of a volume cloud to be adjusted according to an embodiment of the present invention;

[0058] Fig.36 is a schematic diagram of an optional second texture map according to an embodiment of the present invention;

[0059] Fig.37 is a schematic diagram of an optional target height of a volume cloud to be adjusted according to an embodiment of the present invention;

[0060] Fig.38 is a schematic diagram of an optional volume cloud to be adjusted according to an embodiment of the present invention;

[0061] Fig.39 is a schematic diagram of an optional initial thickness of a volume cloud to be adjusted according to an embodiment of the present invention;

[0062] Fig.40 is a schematic diagram of an optional initial thickness of a volume cloud to be adjusted according to an embodiment of the present invention;

[0063] Fig.41 is a schematic diagram of an optional initial thickness of a volume cloud to be adjusted according to an embodiment of the present invention;

[0064] Fig.42 is a schematic diagram of an optional first texture map according to an embodiment of the present invention;

[0065] Fig.43 is a schematic diagram of an optional target thickness of a volume cloud to be adjusted according to an embodiment of the present invention;

[0066] Fig.44 is a schematic diagram of an optional first texture map according to an embodiment of the present invention;

[0067] Fig.45 is a schematic diagram of an optional target thickness of a volume cloud to be adjusted according to an embodiment of the present invention;

[0068] Fig.46 is a schematic diagram of an optional first texture map according to an embodiment of the present invention;

[0069] Fig.47 is a schematic diagram of an optional target thickness of a volume cloud to be adjusted according to an embodiment of the present invention;

[0070] Fig.48 is a schematic diagram of an optional first texture map according to an embodiment of the present invention;

[0071] Fig.49 is a schematic diagram of an optional target thickness of a volume cloud to be adjusted according to an embodiment of the present invention;

[0072] Fig.50 is a schematic diagram of an optional volume cloud to be adjusted according to an embodiment of the present invention;

[0073] Fig.51is a schematic diagram of an optional volume cloud to be adjusted according to an embodiment of the present invention;

[0074] Fig.52 is a schematic diagram of an optional volume cloud to be adjusted according to an embodiment of the present invention;

[0075] Fig.53 is a schematic diagram of an optional volume cloud to be adjusted according to an embodiment of the present invention;

[0076] Fig.54 is a schematic diagram of an optional height difference value according to an embodiment of the present invention;

[0077] Fig.55 is a schematic diagram of an optional setting for capturing terrain information of a proxy terrain according to an embodiment of the present invention;

[0078] Fig.56 is a schematic diagram of an optional wireframe map according to an embodiment of the present invention;

[0079] Fig.57 is a schematic diagram of an optional method for setting the material of a proxy terrain according to an embodiment of the present invention;

[0080] Fig.58 is a schematic diagram of an optional camera position according to an embodiment of the present invention;

[0081] Fig.59 is a schematic diagram of an optional proxy terrain according to an embodiment of the present invention;

[0082] Fig.60 is a schematic diagram of an optional proxy terrain according to an embodiment of the present invention;

[0083] Fig.61 is a schematic diagram of an optional proxy terrain according to an embodiment of the present invention;

[0084] Fig.62 is a schematic diagram of an optional camera position according to an embodiment of the present invention;

[0085] Fig.63 is a schematic diagram of a volume cloud to be adjusted that is optionally generated based on a proxy terrain height map and a scene terrain height map according to an embodiment of the present invention;

[0086] Fig.64 is a schematic diagram of an effect of a volumetric cloud to be adjusted that is optionally generated based on a proxy terrain height map and a scene terrain height map according to an embodiment of the present invention;

[0087] Fig.65 is a schematic diagram of an effect of a volumetric cloud to be adjusted that is optionally generated based on a proxy terrain height map and a scene terrain height map according to an embodiment of the present invention;

[0088] Fig.66 is a schematic diagram of an optional method of obtaining a volume map according to an embodiment of the present invention;

[0089] Fig.67 is a schematic diagram of an optional method of obtaining a volume map according to an embodiment of the present invention;

[0090] Fig.68 is a schematic diagram of an optional method of obtaining a volume map according to an embodiment of the present invention;

[0091] Fig.69 is a schematic diagram of an optional setting of a volume map according to an embodiment of the present invention;

[0092] Fig.70 is a schematic diagram of an optional volume map according to an embodiment of the present invention;

[0093] Fig.71 is a schematic diagram of an optional offset volume map according to an embodiment of the present invention;

[0094] Fig.72 is a schematic diagram of an optional volume map according to an embodiment of the present invention;

[0095] Fig.73 is a schematic diagram of an optional offset volume map according to an embodiment of the present invention;

[0096] Fig.74 is a schematic diagram of an optional offset volume map according to an embodiment of the present invention;

[0097] Fig.75 is a schematic diagram of an optional volume cloud to be adjusted according to an embodiment of the present invention;

[0098] Fig.76 is a schematic diagram of an optional volume cloud to be adjusted according to an embodiment of the present invention;

[0099] Fig.77 is a schematic diagram of an optional target volume cloud according to an embodiment of the present invention;

[0100] Fig.78 is a schematic diagram of an optional volume cloud to be adjusted according to an embodiment of the present invention;

[0101] Fig.79 is a schematic diagram of an optional volume cloud to be adjusted according to an embodiment of the present invention;

[0102] Fig.80 is a schematic diagram of an optional volume cloud to be adjusted according to an embodiment of the present invention;

[0103] Fig.81 is a schematic diagram of an optional volume cloud to be adjusted according to an embodiment of the present invention;

[0104] Fig.82 is a schematic diagram of an optional volume cloud to be adjusted according to an embodiment of the present invention;

[0105] Fig.83 is a schematic diagram of an optional volume cloud processing device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0106] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0107] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0108] According to an embodiment of the present invention, an embodiment of a method for processing volumetric clouds is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0109] Figure 1 is a flow chart of a method for processing volumetric cloud according to an embodiment of the present invention. Figure 1 As shown, the method comprises the following steps:

[0110] Step S102, obtaining the volume cloud to be adjusted.

[0111] In step S102, the volume cloud to be adjusted may be obtained through a computing device, an application system, a processor, and the like. In this embodiment, the computing device may draw the volume cloud to be adjusted through a development engine or read a drawn volume cloud to be adjusted preset in a storage library to obtain the volume cloud to be adjusted. The volume cloud to be adjusted may be a single cloud or a collection of multiple clouds.

[0112] It should be noted that the volume cloud to be adjusted is obtained to achieve the subsequent determination of the partition range of the volume cloud to be adjusted.

[0113] Step S104, determining a first partition range of the volumetric cloud to be adjusted in a first direction according to the width information of the volumetric cloud to be adjusted, and determining a second partition range of the volumetric cloud to be adjusted in a second direction according to the height information of the volumetric cloud to be adjusted, wherein the first direction is different from the second direction.

[0114] In step S104, the width information of the volume cloud to be adjusted includes at least the width of the volume cloud to be adjusted in the horizontal direction, the height information of the volume cloud to be adjusted may be the height of the volume cloud to be adjusted in the vertical direction, or the normalized height of the volume cloud to be adjusted in the vertical direction, the first direction may be the horizontal direction, or the direction that forms a certain angle with the horizontal direction, the second direction may be the vertical direction, or the direction that forms a certain angle with the vertical direction. The number of partitions corresponding to the first partition range may be the same as or different from the number of partitions corresponding to the second partition range.

[0115] It should be noted that, by determining the partition ranges of the volume cloud to be adjusted in two directions, it is possible to subsequently determine the partition regions of the volume cloud to be adjusted in space.

[0116] Step S106: performing partition adjustment on the shape of the volume cloud to be adjusted based on the first partition range and the second partition range to obtain an adjusted volume cloud.

[0117] In step S106, the computing device may determine the partitioned area of ​​the volume cloud to be adjusted in space based on the partition range, and may perform partitioned adjustment on the height, thickness, and width of the volume cloud to be adjusted based on the partitioned area. Similarly, the material, color, texture, and other data of the volume cloud to be adjusted may also be partitioned. During the adjustment process, the computing device may adjust only part of the partitioned area of ​​the volume cloud to be adjusted, or may adjust all the partitioned areas of the volume cloud to be adjusted.

[0118] It should be noted that by partitioning the volumetric cloud to be adjusted based on the partition range, the defect of the existing technology that only the shape of the cloud can be controlled as a whole is avoided, thereby improving the controllability of the volumetric cloud, allowing developers to create more layered and interesting pictures based on the volumetric cloud, thereby improving the user experience.

[0119] Based on the scheme defined in the above steps S102 to S106, it can be known that in the embodiment of the present invention, the volume cloud to be adjusted is partitioned to obtain the adjusted volume cloud, by first obtaining the volume cloud to be adjusted, then determining the first partition range of the volume cloud to be adjusted in the first direction according to the width information of the volume cloud to be adjusted, and determining the second partition range of the volume cloud to be adjusted in the second direction according to the height information of the volume cloud to be adjusted, thereby partitioning the shape of the volume cloud to be adjusted based on the first partition range and the second partition range to obtain the adjusted volume cloud. Wherein, the first direction is different from the second direction.

[0120] It is easy to notice that in the above process, by determining the partition range of the volume cloud to be adjusted in two directions, the partition area of ​​the volume cloud to be adjusted in space is determined. Furthermore, by partitioning and adjusting the shape of the volume cloud to be adjusted based on the partition area of ​​the volume cloud to be adjusted, the problem of only being able to control the shape of the cloud as a whole in the prior art is avoided, thereby improving the controllability of the volume cloud, allowing developers to create more layered and interesting pictures based on the volume cloud, thereby improving the user experience.

[0121] It can be seen that the solution provided in the present application achieves the purpose of partitioning the volume cloud to be adjusted to obtain the adjusted volume cloud, thereby achieving the effect of improving the controllability of the volume cloud, and further solving the technical problem that the prior art cannot partition the shape of the volume cloud.

[0122] In an optional embodiment, in the process of determining the first partition range of the volumetric cloud to be adjusted in the first direction according to the width information of the volumetric cloud to be adjusted, the computing device obtains the first channel range of the first color channel corresponding to the first mask map corresponding to the volumetric cloud to be adjusted and the width information of the volumetric cloud to be adjusted, and then vertically projects the volumetric cloud to be adjusted to the first mask map to obtain the projection result, thereby determining the first partition range of the volumetric cloud to be adjusted in the first direction according to the first channel range and the projection result.

[0123] Optionally, in this embodiment, the first mask map corresponding to the volume cloud to be adjusted is a two-dimensional mask map. Figure 2 DMask, such as Figure 2 As shown, the first color channel is Figure 2 Medium 2D masking sticker Figure 2The RGBA channel corresponding to D Mask includes three color channels (R channel, G channel, and B channel). The first channel range represents the range corresponding to each channel in the aforementioned RGBA channel. Figure 3 As shown, the computing device obtains the volume cloud to be adjusted and its width information, and then performs 2DMask projection (two-dimensional mask projection) on the horizontal plane to vertically project the volume cloud to be adjusted onto the two-dimensional mask sticker. Figure 2 D Mask, thereby obtaining the projection result. The computing device can project onto the two-dimensional mask Figure 2 The volume cloud area to be adjusted in the same channel range of D Mask is determined to belong to the same partition range in the first direction and will be projected onto the 2D mask patch. Figure 2 The volume cloud regions to be adjusted in different channel ranges of D Mask are determined to belong to different partition ranges in the first direction, thereby achieving determination of the first partition range of the volume cloud to be adjusted in the first direction. In this embodiment, the first direction is a horizontal direction.

[0124] It should be noted that by projecting the volume cloud to be adjusted onto the first mask map to determine the first partition range of the volume cloud to be adjusted, cross-parameter influence can be effectively avoided, thereby achieving rapid and accurate determination of the first partition range.

[0125] In an optional embodiment, in the process of determining the second partition range of the volumetric cloud to be adjusted in the second direction based on the height information of the volumetric cloud to be adjusted, the computing device obtains the height information of the volumetric cloud to be adjusted, and then determines the second channel range of the volumetric cloud to be adjusted in the second color channel based on the height information, thereby determining the second partition range of the volumetric cloud to be adjusted in the second direction based on the second channel range.

[0126] Optionally, in this embodiment, the computing device may determine the RGBA channel in the Curve Atlas Row Parameter node in UE4 (Unreal Engine 4) as the second color channel, such as Figure 4 As shown, the RGBA channel also includes three color channels (R channel, G channel, and B channel). The computing device determines the second channel range according to the normalized height of the volume cloud to be adjusted in the height information. The second channel range represents the range corresponding to each channel in the RGBA channel in the Curve Atlas Row Parameter node. Figure 5As shown, the computing device determines the volume cloud areas to be adjusted that belong to the same channel range as belonging to the same partition range in the second direction, and determines the volume cloud areas to be adjusted that belong to different channel ranges as belonging to different partition ranges in the second direction. Thus, the second partition range of the volume cloud to be adjusted in the second direction is determined. In this embodiment, the first direction is the vertical direction.

[0127] It should be noted that by determining the second partition range of the volumetric cloud to be adjusted according to the second channel range, the partition of the height of the volumetric cloud to be adjusted is achieved, so that the shape of the volumetric clouds at different heights can be changed subsequently, thereby making the shape of the volumetric clouds in the picture more in line with the actual performance, thereby improving the authenticity and vividness of the volumetric clouds.

[0128] In an optional embodiment, in the process of performing partition adjustment on the morphology of the volumetric cloud to be adjusted based on the first partition range and the second partition range, the computing device can first determine at least one adjustment area of ​​the volumetric cloud to be adjusted based on the first partition range and the second partition range, then determine a target adjustment area from the at least one adjustment area, and finally perform morphological adjustment on the target adjustment area of ​​the volumetric cloud to be adjusted, thereby obtaining an adjusted volumetric cloud.

[0129] Optionally, after the computing device determines the first partition range and the second partition range, the computing device may take the intersection of the first partition range and the second partition range to determine at least one adjustment region in space of the volume cloud to be adjusted. Specifically, Figure 6 As shown, the area (i.e. Figure 6 The volumetric cloud volume in the image is divided into high-level cloud area, low-level cloud area and ground cloud area. The high-level cloud area representation belongs to the two-dimensional mask sticker. Figure 2 The volumetric cloud area to be adjusted is the intersection of the R channel range in the D Mask and the R channel range in the Curve Atlas Row Parameter node; the low-level cloud area represents the two-dimensional mask patch Figure 2 The volume cloud area to be adjusted is the intersection of the G channel range in D Mask and the G channel range in CurveAtlas Row Parameter node; the ground cloud area represents the two-dimensional mask patch Figure 2 The volume cloud area to be adjusted is the intersection of the B channel range in the D Mask and the B channel range in the Curve Atlas Row Parameter node. Figure 7 As shown, the computing device can map the high-level clouds in the volume cloud to be adjusted to the two-dimensional mask in UE4. Figure 2Multiply the R channel in D Mask and the R channel in Curve Atlas Row Parameter node to obtain the high-level cloud area, and paste the low-level clouds in the volume cloud to be adjusted with the 2D mask. Figure 2 Multiply the G channel in the D Mask and the G channel in the Curve Atlas Row Parameter node to obtain the low-level cloud area, and multiply the ground cloud in the volume cloud to be adjusted with the B channel in the 2D Mask and the B channel in the Curve Atlas Row Parameter node to obtain the ground cloud area.

[0130] Afterwards, the computing device can determine at least one of the high-level cloud area, the low-level cloud area and the ground cloud area as the target adjustment area by obtaining manually input instructions, and adjust the target adjustment area according to the manually input parameters or preset adjustment commands to obtain the adjusted volumetric cloud.

[0131] It should be noted that by determining at least one adjustment area of ​​the volume cloud to be adjusted based on the first partition range and the second partition range, the spatial partition area of ​​the volume cloud to be adjusted is determined, so as to facilitate adjustment of each adjustment area of ​​the volume cloud to be adjusted.

[0132] In an optional embodiment, after partitioning and adjusting the shape of the volumetric cloud to be adjusted based on the first partition range and the second partition range to obtain the adjusted volumetric cloud, the computing device can obtain multiple types of volumetric clouds and mix the multiple types of volumetric clouds to obtain a mixed volumetric cloud.

[0133] Specifically, after the computing device obtains the adjusted volumetric cloud, the computing device may mix the adjusted volumetric cloud with the unadjusted volumetric cloud, or with the adjusted volumetric cloud, wherein the multiple types of volumetric clouds represent at least one of a high-level cloud region, a low-level cloud region, and a ground cloud region. Figure 7 As shown, by linking the high-level cloud area, the low-level cloud area and the ground cloud area based on the Add method, and connecting the output end of the Add node to the Conservative Density and Extinction in UE4, you can achieve mixed processing of multiple types of volumetric clouds, that is, display the mixed multiple types of volumetric clouds in the scene at the same time.

[0134] Optional, such as Figure 8 As shown in the figure, when you only want to display one type of volumetric cloud in the scene, you only need to connect the corresponding type of volumetric cloud directly to Conservative Density and Extinction in UE4. Fig. 9As shown, on the one hand, the computing device subtracts the scene terrain height map from the cloud bottom height of the volume cloud to be adjusted to obtain a first difference, then divides the first difference by the cloud layer height of the volume cloud to be adjusted to obtain a first result, then subtracts the first result from the normalized height of the volume cloud to be adjusted to obtain a second difference, subtracts the second difference from the data in the Height Bias node to obtain a third difference, then divides the third difference from the data in the Height Bias node to obtain a second result, and connects the second result to the altitude channel Nor Altitude in the Custom node; on the other hand, the computing device subtracts the proxy terrain height map from the scene terrain height map to obtain a fourth difference, then connects it to the Clamp node (forced range node), and connects the output of the Clamp node to the cloud type channel CloudType in the Custom node. Afterwards, the Custom node is multiplied by 3D noise 3D Noise to obtain a node of the ground cloud area.

[0135] It should be noted that by mixing various types of volumetric clouds, it is easy to achieve the effect of misty clouds and staggered cloud layers in the scene, thereby enriching the picture and increasing the sense of layering.

[0136] In an optional embodiment, before obtaining the volume cloud to be adjusted, the computing device may obtain the target thickness, target height, and target width of the volume cloud to be adjusted, and generate the volume cloud to be adjusted based on the target thickness, and / or target height, and / or target width.

[0137] Optionally, in the process of the computing device obtaining the target width of the volumetric cloud to be adjusted, the computing device can obtain a third texture map and initial width information of the volumetric cloud to be adjusted, and project the third texture map in a first direction to obtain a projection result, and then adjust the initial width information of the volumetric cloud to be adjusted based on the projection result to obtain the target width of the volumetric cloud to be adjusted.

[0138] Specifically, we first explain the volume cloud to be adjusted. The world position is three pieces of information: X, Y, and Z. Its unit is cm, and the unit of the cloud is km. The volume cloud to be adjusted is infinitely tiled in the X and Y axis directions. It is like a box volume with infinite length and width but controllable height. In UE4, Fig.10 , 11As shown in the figure, there are two properties on the volume cloud node to be adjusted to control the height, namely the Layer Bottom Altitude node property and the Layer Height node property. The Layer Bottom Altitude controls how high the Box is from the ground (i.e. the bottom height of the volume cloud to be adjusted), and the Layer Height controls the height of the Box itself (i.e. the cloud layer height of the volume cloud to be adjusted). For example: Fig.10 In the Layer node, the computing device sets the cloud bottom height of the volume cloud to be adjusted to 5cm through Layer Bottom Altitude, sets the cloud layer height of the volume cloud to be adjusted to 10cm through Layer Height, sets the maximum start distance of the volume cloud to be adjusted to 350cm through Tracing Start Max Distance, and sets the maximum distance of the volume cloud to be adjusted to 50cm through Tracing Max Distance. It should be noted that, in the case of no texture controlling the volume cloud to be adjusted, the volume cloud to be adjusted will fill the entire Box.

[0139] Furthermore, in the present embodiment, the computing device may obtain the initial width information of the volume cloud to be adjusted based on the manually input parameters, and control the width and length of the volume cloud to be adjusted through a black and white image (i.e., the third texture map). In UE4, the computing device projects the volume cloud to be adjusted on the world position X and Y axis planes to obtain the projection result, and then changes the Tilling Method in UE4 to the Clamp node (forced range node) so that the volume cloud to be adjusted only exists in the interval of the texture coordinate UV0-1, that is, the world position 0-1cm. Afterwards, the computing device divides the aforementioned world position by 100000 to obtain a coordinate UV of 0-1km, that is, the target width and target length of the volume cloud to be adjusted. Specifically, the top view of the volume cloud to be adjusted with a target width and a target length of 1km is shown as follows. Fig.12 As shown, the perspective view is Fig.13 shown.

[0140] Optionally, the computing device may obtain the second texture map and initial height information of the volumetric cloud to be adjusted, and adjust the initial height information of the volumetric cloud to be adjusted based on brightness information in the second texture map to obtain a target height of the volumetric cloud to be adjusted.

[0141] The initial height information of the volume cloud to be adjusted includes at least the normalized height of the volume cloud to be adjusted. The computing device can obtain the cloud layer height and the cloud bottom height of the volume cloud to be adjusted, and determine the normalized height of the volume cloud to be adjusted, the world height of the volume cloud to be adjusted, and the self height of the volume cloud to be adjusted based on the Cloud Sample Attributes node in UE4. Fig.14 As shown in the figure, taking the cloud base height of the volume cloud to be adjusted as 2km and the cloud layer height of the volume cloud to be adjusted as 1km as an example, the world height of the volume cloud to be adjusted is equal to the linear value from 0 to the sum of its cloud base height and cloud layer height, that is, 3km; the self-height of the volume cloud to be adjusted is equal to the linear value from 0 to its cloud layer height, that is, 1km; the normalized height of the volume cloud to be adjusted is equal to the value of its own height divided by the cloud layer height, that is, the linear value of 0-1. It can be seen from this that no matter how the parameters of the volume cloud to be adjusted change, the normalized height of the volume cloud to be adjusted will be between 0 and 1. Therefore, the normalized height of the volume cloud to be adjusted can be used as the initial height information of the cloud to obtain the target height.

[0142] Specifically, in this embodiment, Fig.15 As shown, the computing device multiplies the normalized height of the volume cloud to be adjusted by the base cloud node to perform initial rendering on the volume cloud to be adjusted, wherein the base cloud node is as shown in FIG. Fig.16 As shown in the figure, the effect of multiplying the base cloud node by the normalized height of the volume cloud to be adjusted is as follows Fig.17 As shown, before multiplying the normalized height of the volume cloud to be adjusted by the base cloud node, a subtraction and a multiplication need to be added to the normalized height of the volume cloud to be adjusted.

[0143] Here, the subtraction operation on the normalized height of the volume cloud to be adjusted is described. Fig.18 As shown, subtracting a value from 0 to 1 from the normalized height of the volume cloud to be adjusted can make the volume cloud to be adjusted rise, and adding a value from 0 to 1 can make the volume cloud to be adjusted fall. In order to facilitate the control of the volume cloud to be adjusted from the bottom, it is preferred that the volume cloud to be adjusted rise from the bottom, that is, subtracting the normalized height of the volume cloud to be adjusted. When the normalized height of the volume cloud to be adjusted remains unchanged, the volume cloud to be adjusted is as follows: Fig.19 As shown in , when the normalized height is subtracted by 0.5, the volume cloud to be adjusted is Fig. 20 As shown in , it will rise to a height of "0.5*cloud height", but the half that exceeds the Box volume will be clipped; when the aforementioned normalized height is subtracted by 1, such as Fig.21 As shown in , the entire volume cloud to be adjusted will be out of its Box volume, and the volume cloud to be adjusted will be completely clipped and will not be generated; when the aforementioned normalized height is added with 0.5, the volume cloud to be adjusted is as follows Fig. 22As shown in the figure, the height will drop by "0.5*cloud height". Therefore, it is also necessary to multiply the normalized height of the volume cloud to be adjusted.

[0144] like Fig.23 As shown in , in order to control the height of the volume cloud to be adjusted without affecting its thickness, it is necessary to Fig.24 The normalized height of the volume cloud to be adjusted is multiplied by a value N to obtain a linear value from 0 to N. The interval from 0 to 1 is converted to 0 to (1 / N), which is equivalent to reducing the height by N times; for example, Fig.25 As shown, when N=2, the height of the volume cloud to be adjusted at 0-1 is half of the original height; for example, Fig.26 As shown in the figure, when N = 4, the height of the volume cloud to be adjusted at 0-1 is 1 / 4 of the original height. Since the normalized height of the volume cloud to be adjusted is obtained by dividing its own height by the cloud layer height, the output is a range of 0-1. Therefore, Fig.24 , Fig.25 as well as Fig.26 It can be seen that in the process of multiplying the normalized height by N (for example: 4), the real height of the volume cloud to be adjusted does not change, but the normalized height value becomes a range value of 0-4. At this time, the height of the adjusted volume cloud 0-1 is only 1 / 4 of the real height. Therefore, if the values ​​less than 0 and greater than 1 in the normalized height of the volume cloud to be adjusted are set to 0, then a scaled normalized height value of the volume cloud to be adjusted will be obtained, that is, a gradient of 0-1 scaled by the real height. Fig. 27 Taking the normalized height*2 of the volume cloud to be adjusted as an example, the value of the normalized height of the volume cloud to be adjusted is enlarged by 2 times and becomes 0-2. The thickness of the volume cloud to be adjusted is as follows Fig.28 As shown, it becomes 1 / 2 of the original. Similarly, if the normalized height of the volume cloud to be adjusted is * 4, the value of the normalized height of the volume cloud to be adjusted is expanded by 4 times and becomes 0-4. The thickness of the volume cloud to be adjusted is as follows: Fig.29 As shown, it becomes 1 / 4 of the original. In this embodiment, the computing device can be set through HLSL (High Level Shading Language) in UE4, and the code is as follows:

[0145]

[0146]

[0147] To verify the above results, the computing device can interrupt the custom node in UE4 and use the fmod node, such as Fig.30As shown, the 0-4 interval corresponding to the normalized height of the volume cloud to be adjusted is converted into 4 consecutive 0-1 interval values ​​to obtain 4 layers of volume clouds to be adjusted. The effect of the 4 layers of volume clouds to be adjusted is as follows Fig.31 To make the layers more distinct, you can add a Power node to enhance the contrast. The effect after adjustment is as follows: Fig.32 As shown. After that, the computing device removes the fmod node and the Power node in UE4, reconnects the custom node, and uses the Height Bias node to subtract any value between 0 and 1 from the normalized height of the volume cloud to be adjusted before the normalized height * 4. This can achieve the effect that the volume cloud to be adjusted is rising without being clipped. If a number greater than or equal to 1 is subtracted, the volume cloud to be adjusted will exceed the Box volume and will not be generated. Among them, subtract 0 before the normalized height * 4 of the volume cloud to be adjusted, that is, (normalized height of the volume cloud to be adjusted - 0) * 4 corresponds to the effect diagram as shown below Fig.33 As shown in Figure a; subtract 0.2 before the normalized height of the volume cloud to be adjusted*4, that is, (normalized height of the volume cloud to be adjusted-0.2)*4 corresponds to the effect diagram as shown in Fig.33 As shown in Figure b; subtract 0.5 before the normalized height of the volume cloud to be adjusted*4, that is, (normalized height of the volume cloud to be adjusted-0.5)*4 corresponds to the effect diagram as shown in Fig.33 As shown in Figure c; subtract 0.75 before the normalized height of the volume cloud to be adjusted*4, that is, (normalized height of the volume cloud to be adjusted-0.75)*4 corresponds to the effect diagram as shown in Fig.33 As shown in Figure d; subtract 1 before the normalized height of the volume cloud to be adjusted*4, that is, (normalized height of the volume cloud to be adjusted-1)*4 corresponds to the effect diagram as shown in Fig.33 As shown in Figure e.

[0148] Furthermore, the computing device replaces the Height Bias node in UE4 with a black-and-white image (i.e., the second texture map), and subtracts the black-and-white image from the normalized height (initial height information) of the volume cloud to be adjusted after subtraction and multiplication, thereby achieving the effect of adjusting the normalized height of the volume cloud to be adjusted based on the brightness information in the black-and-white image to obtain the target height of the volume cloud to be adjusted. Fig.34 When shown in Figure 2, the target height of the volume cloud to be adjusted is as follows: Fig.35 As shown, when the second texture map is Fig.36 When shown in Figure 2, the target height of the volume cloud to be adjusted is as follows: Fig.37 shown.

[0149] Optionally, the computing device may obtain the first texture map and initial thickness information of the volumetric cloud to be adjusted, and adjust the initial thickness information of the volumetric cloud to be adjusted based on brightness information in the first texture map to obtain a target thickness of the volumetric cloud to be adjusted.

[0150] Specifically, after the normalized height of the volume cloud to be adjusted is subtracted and multiplied, the volume cloud to be adjusted is limited to a certain range. For example, the range of the volume cloud to be adjusted corresponding to (normalized height of the volume cloud to be adjusted - 0.5)*4 is as follows: Fig.38 As shown, therefore, it is necessary to adjust the thickness of the volumetric cloud to be adjusted within the restricted range. In UE4, the computing device can set the normalized height of the volumetric cloud to be adjusted to 1 when it is less than the value in the CloudType channel, and set the value equal to or greater than the value in the CloudType channel, less than 0.01 or greater than 0.99 to 0, which is equivalent to a black and white mask with a value of 1 or 0. The output value is the normalized height of the volumetric cloud to be adjusted based on the adjusted height and position, and then makes a secondary height adjustment through the value in the CloudType channel, which is equivalent to limiting the volumetric cloud to be adjusted to a height range and then adjusting it, that is, realizing the determination and acquisition of the initial thickness information of the volumetric cloud to be adjusted. Among them, the initial thickness of the volumetric cloud to be adjusted corresponding to the value of 1 in the CloudType channel is as follows Fig.39 As shown; when the value in the CloudType channel is 0.5, the initial thickness of the volume cloud to be adjusted is as follows Fig.40 As shown; when the value in the CloudType channel is 0.2, the initial thickness of the volume cloud to be adjusted is as follows Fig.41 The computing device can achieve the above effect based on the HLSL code provided in the default material ball, the code is as follows:

[0151]

[0152] Furthermore, the computing device connects a black-and-white image (i.e., the first texture map) to the CloudType channel in UE4 to determine where the volume to be adjusted has thick clouds and where the volume to be adjusted has thin clouds according to the brightness of the black-and-white image. Specifically, the volume to be adjusted corresponding to the bright part of the black-and-white image has thick clouds, the volume to be adjusted corresponding to the dark part of the black-and-white image has thin clouds, and there is no cloud where the brightness is 0. Fig.42 As shown, when the brightness is 100, the target thickness of the volume cloud to be adjusted is as follows Fig.43 As shown; when the first texture map is Fig.44 As shown in , when the brightness is 0 (corresponding to black) and 100 (corresponding to white), the target thickness of the volume cloud to be adjusted is Fig.45 As shown; when the first texture map is Fig.46As shown, when the brightness is circularly gradient, the target thickness of the volume cloud to be adjusted is Fig.47 As shown; when the first texture map is Fig.48 As shown, when the brightness is a step gradient, the target thickness of the volume cloud to be adjusted is Fig.49 shown.

[0153] Therefore, after the computing device obtains the target thickness, target height, and target width of the volume cloud to be adjusted, the computing device can generate the volume cloud to be adjusted based on any one of them or a combination of two or all of them. Optionally, if the computing device connects the Height Bias node in UE4 to a checkerboard map, and uses the BiasIntensity node in UE4 to control its intensity, and connects the CloudType channel in UE4 to a step gradient map, the volume cloud to be adjusted can be generated based on the target height of the volume cloud to be adjusted (corresponding to the map connected to the Height Bias node) and the target thickness (corresponding to the map connected to the CloudType channel). The volume cloud to be adjusted generated when the value in the Bias Intensity node is 0 is as follows Fig.50 As shown in the figure, when the value in the Bias Intensity node is 0.1, the volume cloud to be adjusted is generated as follows Fig.51 As shown in the figure, when the value in the Bias Intensity node is 0.4, the volume cloud to be adjusted is generated as follows Fig.52 As shown in the figure, when the value in the Bias Intensity node is 1, the volume cloud to be adjusted is generated as follows Fig.53 shown.

[0154] It should be noted that by obtaining the target thickness, target height and target width of the volumetric cloud to be adjusted based on the texture map and the initial information of the volumetric cloud to be adjusted, and generating the volumetric cloud to be adjusted, custom drawing of the volumetric cloud to be adjusted is achieved, thereby improving the diversity of the volumetric cloud to be adjusted, and making the picture content more ornamental.

[0155] In an optional embodiment, after determining the target thickness, target height, and target width of the volumetric cloud to be adjusted, and before the computing device obtains the volumetric cloud to be adjusted, the computing device can obtain a scene terrain height map, and obtain the scene terrain height of the scene where the volumetric cloud to be adjusted is located from the scene terrain height map, and then calculate the difference between the scene terrain height and the target height of the volumetric cloud to be adjusted to obtain the height difference, and finally calculate the ratio of the height difference to the target thickness, and adjust the height of the volumetric cloud to be adjusted according to the ratio.

[0156] Optionally, the computing device may replace the texture in the aforementioned Height Bias node used to control the height of the volume cloud to be adjusted with the scene terrain height map, so that the bottom of the volume cloud to be adjusted will match the terrain, wherein the height value is converted into a 0-1 interval value of the normalized height of the volume cloud to be adjusted. Fig.54 As shown, the height of the volume cloud to be adjusted is 1 km. The computing device can obtain the scene terrain height from the scene terrain height map, and then directly subtract the cloud bottom height of the volume cloud to be adjusted (i.e., the target height) from the scene terrain height to obtain a height higher than "the terrain based on the cloud bottom height of the volume cloud to be adjusted" (i.e., the height difference), and then divide it by the cloud layer height of the volume cloud to be adjusted (i.e., the target thickness), thereby obtaining a proportional normalized height displacement value of the volume cloud to be adjusted, and then adjusting the height of the volume cloud to be adjusted according to the displacement value.

[0157] It should be noted that by adjusting the height of the volumetric cloud to be adjusted based on the scene terrain height, the target height of the volumetric cloud to be adjusted, and the target thickness, the bottom of the volumetric cloud to be adjusted is accurately matched with the scene terrain, thereby making the clouds in the picture more realistic and vivid.

[0158] In an optional embodiment, in the process of the computing device obtaining the scene terrain height map, the computing device obtains the scene terrain corresponding to the scene terrain height map, then creates a proxy terrain based on the scene terrain, and finally captures the terrain information of the proxy terrain, converts the terrain information into a height map, thereby obtaining the scene terrain height map.

[0159] Optionally, the computing device can create a scene terrain in UE4, and then create a new proxy terrain In_HeightProxy based on the scene terrain, and adjust the size of the proxy terrain so that the proxy terrain is slightly larger than the entire scene range, wherein the proxy terrain is set below the scene terrain to achieve the acquisition of the proxy terrain. After that, the computing device creates a two-dimensional scene map Scene Capture 2D in UE4, and creates a new render target texture map Render TargetTexture, and then adjusts the camera position and rotation so that it can capture the terrain information of the entire proxy terrain. During the capture process, the computing device reduces the camera's perspective by lowering the value of the field of view Field of View. At this time, the camera view will be very small, so it is necessary to pull the scene capture camera to a very far position, and adjust the camera position again so that the camera can capture the entire proxy terrain. At the same time, the computing device sets UE4 to capture only the proxy terrain, turns off capture per frame and capture when moving, and turns off the Show Flag capture type, leaving only Landscape to ensure the performance of UE4 when running.

[0160] Furthermore, in order to capture the height of the proxy terrain, it is necessary to create a material with height information for the terrain, so that the B channel of the world position outputs the height value of the proxy terrain. Specifically, the computing device creates a new material, changes the blending mode to Masked, changes the shading mode to Unlit, sets the world position Z greater than 0 to red, and less than 0 to blue, connects it to self-illumination, and then gives this material to the proxy terrain to facilitate the scene capture camera to capture the height of the proxy terrain as a height map for the volume cloud material to be adjusted. Afterwards, the operator can use the computing device to create an Editor Ultility Widget in UE4, and set it to capture the proxy terrain only when drawing the proxy terrain, such as Fig.55 As shown, the editor is provided with a capture control Live, a start control Start, and an end control Stop. When the operator clicks the start control, the editor hides the components that affect its own performance and sets AA (Anti Aliasing) to 0. When the operator clicks the end control, the editor captures the terrain and restores the settings before the start. When the operator clicks the capture button in the capture control, the editor captures the terrain every 0.1s and stops capturing when the operator clicks the capture button in the capture control again. During the capture process, the capture button in the capture control changes color according to the number of clicks, and the interface of the capture control is provided with a text prompt window.

[0161] In order to facilitate viewing and drawing proxy terrain, the computing device uses a wireframe map connected to the self-luminous channel and the transparent channel in UE4. The wireframe map is as follows Fig.56 As shown in the figure, adjust the wireframe texture color and repetition, make the wireframe texture controlled by height, and use the camera distance to switch between the wireframe material and the solid material. Fig.57As shown, the computing device connects the wireframe material to the A channel of the first material Lerp node, connects the solid material to the B channel of the first material Lerp node, connects the wireframe channel to the A channel of the second material Lerp node, connects the "1" node to the B channel of the second material Lerp node, connects the first material Lerp node to the Emissive Color channel in the M_LandscapeHeightGrid_01 node, and connects the second material Lerp node to the Opacity Mask channel in the M_LandscapeHeightGrid node. At the same time, the computing device also creates a Camera Position node in the terrain material in UE4. Since the scene capture camera captures the terrain from top to bottom, the material needs to be switched on the Z axis, so the camera world position B channel is taken as the mask Mask of the two sets of material Lerp nodes, that is, the mask is generated according to the camera Z axis position. Since the data in the Camera Position node is in cm, the overall value will be large and inconvenient to adjust, so you can divide it by 100000 to calculate it in km units, and then use the saturate node to get a value where Z is less than 0 and greater than 1, and the length between 0 and 1 is 1 km, such as Fig.58 As shown. Fig.57 As shown in the figure, connect the camera Z axis position Mask to the Alpha channel of the first material Lerp node and the Alpha channel of the second material Lerp node respectively, and then you can switch the material according to the camera height. Fig.59 As shown in the figure, the proxy terrain wireframe will only be displayed when the camera's Z axis position is below 0, and when the camera is far away, such as Fig.60 , Fig.61 As shown, the proxy terrain entity will be displayed. Since it needs to be drawn above the terrain, it is necessary to move this 0 upwards and subtract a distance value DiStance (km) to adjust the material switching distance range. Adjust as follows Fig.62 shown.

[0162] Furthermore, the computing device directly gives the Render TargetTexture map (i.e., height map) after capturing the terrain information of the proxy terrain to the volume cloud material to be adjusted, so that when drawing the terrain, the cloud material to be adjusted can obtain the height map of the proxy terrain in real time to generate the volume cloud to be adjusted. Similarly, the scene terrain height map can also be obtained with the same material, and the scene terrain only needs to be captured once and directly converted into a static map for use by the material, thereby achieving the acquisition of the scene terrain height map. Among them, the effect of the volume cloud to be adjusted generated by the computing device based on the proxy terrain height map and the scene terrain height map is as follows: Fig.63 , Fig.64 , Fig.65 shown.

[0163] It should be noted that by capturing the terrain information of the proxy terrain to obtain the scene terrain height map, the accurate acquisition of the scene terrain height map is achieved, so that the height of the volumetric cloud to be adjusted according to the scene terrain height map is more consistent with the scene terrain, thereby making the volumetric cloud to be adjusted have a more realistic display effect.

[0164] In an optional embodiment, the computing device can obtain the volume map corresponding to the preset model, and offset the volume map in the horizontal direction to obtain the offset volume map, and then adjust the offset volume map based on the three-dimensional mask space of the preset model to obtain the adjusted volume map, and then render the preset model based on the adjusted volume map to obtain the volume cloud to be adjusted.

[0165] Optionally, the volume map is a three-dimensional map corresponding to a preset model. Fig.66 Taking the cat model shown in as an example, the computing device can convert the cat model into Fig.67 , output the volume texture Volume Texture, and then connect the volume texture to the cloud material node to get a Fig.68The infinitely repeated cat-shaped cloud shown in . Afterwards, the computing device creates an Actor blueprint node in UE4 and names it BP_CustomCloud_01. Preferably, in order to facilitate the acquisition of the node position, the computing device can add a sphere based on Add Component in the relevant control, and obtain the world position World Localtion, world scale, front vector Front Vector, light vector Right Vector and up vector Up Vector of the sphere and transmit them to the MPC node. Among them, it should be noted that the X-axis of the world scale Wolrd Scale is the Y-axis of the UV space, and the Y-axis of the world scale Wolrd Scale is the X-axis of the UV space, so the computing device needs to convert the X and Y axes. Afterwards, the computing device connects the position information in the MPC node to the three-dimensional mask space BoxMask-3D in UE4 in the cloud material of UE4, and directly connects this three-dimensional mask space BoxMask-3D to the cloud node. Among them, in order to facilitate the adjustment of the size of the volume cloud, the computing device can multiply the world scale by 100000, in kilometers. The computing device drags a volume cloud node into the scene, and gives this material to the volume cloud. At the same time, it drags the blueprint into the scene, and returns the displacement and rotation to zero, with a size of 1. Since volume clouds are only generated in the volume BOX, it is necessary to cover the bottom of the cloud to near the origin to ensure that the volume cloud can be displayed in the scene. Specifically, since the Layer Bottom Altitude setting panel has a forced range clamp, the computing device can use the blueprint node to adjust the value corresponding to the Layer Bottom Altitude on the volume cloud node to -1, and then obtain a square cloud. At this time, move, rotate and scale the BP_CustomCloud_01 blueprint, and the square cloud will change along with it. Afterwards, the computing device can multiply the three-dimensional mask space BoxMask-3D with the cat's volume texture Volume Texture to cut out a separate cat based on the aforementioned square cloud. The cut-out cloud is as follows Fig.69 shown.

[0166] It should be noted that the volume texture is displayed in UV (texture space), where the texture space of the volume texture uses the world position, and the texture space repeats between integers. Fig.69 In the example, the cat is not fully displayed and is scattered in the four corners of the box. The axis of the cat is inconsistent with the axis of the blueprint node. For example, 0-1 is a UV range, which is a complete volume map. If the UV range is 0-4, it will be repeated 4 times. The origin is an integer position, so it is the intersection of the UV area. The volume map is displayed as follows: Fig.70shown.

[0167] In order to make the volume map axis at the origin, the UV space needs to be offset. For example, offset the UV space in each direction by 0.5, and take the world position XY axis as the UV in the UV space. It should be noted that offsetting the UV in the UV space in each direction by 0.5 makes the center of the map in the lower left corner at the origin, and the result is as follows Fig.71 The volume map shown in the figure. No matter how much the world position XY is scaled, the UV can reach the origin as long as the axis is offset by 0.5. Fig.72 , 73 For example, Fig.72 This is the effect picture before offset. Fig.73 This is the effect after the offset. Similarly, the XY, XZ, and YZ UVs of the volume texture VolumeTexture are offset by 0.5 each, and the axis can reach the origin. Afterwards, in order to match the texture space size of the volume texture VolumeTexture with the three-dimensional mask space BoxMask-3D, let the axis of the volume texture VolumeTexture be located at the world origin and consistent with the position of the blueprint node, the UV needs to be offset by 0.5 on each of the three axes to obtain the offset volume texture VolumeTexture, such as Fig.74 As shown, the offset volume map VolumeTexture is a complete cat.

[0168] Furthermore, since the complete cat obtained above cannot be placed, and scaling and rotating will not have any effect, and the three-dimensional mask space BoxMask-3D can follow the blueprint, the present application connects the texture coordinates of the three-dimensional mask space BoxMask-3D to the volume map VolumeTexture and makes the following adjustments:

[0169] Step 1, calculate the product of the B channel of the UV space of Volume Texture and -1. It should be noted that Houdini's spatial coordinates are inconsistent with the UV space, and the output texture is opposite to the actual texture in a certain axis. Therefore, multiplying the B channel of the UV of Volume Texture with -1 can prevent the cat from being inverted on the Z axis;

[0170] Step 2, calculate the ratio of the UV space of Volume Texture to 100000. It should be noted that since the three-dimensional mask space BoxMask-3D multiplies the world scale by 100000, which is in kilometers, the UV space needs to be divided by 100000 to make the UV length of the 0-1 interval become one kilometer, that is, to match the three-dimensional mask space BoxMask-3D;

[0171] Step 3: Calculate the ratio of Volume Texture's UV to the world scale.

[0172] Thus, an adjusted volume map is obtained, and the computing device can render the preset model based on the adjusted volume map to obtain the volume cloud to be adjusted.

[0173] It should be noted that by adjusting the volume map based on the three-dimensional mask space and rendering the preset model with the adjusted volume map, the effect of placing a single cloud can be achieved, thereby improving the diversity of volume clouds in the picture.

[0174] In an optional embodiment, after rendering the preset model based on the adjusted volume map to obtain the volume cloud to be adjusted, the computing device can adjust the texture space and three-dimensional mask space of the offset volume map to determine the placement position of the volume cloud to be adjusted, and thus place the volume cloud to be adjusted based on the placement position.

[0175] Optionally, when the computing device obtains the individual cat masked by the three-dimensional mask space BoxMask-3D, that is, the volume cloud to be adjusted, the computing device can adjust the position, size, and rotation of the blueprint and synchronously control the UV space of the volume texture Volume Texture and the three-dimensional mask space BoxMask-3D to determine the placement position of the volume cloud to be adjusted. The placement effect diagram is shown in the figure below. Fig.75 , Fig.76 shown.

[0176] It should be noted that, by adjusting the texture space and the three-dimensional mask space of the offset volume map, the placement of the volume cloud to be adjusted is changed, thereby improving the controllability of the volume cloud to be adjusted.

[0177] In an optional embodiment, after rendering the preset model based on the adjusted volume map to obtain the volume cloud to be adjusted, the computing device can obtain the first volume map corresponding to the volume cloud to be adjusted, and time-shift the first volume map to obtain the shifted first volume map, and then adjust the shifted first volume map to obtain the second volume map, and calculate the product of the texture space of the second volume map and the texture space of the shifted volume map to obtain the distorted texture space, and process the volume cloud to be adjusted based on the distorted texture space to obtain the target volume cloud, wherein the target volume cloud is a volume cloud that changes dynamically over time.

[0178] Optionally, in order to allow the cat-shaped volume cloud to be adjusted to have a flowing animation, the UV space of the cat's volume texture Volume Texture needs to be distorted. Specifically, the computing device obtains another repeatable Volume Texture (i.e., the first volume texture), adds a size-controlled time offset to its UV (i.e., the texture space of the first volume texture) to obtain the offset first volume texture, and then adjusts the contrast and intensity of the offset first volume texture to obtain the second volume texture. After that, the computing device compares the second volume texture with the offset volume texture (i.e., Fig.74 The computing device processes the volume cloud to be adjusted based on the distorted texture space to obtain a target volume cloud such as Fig.77 shown.

[0179] It should be noted that, by processing the volumetric cloud to be adjusted based on the distorted texture space, the volumetric cloud to be adjusted itself has a flow animation, thereby making the volumetric cloud to be adjusted more vivid.

[0180] Furthermore, when multiple arrangable volume clouds are needed, you only need to create multiple blueprints and MPC values, and connect each group through the add node in the material. It should be emphasized that the arrangable volume clouds can also be mixed with the aforementioned multiple types of volume clouds based on the Add node, such as Figure 7 As shown, the volume cloud A to be adjusted (i.e. Figure 7 The cloud A that can be placed in the image) and the cloud B that can be placed and adjusted (i.e. Figure 7 The arrangable clouds B) in the game scene are connected to the Add node respectively, thereby increasing the diversity of the volumetric clouds in the picture. Fig.78 , 79 , 80, 81 and 82.

[0181] It should be noted that, on the one hand, the present disclosure utilizes the world position of the cloud and the Cloud SampleAttributes node in UE4, combined with the scene terrain height Figure 1It controls the generation position and height of the volume cloud to be adjusted, and obtains the terrain height map in real time through the two-dimensional scene map Scene Capture 2D, thereby realizing the function of drawing the volume cloud to be adjusted. On the other hand, by associating the position, size and rotation information of the blueprint with the 3D UV space in the material, the texture map Volume Texture and the three-dimensional mask space BoxMask-3D are used to realize the placement function of the volume cloud to be adjusted; on the other hand, the present disclosure combines the use of Mask map and CurveAtlas as masks to realize the control of the shape, height and dynamics of clouds in different partitioned areas of the volume cloud to be adjusted, and realizes the mixing of these volume clouds to be adjusted.

[0182] It can be seen that the solution provided in the present application achieves the purpose of partitioning the volume cloud to be adjusted to obtain the adjusted volume cloud, thereby achieving the effect of improving the controllability of the volume cloud, and further solving the technical problem that the prior art cannot partition the shape of the volume cloud.

[0183] According to an embodiment of the present invention, a volume cloud processing embodiment is also provided, wherein: Fig.83 is a schematic diagram of a volume cloud processing device according to an embodiment of the present invention. Fig.83 As shown, the device comprises:

[0184] An acquisition module 202 is used to acquire a volume cloud to be adjusted;

[0185] A determination module 204 is used to determine a first partition range of the volumetric cloud to be adjusted in a first direction according to the width information of the volumetric cloud to be adjusted, and to determine a second partition range of the volumetric cloud to be adjusted in a second direction according to the height information of the volumetric cloud to be adjusted, wherein the first direction is different from the second direction;

[0186] The adjustment module 206 is configured to perform partition adjustment on the shape of the volume cloud to be adjusted based on the first partition range and the second partition range to obtain an adjusted volume cloud.

[0187] It should be noted that the acquisition module 202, determination module 204 and adjustment module 206 correspond to steps S102 to S106 in the above embodiment, and the examples and application scenarios implemented by the three modules and the corresponding steps are the same, but are not limited to the contents disclosed in the above embodiment.

[0188] Optionally, the determination module includes: a first acquisition module, a projection module, and a first determination module. The first acquisition module is used to acquire the first channel range of the first color channel corresponding to the first mask map corresponding to the volume cloud to be adjusted and the width information of the volume cloud to be adjusted; the projection module is used to vertically project the volume cloud to be adjusted onto the first mask map to obtain a projection result; and the first determination module is used to determine the first partition range of the volume cloud to be adjusted in the first direction according to the first channel range and the projection result.

[0189] Optionally, the determination module includes: a second acquisition module, a second determination module, and a third determination module. The second acquisition module is used to acquire the height information of the volume cloud to be adjusted; the second determination module is used to determine the second channel range of the volume cloud to be adjusted in the second color channel according to the height information; and the third determination module is used to determine the second partition range of the volume cloud to be adjusted in the second direction according to the second channel range.

[0190] Optionally, the adjustment module includes: a fourth determination module, a fifth determination module and a first adjustment module. The fourth determination module is used to determine at least one adjustment area of ​​the volume cloud to be adjusted based on the first partition range and the second partition range; the fifth determination module is used to determine a target adjustment area from the at least one adjustment area; and the first adjustment module is used to perform morphological adjustment on the target adjustment area of ​​the volume cloud to be adjusted to obtain an adjusted volume cloud.

[0191] Optionally, the volume cloud processing device further includes: a third acquisition module and a mixing module. The third acquisition module is used to perform partition adjustment on the shape of the volume cloud to be adjusted based on the first partition range and the second partition range, and after obtaining the adjusted volume cloud, obtain multiple types of volume clouds; the mixing module is used to perform mixing processing on the multiple types of volume clouds to obtain a mixed volume cloud.

[0192] Optionally, the volume cloud processing device further includes: a fourth acquisition module, a second adjustment module, a fifth acquisition module, a third adjustment module, a sixth acquisition module, a fourth adjustment module and a generation module. The fourth acquisition module is used to acquire the first texture map and the initial thickness information of the volume cloud to be adjusted before acquiring the volume cloud to be adjusted; the second adjustment module is used to adjust the initial thickness information of the volume cloud to be adjusted based on the brightness information in the first texture map to obtain the target thickness of the volume cloud to be adjusted; the fifth acquisition module is used to acquire the second texture map and the initial height information of the volume cloud to be adjusted; the third adjustment module is used to adjust the initial height information of the volume cloud to be adjusted based on the brightness information in the second texture map to obtain the target height of the volume cloud to be adjusted; the sixth acquisition module is used to acquire the third texture map and the initial width information of the volume cloud to be adjusted, and project the third texture map in the first direction to obtain the projection result; the fourth adjustment module is used to adjust the initial width information of the volume cloud to be adjusted based on the projection result to obtain the target width of the volume cloud to be adjusted; the generation module is used to generate the volume cloud to be adjusted based on the target thickness, and / or, the target height, and / or, the target width.

[0193] Optionally, the volume cloud processing device further includes: a seventh acquisition module, an eighth acquisition module, a first calculation module and a second calculation module. The seventh acquisition module is used to acquire a scene terrain height map before acquiring the volume cloud to be adjusted; the eighth acquisition module is used to acquire the scene terrain height of the scene where the volume cloud to be adjusted is located from the scene terrain height map; the first calculation module is used to calculate the difference between the scene terrain height and the target height of the volume cloud to be adjusted to obtain the height difference; the second calculation module is used to calculate the ratio of the height difference to the target thickness, and adjust the height of the volume cloud to be adjusted according to the ratio.

[0194] Optionally, the seventh acquisition module includes: a ninth acquisition module, a creation module, and a conversion module. The ninth acquisition module is used to acquire the scene terrain corresponding to the scene terrain height map; the creation module is used to create the proxy terrain based on the scene terrain; the conversion module is used to capture the terrain information of the proxy terrain, convert the terrain information into a height map, and obtain the scene terrain height map.

[0195] Optionally, the acquisition module includes: a tenth acquisition module, a fifth adjustment module, a sixth adjustment module and a rendering module. The tenth acquisition module is used to acquire the volume map corresponding to the preset model; the fifth adjustment module is used to offset the volume map in the horizontal direction to obtain the offset volume map; the sixth adjustment module is used to adjust the offset volume map based on the three-dimensional mask space of the preset model to obtain the adjusted volume map; the rendering module is used to render the preset model based on the adjusted volume map to obtain the volume cloud to be adjusted.

[0196] Optionally, the volume cloud processing device further includes: a sixth determination module and a placement module. The sixth determination module is used to render the preset model based on the adjusted volume map to obtain the volume cloud to be adjusted, adjust the texture space and three-dimensional mask space of the offset volume map, and determine the placement position of the volume cloud to be adjusted; the placement module is used to place the volume cloud to be adjusted based on the placement position.

[0197] Optionally, the volume cloud processing device also includes: an eleventh acquisition module, a seventh adjustment module, an eighth adjustment module, a third calculation module and a processing module. Among them, the eleventh acquisition module is used to render the preset model based on the adjusted volume map to obtain the volume cloud to be adjusted, and then obtain the first volume map corresponding to the volume cloud to be adjusted; the seventh adjustment module is used to perform time offset on the first volume map to obtain the offset first volume map; the eighth adjustment module is used to adjust the offset first volume map to obtain the second volume map; the third calculation module is used to calculate the product of the texture space of the second volume map and the texture space of the offset volume map to obtain the distorted texture space; the processing module is used to process the volume cloud to be adjusted based on the distorted texture space to obtain the target volume cloud, wherein the target volume cloud is a volume cloud that changes dynamically over time.

[0198] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the volumetric cloud processing method in the above embodiment when running.

[0199] According to another aspect of an embodiment of the present invention, there is also provided an electronic device, which includes one or more processors; a storage device for storing one or more programs, so that when the one or more programs are executed by the one or more processors, the one or more processors are implemented to run the programs, wherein the programs are configured to execute the volumetric cloud processing method in the above-mentioned embodiment when running.

[0200] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0201] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0202] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0203] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0204] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0205] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.

[0206] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A method for processing volumetric clouds, characterized in that: include: Get the volume cloud to be adjusted; Determine a first partition range of the volumetric cloud to be adjusted in a first direction according to a first channel range of a first color channel corresponding to a first mask map corresponding to the volumetric cloud to be adjusted and width information of the volumetric cloud to be adjusted, and determine a second partition range of the volumetric cloud to be adjusted in a second direction according to height information of the volumetric cloud to be adjusted, wherein the first direction is different from the second direction; The shape of the volume cloud to be adjusted is partitioned and adjusted based on the first partition range and the second partition range to obtain an adjusted volume cloud.

2. The method according to claim 1, characterized in that Determining a first partition range of the volumetric cloud to be adjusted in a first direction according to a first channel range of a first color channel corresponding to a first mask map corresponding to the volumetric cloud to be adjusted and width information of the volumetric cloud to be adjusted includes: Acquire a first channel range of a first color channel corresponding to a first mask map corresponding to the volume cloud to be adjusted and width information of the volume cloud to be adjusted; Based on the width information, vertically projecting the volume cloud to be adjusted onto the first mask map to obtain a projection result; A first partition range of the volume cloud to be adjusted in the first direction is determined according to the first channel range and the projection result.

3. The method according to claim 1, characterized in that Determining a second partition range of the volumetric cloud to be adjusted in the second direction according to the height information of the volumetric cloud to be adjusted includes: Acquire height information of the volume cloud to be adjusted; Determine a second channel range of the to-be-adjusted volume cloud in a second color channel according to the height information; A second partition range of the to-be-adjusted volume cloud in the second direction is determined according to the second channel range.

4. The method according to claim 1, characterized in that: The step of performing partition adjustment on the shape of the volume cloud to be adjusted based on the first partition range and the second partition range to obtain an adjusted volume cloud includes: Determine at least one adjustment region of the to-be-adjusted volume cloud based on the first partition range and the second partition range; determining a target adjustment region from the at least one adjustment region; The target adjustment region of the to-be-adjusted volume cloud is morphologically adjusted to obtain the adjusted volume cloud.

5. The method according to claim 1, characterized in that: After performing partition adjustment on the shape of the to-be-adjusted volume cloud based on the first partition range and the second partition range to obtain the adjusted volume cloud, the method further includes: Get multiple types of volumetric clouds; The multiple types of volumetric clouds are mixed to obtain a mixed volumetric cloud.

6. The method according to claim 1, characterized in that Before obtaining the volume cloud to be adjusted, the method further includes: Acquire a first texture map and initial thickness information of the volume cloud to be adjusted; Adjusting initial thickness information of the volume cloud to be adjusted based on brightness information in the first texture map to obtain a target thickness of the volume cloud to be adjusted; Acquire a second texture map and initial height information of the volume cloud to be adjusted; Adjusting initial height information of the volumetric cloud to be adjusted based on brightness information in the second texture map to obtain a target height of the volumetric cloud to be adjusted; Acquire a third texture map and initial width information of the volume cloud to be adjusted, and project the third texture map in the first direction to obtain a projection result; Adjusting initial width information of the volume cloud to be adjusted based on the projection result to obtain a target width of the volume cloud to be adjusted; The volume cloud to be adjusted is generated based on the target thickness, and / or the target height, and / or the target width.

7. The method according to claim 6, characterized in that Before obtaining the volume cloud to be adjusted, the method further includes: Get the scene terrain height map; Acquire the scene terrain height of the scene where the volume cloud to be adjusted is located from the scene terrain height map; Calculating the difference between the scene terrain height and the target height of the volume cloud to be adjusted to obtain a height difference; The ratio of the height difference to the target thickness is calculated, and the height of the volume cloud to be adjusted is adjusted according to the ratio.

8. The method according to claim 7, characterized in that Get the scene terrain height map, including: Obtaining the scene terrain corresponding to the scene terrain height map; Creating a proxy terrain based on the scene terrain; The terrain information of the proxy terrain is captured, and the terrain information is converted into a height map to obtain the scene terrain height map.

9. The method according to claim 1, characterized in that: Get the volume cloud to be adjusted, including: Get the volume map corresponding to the preset model; offsetting the volume map in a horizontal direction to obtain an offset volume map; Adjusting the offset volume map based on the three-dimensional mask space of the preset model to obtain an adjusted volume map; The preset model is rendered based on the adjusted volume map to obtain the volume cloud to be adjusted.

10. The method according to claim 9, characterized in that After rendering the preset model based on the adjusted volume map to obtain the volume cloud to be adjusted, the method further includes: Adjusting the texture space of the offset volume map and the three-dimensional mask space to determine the placement position of the volume cloud to be adjusted; The volume cloud to be adjusted is placed based on the placement position.

11. The method according to claim 9, characterized in that After rendering the preset model based on the adjusted volume map to obtain the volume cloud to be adjusted, the method further includes: Obtaining a first volume map corresponding to the volume cloud to be adjusted; Performing time shift on the first volume map to obtain a shifted first volume map; Adjusting the offset first volume map to obtain a second volume map; Calculating the product of the texture space of the second volume map and the texture space of the offset volume map to obtain a distorted texture space; The volume cloud to be adjusted is processed based on the distorted texture space to obtain a target volume cloud, wherein the target volume cloud is a volume cloud that changes dynamically over time.

12. A volume cloud processing device, characterized in that: include: An acquisition module, used for acquiring the volume cloud to be adjusted; a determination module, configured to determine a first partition range of the volumetric cloud to be adjusted in a first direction according to a first channel range of a first color channel corresponding to a first mask map corresponding to the volumetric cloud to be adjusted and width information of the volumetric cloud to be adjusted, and to determine a second partition range of the volumetric cloud to be adjusted in a second direction according to height information of the volumetric cloud to be adjusted, wherein the first direction is different from the second direction; The adjustment module is used to perform partition adjustment on the shape of the volume cloud to be adjusted based on the first partition range and the second partition range to obtain an adjusted volume cloud.

13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program is configured to execute the volume cloud processing method described in any one of claims 1 to 11 when running.

14. An electronic device, characterized in that: The electronic device includes one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors are implemented to run the programs, wherein the program is configured to execute the volumetric cloud processing method described in any one of claims 1 to 11 when running.

Citation Information

Patent Citations

  • X-ray chest radiography lung segmentation method and device

    CN104424629A