Virtual model processing method and device, computer device, and storage medium

By generating target mask maps to mask virtual models, and cropping and removing the parts that need to be hidden, the problem of models intersecting when virtual characters wear virtual clothing is solved, improving display effects and efficiency.

CN116077933BActive Publication Date: 2026-07-31NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
NETEASE (HANGZHOU) NETWORK CO LTD
Filing Date
2022-12-27
Publication Date
2026-07-31

AI Technical Summary

Technical Problem

In game design, when virtual character models wear virtual clothing, the difficulty in predicting their movements leads to model overlap issues, resulting in poor display effects and low efficiency.

Method used

By acquiring the target virtual clothing, determining the target body parts, generating a target mask texture, and using this texture to mask the virtual model, the parts that need to be hidden are cropped and removed to prevent the model from overlapping.

Benefits of technology

It improves the display effect and efficiency of virtual resources and solves the problem of model interleaving.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116077933B_ABST
    Figure CN116077933B_ABST
Patent Text Reader

Abstract

This application discloses a method, apparatus, computer device, and storage medium for processing virtual models, including: acquiring a target virtual garment for image adjustment of a virtual model to be processed; then, based on the target virtual garment, determining a target body part on the virtual model to be processed that corresponds to the target virtual garment; acquiring a target masking map of the target body part, wherein the target masking map is used to mask the virtual model corresponding to the target body part determined by the target virtual garment on the virtual model to be processed; using the target masking map to mask the virtual model corresponding to the target body part on the virtual model to be processed, obtaining a processed virtual model; and adding the target virtual garment to the processed virtual model to generate a target virtual model. This application avoids the problem of models overlapping, improving the display effect and efficiency of virtual resources.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and more particularly to the field of game technology, specifically to a method, apparatus, computer device, and storage medium for processing virtual models. Background Technology

[0002] With the continuous development of computer communication technology and the widespread use of terminals such as smartphones, tablets, and laptops, terminals are becoming increasingly diversified and personalized, becoming indispensable in people's lives and work. To satisfy people's pursuit of spiritual enrichment, entertainment games that can be played on these terminals have emerged. For example, multiplayer online tactical battle royale games and massively multiplayer online games (MMORPGs) developed based on client or server architectures are popular due to their high smoothness, good controls, and real-time combat. With the booming development of online games, people have increasingly higher demands for the realism of game scenes. To provide players with a better gaming experience, many terminal games are often built based on real-world scenes and characters and objects within those scenes. Therefore, in game design, the implementation of virtual scenes, virtual characters within those scenes, and virtual elements aims to be as close to the real environment as possible.

[0003] In actual game design projects, artists and designers often propose the creation of game assets. These assets can be used to create virtual resources that simulate various real-life scenes, characters, or items, such as virtual characters, virtual clothing, and various virtual accessories. In existing technologies, when a virtual character model wears different virtual clothing, it may perform different actions. Because it's difficult to predict the corresponding skeletal and skinned postures of the virtual clothing model during the modeling process of both the character and clothing models, model overlap occurs between them. This results in poor display quality and low display efficiency for the virtual assets. Summary of the Invention

[0004] This application provides a method, apparatus, computer device, and storage medium for processing virtual models. By expanding the spatial range of the mask body according to the required occluded virtual model area, the virtual model is clipped. The part of the virtual model that needs to be hidden is calculated, and a corresponding target mask texture is generated based on the part of the virtual model. Then, the part of the virtual model that needs to be clipped is removed using the target mask texture, thereby avoiding the problem of interweaving between models and improving the display effect and display efficiency of virtual resources.

[0005] This application provides a method for processing virtual models, the method comprising:

[0006] Obtain the target virtual clothing for adjusting the appearance of the virtual model to be processed;

[0007] Based on the target virtual clothing, determine the target body part on the virtual model to be processed that corresponds to the target virtual clothing;

[0008] Obtain a target mask texture of the target body part, wherein the target mask texture is used to mask the virtual model corresponding to the target body part determined on the virtual model to be processed by the target virtual clothing;

[0009] Using the target mask texture, the virtual model corresponding to the target body part on the virtual model to be processed is masked to obtain the processed virtual model;

[0010] Add the target virtual clothing to the processed virtual model to generate the target virtual model.

[0011] Accordingly, embodiments of this application also provide a virtual model processing apparatus, which includes:

[0012] The first acquisition unit is used to acquire the target virtual clothing for image adjustment of the virtual model to be processed.

[0013] The determining unit is configured to determine, based on the target virtual clothing, a target body part on the virtual model to be processed that corresponds to the target virtual clothing;

[0014] The second acquisition unit is used to acquire the target mask texture of the target body part, wherein the target mask texture is used to mask the virtual model corresponding to the target body part determined on the virtual model to be processed by the target virtual clothing;

[0015] The processing unit is used to perform masking processing on the virtual model corresponding to the target body part on the virtual model to be processed using the target mask texture, so as to obtain the processed virtual model.

[0016] The generation unit is used to add the target virtual clothing to the processed virtual model to generate the target virtual model.

[0017] Accordingly, this application also provides a computer device, including a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program, when executed by the processor, implements the processing method of the virtual model as described above.

[0018] Accordingly, embodiments of this application also provide a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the processing method of the virtual model described above.

[0019] This application provides a method, apparatus, computer device, and storage medium for processing virtual models. The method involves: acquiring a target virtual garment for adjusting the appearance of a virtual model to be processed; then, based on the target virtual garment, determining a target body part on the virtual model to be processed that corresponds to the target virtual garment; next, acquiring a target masking map of the target body part, wherein the target masking map is used to mask the virtual model corresponding to the target body part determined by the target virtual garment on the virtual model to be processed; then, using the target masking map, masking processing is performed on the virtual model corresponding to the target body part on the virtual model to be processed to obtain a processed virtual model; finally, the target virtual garment is added to the processed virtual model to generate the target virtual model. This application embodiment expands the spatial range of the masking body according to the required area of ​​the masked virtual model before cropping the virtual model to calculate the portion of the virtual model that needs to be hidden. Then, a corresponding target masking map is generated based on this portion of the virtual model. Finally, the target masking map is used to remove the portion of the virtual model that needs to be cropped, thereby avoiding the interleaving problem between models and improving the display effect and efficiency of virtual resources. Attached Figure Description

[0020] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0021] Figure 1 This is a schematic diagram of a virtual model processing device provided in an embodiment of this application.

[0022] Figure 2 This is a flowchart illustrating a virtual model processing method provided in an embodiment of this application.

[0023] Figure 3 This is a schematic diagram of a scenario for processing a virtual model provided in an embodiment of this application.

