CN113313798B - Cloud picture manufacturing method and device, storage medium and computer equipment - Google Patents

Cloud picture manufacturing method and device, storage medium and computer equipment Download PDF

Info

Publication number
CN113313798B
CN113313798B CN202110698028.7A CN202110698028A CN113313798B CN 113313798 B CN113313798 B CN 113313798B CN 202110698028 A CN202110698028 A CN 202110698028A CN 113313798 B CN113313798 B CN 113313798B
Authority
CN
China
Prior art keywords
cloud
model
volume
point
node
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110698028.7A
Other languages
Chinese (zh)
Other versions
CN113313798A (en
Inventor
王玉龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Perfect World Beijing Software Technology Development Co Ltd
Original Assignee
Perfect World Beijing Software Technology Development Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Perfect World Beijing Software Technology Development Co Ltd filed Critical Perfect World Beijing Software Technology Development Co Ltd
Priority to CN202110698028.7A priority Critical patent/CN113313798B/en
Publication of CN113313798A publication Critical patent/CN113313798A/en
Application granted granted Critical
Publication of CN113313798B publication Critical patent/CN113313798B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T13/00Animation
    • G06T13/203D [Three Dimensional] animation
    • G06T13/603D [Three Dimensional] animation of natural phenomena, e.g. rain, snow, water or plants
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/005General purpose rendering architectures

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Graphics (AREA)
  • Image Generation (AREA)

Abstract

The application discloses a cloud picture manufacturing method and device, a storage medium and computer equipment, wherein the method comprises the following steps: generating a point cloud according to the point cloud generation parameters, wherein the point cloud comprises a plurality of cloud nodes; adding a basic cloud model to each cloud node of the point cloud to obtain a volume cloud model; and setting a material ball corresponding to the volume cloud model, rendering the volume cloud model according to the illumination parameters, and determining a target rendering graph. According to the method and the device, the mode that the basic cloud model is added to each cloud node of the point cloud to obtain the volume cloud model is adopted, the manufacturing overhead of the volume cloud model is reduced, the multi-channel effect graph can be rendered, the multi-channel volume cloud effect with more variable colors and more abundant colors can be manufactured based on the multi-channel image according to the requirements, and the expressive force of the volume cloud effect is promoted.

Description

Cloud picture manufacturing method and device, storage medium and computer equipment
Technical Field
The present application relates to the field of image processing technologies, and in particular, to a cloud picture manufacturing method and apparatus, a storage medium, and a computer device.
Background
In an outdoor scene of a game, a cloud is an important component, and the simulation effect of the cloud in the game scene directly relates to the fidelity of a three-dimensional game, so that the experience degree of a user is influenced. In the prior art, one mode is to add a plurality of noise layers on a cloud model to change the density of a cloud and then render the cloud, the overhead of the mode is high, the other mode is to splice and modify a plurality of sample cloud pictures to simulate a cloud effect, the simulation effect is limited by the sample pictures, and the simulation effect is limited and not rich enough.
Disclosure of Invention
In view of this, the present application provides a cloud picture making method and apparatus, a storage medium, and a computer device, which are beneficial to reducing the making overhead of a volume cloud model and improving the cloud rendering effect.
According to an aspect of the present application, there is provided a method for manufacturing a cloud picture, including:
generating a point cloud according to the point cloud generation parameters, wherein the point cloud comprises a plurality of cloud nodes;
adding a basic cloud model to each cloud node of the point cloud to obtain a volume cloud model;
and setting a material ball corresponding to the volume cloud model, rendering the volume cloud model according to the illumination parameters, and determining a target rendering map.
Optionally, the point cloud generating parameters include a point cloud plane size, a point cloud plane radian, a cloud node number, and a first cloud node offset threshold, and the generating of the point cloud according to the point cloud generating parameters specifically includes: generating a sky grid according to the point cloud plane size and the point cloud plane radian, generating first cloud nodes matched with the number of the cloud nodes on the sky grid, and controlling the first cloud nodes to shift within the range of a first cloud node shift threshold value, wherein the cloud nodes comprise the first cloud nodes; and/or the presence of a gas in the gas,
the point cloud generating parameters comprise preset cloud node distribution positions and a second cloud node offset threshold, and the point cloud is generated according to the point cloud generating parameters, and the method specifically comprises the following steps: and generating a second cloud node according to the preset cloud node distribution position, and controlling the second cloud node to shift within the range of the second cloud node shift threshold value, wherein the cloud nodes comprise the second cloud node.
Optionally, the base cloud model comprises a plurality; adding a basic cloud model to each cloud node of the point cloud to obtain a volume cloud model, wherein the method specifically comprises the following steps:
and adding one basic cloud model to each cloud node of the point cloud to obtain the volume cloud model.
Optionally, the base cloud model comprises a plurality; after a basic cloud model is added to each cloud node of the point cloud to obtain a volume cloud model, the method further comprises:
and receiving modification data of any cloud node on the volume cloud model, and modifying the any cloud node according to the modification data.
Optionally, before adding a base cloud model to each cloud node of the point cloud to obtain a volume cloud model, the method further includes:
creating at least one sphere node to generate a sphere model, respectively obtaining a first adjusting point on each sphere model outline, and controlling the first adjusting point to move along the normal direction of the first adjusting point to obtain at least one first basic cloud model, wherein the basic cloud model comprises the first basic cloud model; and/or the presence of a gas in the gas,
generating at least one initial cloud model according to a preset initial shape, respectively obtaining a second adjusting point on the outline of each initial cloud model, and controlling the second adjusting point to move along the normal direction of the second adjusting point to obtain at least one second basic cloud model, wherein the basic cloud model comprises the second basic cloud model.
Optionally, the illumination parameters comprise a plurality of sets; the rendering the volume cloud model according to the illumination parameters and determining a target rendering map specifically include:
rendering the volume cloud model according to each group of the illumination parameters respectively, and acquiring a plurality of volume cloud rendering graphs corresponding to a preset observation visual angle based on rendering results;
and synthesizing the volume cloud rendering graph according to the target illumination parameters to obtain the target rendering graph.
Optionally, the synthesizing the volume cloud rendering graph according to the target illumination parameter to obtain a target rendering graph specifically includes:
acquiring a plurality of groups of color values corresponding to the volume cloud rendering;
adjusting the multiple groups of color values according to the target illumination parameters, and respectively determining pixel values corresponding to red, green and blue channels corresponding to the target rendering map based on the adjusted multiple groups of color values;
and determining the target rendering map according to the pixel values corresponding to the red, green and blue channels.
Optionally, after determining the target rendering map, the method further includes:
acquiring a preset scene size;
if the preset scene size is larger than the size of the target rendering map, determining a basic mapping according to the target rendering map;
and carrying out seamless mapping processing on the basic mapping to generate a scene rendering map matched with the preset scene size.
According to another aspect of the present application, there is provided a cloud picture manufacturing apparatus, including:
the point cloud generating module is used for generating a point cloud according to the point cloud generating parameters, wherein the point cloud comprises a plurality of cloud nodes;
the volume cloud generating module is used for adding a basic cloud model on each cloud node of the point cloud to obtain a volume cloud model;
and the rendering module is used for setting the material ball corresponding to the volume cloud model, rendering the volume cloud model according to the illumination parameters and determining a target rendering map.
Optionally, the point cloud generating parameters include a point cloud plane size, a point cloud plane radian, a cloud node number, and a first cloud node offset threshold, and the point cloud generating module is specifically configured to: generating a sky grid according to the point cloud plane size and the point cloud plane radian, generating first cloud nodes matched with the number of the cloud nodes on the sky grid, and controlling the first cloud nodes to shift within the range of a first cloud node shift threshold value, wherein the cloud nodes comprise the first cloud nodes; and/or the presence of a gas in the gas,
the point cloud generating parameters comprise preset cloud node distribution positions and a second cloud node offset threshold, and the point cloud generating module is specifically configured to: and generating a second cloud node according to the preset cloud node distribution position, and controlling the second cloud node to shift within the range of the second cloud node shift threshold value, wherein the cloud nodes comprise the second cloud node.
Optionally, the base cloud model comprises a plurality; the volume cloud generation module is specifically configured to: and adding one basic cloud model to each cloud node of the point cloud to obtain the volume cloud model.
Optionally, the apparatus further comprises:
and the modification module is used for receiving modification data of any cloud node on the volume cloud model and modifying the any cloud node according to the modification data.
Optionally, the apparatus further comprises:
the model generation module is used for creating at least one sphere node to generate a sphere model before adding a basic cloud model to each cloud node of the point cloud to obtain a volume cloud model, respectively obtaining a first adjusting point on the outline of each sphere model, and controlling the first adjusting point to move along the normal direction of the first adjusting point to obtain at least one first basic cloud model, wherein the basic cloud model comprises the first basic cloud model; and/or generating at least one initial cloud model according to a preset initial shape, respectively obtaining a second adjusting point on the outline of each initial cloud model, and controlling the second adjusting point to move along the normal direction of the second adjusting point to obtain at least one second basic cloud model, wherein the basic cloud model comprises the second basic cloud model.
Optionally, the illumination parameters comprise a plurality of sets; the rendering module is specifically configured to: rendering the volume cloud model according to each group of the illumination parameters respectively, and acquiring a plurality of volume cloud rendering graphs corresponding to a preset observation visual angle based on rendering results; and synthesizing the volume cloud rendering graph according to the target illumination parameters to obtain the target rendering graph.
Optionally, the rendering module is specifically configured to: acquiring a plurality of groups of color values corresponding to the volume cloud rendering; adjusting the multiple groups of color values according to the target illumination parameters, and respectively determining pixel values corresponding to red, green and blue channels corresponding to the target rendering map based on the adjusted multiple groups of color values; and determining the target rendering map according to the pixel values corresponding to the red, green and blue channels.
Optionally, the apparatus further comprises:
the mapping module is used for acquiring the size of a preset scene; if the preset scene size is larger than the size of the target rendering graph, determining a basic mapping graph according to the target rendering graph; and carrying out seamless mapping processing on the basic mapping to generate a scene rendering map matched with the preset scene size.
According to yet another aspect of the present application, there is provided a storage medium having a computer program stored thereon, the program, when executed by a processor, implementing the cloud image production method described above.
According to still another aspect of the present application, there is provided a computer device, including a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, wherein the processor executes the computer program to implement the cloud image making method.
By means of the technical scheme, according to the cloud picture manufacturing method and device, the storage medium and the computer device, firstly, a plurality of cloud nodes are generated based on point cloud generation parameters, secondly, a basic cloud model is added to each cloud node to obtain a volume cloud model, and finally, material and illumination parameters are set for the volume cloud model and the volume cloud model is rendered to determine a target rendering picture. According to the method and the device for generating the volume cloud model, the volume cloud model is obtained by generating the point cloud and adding the basic cloud model to each cloud node of the point cloud, the manufacturing cost of the volume cloud model is reduced, and a multi-channel effect graph can be rendered, so that a more changeable and richer volume cloud effect can be manufactured based on a multi-channel image according to requirements, and the expressive force of the volume cloud effect is promoted.
The foregoing description is only an overview of the technical solutions of the present application, and the present application can be implemented according to the content of the description in order to make the technical means of the present application more clearly understood, and the following detailed description of the present application is given in order to make the above and other objects, features, and advantages of the present application more clearly understandable.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a schematic flowchart illustrating a method for manufacturing a cloud image according to an embodiment of the present disclosure;
fig. 2 is a schematic flow chart illustrating another cloud image manufacturing method provided in the embodiment of the present application;
FIG. 3 is a schematic diagram illustrating a volume cloud effect provided by an embodiment of the present application;
FIG. 4 is a schematic diagram illustrating an illumination parameter setting provided by an embodiment of the present application;
fig. 5 illustrates a volume cloud rendering effect graph under different illumination parameters according to an embodiment of the present application;
FIG. 6 is a schematic diagram illustrating a comparison of volume cloud effects provided by embodiments of the present application;
fig. 7 is a schematic structural diagram illustrating a device for manufacturing a cloud image according to an embodiment of the present application.
Detailed Description
The present application will be described in detail below with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
In this embodiment, a method for manufacturing a cloud picture is provided, as shown in fig. 1, the method includes:
step 101, generating a point cloud according to a point cloud generation parameter, wherein the point cloud comprises a plurality of cloud nodes;
102, adding a basic cloud model to each cloud node of the point cloud to obtain a volume cloud model;
103, setting material balls corresponding to the volume cloud model, rendering the volume cloud model according to the illumination parameters, and determining a target rendering map.
In the embodiment of the application, firstly, a point cloud comprising a plurality of cloud nodes is generated, each cloud node in the point cloud represents a position for adding a basic cloud model, and a complete volume cloud model can be obtained after the basic cloud model is added to each cloud node in the point cloud, wherein the point cloud is generated according to point cloud generation parameters, the point cloud generation parameters are used for indicating the generation rules of the cloud nodes, the specific generation rules can be generated randomly, or generated according to specific parameters such as shape, density and position, or generated partially randomly, or generated partially according to specific parameters such as shape, density and position, and technicians can control the basic form of the volume cloud model by setting the point cloud generation parameters; secondly, after the point cloud is obtained, adding a basic cloud model on each cloud node of the point cloud to obtain a volume cloud model matched with the point cloud form, wherein the basic cloud model can be a smaller cloud model which is created in advance, the form of the basic cloud model can be various, technicians can flexibly create the basic cloud model without being limited to the form of a cloud, for example, the basic cloud model can be a sphere model, a deformation model of the sphere model and the like, the basic cloud model is added into the cloud nodes to obtain the volume cloud model, compared with the method of directly creating the volume cloud model or simulating the volume cloud model by a function and the like, the volume cloud model can be created in any form only by creating some simple basic cloud models in advance and generating the point cloud in any form according to certain parameter rules, the difficulty is small, and the volume cloud expressive force is rich; and finally, setting a material ball of the volume cloud model to limit the material effect of the volume cloud, setting illumination parameters to render the volume cloud model, and obtaining a target rendering graph according to any required visual angle.
By applying the technical scheme of the embodiment, firstly, a plurality of cloud nodes are generated based on point cloud generation parameters, secondly, a basic cloud model is added to each cloud node to obtain a volume cloud model, and finally, material and illumination parameters are set for the volume cloud model and the volume cloud model is rendered so as to determine a target rendering graph. According to the method and the device for generating the volume cloud model, the volume cloud model is obtained by generating the point cloud and adding the basic cloud model to each cloud node of the point cloud, the manufacturing cost of the volume cloud model is reduced, and a multi-channel effect graph can be rendered, so that a more changeable and richer volume cloud effect can be manufactured based on a multi-channel image according to requirements, and the expressive force of the volume cloud effect is promoted.
Further, as a refinement and an extension of the specific implementation of the above embodiment, in order to fully describe the specific implementation process of the embodiment, another cloud picture manufacturing method is provided, as shown in fig. 2, the method includes:
step 201, creating at least one sphere node to generate a sphere model, respectively obtaining a first adjusting point on each sphere model contour, and controlling the first adjusting point to move along a normal direction of the first adjusting point to obtain at least one first basic cloud model, wherein the basic cloud model comprises the first basic cloud model; and/or generating at least one initial cloud model according to a preset initial shape, respectively obtaining a second adjusting point on the outline of each initial cloud model, and controlling the second adjusting point to move along the normal direction of the second adjusting point to obtain at least one second basic cloud model, wherein the basic cloud model comprises the second basic cloud model.
In the embodiment of the application, the basic cloud model can be created in at least two ways. Firstly, a Sphere node can be added to generate a Sphere model, then one or more first adjusting points are selected randomly or according to a set rule on the outline of the Sphere model, the first adjusting points are controlled to move irregularly along the corresponding normal direction to add the randomness of the outline of the Sphere model, the first adjusting points can be controlled to move according to a certain rule to obtain a first basic cloud model, the steps are repeated for multiple times to obtain multiple first basic cloud models, the first adjusting points can be selected randomly, the moving distance can also be a random value, multiple first basic cloud models with different appearances can be obtained based on the Sphere model with the same initial appearance, and the richness of the model can be improved when the volume cloud model is generated subsequently. Secondly, an initial base cloud model, namely an initial cloud model, can be generated according to a preset initial shape, a second adjusting point is selected on the outline of the initial cloud model, the second adjusting point is controlled to be shifted to obtain a second base cloud model, wherein the preset initial shape can be in a certain required special shape, for example, as shown in fig. 3, when cloud with a ship shape needs to be manufactured, the base cloud model with the shape of the sail is manufactured in advance, the positions of cloud nodes of the part of the sail are set when point cloud is generated, the cloud nodes are generated at the positions, the base cloud model with the shape of the sail is added to the positions of the cloud nodes when a volume cloud model is manufactured, the number of the cloud nodes is reduced, the controllability of the shape of the volume cloud is improved, and the requirement for manufacturing the personalized volume cloud is met.
Step 202, generating a point cloud according to a point cloud generation parameter, wherein the point cloud comprises a plurality of cloud nodes;
in this embodiment of the application, optionally, the point cloud generating parameters include a point cloud plane size, a point cloud plane radian, a cloud node number, and a first cloud node offset threshold, and accordingly, step 202 may specifically include:
step 202-1, generating a sky grid according to the point cloud plane size and the point cloud plane radian, generating first cloud nodes matched with the cloud node number on the sky grid, and controlling the first cloud nodes to shift within the range of the first cloud node shift threshold, wherein the cloud nodes comprise the first cloud nodes.
In the above embodiment, the point cloud generating parameters may specifically include a point cloud plane size and a point cloud plane curvature, the point cloud plane size is used to constrain a plane size of a sky where a volume cloud is located, the point cloud plane curvature is used to constrain a curvature of the sky where the volume cloud is located, a sky grid model is generated based on the point cloud plane size when the point cloud is generated, and then the sky grid model is curved based on the point cloud plane curvature, further, the point cloud generating parameters may further include a cloud node number or a cloud node density, a corresponding number of first cloud nodes are randomly generated in the curved sky grid, or after the cloud node number is calculated based on the cloud node density and the point cloud plane size, a corresponding number of first cloud nodes are randomly generated in the curved sky grid, in addition, the point cloud generating parameters may further include a first cloud node offset threshold, the first cloud node offset threshold is used to constrain an offset range of the first cloud nodes, after the first cloud node is generated, the first cloud node can be controlled to randomly or regularly shift in a corresponding range, the randomness of cloud node distribution in the point cloud is increased, the original node position is changed, and the three-dimensional property of the volume cloud is enhanced.
In this embodiment of the application, optionally, the point cloud generating parameter includes a preset cloud node distribution position and a second cloud node offset threshold, and accordingly, step 202 may specifically include:
step 202-2, generating a second cloud node according to the preset cloud node distribution position, and controlling the second cloud node to shift within the range of the second cloud node shift threshold, wherein the cloud node comprises the second cloud node.
In the above embodiment, the point cloud generation parameters may include preset cloud node distribution positions, for example, a volume cloud of the ship shape needs to be rendered, the preset cloud node distribution positions may be determined according to key positions of the ship contour, a second cloud node may be generated at a corresponding position when the point cloud is generated, so that the second cloud node represents the contour of the ship shape, in addition, the point cloud generation parameters may further include a second cloud node offset threshold, and after the second cloud node is generated, the second cloud node may be controlled to randomly offset within a corresponding constraint range, which is helpful for weakening the edge feeling of the volume cloud model.
It should be noted that, the step 202-1 and the step 202-2 may be implemented individually or simultaneously, for example, part of the cloud nodes are generated randomly, and part of the cloud nodes are generated according to a preset distribution position, and an implementation mode may be specifically selected according to actual needs, which is not limited herein. The volume cloud model is created in the mode, the randomized volume cloud model, the volume cloud model with the controllable shape or the volume cloud model combining the randomization and the controllability can be created according to actual requirements, the reality sense is enhanced while the controllable shape of the volume cloud model is ensured, the volume cloud model can be rapidly manufactured, and the manufacturing time is saved.
Step 203, adding one basic cloud model to each cloud node of the point cloud to obtain the volume cloud model;
in the embodiment of the application, after point clouds are generated and basic cloud models are created, one basic cloud model can be randomly selected and added to each cloud node, the randomness of the volume cloud model is enhanced, the cloud morpheme effect of the cloud in a game scene is facilitated to be shown, of course, a specific basic cloud model can be selected and added to cloud nodes in special positions, the controllability of the volume cloud model is enhanced, and the special appearance requirements of some clouds, such as the basic cloud model with the sail appearance added to the cloud nodes in the sail positions, are met.
204, receiving modification data of any cloud node on the volume cloud model, and modifying the any cloud node according to the modification data;
in the embodiment, parameters such as the position, the size and the angle of the cloud node on the volume cloud model can be adjusted, so that the volume cloud model is closer to the actual required shape, and the reality of the volume cloud effect is enhanced.
Step 205, setting material balls corresponding to the volume cloud model;
step 206, rendering the volume cloud model according to each group of the illumination parameters, and acquiring a plurality of volume cloud rendering graphs corresponding to a preset observation visual angle based on rendering results; synthesizing the volume cloud rendering graph according to the target illumination parameters to obtain the target rendering graph;
in the above embodiment, the material of the cloud is determined by setting the material ball of the volume cloud model, and then, the volume cloud model is rendered based on the preset sets of illumination parameters, respectively, as shown in fig. 4, the volume cloud model can be rendered according to three groups of lighting directions shown in the figure, and a volume cloud rendering figure corresponding to each group of lighting parameters is acquired at the same preset observation visual angle relative to the volume cloud model, as shown in fig. 5, three volume cloud rendering images are obtained by rendering according to the three groups of lighting directions, and then each volume cloud rendering image can be adjusted and synthesized according to the target lighting parameters, or directly synthesizing the volume cloud rendering images to obtain a target rendering image, thereby simulating the volume cloud effect under different illumination parameters, being beneficial to expressing the cloud effect in different time periods in a game scene, and providing technical support for quickly making a 24-hour cloud special effect in the game scene.
Optionally, the "synthesizing the volume cloud rendering according to the target illumination parameter to obtain the target rendering" in step 206 may specifically include: acquiring a plurality of groups of color values corresponding to the volume cloud rendering; adjusting the multiple groups of color values according to the target illumination parameters, and respectively determining pixel values corresponding to red, green and blue channels corresponding to the target rendering map based on the adjusted multiple groups of color values; and determining the target rendering map according to the pixel values corresponding to the red, green and blue channels.
In the above embodiment, color values corresponding to the volume cloud rendering obtained by rendering under different illumination parameters are extracted to obtain multiple groups of color values, and the multichannel pixel values of the target rendering are determined based on the multiple groups of color values. By taking three groups of illumination parameters as an example, the color values of a group of corresponding volume cloud rendering maps of light can be used as R-channel pixel values of the target rendering map, the color values of a group of corresponding volume cloud rendering maps of light are used as G-channel pixel values of the target rendering map, the color values of the three groups of corresponding volume cloud rendering maps of light are inverted and used as B-channel pixel values of the target rendering map, and the shadow effect of the cloud and the edge light-transmitting effect of the B-channel simulation cloud are simulated through R, G channels. If the illumination parameters are two groups, the color value of one group of the corresponding volume cloud rendering graph can be taken as the channel pixel value of the first channel, the color value of the other group of the corresponding volume cloud rendering graph is taken as the channel pixel value of the second channel in the reverse direction, and the channel pixel value of the third channel is set as the preset value. If the illumination parameter is more than three groups, the multiple groups of color values corresponding to the volume cloud rendering map can be fused to obtain three groups of color values, two groups of color values are used as channel pixel values of two channels respectively, and the rest group of color values is used as a channel pixel value of a third channel. In addition, when determining the pixel value of each channel, the color value is not limited to be directly used as the pixel value, and may also be adaptively adjusted, for example, a set of color values is multiplied by a preset coefficient to be used as the pixel value of the channel. As shown in fig. 6, different volume cloud rendering effects can be obtained by adjusting each channel image and matching with the adjustment of the sky background color, so that the cloud special effect in the game scene can have more styles, and different requirements of game production can be met.
Step 207, acquiring a preset scene size; if the preset scene size is larger than the size of the target rendering map, determining a basic mapping according to the target rendering map; and carrying out seamless mapping processing on the basic mapping to generate a scene rendering map matched with the preset scene size.
In the embodiment, a larger-size scene rendering map can be obtained based on a smaller-size target rendering map in a seamless mapping manner, in a specific application scene, a preset scene size required by an actual scene is obtained, and when the preset scene size is larger than the size of the target rendering map, for example, the length of the target rendering map is 1m and the required scene length is 10m, then two target rendering maps can be horizontally tiled, a 1m basic mapping is cut out from the middle of the tiled mapping, a position with dense clouds can be selected from the cut-out position, and finally, the cut-out basic mapping is subjected to seamless mapping to obtain a 10 m-length scene rendering map, so that a larger-size scene rendering map can be obtained by using a smaller-size target rendering map, modeling and rendering costs are saved, and the mapping efficiency is improved.
Further, as a specific implementation of the method in fig. 1, an embodiment of the present application provides an apparatus for manufacturing a cloud picture, as shown in fig. 7, the apparatus includes:
the point cloud generating module is used for generating a point cloud according to the point cloud generating parameters, wherein the point cloud comprises a plurality of cloud nodes;
the volume cloud generating module is used for adding a basic cloud model on each cloud node of the point cloud to obtain a volume cloud model;
and the rendering module is used for setting the material ball corresponding to the volume cloud model, rendering the volume cloud model according to the illumination parameters and determining a target rendering map.
Optionally, the point cloud generating parameters include a point cloud plane size, a point cloud plane radian, a cloud node number, and a first cloud node offset threshold, and the point cloud generating module is specifically configured to: generating a sky grid according to the point cloud plane size and the point cloud plane radian, generating first cloud nodes matched with the number of the cloud nodes on the sky grid, and controlling the first cloud nodes to shift within the range of a first cloud node shift threshold value, wherein the cloud nodes comprise the first cloud nodes; and/or the presence of a gas in the gas,
the point cloud generating parameters comprise preset cloud node distribution positions and a second cloud node offset threshold, and the point cloud generating module is specifically configured to: and generating a second cloud node according to the preset cloud node distribution position, and controlling the second cloud node to shift within the range of the second cloud node shift threshold value, wherein the cloud nodes comprise the second cloud node.
Optionally, the base cloud model comprises a plurality; the volume cloud generation module is specifically configured to: and adding one basic cloud model to each cloud node of the point cloud to obtain the volume cloud model.
Optionally, the apparatus further comprises:
and the modification module is used for receiving modification data of any cloud node on the volume cloud model and modifying the any cloud node according to the modification data.
Optionally, the apparatus further comprises:
the model generation module is used for creating at least one sphere node to generate a sphere model before adding a basic cloud model to each cloud node of the point cloud to obtain a volume cloud model, respectively obtaining a first adjusting point on the outline of each sphere model, and controlling the first adjusting point to move along the normal direction of the first adjusting point to obtain at least one first basic cloud model, wherein the basic cloud model comprises the first basic cloud model; and/or generating at least one initial cloud model according to a preset initial shape, respectively obtaining a second adjusting point on the outline of each initial cloud model, and controlling the second adjusting point to move along the normal direction of the second adjusting point to obtain at least one second basic cloud model, wherein the basic cloud model comprises the second basic cloud model.
Optionally, the illumination parameters comprise a plurality of sets; the rendering module is specifically configured to: rendering the volume cloud model according to each group of the illumination parameters respectively, and acquiring a plurality of volume cloud rendering graphs corresponding to a preset observation visual angle based on rendering results; and synthesizing the volume cloud rendering graph according to the target illumination parameters to obtain the target rendering graph.
Optionally, the rendering module is specifically configured to: acquiring a plurality of groups of color values corresponding to the volume cloud rendering; adjusting the multiple groups of color values according to the target illumination parameters, and respectively determining pixel values corresponding to red, green and blue channels corresponding to the target rendering map based on the adjusted multiple groups of color values; and determining the target rendering map according to the pixel values corresponding to the red, green and blue channels.
Optionally, the apparatus further comprises:
the mapping module is used for acquiring the size of a preset scene; if the preset scene size is larger than the size of the target rendering map, determining a basic mapping according to the target rendering map; and carrying out seamless mapping processing on the basic mapping to generate a scene rendering map matched with the preset scene size.
It should be noted that other corresponding descriptions of the functional units involved in the cloud graph manufacturing apparatus provided in the embodiment of the present application may refer to corresponding descriptions in the methods in fig. 1 to fig. 2, and are not described herein again.
Based on the method shown in fig. 1 to fig. 2, correspondingly, an embodiment of the present application further provides a storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the method for making the cloud images shown in fig. 1 to fig. 2.
Based on such understanding, the technical solution of the present application may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.), and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the implementation scenarios of the present application.
Based on the above methods shown in fig. 1 to fig. 2 and the virtual device embodiment shown in fig. 7, in order to achieve the above object, an embodiment of the present application further provides a computer device, which may specifically be a personal computer, a server, a network device, and the like, where the computer device includes a storage medium and a processor; a storage medium for storing a computer program; and a processor for executing the computer program to implement the cloud picture manufacturing method shown in fig. 1 to 2.
Optionally, the computer device may also include a user interface, a network interface, a camera, Radio Frequency (RF) circuitry, sensors, audio circuitry, a WI-FI module, and so forth. The user interface may include a Display screen (Display), an input unit such as a keypad (Keyboard), etc., and the optional user interface may also include a USB interface, a card reader interface, etc. The network interface may optionally include a standard wired interface, a wireless interface (e.g., a bluetooth interface, WI-FI interface), etc.
It will be appreciated by those skilled in the art that the present embodiment provides a computer device architecture that is not limiting of the computer device, and that may include more or fewer components, or some components in combination, or a different arrangement of components.
The storage medium may further include an operating system and a network communication module. An operating system is a program that manages and maintains the hardware and software resources of a computer device, supporting the operation of information handling programs, as well as other software and/or programs. The network communication module is used for realizing communication among components in the storage medium and other hardware and software in the entity device.
Through the description of the above embodiments, those skilled in the art can clearly understand that the present application can be implemented by software and a necessary general hardware platform, and also can be implemented by hardware, first, a plurality of cloud nodes are generated based on a point cloud generation parameter, then, a basic cloud model is added to each cloud node to obtain a volume cloud model, and finally, the volume cloud model is subjected to material and illumination parameter setting and rendered to determine a target rendering map. According to the method and the device for generating the volume cloud model, the volume cloud model is obtained by generating the point cloud and adding the basic cloud model to each cloud node of the point cloud, the manufacturing cost of the volume cloud model is reduced, and a multi-channel effect graph can be rendered, so that a more changeable and richer volume cloud effect can be manufactured based on a multi-channel image according to requirements, and the expressive force of the volume cloud effect is promoted.
Those skilled in the art will appreciate that the figures are merely schematic representations of one preferred implementation scenario and that the blocks or flow diagrams in the figures are not necessarily required to practice the present application. Those skilled in the art will appreciate that the modules in the devices in the implementation scenario may be distributed in the devices in the implementation scenario according to the description of the implementation scenario, or may be located in one or more devices different from the present implementation scenario with corresponding changes. The modules of the implementation scenario may be combined into one module, or may be further split into a plurality of sub-modules.
The above application serial numbers are for description purposes only and do not represent the superiority or inferiority of the implementation scenarios. The above disclosure is only a few specific implementation scenarios of the present application, but the present application is not limited thereto, and any variations that can be made by those skilled in the art are intended to fall within the scope of the present application.

