CN114170354B - Virtual character clothing manufacturing method, device, equipment, program and readable medium - Google Patents

Virtual character clothing manufacturing method, device, equipment, program and readable medium Download PDF

Info

Publication number
CN114170354B
CN114170354B CN202111296229.0A CN202111296229A CN114170354B CN 114170354 B CN114170354 B CN 114170354B CN 202111296229 A CN202111296229 A CN 202111296229A CN 114170354 B CN114170354 B CN 114170354B
Authority
CN
China
Prior art keywords
model
cloth
data
carrier
virtual character
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
CN202111296229.0A
Other languages
Chinese (zh)
Other versions
CN114170354A (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 CN202111296229.0A priority Critical patent/CN114170354B/en
Publication of CN114170354A publication Critical patent/CN114170354A/en
Application granted granted Critical
Publication of CN114170354B publication Critical patent/CN114170354B/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/403D [Three Dimensional] animation of characters, e.g. humans, animals or virtual beings
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The embodiment of the invention provides a method, a device, equipment, a program and a readable medium for manufacturing virtual character clothes, wherein the method comprises the following steps: creating a first virtual role model, wherein the clothes of the first virtual role model are composed of multiple layers of cloth made of different materials; drawing cloth data of the first virtual role model, wherein the same cloth data are used for cloth of different materials of each layer in clothes of the first virtual role model; obtaining skeleton data of a first virtual character model; and simulating the dynamic effect of the clothes of the first virtual character model in the motion process based on the drawn cloth data and skeleton data. By adopting the method and the device, the multi-layer cloth effect of different materials can be added in the created first virtual role model, and the multi-layer cloth uses the same cloth data. The upper cannot be penetrated among the multiple layers of cloth, so that the real experience of the game is improved.

Description

Virtual character clothing manufacturing method, device, equipment, program and readable medium
Technical Field
The invention relates to the technical field of game development, in particular to a virtual character clothing manufacturing method, device, equipment, program and readable medium.
Background
In order to improve the experience of game players in the game process, various complex and exquisite virtual characters need to be created. Some apparel is constructed from multiple layers of fabric of different materials, such as skirts for virtual characters, which may be constructed from two layers of fabric of different materials that are translucent and non-transparent. To obtain such a cloth effect, two layers of cloth are generally divided into two shaders (also called shaders), and cloth data is separately created for each shader. The collision effect exists in the different groups of cloth data in the same loader, and the collision relation does not exist between the cloth data in different loaders, so that the cloth can be worn on the sides of different layers of cloth finally rendered, the cloth effect is greatly reduced, and the real effect of the game is influenced. In addition, the cloth data of a plurality of shaders can greatly increase the computation of the virtual character in the cloth rendering process.
Disclosure of Invention
The embodiment of the invention provides a method, a device, equipment, a program and a readable medium for manufacturing clothes of virtual characters, which are used for avoiding mutual wearing of different layers of cloth, improving the real experience of a game and reducing the computation of the virtual characters in the cloth rendering process.
In a first aspect, an embodiment of the present invention provides a method for making a virtual character garment, where the method includes:
creating a first virtual role model, wherein clothes of the first virtual role model are composed of multiple layers of cloth made of different materials;
drawing cloth data of the first virtual role model, wherein the same cloth data is used for cloth of different materials of each layer in the clothes of the first virtual role model;
obtaining skeleton data of the first virtual character model;
and simulating the dynamic effect of the first virtual character model on the basis of the drawn cloth data and the skeleton data in the motion process, wherein the dynamic effect is that different layers of cloth presented by the clothes do not produce overlapping effect in the motion process.
Optionally, the drawing the cloth data of the first virtual character model includes:
acquiring a plurality of layers of carrier models included in the clothes of the first virtual role model, wherein each layer of carrier model corresponds to one layer of cloth;
determining a target layer carrier model meeting preset conditions in the multilayer carrier model;
determining first cloth data corresponding to the target layer carrier model;
determining second material distribution data corresponding to other layer carrier models except the target layer carrier model in the multi-layer carrier model based on the first material distribution data;
applying the first cloth data to the target layer carrier model of the apparel and applying the second cloth data to the other layer carrier models of the apparel.
Optionally, the determining, in the multi-layer carrier model, a target layer carrier model satisfying a preset condition includes:
and in the multilayer carrier model, determining a target layer carrier model with a carrier model area capable of covering other carrier model areas.
Optionally, the determining, based on the first cloth data, second cloth data corresponding to carrier models of other layers except the target layer carrier model in the multilayer carrier model includes:
creating a second virtual character model;
copying the first cloth data to obtain second cloth data;
storing the second cloth data corresponding to the second virtual character model;
said applying said second clothing data to said other layer carrier model of said apparel, comprising:
and corresponding to the first virtual character model, calling out the stored second cloth data from the second virtual character model, and applying the second cloth data to the other layer of carrier model of the clothing.
Optionally, the method further comprises:
and if the target layer carrier model meeting the preset condition does not exist in the multilayer carrier model, creating a substitute sheet, taking the substitute sheet as the target layer carrier model, wherein the substitute sheet is a carrier model capable of covering the area of all carrier models in the multilayer carrier model.
Optionally, the cloth data of the first virtual character model is generated based on a physical simulation grid, and the simulation of the dynamic effect of the clothing of the first virtual character model in the motion process based on the drawn cloth data and the skeleton data includes:
and converting the material distribution data of the first virtual role model based on a preset mapping relation between the physical simulation grid and the graphic grid to obtain material distribution data drawn based on the graphic grid.
In a second aspect, an embodiment of the present invention provides an apparatus for making virtual character clothes, including:
the system comprises a creating module, a setting module and a display module, wherein the creating module is used for creating a first virtual role model, and clothes of the first virtual role model are composed of multiple layers of cloth made of different materials;
the drawing module is used for drawing cloth data of the first virtual role model, wherein the same cloth data is used for cloth of different materials of each layer in clothes of the first virtual role model;
the acquisition module is used for acquiring the bone data of the first virtual character model;
and the simulation module is used for simulating the dynamic effect of the clothes of the first virtual character model in the motion process based on the drawn cloth data and the drawn bone data, wherein the dynamic effect is that different layers of cloth presented by the clothes cannot generate an overlapping effect in the motion process.
Optionally, the rendering module is configured to:
acquiring a plurality of layers of carrier models included in the clothes of the first virtual role model, wherein each layer of carrier model corresponds to one layer of cloth;
determining a target layer carrier model meeting preset conditions in the multilayer carrier model;
determining first cloth data corresponding to the target layer carrier model;
determining second material distribution data corresponding to other layer carrier models except the target layer carrier model in the multi-layer carrier model based on the first material distribution data;
applying the first cloth data to the target layer carrier model of the apparel and applying the second cloth data to the other layer carrier model of the apparel.
Optionally, the rendering module is configured to:
and in the multilayer carrier model, determining a target layer carrier model of which the carrier model area can cover the other carrier model areas.
Optionally, the rendering module is configured to:
creating a second virtual character model;
copying the first cloth data to obtain second cloth data;
storing the second cloth data corresponding to the second virtual role model;
said applying said second clothing data to said other layer carrier model of said apparel, comprising:
and corresponding to the first virtual character model, calling out the stored second cloth data from the second virtual character model, and applying the second cloth data to the other layer of carrier model of the clothing.
Optionally, the creating module is further configured to:
and if the target layer carrier model meeting the preset condition does not exist in the multilayer carrier model, creating a substitute sheet, taking the substitute sheet as the target layer carrier model, wherein the substitute sheet is a carrier model capable of covering the area of all carrier models in the multilayer carrier model.
Optionally, the cloth data of the first virtual character model is generated based on a physical simulation grid, and the simulation module is configured to:
and converting the material distribution data of the first virtual role model based on a preset mapping relation between the physical simulation grid and the graphic grid to obtain material distribution data drawn based on the graphic grid.
In a third aspect, an electronic device is provided, which comprises a memory, a processor and a computer program/instruction stored on the memory, wherein the processor implements the steps of the method according to the first aspect when executing the computer program/instruction.
In a fourth aspect, there is provided a computer readable medium having stored thereon a computer program/instructions which, when executed by a processor, implement the steps of the method of the first aspect described above.
In a fifth aspect, there is provided a computer program product comprising computer programs/instructions which, when executed by a processor, implement the steps of the method of the first aspect described above.
Compared with the scheme that cloth data can be established for different layers of cloth separately in the related technology, the method and the system for establishing the virtual role model aim at clothes formed by multiple layers of cloth made of different materials. And then, combining the skeleton data of the virtual character model, so that the final multilayer cloth can present a dynamic effect under the driving of the cloth data and the skeleton animation calculated in real time. Because the same cloth data is used by the multiple layers of cloth, the upper penetrating among the multiple layers of cloth, which is caused by the fact that the multiple layers of cloth use multiple cloth data in the related technology, can be avoided, and the real experience of the game is improved. In addition, because the same cloth data is used by the multiple layers of cloth, the calculation amount of the virtual character in the cloth rendering process can be reduced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the description below are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on the drawings without creative efforts.
Fig. 1 is a schematic flow chart of a method for manufacturing a virtual character garment according to an embodiment of the present invention;
fig. 2, 6-7 are schematic diagrams of cloth effects provided by embodiments of the present invention;
fig. 3 is a schematic diagram of a drawing result obtained by drawing the second layer of silk material cloth shown in fig. 2 according to an embodiment of the present invention;
FIG. 4 is a schematic flow chart of a method for fabricating a virtual character garment according to an embodiment of the present invention;
fig. 5 is a schematic flow chart of a method for manufacturing a virtual character garment according to an embodiment of the present invention;
fig. 8 is a schematic diagram illustrating a principle of a cloth effect according to an embodiment of the present invention;
FIG. 9 is a schematic illustration of a welding process provided by an embodiment of the present invention;
fig. 10 is a schematic structural diagram of an apparatus for making a virtual character garment according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 12 is a block diagram of a computer program product according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the examples of the present invention and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise, and "a plurality" typically includes at least two.
The words "if", as used herein, may be interpreted as "at … …" or "when … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrases "if determined" or "if detected (a stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when detected (a stated condition or event)" or "in response to a detection (a stated condition or event)", depending on the context.
In addition, the sequence of steps in each method embodiment described below is only an example and is not strictly limited.
Fig. 1 is a flowchart of a method for making a virtual character garment according to an embodiment of the present invention, where the method may be applied to an electronic device, such as a PC. As shown in fig. 1, the method comprises the steps of:
101. and creating a first virtual character model, wherein the clothes of the first virtual character model are composed of multiple layers of cloth made of different materials.
102. And drawing cloth data of the first virtual character model, wherein the cloth of each layer of different materials in the clothes of the first virtual character model uses the same cloth data.
103. Skeletal data of a first virtual character model is obtained.
104. And simulating the dynamic effect of the clothes of the first virtual character model in the motion process based on the drawn cloth data and the drawn skeleton data, wherein the dynamic effect is that different layers of cloth presented by the clothes cannot generate overlapping effect in the motion process.
In practical application, a first virtual character model can be created, and the clothes of the first virtual character model can be composed of multiple layers of cloth made of different materials. For convenience of understanding, in the present invention, the method for manufacturing the virtual character clothes is described by taking two layers of cloth made of different materials as an example, and the method for manufacturing clothes made of other layers of cloth made of different materials can be implemented by referring to the method for manufacturing clothes made of two layers of cloth made of different materials.
As shown in fig. 2, it is assumed that the lower body skirt of the first virtual character model is formed of two layers of cloth material, the first layer being a cloth material made of semi-permeable yarn, and the second layer being a cloth material made of silk.
Different carrier models can be set for different layers of cloth made of different materials. And drawing the cloth data of the first virtual role model based on the carrier model. The carrier model is the grid data forming the clothes, and cloth can be brushed on the grid to obtain cloth data with cloth effect. It is understood that the three-dimensional model may be formed by a plurality of mesh tiles, and the mesh may be regarded as a plane, such as a triangular plane.
Based on this, the process of drawing the cloth data of the first virtual character model may be implemented as: acquiring a plurality of layers of carrier models included in clothes of a first virtual role model, wherein each layer of carrier model corresponds to one layer of cloth; determining a target layer carrier model meeting preset conditions in the multilayer carrier model; determining first cloth data corresponding to the target layer carrier model; determining second distribution data corresponding to other layer carrier models except the target layer carrier model in the multi-layer carrier model based on the first distribution data; the first cloth data is applied to a target layer carrier model of the apparel and the second cloth data is applied to other layer carrier models of the apparel.
Taking the example shown in fig. 2 as an example, a first carrier model may be established for a first layer of cloth of semi-permeable yarn material, which is assumed to be named M _ a1, and a second carrier model may be established for a second layer of cloth of silk material, which is assumed to be named M _ a 2.
After the multi-layer carrier model is established, a target layer carrier model satisfying a preset condition may be determined in the multi-layer carrier model. In some embodiments, the target layer carrier model meeting the preset condition may be determined by an automatic identification manner of the electronic device, or a technician may select the target layer carrier model meeting the preset condition by a manual selection manner.
For the automatic identification mode, the target layer carrier model meeting the preset condition can be determined according to the coverage area of all the triangular surfaces forming each carrier model. For the manual selection mode, a technician may click on a target layer carrier model satisfying a preset condition, and the electronic device may determine the target layer carrier model satisfying the preset condition in response to a selection operation on the target layer carrier model.
Alternatively, the process of determining the target layer carrier model satisfying the preset condition may be implemented as: in the multilayer carrier model, a target layer carrier model with a carrier model area capable of covering other carrier model areas is determined.
In practical application, a complete target layer carrier model without many defects and with regular wiring can be determined from the multi-layer carrier model, and the area of the target layer carrier model can cover the area of other carrier models. In the example shown in fig. 2, the cloth of the first semi-permeable yarn material has many defects and thus cannot cover the cloth of the second semi-permeable yarn material, while the cloth of the second semi-permeable yarn material has no many defects and can cover the cloth of the first semi-permeable yarn material, and then the second carrier model corresponding to the silk material can be selected as the target layer carrier model.
In practical application, in order to obtain a better cloth effect, when designing the clothes, the clothes can be designed according to the following requirements: the long skirt is not required to be made into a cloth folding structure as far as possible, and if the dress consisting of flat large blocks can be designed, the cloth effect is easier to render. The structures of the cloth material which are inserted into each other are not designed, because the cloth material is adhered together. The opening of the skirt is not easy to be designed too high, the opening can be designed to the first section of the ribbon skeleton, and the opening cannot be covered or shielded by a structure. The positions of the openings at the two sides of the back of the skirt are not easy to exceed the knees. The opening width is designed as much as possible, and the widest point may be set to a distance of one unit grid. If the virtual character wears the trousers, the opening position of the skirt at the outer layer of the trousers can be properly set to be higher. The design of single-layer skirt and short skirt is not required.
After the target layer carrier model is determined, first cloth data corresponding to the target layer carrier model can be determined. The process of determining the first cloth data corresponding to the target layer carrier model can be regarded as a process of drawing cloth. An example of the drawing result obtained by drawing the cloth made of the second layer silk material shown in fig. 2 can be seen from fig. 3, and the first cloth data can be named as M _ a1_ closing.
The process of determining the first distribution data corresponding to the target layer carrier model may be implemented as follows: setting cloth parameters corresponding to the target layer carrier model, wherein the cloth parameters comprise any one or more of motion damping, cloth rigidity, cloth elasticity, gravity and wind direction; and calculating first material distribution data corresponding to the target layer carrier model based on the material distribution parameters corresponding to the target layer carrier model.
Because some parameters such as motion damping, cloth rigidity, cloth elasticity, gravity, wind direction among the cloth parameters all can all exert an influence to the final dynamic effect of dress, consequently can acquire the cloth parameters such as motion damping, cloth rigidity, cloth elasticity, gravity, wind direction that set up. The dynamic effect of the apparel can be calculated in real time based on these cloth parameters.
In addition to the above cloth parameters, the weight of the cloth may be set. The dynamic effect of the clothes is obtained by superposing the two effects of the calculation result based on the cloth parameters and the skeleton animation of the virtual character model, so the influence degree of which factor has on the dynamic effect of the clothes can be distributed. For example, if the weight of the cloth is set to 50%, half of the dynamic effect of the clothing is obtained based on the calculation result of the cloth parameters, the other half of the dynamic effect of the clothing is obtained based on the bone animation simulation of the virtual character model, and the two effects act together according to the weight of the cloth, so that the dynamic effect of the clothing is finally obtained.
In one possible implementation, the weight of the cloth may be limited to not more than 70 at maximum. Considering that the virtual character may give force during running, the weight of the cloth in the rear half of the skirt may be set slightly larger than that in the front half of the skirt. If the weights of different fabrics are set for the same skirt, the weights of the different fabrics can be subjected to smooth transition treatment. The frequency of the resolver may be set to 240 in some embodiments, for example.
After the material distribution parameters corresponding to the set target layer carrier model are obtained, first material distribution data corresponding to the target layer carrier model can be determined based on the material distribution parameters corresponding to the target layer carrier model. The first cloth data may then be applied to a target layer carrier model of the apparel. For example, M _ a1_ closing is applied to M _ a 1.
It should be noted that, because the function of directly copying the cloth data is not provided in the cloth tool, when creating the second cloth data, the first cloth data may be copied from the framework mesh body to the second virtual role model, then the name of the cloth data in the second virtual role model is modified, and then the cloth data is called back from the second virtual role model, so that the copying process of the cloth data can be indirectly realized.
Based on this, based on the first material distribution data, the process of determining the second material distribution data corresponding to the other layer carrier model except the target layer carrier model in the multi-layer carrier model may be implemented as follows: creating a second virtual character model; copying the first cloth data to obtain second cloth data; and storing second cloth data corresponding to the second virtual character model. Accordingly, the process of applying the second cloth data to the other layer carrier model of the apparel may be implemented as: and calling out the stored second cloth data from the second virtual character model corresponding to the first virtual character model, and applying the second cloth data to other layer carrier models of the clothes.
For example, as shown in fig. 4, two skirts of the virtual character a are made of different materials, and a carrier model is created for each of the skirts, so that M _ a1 and M _ a2 are obtained. Next, the first fabric data is determined and named M _ a1_ closing. Subsequently, M _ A1_ closing is brushed, cloth parameters are adjusted, and collision effect is modified. Wherein, brushing cloth refers to the process of calculating cloth effect in real time. Then, M _ a1_ closing is applied to M _ a 1.
After brushing cloth to M _ a1_ closing, adjusting cloth parameters, and modifying the impact effect, M _ a1_ closing can be further saved in the second cloth data of the avatar B, and the name of M _ a1_ closing can be modified to M _ B1_ closing. Then, the process returns to the avatar a, and restores M _ B1_ closing to the cloth data of the avatar a, and modifies the name of M _ B1_ closing to M _ a2_ closing. Finally, M _ A2_ closing can be applied to M _ A2, and the whole process of making two-layer skirts can be completed.
It should be noted that, because the first cloth data and the second cloth data are completely consistent, it can be ensured that no interpenetration occurs between the two layers of clusters, and the obtained cloth effect is the same and complete. The condition for manufacturing the two-layer group by adopting the method is that the carrier model area of one layer of group can cover the carrier model area of the other layer of group, and the two layers of groups are close to each other.
Further, after applying M _ a1_ closing to M _ a1 and M _ a2_ closing to M _ a2, M _ a1_ closing and M _ a2_ closing can no longer be applied to other scenes. If M _ A1_ cloting needs to be adjusted, then M _ A2_ cloting cannot be adjusted simultaneously, and in order to ensure consistency of M _ A1_ cloting and M _ A2_ cloting, the process shown in FIG. 4 can be re-executed for the purpose of modifying M _ A1_ cloting and M _ A2_ cloting simultaneously.
If the area of any carrier model in the multilayer carrier model can not cover the areas of other carrier models, the grids of the carrier models with larger areas can be supplemented, so that the purpose that the areas of the supplemented carrier models cover the areas of other carrier models can be achieved. Finally, the supplementary part of the grid needs to be hidden in a transparent pasting mode, and the scheme can be realized.
If the area of any carrier model in the multi-layer carrier model cannot cover the areas of other carrier models and the grids are difficult to be filled in a filling mode, a substitute sheet can be created to serve as the target layer carrier model. Optionally, the method provided in the embodiment of the present invention may further include: and if the target layer carrier model meeting the preset condition does not exist in the multilayer carrier model, creating a substitute sheet, taking the substitute sheet as the target layer carrier model, wherein the substitute sheet is a carrier model capable of covering the area of all the carrier models in the multilayer carrier model.
In practical application, the substitute sheet simulation data can be used to enable the substitute sheet to perform dynamic simulation, and the multilayer carrier model can be driven to move through the substitute sheet. The cloth data obtained in this way can also be kept consistent. The surrogate patch needs to be similar to the model to be simulated, but need not be identical to the model to be simulated, so long as it can cover all the carrier model areas in the multi-layer carrier model.
Note that the substitute sheet needs to be skinned together with the multilayer carrier model, and the weight wiring needs to be as consistent as possible with the skirt itself. The cloth data can be applied to each layer of carrier model in the multilayer carrier model after the cloth data is created on the substitute sheet, and finally, the physical parameter adjustment is carried out.
For example, as shown in fig. 5, two layers of skirts of the virtual character a are made of different materials, a carrier model is created for each layer of skirt to obtain M _ a1 and M _ a2, and meanwhile, a substitute sheet can be created to obtain M _ T. Next, the cloth data corresponding to the substitute sheet is determined and named as M _ T _ closing. And then brushing cloth for the M _ T _ closing, adjusting cloth parameters and modifying the collision effect. Then, M _ T _ closing is applied to M _ a 1.
After brushing cloth for the M _ T _ blocking, adjusting cloth parameters and modifying collision effects, the M _ T _ blocking can be stored in the cloth data of the virtual character B, and the name of the M _ T _ blocking can be modified into M _ B1_ blocking. Then, the process returns to the avatar a, restores M _ B1_ closing to the cloth data of the avatar a, and modifies the name of M _ B1_ closing to M _ a2_ closing. Finally, M _ A2_ closing can be applied to M _ A2, and the whole process of making two-layer skirts can be completed.
The final clothing rendering effect can be seen in fig. 2, 6-7.
After the cloth data of the first virtual character model is drawn, skeleton data of the first virtual character can be obtained, and then the dynamic effect of the clothes of the first virtual character model in the motion process is simulated based on the drawn cloth data and skeleton data.
The dynamic effect is that different layers of cloth presented by the clothes do not produce overlapping effect in the motion process. It is understood that when the first virtual character model is in a running, fighting, etc. state in the game, the clothes of the first virtual character model will also have a fluttering dynamic effect. Or when the wind blowing factor is set for the game environment, the clothes of the first virtual character model can generate a floating dynamic effect along with the wind blowing factor, and the cloth of different layers cannot be worn in the floating process.
Optionally, the cloth data of the clothing of the first virtual character model is generated based on a physical simulation grid, and the cloth data of the clothing of the first virtual character model may be converted based on a mapping relationship between the physical simulation grid and the graphic grid.
As shown in fig. 8, the left diagram of fig. 8 graphically represents the skeleton of the virtual character. The points on the graph represent points on the model driven by the skeleton animation, and are obtained after cloth data calculation is completed. For example, a piece of cloth is located near the skin, and the cloth needs to be moved, and the movement of the cloth is related to the weight of the cloth mentioned above. The larger the weight of the cloth is, the less obvious the effect of the cloth driven by the animation is, and the smaller the weight of the cloth is, the more obvious the effect of the cloth driven by the animation is. Fewer points are on the middle graph and more points are on the right graph because fewer models are used to simulate the cloth relationship and apply to the cloth of the solid apparel. Interpolation can be used to calculate the data of new points inserted between two points in the model with fewer points.
Theoretically, each Physical mesh (corresponding to the model represented by the middle graph of fig. 8, with a smaller number of points) can be applied to any Graphics mesh (corresponding to the model represented by the right graph of fig. 8, with a larger number of points). The clothes are generated based on the Physical mesh, and cloth can be brushed on the clothes formed by the Physical mesh. After the cloth is brushed, each point in the Physical mesh is subjected to calculation, for example, how the point changes after being influenced by Physical factors such as gravity. The cloth effect is attached to the Physical mesh.
The model is constructed with four sides during the production, and is converted into a triangle when the model is introduced into the engine. A four sided surface may be divided into two triangular surfaces. In the conversion process, the closest triangle from the Physical mesh is found by the points of the Graphics mesh, and the mapping relation from the points to the three points of the triangle, namely the mapping relation of interpolation and points, is established by using the distance from the points to the triangle and the coordinates of the points under the barycentric coordinate system of the triangle projection.
Additionally, it is worth noting that Graphics mesh typically has duplicate vertices used for texture rendering. This is not suitable for Physical mesh, where mesh topology is essential. During the welding process, all the vertices of the graph that are in the same position need to be merged into a single simulated vertex.
In the process of making the model, the high mode can be made first, and then the high mode is converted into the low mode through topology. In the process of manufacturing the model, two close points need to be welded, and if the two close points are missed and not welded, the cloth effect cannot be realized. As shown in fig. 9, the spot welding of the circles in the left figure needs to be carried out together, and the result shown in the right figure of fig. 9 is obtained. If the omission occurs, certain cloth has no points of attachment on the whole clothes, and when the dynamic effect of the cloth is simulated, the cloth without the points of attachment can fall off.
Compared with the scheme that cloth data can be established for different layers of cloth separately in the related technology, the method and the system for establishing the virtual role model aim at clothes formed by multiple layers of cloth made of different materials. And then, combining the skeleton data of the virtual character model, so that the final multilayer cloth can present a dynamic effect under the driving of the cloth data and the skeleton animation calculated in real time. Because the same cloth data is used by the multiple layers of cloth, the upper penetrating among the multiple layers of cloth caused by the fact that the multiple layers of cloth use multiple cloth data in the related technology can be avoided, and the real experience of the game is improved. In addition, because the same cloth data is used by the multiple layers of cloth, the calculation amount of the virtual character in the cloth rendering process can be reduced.
The virtual character apparel making apparatus of one or more embodiments of the present invention will be described in detail below. Those skilled in the art will appreciate that these avatar apparel creation devices may each be constructed using commercially available hardware components configured through the steps taught by the present solution.
Fig. 10 is a schematic structural diagram of an apparatus for fabricating a virtual character garment according to an embodiment of the present invention, as shown in fig. 10, the apparatus includes:
the system comprises a creating module 101, a displaying module and a control module, wherein the creating module 101 is used for creating a first virtual role model, and clothes of the first virtual role model are composed of multiple layers of cloth made of different materials;
a drawing module 102, configured to draw cloth data of the first virtual character model, where the same cloth data is used for each layer of cloth made of different materials in the clothing of the first virtual character model;
an obtaining module 103, configured to obtain skeleton data of the first virtual character model;
the simulation module 104 is configured to simulate a dynamic effect of the first virtual character model in the motion process based on the drawn cloth data and the drawn bone data, where the dynamic effect is an effect that different layers of cloth presented by the clothing do not overlap with each other in the motion process.
Optionally, the drawing module 102 is configured to:
acquiring a plurality of layers of carrier models included in the clothes of the first virtual role model, wherein each layer of carrier model corresponds to one layer of cloth;
determining a target layer carrier model meeting preset conditions in the multilayer carrier model;
determining first cloth data corresponding to the target layer carrier model;
determining second material distribution data corresponding to other layer carrier models except the target layer carrier model in the multi-layer carrier model based on the first material distribution data;
applying the first cloth data to the target layer carrier model of the apparel and applying the second cloth data to the other layer carrier models of the apparel.
Optionally, the drawing module 102 is configured to:
and in the multilayer carrier model, determining a target layer carrier model of which the carrier model area can cover the other carrier model areas.
Optionally, the drawing module 102 is configured to:
creating a second virtual character model;
copying the first cloth data to obtain second cloth data;
storing the second cloth data corresponding to the second virtual role model;
said applying said second cloth data to said other layer carrier model of said apparel comprises:
and corresponding to the first virtual character model, calling out the stored second cloth data from the second virtual character model, and applying the second cloth data to the other layer of carrier model of the clothing.
Optionally, the creating module 101 is further configured to:
and if the target layer carrier model meeting the preset condition does not exist in the multilayer carrier model, creating a substitute sheet, taking the substitute sheet as the target layer carrier model, wherein the substitute sheet is a carrier model capable of covering the area of all carrier models in the multilayer carrier model.
Optionally, the cloth data of the first virtual character model is generated based on a physical simulation grid, and the simulation module 104 is configured to:
and converting the material distribution data of the first virtual role model based on a preset mapping relation between the physical simulation grid and the graphic grid to obtain material distribution data drawn based on the graphic grid.
The apparatus shown in fig. 10 can perform the virtual character clothing manufacturing method provided in the embodiments shown in fig. 1 to fig. 9, and the detailed implementation process and technical effects refer to the description in the embodiments, which are not repeated herein.
Various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It will be appreciated by those skilled in the art that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functionality of some or all of the components in a volume cloud rendering apparatus according to embodiments of the present invention. The present invention may also be embodied as programs/instructions (e.g., computer programs/instructions and computer program products) for a device or apparatus that performs a portion or all of the methods described herein. Such programs/instructions implementing the present invention may be stored on a computer readable medium or may be present in one or more signals, such signals may be downloaded from an internet website, or provided on a carrier signal, or provided in any other form.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic disk storage, quantum memory, graphene-based storage media or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device.
Fig. 11 schematically shows an electronic device comprising a processor 410 and a computer-readable medium in the form of a memory 420, in which the method according to the invention may be implemented. Memory 420 is one example of a computer-readable medium having storage space 430 for storing computer programs/instructions 431. The computer programs/instructions 431, when executed by the processor 410, may perform the steps in the virtual character apparel making method described above.
Fig. 12 schematically shows a block diagram of a computer program product implementing the method according to the invention. The computer program product includes computer program/instructions 510 that when executed by a processor, such as processor 410 shown in figure 11, may implement the various steps in the virtual character apparel fabrication method described above.
The foregoing descriptions of specific embodiments of the present specification are provided, along with other embodiments, to be included within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily follow the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or advantageous.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
It should be understood that the above-mentioned embodiments are only for illustrative purposes and are not intended to limit the present invention. Those skilled in the art may also practice the invention in other ways without departing from the essential spirit and characteristics of the invention. The scope of the present invention is to be determined by the appended claims, and any modifications, equivalents, improvements, etc. made within the spirit and principles of one or more embodiments of the present disclosure are intended to be covered thereby.

Claims (8)

1. A method for making a virtual character garment is characterized by comprising the following steps:
creating a first virtual role model, wherein clothes of the first virtual role model are composed of multiple layers of cloth made of different materials;
acquiring a plurality of layers of carrier models included in the clothes of the first virtual role model, wherein each layer of carrier model corresponds to one layer of cloth, and the cloth of different materials of each layer in the clothes of the first virtual role model uses the same cloth data;
determining a target layer carrier model meeting preset conditions in the multilayer carrier model;
determining first cloth data corresponding to the target layer carrier model;
determining second material distribution data corresponding to other layer carrier models except the target layer carrier model in the multi-layer carrier model based on the first material distribution data;
applying the first cloth data to the target layer carrier model of the apparel and the second cloth data to the other layer carrier model of the apparel;
obtaining skeleton data of the first virtual character model;
and simulating the dynamic effect of the first virtual character model on the basis of the drawn cloth data and the skeleton data in the motion process, wherein the dynamic effect is that different layers of cloth presented by the clothes do not produce overlapping effect in the motion process.
2. The method according to claim 1, wherein the determining a target layer carrier model satisfying a preset condition in the multi-layer carrier model comprises:
and in the multilayer carrier model, determining a target layer carrier model with a carrier model area capable of covering other carrier model areas.
3. The method according to claim 1, wherein the determining second cloth data corresponding to carrier models of other layers except the target layer carrier model in the multi-layer carrier model based on the first cloth data comprises:
creating a second virtual character model;
copying the first cloth data to obtain second cloth data;
storing the second cloth data corresponding to the second virtual character model;
said applying said second clothing data to said other layer carrier model of said apparel, comprising:
and corresponding to the first virtual character model, calling out the stored second cloth data from the second virtual character model, and applying the second cloth data to the other layer of carrier model of the clothing.
4. The method of claim 1, further comprising:
and if the target layer carrier model meeting the preset condition does not exist in the multilayer carrier model, creating a substitute sheet, taking the substitute sheet as the target layer carrier model, wherein the substitute sheet is a carrier model capable of covering the area of all carrier models in the multilayer carrier model.
5. The method of claim 1, wherein the cloth data of the first virtual character model is generated based on a physical simulation mesh, and wherein simulating the dynamic effect of the apparel during motion of the first virtual character model based on the drawn cloth data and the bone data comprises:
and converting the material distribution data of the first virtual role model based on a preset mapping relation between the physical simulation grid and the graphic grid to obtain material distribution data drawn based on the graphic grid.
6. An apparatus for creating a virtual character garment, comprising:
the system comprises a creating module, a setting module and a display module, wherein the creating module is used for creating a first virtual role model, and clothes of the first virtual role model are composed of multiple layers of cloth made of different materials;
the drawing module is used for obtaining a plurality of layers of carrier models included by the clothes of the first virtual role model, wherein each layer of carrier model corresponds to one layer of cloth, and the cloth of different materials of each layer of the clothes of the first virtual role model uses the same cloth data; determining a target layer carrier model meeting preset conditions in the multilayer carrier model; determining first cloth data corresponding to the target layer carrier model; determining second material distribution data corresponding to other layer carrier models except the target layer carrier model in the multi-layer carrier model based on the first material distribution data; applying the first cloth data to the target layer carrier model of the apparel and the second cloth data to the other layer carrier models of the apparel;
the acquisition module is used for acquiring the bone data of the first virtual character model;
and the simulation module is used for simulating the dynamic effect of the first virtual character model in the motion process based on the drawn cloth data and the drawn bone data, wherein the dynamic effect is that different layers of cloth presented by the clothes cannot generate overlapping effect in the motion process.
7. An electronic device comprising a memory, a processor, and computer programs/instructions stored on the memory, the processor when executing the computer programs/instructions implementing the steps of the virtual character apparel manufacturing method of any of claims 1-5.
8. A computer readable medium having stored thereon a computer program/instructions which, when executed by a processor, carry out the steps of the virtual character apparel making method according to any one of claims 1-5.
CN202111296229.0A 2021-11-03 2021-11-03 Virtual character clothing manufacturing method, device, equipment, program and readable medium Active CN114170354B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111296229.0A CN114170354B (en) 2021-11-03 2021-11-03 Virtual character clothing manufacturing method, device, equipment, program and readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111296229.0A CN114170354B (en) 2021-11-03 2021-11-03 Virtual character clothing manufacturing method, device, equipment, program and readable medium

Publications (2)

Publication Number Publication Date
CN114170354A CN114170354A (en) 2022-03-11
CN114170354B true CN114170354B (en) 2022-08-26

Family

ID=80477923

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111296229.0A Active CN114170354B (en) 2021-11-03 2021-11-03 Virtual character clothing manufacturing method, device, equipment, program and readable medium

Country Status (1)

Country Link
CN (1) CN114170354B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110555899A (en) * 2019-08-20 2019-12-10 中北大学 multi-precision grid refinement method based on CNN cloth wrinkle recognition
CN110782511A (en) * 2019-09-09 2020-02-11 天脉聚源(杭州)传媒科技有限公司 Method, system, apparatus and storage medium for dynamically changing avatar
CN111028320A (en) * 2019-12-11 2020-04-17 腾讯科技(深圳)有限公司 Cloth animation generation method and device and computer readable storage medium
CN111784809A (en) * 2020-07-09 2020-10-16 网易(杭州)网络有限公司 Virtual character skeleton animation control method and device, storage medium and electronic equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB201102794D0 (en) * 2011-02-17 2011-03-30 Metail Ltd Online retail system
US11145138B2 (en) * 2017-04-28 2021-10-12 Linden Research, Inc. Virtual reality presentation of layers of clothing on avatars
WO2020131518A1 (en) * 2018-12-19 2020-06-25 Seddi, Inc. Learning-based animation of clothing for virtual try-on

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110555899A (en) * 2019-08-20 2019-12-10 中北大学 multi-precision grid refinement method based on CNN cloth wrinkle recognition
CN110782511A (en) * 2019-09-09 2020-02-11 天脉聚源(杭州)传媒科技有限公司 Method, system, apparatus and storage medium for dynamically changing avatar
CN111028320A (en) * 2019-12-11 2020-04-17 腾讯科技(深圳)有限公司 Cloth animation generation method and device and computer readable storage medium
CN111784809A (en) * 2020-07-09 2020-10-16 网易(杭州)网络有限公司 Virtual character skeleton animation control method and device, storage medium and electronic equipment

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
不同材质的多形态布料的实时渲染仿真;严凯丽;《中国优秀博硕士学位论文全文数据库(硕士)信息科技辑》;20180415(第04期);第I138-3016页 *
基于角色几何碰撞体估计的实时服装仿真;孙守迁 等;《软件学报》;20071115;第18卷(第11期);第2921-2931页 *
布料系统原理浅析和在Unity手游中的应用;admin;《https://blog.uwa4d.com/archives/2008.html》;20170829;第1-16页 *
虚幻学习5--创建主材质&材质实例的使用;packdge_black;《https://blog.csdn.net/packdge_black/article/details/119297757》;20210803;第1-15页 *

Also Published As

Publication number Publication date
CN114170354A (en) 2022-03-11

Similar Documents

Publication Publication Date Title
CN104036532B (en) Based on the three-dimensional production method of clothing to the seamless mapping of two-dimentional clothing popularity
CN104933216A (en) Simulation method of ball B-spline-based weft knitted fabric model
KR101763361B1 (en) Method and apparatus for creating 3D cloth
Sul et al. Interactive garment pattern design using virtual scissoring method
US20210056754A1 (en) Generating clothing patterns of garment using bounding volumes of body parts
CN114170354B (en) Virtual character clothing manufacturing method, device, equipment, program and readable medium
Zhang et al. IDSS: a novel representation for woven fabrics
Hu et al. An efficient multi-layer garment virtual fitting algorithm based on the geometric method
JP5161213B2 (en) Knitwear simulation method and apparatus and storage medium therefor
Dong et al. A web-based 3D virtual display framework for warp-knitted seamless garment design
CN106803278B (en) Virtual character semi-transparent layered sorting method and system
Durupynar et al. A virtual garment design and simulation system
WO2023091086A2 (en) Apparatus and method for simulating a three-dimensional object
Weier et al. Generating and rendering large scale tiled plant populations
CN105046738A (en) Clothes dynamic three-dimension making method and making apparatus
CN104809287B (en) Wearing article layered approach and its system, layering wearing article analogy method and its system
JP7058625B2 (en) Image processing programs, image processing systems, image processing devices, and image processing methods
CN116510295B (en) Data processing method, device, equipment and storage medium
Lee et al. Real‐time fur simulation and rendering
JPWO2009084427A1 (en) Knit simulation device and method for correcting twist of yarn in knit simulation
Sha et al. Fast penetration resolving for weft knitted fabric based on collision detection
Xie The research on mobile game engine
CN116543093B (en) Flexible object rendering method, device, computer equipment and storage medium
Lazunin et al. Interactive visualization of multi-layered clothing
JPWO2003024261A1 (en) Virtual pattern display device, virtual pattern display method, virtual pattern display program, and computer-readable recording medium recording the program

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