[0024] Figure 4 This is another scenario diagram illustrating the virtual model processing method provided in the embodiments of this application.

[0025] Figure 5This is another scenario diagram illustrating the virtual model processing method provided in the embodiments of this application.

[0026] Figure 6 This is another scenario diagram illustrating the virtual model processing method provided in the embodiments of this application.

[0027] Figure 7 This is another scenario diagram illustrating the virtual model processing method provided in the embodiments of this application.

[0028] Figure 8 This is a schematic diagram of the structure of the virtual model processing device provided in the embodiments of this application.

[0029] Figure 9 This is a schematic diagram of the structure of the computer device provided in the embodiments of this application. Detailed Implementation

[0030] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of this application.

[0031] In existing technologies, dress-up systems are commonly used in games as a means of monetization, allowing virtual character models to be customized with different outfits. This not only enriches gameplay and enhances visual appeal but also provides various possibilities for game operation and design. However, the arbitrary combination of personalized outfits presents a significant challenge. Different outfits are often created in overlapping fashions, making it difficult to predict subsequent outfit combinations, as later outfits can affect previously created ones. Furthermore, the design of subsequent animations for virtual character models increases the risk of clipping during art modeling, as it's difficult to predict various skeletal and skinned poses during the modeling stage. Moreover, existing technologies require careful parameter adjustment to adapt to various runtime boundary conditions and consume significant runtime resources for dynamic calculations, limiting the application of virtual character and fashion models in mobile game environments. Specifically, when a virtual character model wears different virtual clothing, it may make different movements. Since it is difficult to predict the various skeletal and skinned postures of the virtual clothing model when the virtual character model makes different movements during the modeling process of the virtual clothing model and the virtual character model, the model will overlap with the virtual character model and the virtual clothing model. This results in poor display effect and low display efficiency of virtual resources.

[0032] To address the aforementioned problems, embodiments of this application provide a method, apparatus, computer device, and storage medium for processing virtual models. The method involves: acquiring a target virtual garment for image adjustment of a virtual model to be processed; then, based on the target virtual garment, determining a target body part on the virtual model to be processed that corresponds to the target virtual garment; next, acquiring a target masking map of the target body part, wherein the target masking map is used to mask the virtual model corresponding to the target body part determined on the virtual model to be processed by the target virtual garment; subsequently, using the target masking map, masking processing is performed on the virtual model corresponding to the target body part on the virtual model to be processed to obtain a processed virtual model; finally, the target virtual garment is added to the processed virtual model to generate the target virtual model. This application embodiment expands the spatial range of the mask body according to the required occluded virtual model area and then clips the virtual model to calculate the part of the virtual model that needs to be hidden. Then, a corresponding target mask map is generated based on the part of the virtual model. Finally, the part of the virtual model that needs to be clipped is removed using the target mask map, thereby avoiding the problem of interweaving between models and improving the display effect and display efficiency of virtual resources.

[0033] This application provides a method, apparatus, computer device, and storage medium for processing virtual models. Specifically, the virtual model processing method of this application can be executed by a computer device, which can be a terminal. The terminal can be a smartphone, tablet computer, laptop computer, touch screen, game console, personal computer (PC), personal digital assistant (PDA), or other terminal device. The terminal can also include a client, which can be a video application client, music application client, game application client, browser client with game program, or instant messaging client, etc.

[0034] Please see Figure 1 , Figure 1This is a schematic diagram of a virtual model processing system provided in this application embodiment, including a computer device. The system may include at least one terminal, at least one server, and a network. The user's terminal can connect to different game servers via the network. The terminal is any device with computing hardware capable of supporting and executing software products corresponding to the game. Additionally, the terminal has one or more multi-touch screens for sensing and obtaining input from touch or swipe operations performed by the user at multiple points on one or more touch displays. Furthermore, when the system includes multiple terminals, multiple servers, and multiple networks, different terminals can connect to each other through different networks and different servers. The network can be a wireless network or a wired network, such as a wireless local area network (WLAN), local area network (LAN), cellular network, 2G network, 3G network, 4G network, 5G network, etc. Additionally, different terminals can also connect to other terminals or servers using their own Bluetooth networks or hotspot networks.

[0035] The computer device can acquire a target virtual garment for image adjustment of the virtual model to be processed; then, based on the target virtual garment, determine the target body part on the virtual model to be processed that corresponds to the target virtual garment; next, acquire a target mask map of the target body part, wherein the target mask map is used to mask the virtual model corresponding to the target body part determined by the target virtual garment on the virtual model to be processed; then, use the target mask map to mask the virtual model corresponding to the target body part on the virtual model to be processed to obtain a processed virtual model; finally, add the target virtual garment to the processed virtual model to generate the target virtual model.

[0036] It should be noted that, Figure 1 The schematic diagram of the virtual model processing system shown is merely an example. The virtual model processing system and scenario described in this application embodiment are for the purpose of more clearly illustrating the technical solutions of this application embodiment and do not constitute a limitation on the technical solutions provided in this application embodiment. As those skilled in the art will know, with the evolution of virtual model processing systems and the emergence of new business scenarios, the technical solutions provided in this application embodiment are also applicable to similar technical problems.

[0037] This application provides a method, apparatus, computer device, and storage medium for processing virtual models. The virtual model processing method can be used with terminals such as smartphones, tablets, laptops, or personal computers. The following provides a detailed description of the virtual model processing method, apparatus, computer device, and storage medium. It should be noted that the order of description of the following embodiments is not intended to limit the preferred order of the embodiments.

[0038] Please see Figure 2 , Figure 2 A flowchart illustrating a virtual model processing method provided in this application embodiment is shown. The specific process can be summarized in steps 101 to 105 as follows:

[0039] 101. Obtain the target virtual clothing for image adjustment of the virtual model to be processed.

[0040] The virtual model to be processed in this application embodiment can be a virtual character model, which can be a virtual human character model or a virtual animal model. The virtual character model in this application embodiment may include a virtual torso model and a virtual hair model. The target virtual clothing may include a virtual hat model, a virtual clothes model, and a virtual pants model. In this application embodiment, the target virtual clothing may be a virtual hat model. For example, please refer to... Figure 3 The computer device can provide a graphical user interface (GUI) to display the virtual model to be processed and the target virtual clothing. Specifically, in this embodiment, a virtual character model can be displayed on the GUI as the virtual model to be processed, and a virtual hat model can be displayed on the GUI as the target virtual clothing. The virtual character model includes a virtual torso model and a virtual hair model, and the virtual hat model is set at the corresponding position of the virtual hair model of the virtual model to be processed.