Claims (10)

1. A manufacturing method of a cloud picture is characterized by comprising the following steps:
generating a point cloud according to the point cloud generation parameters, wherein the point cloud comprises a plurality of cloud nodes;
adding a basic cloud model to each cloud node of the point cloud to obtain a volume cloud model, wherein the added basic cloud model has an incomplete same outline;
setting a material ball corresponding to the volume cloud model, rendering the volume cloud model according to each group of illumination parameters in multiple groups of illumination parameters, and acquiring multiple volume cloud rendering graphs corresponding to preset observation visual angles based on rendering results; and
and synthesizing the volume cloud rendering graph according to the target illumination parameters to obtain a target rendering graph.
2. The method of claim 1,
the point cloud generating parameters comprise a point cloud plane size, a point cloud plane radian, the number of cloud nodes and a first cloud node offset threshold, and the point cloud is generated according to the point cloud generating parameters, and the method specifically comprises the following steps: generating a sky grid according to the point cloud plane size and the point cloud plane radian, generating first cloud nodes matched with the number of the cloud nodes on the sky grid, and controlling the first cloud nodes to shift within the range of a first cloud node shift threshold value, wherein the cloud nodes comprise the first cloud nodes; and/or the presence of a gas in the atmosphere,
the point cloud generating parameters comprise preset cloud node distribution positions and a second cloud node offset threshold, and the point cloud is generated according to the point cloud generating parameters, and the method specifically comprises the following steps: and generating a second cloud node according to the preset cloud node distribution position, and controlling the second cloud node to shift within the range of the second cloud node shift threshold value, wherein the cloud nodes comprise the second cloud node.
3. The method of claim 1, wherein the base cloud model comprises a plurality; adding a basic cloud model to each cloud node of the point cloud to obtain a volume cloud model, wherein the method specifically comprises the following steps:
and adding one basic cloud model on each cloud node of the point cloud to obtain the volume cloud model.
4. The method of claim 1, wherein the base cloud model comprises a plurality; after a basic cloud model is added to each cloud node of the point cloud to obtain a volume cloud model, the method further comprises:
and receiving modification data of any cloud node on the volume cloud model, and modifying the any cloud node according to the modification data.
5. The method of claim 1, wherein before adding a base cloud model to each of the cloud nodes of the point cloud to obtain a volumetric cloud model, the method further comprises:
creating at least one sphere node to generate a sphere model, respectively obtaining a first adjusting point on each sphere model outline, and controlling the first adjusting point to move along the normal direction of the first adjusting point to obtain at least one first basic cloud model, wherein the basic cloud model comprises the first basic cloud model; and/or the presence of a gas in the gas,
generating at least one initial cloud model according to a preset initial shape, respectively obtaining a second adjusting point on the outline of each initial cloud model, and controlling the second adjusting point to move along the normal direction of the second adjusting point to obtain at least one second basic cloud model, wherein the basic cloud model comprises the second basic cloud model.
6. The method according to claim 1, wherein the synthesizing the volume cloud rendering according to the target illumination parameter to obtain a target rendering, specifically comprises:
acquiring a plurality of groups of color values corresponding to the volume cloud rendering;
adjusting the multiple groups of color values according to the target illumination parameters, and respectively determining pixel values corresponding to red, green and blue channels corresponding to the target rendering map based on the adjusted multiple groups of color values;
and determining the target rendering map according to the pixel values corresponding to the red, green and blue channels.
7. The method of claim 1, wherein after obtaining the target rendering map, the method further comprises:
acquiring a preset scene size;
if the preset scene size is larger than the size of the target rendering map, determining a basic mapping according to the target rendering map;
and carrying out seamless mapping processing on the basic mapping to generate a scene rendering map matched with the preset scene size.
8. An apparatus for manufacturing a cloud picture, comprising:
the point cloud generating module is used for generating a point cloud according to the point cloud generating parameters, wherein the point cloud comprises a plurality of cloud nodes;
the volume cloud generating module is used for adding a basic cloud model on each cloud node of the point cloud to obtain a volume cloud model, wherein the added basic cloud model has the contour which is not completely the same;
the rendering module is used for setting a material ball corresponding to the volume cloud model, rendering the volume cloud model according to each group of illumination parameters in the multiple groups of illumination parameters, and acquiring multiple volume cloud rendering graphs corresponding to preset observation visual angles based on rendering results; and synthesizing the volume cloud rendering graph according to the target illumination parameters to obtain a target rendering graph.
9. A storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the method of any of claims 1 to 7.
10. A computer device comprising a storage medium, a processor and a computer program stored on the storage medium and executable on the processor, characterized in that the processor implements the method of any one of claims 1 to 7 when executing the computer program.
CN202110698028.7A 2021-06-23 2021-06-23 Cloud picture manufacturing method and device, storage medium and computer equipment Active CN113313798B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110698028.7A CN113313798B (en) 2021-06-23 2021-06-23 Cloud picture manufacturing method and device, storage medium and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110698028.7A CN113313798B (en) 2021-06-23 2021-06-23 Cloud picture manufacturing method and device, storage medium and computer equipment