[0041] In this embodiment, both the virtual model to be processed and the target virtual clothing are game virtual models. A game virtual model is a model that simulates real-world objects and runs within game software. Game virtual models can be designed by designers and include scene models, building models, game character models, and game clothing models, etc. Game virtual models can include attribute data such as skeletal data, skinning data, and physical colliders.

[0042] 102. Based on the target virtual clothing, determine the target body part on the virtual model to be processed that corresponds to the target virtual clothing.

[0043] In order to process the virtual model according to the size of the virtual clothing, after the step "determine the target body part corresponding to the target virtual clothing on the virtual model to be processed", the method may include:

[0044] Obtain the clothing mask texture corresponding to the target virtual clothing;

[0045] Using the clothing masking texture, the virtual model corresponding to the target body part on the virtual model to be processed is masked to obtain the processed virtual model;

[0046] Add the target virtual clothing to the processed virtual model to generate the target virtual model.

[0047] For example, in this embodiment of the application, game developers can generate a clothing mask texture corresponding to the target virtual clothing based on the size information of the target virtual clothing. Then, when the player sets the target virtual clothing on the virtual model to be processed, the computer device can use the clothing mask texture to delete the virtual model corresponding to the target body part on the virtual model to be processed, thereby obtaining the processed virtual model. This deletes part of the virtual model to be processed within the area of ​​the clothing mask texture, so as to avoid the interweaving between models and ensure that the virtual model to be processed can be displayed normally after wearing the target virtual clothing.

[0048] 103. Obtain the target mask texture of the target body part, wherein the target mask texture is used to mask the virtual model corresponding to the target body part determined on the virtual model to be processed by the target virtual clothing.

[0049] In this context, the target mask texture, also known as a mask, is the outer part of the selection box. The mask protects the selected area, preventing manipulation there, while applying operations to the non-selected, non-masked areas. The areas covered by the mask are the parts that remain unaffected when editing the selection and need to be visible on the layer. The protected area of ​​the mask is completely transparent, while the selected area is opaque, with gray ranging in between. In other words, this shape mask layer includes a specified shape's display area and a masking area. The specified shape's display area is used to partially display the source image, while the masking area is used to obscure the portion of the source image that extends beyond the specified shape.

[0050] To prevent clipping issues when players dress up the virtual model with the target virtual clothing, the method may include the following steps before "obtaining the target mask texture of the target body part":

[0051] Based on the target virtual clothing and the corresponding virtual body model, a target mask texture is generated, wherein the virtual body model is the virtual model corresponding to the target body part determined by the target virtual clothing on the virtual model to be processed.

[0052] Furthermore, the method for the step "generating a target mask texture based on the target virtual clothing and the corresponding virtual body model of the target virtual clothing" may include:

[0053] Obtain a preset mask, wherein the size of the preset mask is the same as the size of the target virtual clothing;

[0054] A target mask texture is generated based on the preset mask body and the virtual body model.

[0055] Specifically, the method for the step "generating a target mask texture based on the preset mask body and the virtual body model" may include:

[0056] Obtain the size parameters of the virtual body model;

[0057] The size parameters of the preset mask body are adjusted based on the size parameters of the virtual body model to obtain the adjusted mask body;

[0058] Based on the adjusted mask, a target clipping model is determined on the virtual model to be processed;

[0059] A target mask texture is generated based on the target clipping model.

[0060] In one specific embodiment, the method for step "generating a target mask texture based on the target clipping model" may include:

[0061] Obtain the target position and target region size of the target cropping model on the virtual model to be processed;

[0062] A target mask texture is generated based on the target position of the target clipping model and the size of the model region of the target clipping model.

[0063] For example, please refer to the following: Figure 4 and Figure 5 The computer device can acquire a preset mask body, whose size and shape parameters are identical to those of the target virtual clothing. Then, it can acquire the size parameters of the virtual body model, i.e., the size parameters of the virtual hair model, and adjust the size parameters of the preset mask body based on the size parameters of the virtual hair model to obtain an adjusted mask body. Next, the computer device can determine a target cropping model on the virtual hair model based on the adjusted mask body, and generate a target mask texture based on the target cropping model.

[0064] 104. Using the target mask texture, mask the virtual model corresponding to the target body part on the virtual model to be processed to obtain the processed virtual model.

[0065] In one specific embodiment, the method for "using the target mask texture to perform masking processing on the virtual model corresponding to the target body part on the virtual model to be processed, to obtain the processed virtual model" may include:

[0066] Based on the target mask texture, a virtual body model corresponding to the target body part is determined on the virtual model to be processed;

[0067] The virtual body model on the virtual model to be processed is removed to obtain the processed virtual model.

[0068] In this embodiment of the application, the computer device can determine the virtual body model corresponding to the target body part on the virtual model to be processed based on the target mask texture, and then delete the virtual body model from the virtual model to be processed to obtain the processed virtual model, thereby avoiding the intermingling of models.

[0069] 105. Add the target virtual clothing to the processed virtual model to generate the target virtual model.

[0070] To prevent the virtual model from clipping out again during movement, after the step "adding the target virtual clothing to the processed virtual model to generate the target virtual model", the method may include:

[0071] In response to a model motion command for the target virtual model, the positional relationship between the target virtual model and the target mask texture is determined;

[0072] Based on the positional relationship, the target virtual model is masked to obtain a new target virtual model.

[0073] Specifically, the method for the step "masking the target virtual model based on the positional relationship to obtain a new target virtual model" may include:

[0074] Determine whether there is a new virtual model located in the target mask texture on the target virtual model;

[0075] If so, the new virtual model located in the target mask texture will be removed to obtain a new target virtual model.

[0076] In one specific embodiment, a player can generate model motion commands by performing touch operations on the display screen, thereby controlling the target virtual model to perform actions specified by the player. The computer device can respond to the model motion commands for the target virtual model and determine the positional relationship between the target virtual model and the target mask texture. Specifically, the computer device can determine whether there is a new virtual model on the target virtual model located in the target mask texture. If so, the new virtual model located in the target mask texture is removed to obtain a new target virtual model, thereby avoiding the intermingling of models.

[0077] This application addresses the characteristic that cartoon models typically use watertight sealed geometry to represent fashion items. It proposes using constructed geometry (CSG) to calculate deformation models as runtime loading data, with the sealed geometry surface as the basic unit for geometric deformation control. The sealed geometry provided in this application can be a watertight sealed geometry, which is a closed cube. The advantages of this method are: batch processing capability, solving the occlusion and clipping problem under various fashion item combinations; verifiability, as geometry created in static scenes, after verification, does not produce significant clipping even under various cartoon model movements during game runtime; low resource consumption, as the data-intensive computation of this solution is integrated into the asset creation stage, suitable for moving objects, and all clipping operations are performed on the object surface, effectively reducing clipping caused by relative positional movement. For runtime, only pre-calculated geometric surface data needs to be sampled for geometric processing, and this virtual model processing method uses mobile GPUs for computation, requiring minimal runtime resources.

[0078] In summary, this application provides a method for processing virtual models. The method involves obtaining a target virtual garment for adjusting the appearance of the virtual model to be processed; then, based on the target virtual garment, determining the target body part corresponding to the target virtual garment on the virtual model to be processed; next, obtaining a target masking map of the target body part, wherein the target masking map is used to mask the virtual model corresponding to the target body part determined by the target virtual garment on the virtual model to be processed; then, using the target masking map, masking processing is performed on the virtual model corresponding to the target body part on the virtual model to be processed to obtain a processed virtual model; finally, the target virtual garment is added to the processed virtual model to generate the target virtual model. This application expands the spatial range of the masking body according to the required occluded virtual model area before cropping the virtual model to calculate the portion of the virtual model that needs to be hidden. Then, a corresponding target masking map is generated based on this portion of the virtual model. Finally, the target masking map is used to remove the portion of the virtual model that needs to be cropped, thereby avoiding the interleaving problem between models and improving the display effect and efficiency of virtual resources.

[0079] Based on the above description, the following examples will further illustrate the virtual model processing method of this application. For instance, a specific embodiment of the virtual model processing method is as follows:

[0080] (1) Game developers can use computer devices to construct geometry to generate geometric masking models. Specifically, game developers can use a binary spatial partition tree (BSP) data structure to construct geometry (CSG) to complete the triangulation of the space of occluded objects. In the constructed geometry provided in this application embodiment, virtual model patches (virtual geometric meshes) can be used as partitioning surfaces of the BSP tree. For each partitioning surface, the primitives intersecting with it are stored in the node structure. This stored information will be reproduced after the spatial partitioning relationship is calculated for triangulation. Furthermore, in the construction of the BSP tree, since the geometric fragments of the virtual model are used as partitioning surfaces, these surfaces also have normal direction information. This normal direction information allows the BSP tree to implicitly include the distinction between the "inside" and "outside" of the spatial partition. For example, please refer to... Figure 6 Taking a two-dimensional space as an example, a square grid divides the space into 9 parts. A BSP tree is built according to this grid model. The front of the normal direction is defined as the left node and the back is defined as the right node. Then the rightmost node of the BSP tree is the internal space of the model, that is, the rightmost node. The right node of node d is the internal space represented by the quadrilateral.

[0081] (2) After dividing the space using geometric fragments of the virtual model, game developers can define a clipping operation. The input to the clipping operation is represented as: the object to be masked, A (e.g., a virtual clothing model), and the object to be masked, B (e.g., a virtual character model). The output is: all the objects to be masked within the shape of the masking object. This embodiment of the application, by applying the clipping operation, can retain the geometric entities that need to be masked. Specifically, the clipping operation first needs to establish a BSP tree for the masking object A and the object to be masked B, and record the geometric combinations that intersect at each cross-section. Then, in the clipping operation, the BSP tree represented by A is recursively used to split all the geometric polygons of B. The split model is the part of the object to be clipped from the masked object. After clipping the masked object B by the clipping object A, the `back` array stored in the rightmost node (i.e., the inner node) of the clipping object's BSP mesh tree is the remaining geometric topology structure after the clipping object clips the masked object. Here, the rightmost node represents the inner part of the space, which in this embodiment represents the inner part of the masking object A. The specific implementation code is shown below:

[0082] / / Split a polygon of a geometric object, either into the polygon array to the left of the BSP node, or into the polygon array to the right of the BSP node. void SplitPolygon(PolygonPolygon,

[0083] BSPNode node,List <polygon>front,List <polygon>back)

[0084] {

[0085] switch(PolygonType(Polygon,node.plane))

[0086] {

[0087] case Front:front.Add(Polygon);break;

[0088] case Back:back.Add(Polygon);break;

[0089] case Spanning:

[0090] foreach Vertex v in Polygon

[0091] {

[0092] List <vertex>f=new List&tt;Vertex>();List <vertex>b=new List <vertex>();

[0093] verttex vi=next vertex in Polygon

[0094] ti = PolygonType(vi)

[0095] if (ti != Back) f.Add(vi);

[0096] if(ti!=Front)b.Add(vi); if((ti|tj)==Spanning)

[0097] {

[0098] vertex v=vvi&node.plane / / v=intersection vertex of vvi and the node's plane f.Add(v); b.Add(v);

[0099] }

[0100] front.Add(Polygon(f)); back.Add(Polygon(b));

[0101] }

[0102] }

[0103] }

[0104] (3) Game developers can use computer equipment to bake mask surfaces using geometric model masking. Specifically, the faces that need to be cut out inside a virtual model can be cut out. To represent the areas that need to be excluded in actual use, an enlarged mask model is used as a geometric proxy Imposter to represent the range that the mask model can move to. This Imposter represents the possible mask range. The advantages of this method are: the method is controllable, the mask area can be customized by controlling the size of the shape, and it is easy to create, as modeling can be used during creation. For example, in normal cases, virtual hair accessory models often clip through virtual hair models. In this case, game developers can construct a geometric proxy Imposter for the virtual hair accessory model. This geometric proxy Imposter represents the spatial range of all areas of the virtual hair model that need to be cut by the virtual hair accessory, and it needs to be a closed geometric entity. Then, using the cutting operation introduced in the previous step, the geometric model parts that need to be cut can be obtained.

[0105] (4) Game developers can use mask textures as control units via computer devices. Specifically, in this embodiment, a closed geometry can be used as the basic unit for modeling. Due to its watertightness, a surface is used instead of solid models as the control unit to prevent self-crossing. This way, even if relative displacement deviations occur within the range of motion of the cartoon model, they will not be particularly noticeable. In this embodiment, by using a closed geometry as the topological structure for modeling, even if relative displacement occurs when the shape above is erased, only surface-level clipping will occur at the implementation location. In practice, because the vertex information of the cartoon model itself has a correspondence between geometric position and surface position, when the position changes, the position is clipped, and the surface UV information is also clipped. Thus, by drawing the layout according to the UV information of the clipped model, the mask representation of the clipped model on the geometric surface can be obtained. For example, please refer to... Figure 7 Figure (a) shows an overlap between the masked model (e.g., a virtual character model) and the masking model (e.g., a virtual clothing model). Figure (b) shows a method of generating clipped models using constructed geometry, which resolves this overlap under certain actions, i.e., by erasing the geometry on the blue area. Figure (c) shows that under motion-driven conditions, the masked model (e.g., the virtual character model) and the masking model (e.g., the virtual clothing model) have relative displacement. If a volume is used as the control unit, after deformation and topology reverting to the geometry, the virtual character model will still be largely exposed on the virtual clothing model, resulting in obvious model overlap. However, in this solution, as shown in Figure (d), if a geometric surface is used as the control unit, because we use a closed geometry as the modeling topology, even if relative displacement occurs when the shape on top is erased, only surface-level clipping occurs at the implementation point, while the geometric shape at the dashed point will not exhibit clipping because there is no geometry there.