Publications (2)

Publication Number Publication Date
CN113313798A CN113313798A (en) 2021-08-27
CN113313798B true CN113313798B (en) 2022-05-03

Family

ID=77380106

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110698028.7A Active CN113313798B (en) 2021-06-23 2021-06-23 Cloud picture manufacturing method and device, storage medium and computer equipment

Country Status (1)

Country Link
CN (1) CN113313798B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114419233A (en) * 2021-12-31 2022-04-29 网易(杭州)网络有限公司 Model generation method and device, computer equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104143205A (en) * 2013-05-11 2014-11-12 哈尔滨点石仿真科技有限公司 Method for achieving real-time rendering of large-scale realistic volumetric cloud
CN108074285A (en) * 2017-12-06 2018-05-25 北京像素软件科技股份有限公司 Volume cloud analogy method and volume cloud simulator
KR20200082601A (en) * 2018-12-31 2020-07-08 한국전자통신연구원 Apparatus and method for rendering multi-layered volumetric clouds
CN111968214A (en) * 2020-07-29 2020-11-20 完美世界(北京)软件科技发展有限公司 Volume cloud rendering method and device, electronic equipment and storage medium
CN112200900A (en) * 2020-12-02 2021-01-08 成都完美时空网络技术有限公司 Volume cloud rendering method and device, electronic equipment and storage medium
CN112489181A (en) * 2020-11-04 2021-03-12 杭州电魂网络科技股份有限公司 Volume rendering method, device and equipment based on spherical harmonic function and storage medium
CN112907716A (en) * 2021-03-19 2021-06-04 腾讯科技(深圳)有限公司 Cloud rendering method, device, equipment and storage medium in virtual environment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7710416B2 (en) * 2004-10-19 2010-05-04 Rockwell Collins Simulation And Training Solutions Llc Method for rendering volumetric obscurants
CN109035383B (en) * 2018-06-26 2022-07-15 苏州蜗牛数字科技股份有限公司 Volume cloud drawing method and device and computer readable storage medium
CN112465941B (en) * 2020-12-02 2023-04-28 成都完美时空网络技术有限公司 Volume cloud processing method and device, electronic equipment and storage medium
CN112968950B (en) * 2021-02-01 2024-04-16 吉林动画学院 Lightweight GPU cloud baking Web3D real-time global illumination rendering pipeline

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104143205A (en) * 2013-05-11 2014-11-12 哈尔滨点石仿真科技有限公司 Method for achieving real-time rendering of large-scale realistic volumetric cloud
CN108074285A (en) * 2017-12-06 2018-05-25 北京像素软件科技股份有限公司 Volume cloud analogy method and volume cloud simulator
KR20200082601A (en) * 2018-12-31 2020-07-08 한국전자통신연구원 Apparatus and method for rendering multi-layered volumetric clouds
CN111968214A (en) * 2020-07-29 2020-11-20 完美世界(北京)软件科技发展有限公司 Volume cloud rendering method and device, electronic equipment and storage medium
CN112489181A (en) * 2020-11-04 2021-03-12 杭州电魂网络科技股份有限公司 Volume rendering method, device and equipment based on spherical harmonic function and storage medium
CN112200900A (en) * 2020-12-02 2021-01-08 成都完美时空网络技术有限公司 Volume cloud rendering method and device, electronic equipment and storage medium
CN112907716A (en) * 2021-03-19 2021-06-04 腾讯科技(深圳)有限公司 Cloud rendering method, device, equipment and storage medium in virtual environment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
A novel and practical algorithm for generating 3D volumetric clouds;Tiquan Sun等;《2015 International Conference on Wireless Communications & Signal Processing (WCSP)》;20151203;全文 *
多噪声体积云实时模拟研究;唐勇 等;《小型微型计算机***》;20191130;第40卷(第11期);2461-2465 *