[0106] In this embodiment, the computer device first determines a masking model A and a masked model B. Based on the shape and size of the masking model A, an artist constructs a masking enlargement model with a specified shape and size. Then, the computer device uses this masking enlargement model to mask the masked model B, deleting the areas of the masked model B that are obscured by the masking enlargement model. Furthermore, the masking enlargement model can move according to the movement of the masking model A. When it is detected that an area of ​​the masked model B continues to move into the range of the masking enlargement model, the area of ​​the masking model A that falls into the masking enlargement model is further deleted.

[0107] In another embodiment, the computer device can first determine the virtual hair models of the virtual hat model and the virtual character model. Then, based on the clipping range of the virtual hair models, it identifies which areas of the virtual hair models need to be culled. Next, a mask augmentation is created based on the identified areas of the local virtual hair models. The computer device can use this mask augmentation and the virtual hair models to generate clipped hair geometry and store the surface of the clipped hair geometry in mask format. When the player plays the game, this mask can be loaded onto the virtual hair model to cull the identified areas. At this time, when the virtual character model wears the virtual hat model, no clipping phenomenon will occur. Here, the mask augmentation represents all possible clipping areas. During processing, it is not necessary to process only one virtual hair model and virtual hat model, but rather to process the spatial regions of all possible clipping virtual hair models. The mask augmentation index is a region, so a simplified model can be used. Furthermore, a corresponding mask texture surface is generated for the virtual models that need to be clipped to cull the clipping areas on the virtual models.

[0108] In summary, this application provides a method for processing virtual models. The method involves obtaining a target virtual garment for adjusting the appearance of the virtual model to be processed; then, based on the target virtual garment, determining the target body part corresponding to the target virtual garment on the virtual model to be processed; next, obtaining a target masking map of the target body part, wherein the target masking map is used to mask the virtual model corresponding to the target body part determined by the target virtual garment on the virtual model to be processed; then, using the target masking map, masking processing is performed on the virtual model corresponding to the target body part on the virtual model to be processed to obtain a processed virtual model; finally, the target virtual garment is added to the processed virtual model to generate the target virtual model. This application expands the spatial range of the masking body according to the required occluded virtual model area before cropping the virtual model to calculate the portion of the virtual model that needs to be hidden. Then, a corresponding target masking map is generated based on this portion of the virtual model. Finally, the target masking map is used to remove the portion of the virtual model that needs to be cropped, thereby avoiding the interleaving problem between models and improving the display effect and efficiency of virtual resources.

[0109] To better implement the above methods, embodiments of this application may also provide a virtual model processing device, which may be integrated into a computer device, such as a terminal or other computer device.

[0110] Please see Figure 8 , Figure 8 This application provides a schematic diagram of the structure of a virtual model processing device, which includes:

[0111] The first acquisition unit 201 is used to acquire the target virtual clothing for image adjustment of the virtual model to be processed.

[0112] The determining unit 202 is used to determine, based on the target virtual clothing, a target body part on the virtual model to be processed that corresponds to the target virtual clothing;

[0113] The second acquisition unit 203 is used to acquire the target mask texture of the target body part, wherein the target mask texture is used to mask the virtual model corresponding to the target body part determined on the virtual model to be processed by the target virtual clothing;

[0114] Processing unit 204 is used to perform masking processing on the virtual model corresponding to the target body part on the virtual model to be processed using the target mask texture, so as to obtain the processed virtual model.

[0115] The generation unit 205 is used to add the target virtual clothing to the processed virtual model to generate the target virtual model.

[0116] In some embodiments, the processing apparatus for the virtual model includes:

[0117] The first determining subunit is used to determine the virtual body model corresponding to the target body part on the virtual model to be processed based on the target mask texture.

[0118] The first processing subunit is used to remove the virtual body model from the virtual model to be processed, so as to obtain the processed virtual model.

[0119] In some embodiments, the processing apparatus for the virtual model includes:

[0120] The second determining subunit is used to determine the positional relationship between the target virtual model and the target mask texture in response to a model motion command for the target virtual model.

[0121] The second processing subunit is used to perform masking processing on the target virtual model based on the positional relationship to obtain a new target virtual model.

[0122] In some embodiments, the processing apparatus for the virtual model includes:

[0123] The third determining subunit is used to determine whether there is a new virtual model located in the target mask texture on the target virtual model;

[0124] The third processing subunit is used to remove the new virtual model located in the target mask texture if the condition is met, so as to obtain a new target virtual model.

[0125] In some embodiments, the processing apparatus for the virtual model includes:

[0126] The first generation subunit is used to generate a target mask texture based on the target virtual clothing and the virtual body model corresponding to the target virtual clothing, wherein the virtual body model is the virtual model corresponding to the target body part determined by the target virtual clothing on the virtual model to be processed.

[0127] In some embodiments, the processing apparatus for the virtual model includes:

[0128] The first acquisition subunit is used to acquire a preset mask body, wherein the size of the preset mask body is the same as the size of the target virtual clothing;

[0129] The second generation subunit is used to generate a target mask texture based on the preset mask body and the virtual body model.

[0130] In some embodiments, the processing apparatus for the virtual model includes:

[0131] The second acquisition subunit is used to acquire the size parameters of the virtual body model;

[0132] An adjustment subunit is used to adjust the size parameters of the preset mask body based on the size parameters of the virtual body model to obtain the adjusted mask body;

[0133] The fourth determining subunit is used to determine the target clipping model on the virtual model to be processed based on the adjusted mask body;

[0134] The third generation subunit is used to generate a target mask texture based on the target clipping model.

[0135] In some embodiments, the processing apparatus for the virtual model includes:

[0136] The third acquisition subunit is used to acquire the target position and target region size of the target cropping model on the virtual model to be processed;

[0137] The fourth generation subunit is used to generate a target mask texture based on the target position of the target clipping model and the model region size of the target clipping model.

[0138] In some embodiments, the processing apparatus for the virtual model includes:

[0139] The fourth acquisition subunit is used to acquire the clothing mask texture corresponding to the target virtual clothing;

[0140] The fourth processing subunit is used to apply the clothing masking texture to mask the virtual model corresponding to the target body part on the virtual model to be processed, so as to obtain the processed virtual model.

[0141] The fifth generation subunit is used to add the target virtual clothing to the processed virtual model to generate the target virtual model.

[0142] This application discloses a virtual model processing device. A first acquisition unit 201 acquires a target virtual garment for image adjustment of the virtual model to be processed; a determination unit 202, based on the target virtual garment, determines a target body part on the virtual model to be processed that corresponds to the target virtual garment; a second acquisition unit 203 acquires a target masking map of the target body part, wherein the target masking map is used to mask the virtual model corresponding to the target body part determined on the virtual model to be processed; a processing unit 204 uses the target masking map to mask the virtual model corresponding to the target body part on the virtual model to be processed, obtaining a processed virtual model; and a generation unit 205 adds the target virtual garment to the processed virtual model to generate the target virtual model. This application embodiment expands the spatial range of the mask body according to the required occluded virtual model area and then clips the virtual model to calculate the part of the virtual model that needs to be hidden. Then, a corresponding target mask map is generated based on the part of the virtual model. Finally, the part of the virtual model that needs to be clipped is removed using the target mask map, thereby avoiding the problem of interweaving between models and improving the display effect and display efficiency of virtual resources.

[0143] Accordingly, this application also provides a computer device, which can be a terminal or a server. The terminal can be a smartphone, tablet computer, laptop computer, touch screen, game console, personal computer (PC), personal digital assistant (PDA), or other terminal device. Figure 9 As shown, Figure 9 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application. The computer device 300 includes a processor 301 with one or more processing cores, a memory 302 with one or more computer-readable storage media, and a computer program stored in the memory 302 and executable on the processor. The processor 301 and the memory 302 are electrically connected. Those skilled in the art will understand that the computer device structure shown in the figure does not constitute a limitation on the computer device, and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0144] The processor 301 is the control center of the computer device 300. It connects various parts of the computer device 300 through various interfaces and lines. By running or loading software programs and / or modules stored in the memory 302, and calling data stored in the memory 302, it performs various functions of the computer device 300 and processes data, thereby monitoring the computer device 300 as a whole.

[0145] In this embodiment, the processor 301 in the computer device 300 loads the instructions corresponding to the processes of one or more applications into the memory 302 according to the following steps, and the processor 301 runs the applications stored in the memory 302 to achieve various functions:

[0146] Obtain the target virtual clothing for adjusting the appearance of the virtual model to be processed;

[0147] Based on the target virtual clothing, determine the target body part on the virtual model to be processed that corresponds to the target virtual clothing;

[0148] Obtain a target mask texture of the target body part, wherein the target mask texture is used to mask the virtual model corresponding to the target body part determined on the virtual model to be processed by the target virtual clothing;

[0149] Using the target mask texture, the virtual model corresponding to the target body part on the virtual model to be processed is masked to obtain the processed virtual model;

[0150] Add the target virtual clothing to the processed virtual model to generate the target virtual model.

[0151] In one embodiment, the step of using the target mask texture to perform masking processing on the virtual model corresponding to the target body part on the virtual model to be processed, to obtain the processed virtual model, includes:

[0152] Based on the target mask texture, a virtual body model corresponding to the target body part is determined on the virtual model to be processed;

[0153] The virtual body model on the virtual model to be processed is removed to obtain the processed virtual model.

[0154] In one embodiment, after adding the target virtual clothing to the processed virtual model and generating the target virtual model, the method further includes:

[0155] In response to a model motion command for the target virtual model, the positional relationship between the target virtual model and the target mask texture is determined;

[0156] Based on the positional relationship, the target virtual model is masked to obtain a new target virtual model.

[0157] In one embodiment, the step of masking the target virtual model based on the positional relationship to obtain a new target virtual model includes:

[0158] Determine whether there is a new virtual model located in the target mask texture on the target virtual model;

[0159] If so, the new virtual model located in the target mask texture will be removed to obtain a new target virtual model.

[0160] In one embodiment, before obtaining the target mask texture of the target body part, the method further includes:

[0161] Based on the target virtual clothing and the corresponding virtual body model, a target mask texture is generated, wherein the virtual body model is the virtual model corresponding to the target body part determined by the target virtual clothing on the virtual model to be processed.

[0162] In one embodiment, generating a target mask texture based on the target virtual clothing and the corresponding virtual body model includes:

[0163] Obtain a preset mask, wherein the size of the preset mask is the same as the size of the target virtual clothing;

[0164] A target mask texture is generated based on the preset mask body and the virtual body model.

[0165] In one embodiment, generating a target mask texture based on the preset mask body and the virtual body model includes:

[0166] Obtain the size parameters of the virtual body model;

[0167] The size parameters of the preset mask body are adjusted based on the size parameters of the virtual body model to obtain the adjusted mask body;

[0168] Based on the adjusted mask, a target clipping model is determined on the virtual model to be processed;

[0169] A target mask texture is generated based on the target clipping model.

[0170] In one embodiment, generating a target mask texture based on the target clipping model includes:

[0171] Obtain the target position and target region size of the target cropping model on the virtual model to be processed;

[0172] A target mask texture is generated based on the target position of the target clipping model and the size of the model region of the target clipping model.

[0173] In one embodiment, after determining the target body part corresponding to the target virtual clothing on the virtual model to be processed, based on the target virtual clothing, the method further includes:

[0174] Obtain the clothing mask texture corresponding to the target virtual clothing;

[0175] Using the clothing masking texture, the virtual model corresponding to the target body part on the virtual model to be processed is masked to obtain the processed virtual model;

[0176] Add the target virtual clothing to the processed virtual model to generate the target virtual model.

[0177] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.