Also Published As

Publication number Publication date
CN113313798A (en) 2021-08-27

Similar Documents

Publication Publication Date Title
CN109427088B (en) Rendering method for simulating illumination and terminal
CN106815881B (en) A kind of color control method and device of actor model
EP3882870A1 (en) Method and device for image display, storage medium and electronic device
CN112215934A (en) Rendering method and device of game model, storage medium and electronic device
CN110333924B (en) Image gradual change adjustment method, device, equipment and storage medium
CN111429557A (en) Hair generating method, hair generating device and readable storage medium
CN112967367B (en) Water wave special effect generation method and device, storage medium and computer equipment
CN114119818A (en) Rendering method, device and equipment of scene model
CN108043027B (en) Storage medium, electronic device, game screen display method and device
CN113313798B (en) Cloud picture manufacturing method and device, storage medium and computer equipment
CN112843704B (en) Animation model processing method, device, equipment and storage medium
CN113230659A (en) Game display control method and device
KR100632535B1 (en) 3-Dimension graphic engine for mobile device and offering method of 3D graphic
CN115761105A (en) Illumination rendering method and device, electronic equipment and storage medium
CN113706674B (en) Method and device for manufacturing model map, storage medium and computer equipment
CN112274932B (en) Game resource data processing method and device, storage medium and computer equipment
CN112473135B (en) Real-time illumination simulation method, device and equipment for mobile game and storage medium
CN113643417B (en) Image adjustment method, device, electronic equipment and storage medium
US20060033736A1 (en) Enhanced Color and Lighting Model for Computer Graphics Productions
CN114821010A (en) Virtual scene processing method and device, storage medium and electronic equipment
CN112274933B (en) Animation data processing method and device, storage medium and computer equipment
CN114255312A (en) Processing method and device of vegetation image and electronic equipment
CN111744196B (en) Task target guiding method and device in game task
CN114266855A (en) Light effect simulation method and device of dot matrix screen and electronic equipment
CN113440845A (en) Rendering method and device of virtual model, storage medium and electronic device

Legal Events

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