[0178] Optional, such as Figure 9 As shown, the computer device 300 also includes: a touch screen display 303, a radio frequency circuit 304, an audio circuit 305, an input unit 306, and a power supply 307. The processor 301 is electrically connected to the touch screen display 303, the radio frequency circuit 304, the audio circuit 305, the input unit 306, and the power supply 307. Those skilled in the art will understand that... Figure 9 The computer device structure shown does not constitute a limitation on the computer device and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0179] The touch display screen 303 can be used to display a graphical user interface (GUI) and receive operation commands generated by the user interacting with the GUI. The touch display screen 303 may include a display panel and a touch panel. The display panel can be used to display information input by the user or information provided to the user, as well as various graphical user interfaces of the computer device. These graphical user interfaces can be composed of graphics, text, icons, video, and any combination thereof. Optionally, the display panel can be configured using a liquid crystal display (LCD), organic light-emitting diode (OLED), or other similar technologies. The touch panel can be used to collect touch operations performed by the user on or near it (such as operations performed by the user using a finger, stylus, or any suitable object or accessory on or near the touch panel), generate corresponding operation commands, and execute the corresponding program according to the operation commands. Optionally, the touch panel may include two parts: a touch detection device and a touch controller. The touch detection device detects the user's touch location and the signal generated by the touch operation, transmitting the signal to the touch controller. The touch controller receives touch information from the touch detection device, converts it into touch point coordinates, and sends it to the processor 301. It can also receive and execute commands from the processor 301. The touch panel can cover the display panel. When the touch panel detects a touch operation on or near it, it transmits the information to the processor 301 to determine the type of touch event. Subsequently, the processor 301 provides corresponding visual output on the display panel based on the type of touch event. In this embodiment, the touch panel and the display panel can be integrated into the touch display screen 303 to achieve input and output functions. However, in some embodiments, the touch panel and the touch display screen 303 can be implemented as two independent components to achieve input and output functions. That is, the touch display screen 303 can also be used as part of the input unit 306 to achieve input functions.

[0180] In this embodiment, a processor 301 executes an application to generate a graphical interface on a touch display screen 303. The touch display screen 303 is used to present the graphical interface and receive user commands generated by the graphical interface.

[0181] The radio frequency circuit 304 can be used to transmit and receive radio frequency signals to establish wireless communication with network devices or other computer devices, and to transmit and receive signals with network devices or other computer devices.

[0182] Audio circuitry 305 can be used to provide an audio interface between a user and a computer device via a speaker and a microphone. Audio circuitry 305 converts received audio data into electrical signals, transmits them to the speaker, and the speaker converts them into sound signals for output. Conversely, the microphone converts collected sound signals into electrical signals, which are then received by audio circuitry 305, converted back into audio data, and output to processor 301 for processing. The audio data is then transmitted via radio frequency circuitry 304 to, for example, another computer device, or output to memory 302 for further processing. Audio circuitry 305 may also include an earphone jack to facilitate communication between peripheral headphones and the computer device.

[0183] The input unit 306 can be used to receive input numbers, characters, or user characteristic information (such as fingerprints, iris, facial information, etc.), and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control.

[0184] Power supply 307 is used to supply power to various components of computer device 300. Optionally, power supply 307 can be logically connected to processor 301 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system. Power supply 307 may also include one or more DC or AC power supplies, recharging systems, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components.

[0185] although Figure 9 As not shown in the diagram, computer equipment 300 may also include a camera, sensor, wireless fidelity module, Bluetooth module, etc., which will not be described in detail here.

[0186] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.

[0187] As can be seen from the above, the computer device provided in this embodiment obtains a target virtual garment for image adjustment of the virtual model to be processed; then, based on the target virtual garment, it determines the target body part on the virtual model to be processed that corresponds to the target virtual garment; next, it obtains a target masking map of the target body part, wherein the target masking map is used to mask the virtual model corresponding to the target body part determined on the virtual model to be processed by the target virtual garment; then, it uses the target masking map to mask the virtual model corresponding to the target body part on the virtual model to be processed, obtaining a processed virtual model; finally, it adds the target virtual garment to the processed virtual model to generate the target virtual model. This embodiment expands the spatial range of the masking body according to the required area of ​​the masked virtual model before cropping the virtual model to calculate the part of the virtual model that needs to be hidden, then generates a corresponding target masking map based on the part of the virtual model, and finally uses the target masking map to remove the part of the virtual model that needs to be cropped, thereby avoiding the interleaving problem between models and improving the display effect and display efficiency of virtual resources.

[0188] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be performed by instructions, or by instructions controlling related hardware. These instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.

[0189] Therefore, embodiments of this application provide a computer-readable storage medium storing a plurality of computer programs that can be loaded by a processor to execute steps in any of the virtual model processing methods provided in embodiments of this application. For example, the computer program can execute the following steps:

[0190] Obtain the target virtual clothing for adjusting the appearance of the virtual model to be processed;

[0191] Based on the target virtual clothing, determine the target body part on the virtual model to be processed that corresponds to the target virtual clothing;

[0192] Obtain a target mask texture of the target body part, wherein the target mask texture is used to mask the virtual model corresponding to the target body part determined on the virtual model to be processed by the target virtual clothing;

[0193] Using the target mask texture, the virtual model corresponding to the target body part on the virtual model to be processed is masked to obtain the processed virtual model;

[0194] Add the target virtual clothing to the processed virtual model to generate the target virtual model.

[0195] In one embodiment, the step of using the target mask texture to perform masking processing on the virtual model corresponding to the target body part on the virtual model to be processed, to obtain the processed virtual model, includes:

[0196] Based on the target mask texture, a virtual body model corresponding to the target body part is determined on the virtual model to be processed;

[0197] The virtual body model on the virtual model to be processed is removed to obtain the processed virtual model.

[0198] In one embodiment, after adding the target virtual clothing to the processed virtual model and generating the target virtual model, the method further includes:

[0199] In response to a model motion command for the target virtual model, the positional relationship between the target virtual model and the target mask texture is determined;

[0200] Based on the positional relationship, the target virtual model is masked to obtain a new target virtual model.

[0201] In one embodiment, the step of masking the target virtual model based on the positional relationship to obtain a new target virtual model includes:

[0202] Determine whether there is a new virtual model located in the target mask texture on the target virtual model;

[0203] If so, the new virtual model located in the target mask texture will be removed to obtain a new target virtual model.

[0204] In one embodiment, before obtaining the target mask texture of the target body part, the method further includes:

[0205] Based on the target virtual clothing and the corresponding virtual body model, a target mask texture is generated, wherein the virtual body model is the virtual model corresponding to the target body part determined by the target virtual clothing on the virtual model to be processed.

[0206] In one embodiment, generating a target mask texture based on the target virtual clothing and the corresponding virtual body model includes:

[0207] Obtain a preset mask, wherein the size of the preset mask is the same as the size of the target virtual clothing;

[0208] A target mask texture is generated based on the preset mask body and the virtual body model.

[0209] In one embodiment, generating a target mask texture based on the preset mask body and the virtual body model includes:

[0210] Obtain the size parameters of the virtual body model;

[0211] The size parameters of the preset mask body are adjusted based on the size parameters of the virtual body model to obtain the adjusted mask body;

[0212] Based on the adjusted mask, a target clipping model is determined on the virtual model to be processed;

[0213] A target mask texture is generated based on the target clipping model.

[0214] In one embodiment, generating a target mask texture based on the target clipping model includes:

[0215] Obtain the target position and target region size of the target cropping model on the virtual model to be processed;

[0216] A target mask texture is generated based on the target position of the target clipping model and the size of the model region of the target clipping model.

[0217] In one embodiment, after determining the target body part corresponding to the target virtual clothing on the virtual model to be processed, based on the target virtual clothing, the method further includes:

[0218] Obtain the clothing mask texture corresponding to the target virtual clothing;

[0219] Using the clothing masking texture, the virtual model corresponding to the target body part on the virtual model to be processed is masked to obtain the processed virtual model;

[0220] Add the target virtual clothing to the processed virtual model to generate the target virtual model.

[0221] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.

[0222] The storage medium may include: read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.

[0223] Since the computer program stored in the storage medium can execute the steps of any of the virtual model processing methods provided in the embodiments of this application, it obtains a target virtual garment for image adjustment of the virtual model to be processed; then, based on the target virtual garment, it determines a target body part on the virtual model to be processed that corresponds to the target virtual garment; next, it obtains a target masking map of the target body part, wherein the target masking map is used to mask the virtual model corresponding to the target body part determined on the virtual model to be processed by the target virtual garment; then, it uses the target masking map to mask the virtual model corresponding to the target body part on the virtual model to be processed to obtain a processed virtual model; finally, it adds the target virtual garment to the processed virtual model to generate the target virtual model. This application embodiment expands the spatial range of the mask body according to the required occluded virtual model area and then clips the virtual model to calculate the part of the virtual model that needs to be hidden. Then, a corresponding target mask map is generated based on the part of the virtual model. Finally, the part of the virtual model that needs to be clipped is removed using the target mask map, thereby avoiding the problem of interweaving between models and improving the display effect and display efficiency of virtual resources.

[0224] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.

[0225] The foregoing has provided a detailed description of a virtual model processing method, apparatus, computer device, and storage medium provided in the embodiments of this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the technical solutions and core ideas of this application. Those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. These modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.< / vertex> < / vertex> < / vertex> < / polygon> < / polygon>

Claims

1. A method of processing a virtual model, characterized by, include: Obtain the target virtual clothing for adjusting the appearance of the virtual model to be processed; Based on the target virtual clothing, determine the target body part on the virtual model to be processed that corresponds to the target virtual clothing; Obtain a target mask texture of the target body part, wherein the target mask texture is used to mask the virtual model corresponding to the target body part determined on the virtual model to be processed by the target virtual clothing; Using the target mask texture, the virtual model corresponding to the target body part on the virtual model to be processed is masked to obtain the processed virtual model; Add the target virtual clothing to the processed virtual model to generate the target virtual model; In response to a model motion command for the target virtual model, the positional relationship between the target virtual model and the target mask texture is determined; Based on the positional relationship, the target virtual model is masked to obtain a new target virtual model; Before obtaining the target mask texture of the target body part, the process also includes: Based on the target virtual clothing and the corresponding virtual body model, a target mask texture is generated. The virtual body model is the virtual model corresponding to the target body part determined by the target virtual clothing on the virtual model to be processed. The target mask texture is determined based on the part of the virtual model that needs to be hidden. The target mask texture is used to remove the part of the virtual model.

2. The method of claim 1, wherein, The step involves using the target mask texture to perform masking processing on the virtual model corresponding to the target body part on the virtual model to be processed, resulting in a processed virtual model, including: Based on the target mask texture, a virtual body model corresponding to the target body part is determined on the virtual model to be processed; The virtual body model on the virtual model to be processed is removed to obtain the processed virtual model.

3. The method of claim 1, wherein, The step of masking the target virtual model based on the positional relationship to obtain a new target virtual model includes: Determine whether there is a new virtual model located in the target mask texture on the target virtual model; If so, the new virtual model located in the target mask texture will be removed to obtain a new target virtual model.

4. The method of claim 1, wherein, The step of generating a target mask texture based on the target virtual clothing and the corresponding virtual body model includes: Obtain a preset mask, wherein the size of the preset mask is the same as the size of the target virtual clothing; A target mask texture is generated based on the preset mask body and the virtual body model.

5. The method of claim 4, wherein, The step of generating a target mask texture based on the preset mask body and the virtual body model includes: Obtain the size parameters of the virtual body model; The size parameters of the preset mask body are adjusted based on the size parameters of the virtual body model to obtain the adjusted mask body; Based on the adjusted mask, a target clipping model is determined on the virtual model to be processed; A target mask texture is generated based on the target clipping model.

6. The method of claim 5, wherein, The generation of the target mask texture based on the target cropping model includes: Obtain the target position and target region size of the target cropping model on the virtual model to be processed; A target mask texture is generated based on the target position of the target clipping model and the size of the model region of the target clipping model.

7. The method of claim 1, wherein, After determining the target body part corresponding to the target virtual clothing on the virtual model to be processed, based on the target virtual clothing, the process further includes: Obtain the clothing mask texture corresponding to the target virtual clothing; Using the clothing masking texture, the virtual model corresponding to the target body part on the virtual model to be processed is masked to obtain the processed virtual model; Add the target virtual clothing to the processed virtual model to generate the target virtual model.

8. A processing device of a virtual model, characterized by, include: The first acquisition unit is used to acquire the target virtual clothing for image adjustment of the virtual model to be processed. The determining unit is configured to determine, based on the target virtual clothing, a target body part on the virtual model to be processed that corresponds to the target virtual clothing; The second acquisition unit is used to acquire the target mask texture of the target body part, wherein the target mask texture is used to mask the virtual model corresponding to the target body part determined on the virtual model to be processed by the target virtual clothing; The processing unit is used to perform masking processing on the virtual model corresponding to the target body part on the virtual model to be processed using the target mask texture, so as to obtain the processed virtual model. A generation unit is used to add the target virtual clothing to the processed virtual model to generate the target virtual model; The second determining subunit is used to determine the positional relationship between the target virtual model and the target mask texture in response to a model motion command for the target virtual model. The second processing subunit is used to perform masking processing on the target virtual model based on the positional relationship to obtain a new target virtual model; The first generation subunit is used to generate a target mask texture based on the target virtual clothing and the virtual body model corresponding to the target virtual clothing. The virtual body model is the virtual model corresponding to the target body part determined by the target virtual clothing on the virtual model to be processed. The target mask texture is determined based on the part of the virtual model that needs to be hidden. The target mask texture is used to remove the part of the virtual model.

9. A computer device, comprising: It includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program, when executed by the processor, implements the processing method of the virtual model as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium, which, when executed by a processor, implements the processing method of the virtual model as described in any one of claims 1 to 7.