Model processing method, device, equipment, medium and program

By calculating the displacement of the joints and vertices of the 3D animation model and automatically determining the vertex weights, the low efficiency problem of the traditional method is solved, and efficient and accurate animation generation is achieved.

CN120707708APending Publication Date: 2025-09-26NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510824579.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-18
Publication Date
2025-09-26

AI Technical Summary

Technical Problem

The traditional skin weight transfer method of 3D animation models relies on linear interpolation algorithms, which leads to low efficiency and high labor costs, making it difficult to meet the needs of high-precision animation production.

Method used

By obtaining the motion matrix of the target character model, calculating the movement of the joints and the displacement of the vertices, the displacement weights of the vertices relative to the joints are automatically determined, and normalization is used to ensure that the total weight is one, thus avoiding tearing and deformation of the model.

Benefits of technology

It improves the efficiency of animation generation, ensures the physical accuracy of weight distribution, reduces manual adjustment time, and reduces labor costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120707708A_ABST
    Figure CN120707708A_ABST
Patent Text Reader

Abstract

The invention provides a model processing method and device, equipment, a medium and a program, and relates to the technical field of three-dimensional animation. The method comprises the steps of obtaining a motion matrix corresponding to a target joint of a target role model; calculating the movement amount of a target joint according to the motion matrix; obtaining the displacement amount of a target vertex of a target role model driven to move based on the movement amount of the target joint; and determining the displacement weight of the target vertex relative to the target joint according to the movement amount of the target joint and the displacement amount of the target vertex. Therefore, by automatically calculating the vertex weight, the animation generation efficiency is improved; and the physical accuracy of weight distribution is ensured by taking the displacement as a weight basis.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of three-dimensional animation technology, and in particular to a model processing method, device, equipment, medium and program. Background Art

[0002] With the rapid development of science and technology, users have higher and higher demands for 3D animation, from the initial "movement" to the current requirement of sufficient realism, which requires the production accuracy of 3D animation to be gradually improved.

[0003] In the field of 3D character animation, the skin weights of a 3D animation model define the degree to which the model's mesh vertices are controlled by skeletal joints, directly impacting the naturalness of the character's movement. Traditional methods (such as Maya's CopySkin Weights) rely on linear interpolation algorithms. However, in actual production, transferring weights between models with different topologies (such as low-poly and high-poly models, or different levels of detail) often requires artists to make vertex-by-vertex adjustments, resulting in low efficiency and high labor costs. Summary of the Invention

[0004] In view of this, embodiments of the present application provide a model processing method, apparatus, device, medium and program to solve problems such as low efficiency.

[0005] In a first aspect, an embodiment of the present application provides a model processing method, the method comprising:

[0006] Get the motion matrix corresponding to the target joint of the target character model;

[0007] Calculating the movement of the target joint according to the motion matrix;

[0008] Acquire a displacement of a target vertex of the target character model driven to move based on the movement of the target joint;

[0009] A displacement weight of the target vertex relative to the target joint is determined according to the movement amount of the target joint and the displacement amount of the target vertex.

[0010] In a second aspect, an embodiment of the present application provides a model processing device, the device comprising:

[0011] The first acquisition module is used to obtain the motion matrix corresponding to the target joint of the target character model;

[0012] A calculation module, configured to calculate the movement amount of the target joint according to the motion matrix;

[0013] A second acquisition module is used to acquire a displacement of a target vertex of the target character model driven to move based on the movement of the target joint;

[0014] A determination module is used to determine the displacement weight of the target vertex relative to the target joint according to the movement amount of the target joint and the displacement amount of the target vertex.

[0015] In a third aspect, an embodiment of the present application provides an electronic device comprising: a processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor. When the electronic device is running, the processor communicates with the storage medium through the bus, and the processor executes the machine-readable instructions to perform the steps of the model processing method as described in any one of the first aspects.

[0016] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the model processing method as described in any one of the first aspects are executed.

[0017] In a fifth aspect, an embodiment of the present application provides a computer program instruction, which is executed by a processor to perform the steps of the model processing method as described in any one of the first aspects.

[0018] Compared with the prior art, this application has the following beneficial effects:

[0019] This application provides a model processing method, apparatus, device, medium, and program. The method obtains a motion matrix corresponding to a target joint of a target character model; calculates the movement of the target joint based on the motion matrix; obtains the displacement of a target vertex of the target character model driven by the movement of the target joint; and determines the displacement weight of the target vertex relative to the target joint based on the movement of the target joint and the displacement of the target vertex. Thus, by automatically calculating vertex weights, animation generation efficiency is improved; and using displacement as the weight basis ensures the physical accuracy of weight distribution. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can be obtained based on these drawings without creative work.

[0021] Figure 1 A flow chart of a model processing method provided in an embodiment of the present application;

[0022] Figure 2 A flowchart of a method for determining the displacement weight of a target vertex relative to a target joint provided in an embodiment of the present application;

[0023] Figure 3 A schematic diagram of a basic role model and an agent model before movement provided in an embodiment of the present application;

[0024] Figure 4 A schematic diagram of a basic role model and an agent model after movement provided in an embodiment of the present application;

[0025] Figure 5 A flowchart of a method for calculating the movement amount of a target joint provided in an embodiment of the present application;

[0026] Figure 6 A flowchart of a method for calculating the displacement of a target vertex of a target character model provided by an embodiment of the present application;

[0027] Figure 7 A schematic diagram of a model processing device provided in an embodiment of the present application;

[0028] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.

[0029] Icons: 701 - first acquisition module, 702 - calculation module, 703 - second acquisition module, 704 - determination module, 801 - processor, 802 - storage medium, 803 - bus. DETAILED DESCRIPTION

[0030] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of this application.

[0031] In one embodiment of the present application, a model processing method can be run on a local terminal device or a server. When a model processing method is run on a server, the method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system includes a server and a client device.

[0032] Figure 1 This is a flow chart of a model processing method provided in an embodiment of the present application. Figure 1 As shown, the method includes:

[0033] S101. Obtain a motion matrix corresponding to a target joint of a target character model.

[0034] For example, the motion matrix is ​​bindPreMatrix. Each joint has a corresponding motion matrix.

[0035] S102. Calculate the movement amount of the target joint according to the motion matrix.

[0036] The motion matrix can be used to achieve virtual displacement of the target character model, avoiding actual joint movement. The target joint movement amount is calculated based on the virtual displacement.

[0037] S103 : Obtain the displacement of the target vertex of the target character model driven to move based on the movement of the target joint.

[0038] When a target joint moves, it also moves the vertices associated with it (target vertices). For example, when an elbow joint moves, multiple vertices on the arm where the elbow joint is located also move.

[0039] S104 : Determine the displacement weight of the target vertex relative to the target joint according to the movement amount of the target joint and the displacement amount of the target vertex.

[0040] When the target joint moves, the target vertex corresponding to the target joint also moves. Based on the movement of the target joint and the displacement of the target vertex, the displacement weight of the target vertex relative to the target joint can be obtained. There is no need to manually adjust the weights of the vertices corresponding to each joint.

[0041] Therefore, by automatically calculating vertex weights, the time of manual vertex adjustment is saved, which is especially suitable for complex characters or scenes that require rapid prototyping, saving labor costs and improving animation generation efficiency. Using displacement distance as the weight basis avoids the arbitrariness of subjective weight setting and ensures the physical accuracy of weight distribution.

[0042] In summary, in this embodiment, the motion matrix corresponding to the target joint of the target character model is obtained; the movement of the target joint is calculated based on the motion matrix; the displacement of the target vertex of the target character model, which is driven by the movement of the target joint, is obtained; and the displacement weight of the target vertex relative to the target joint is determined based on the movement of the target joint and the displacement of the target vertex. Thus, by automatically calculating vertex weights, animation generation efficiency is improved; and using displacement as the weighting basis ensures the physical accuracy of weight distribution.

[0043] In the above Figure 1 On the basis of the corresponding embodiment, in another embodiment of the present application, the method further includes:

[0044] The animation of the target character model is generated according to the displacement weights of each vertex of the target character model relative to each joint and the motion matrix corresponding to each joint.

[0045] For example, the setWeights function of the API in Maya software is used to attach the displacement weights of the vertices corresponding to each joint to the skin model corresponding to the target character model, so as to generate the animation of the target character model.

[0046] In summary, in this embodiment, the animation of the target character model is generated based on the displacement weights of each vertex of the target character model relative to each joint and the motion matrix corresponding to each joint. Thus, the animation of the target character model is generated efficiently.

[0047] In the above Figure 1 On the basis of the corresponding embodiment, the embodiment of the present application further provides a method for determining the displacement weight of a target vertex relative to a target joint. Figure 2 Schematic diagram of a flow chart of a method for determining the displacement weight of a target vertex relative to a target joint provided in an embodiment of the present application. Figure 2 As shown, in S104, the displacement weight of the target vertex relative to the target joint is determined according to the movement amount of the target joint and the displacement amount of the target vertex, including:

[0048] S201 : Obtain an original displacement weight of the target vertex relative to the target joint according to the movement amount of the target joint and the displacement amount of the target vertex.

[0049] The calculation method of the original displacement weight of the target vertex relative to the target joint is shown in the following formula (1):

[0050]

[0051] in, is the displacement weight of the v-th vertex corresponding to the j-th joint, ||ΔV vj || is the displacement of the vth vertex corresponding to the jth joint, ||ΔT j || is the displacement of the j-th joint.

[0052] The greater the vertex's movement after a joint translation, the higher the joint's influence weight on the vertex. This method is suitable for simulating linear deformations (such as mechanical parts) or rigid binding scenarios.

[0053] S202: Normalize the original displacement weight to obtain the displacement weight.

[0054] The sum of the displacement weights of the target vertex relative to each joint is one.

[0055] The calculation method for normalizing the original displacement weight is shown in the following formula (2):

[0056]

[0057] Among them, ω vj is the normalized weight of the v-th vertex corresponding to the j-th joint.

[0058] Therefore, by setting the normalized weights so that the sum of the weights is 1, we can prevent problems such as model tearing, deformation, and distortion caused by weight overflow or incorrect distribution.

[0059] In summary, in this embodiment, the original displacement weight of the target vertex relative to the target joint is obtained based on the movement of the target joint and the displacement of the target vertex. The original displacement weight is normalized to obtain the displacement weight, where the sum of the displacement weights of the target vertex relative to each joint is one. Therefore, the use of normalized weights improves model accuracy.

[0060] In the above Figure 1 On the basis of the corresponding embodiment, in another embodiment of the present application, the motion matrix is ​​the motion matrix corresponding to the base character model corresponding to the target character model, and the target character model is a proxy model of the base character model.

[0061] The base character model and the proxy model have the same outline, and the surface proxy model moves with the base character model. By obtaining the proxy model of the base character model, subsequent steps are performed on the surface proxy model, keeping the base character model data intact and preventing asset damage caused by misoperation.

[0062] For example, to improve the accuracy of the proxy model, preset grid display parameters can be pre-set and the proxy model can be generated according to the preset grid display parameters. The greater the grid density of the proxy model, the higher the accuracy, and the smaller the grid density of the proxy model, the lower the accuracy.

[0063] For example, Figure 3 This is a schematic diagram of a basic role model and an agent model before movement provided in an embodiment of the present application. Figure 4 This is a schematic diagram of a basic role model and a proxy model after movement provided by an embodiment of the present application. Figure 3 、 4 As shown, the green model on the left is the basic role model, and the blue model on the right is the proxy model. Figures 3 to 4 As the base character model's elbow joint bends and lifts, the proxy model's elbow joint also bends and lifts, keeping their movements consistent.

[0064] For example, the user presents a basic character model on the operation interface of the Maya software, clicks "Mesh" on the Maya software, clicks "Smooth Proxy" in the operation list of "Mesh", and clicks "Subdiv Proxy" in the operation list of "Smooth Proxy" to generate a proxy model.

[0065] Thus, by replicating the proxy model, the original model data remains intact.

[0066] In the above Figure 1 On the basis of the corresponding embodiment, the embodiment of the present application further provides a method for calculating the movement amount of the target joint. Figure 5 This is a flow chart of a method for calculating the movement amount of a target joint provided in an embodiment of the present application. Figure 5 As shown, the calculation of the movement amount of the target joint in S102 includes:

[0067] S301: Perform an inverse operation on the motion matrix.

[0068] Modify the inverse of the motion matrix to perform the inverse operation.

[0069] S302: Obtain the displacement of the target joint based on the inverse calculation.

[0070] Based on the inverse operation, the virtual displacement corresponding to the target joint is obtained as the displacement of each joint. Thus, by calculating the virtual displacement, the actual movement of the model is avoided.

[0071] In summary, in this embodiment, the motion matrix is ​​inversely calculated and the target joint is obtained based on the inverse calculation. Thus, by calculating the virtual displacement, the actual movement of the model is avoided.

[0072] In the above Figure 1 On the basis of the corresponding embodiment, the embodiment of the present application further provides a method for calculating the displacement of a target vertex of a target character model. Figure 6 Schematic diagram of a flow chart of a method for calculating the displacement of a target vertex of a target character model provided in an embodiment of the present application. Figure 6 As shown, obtaining the displacement of the target vertex of the target character model driven by the movement amount of the target joint in S101 includes:

[0073] S401: Obtain the initial positions of vertices on the target character model.

[0074] S402: Drive at least some vertices on the target character model to move according to the movement amount of the target joint, and determine the current position of the moved target vertex.

[0075] S403: Obtain the displacement of the target vertex according to the current position and initial position of the target vertex.

[0076] The calculation method of the displacement of each joint corresponding to the vertex is shown in the following formula (1):

[0077]

[0078] in, is the displaced coordinate of the v-th vertex corresponding to the j-th joint, is the pre-displacement coordinate of the v-th vertex corresponding to the j-th joint.

[0079] In summary, in this embodiment, the initial positions of vertices on the target character model are obtained; at least some of the vertices on the target character model are driven to move according to the movement amount of the target joint, and the current positions of the target vertices are determined; and the displacement of the target vertex is obtained based on the current and initial positions of the target vertex. Thus, the displacement of the target vertex is accurately calculated.

[0080] The following describes a model processing device, equipment, storage medium, and program provided by this application for execution. The specific implementation process and technical effects are described above and will not be repeated below.

[0081] Figure 7 A schematic diagram of a model processing device provided in an embodiment of the present application is shown in FIG. Figure 7 As shown, the device includes:

[0082] The first acquisition module 701 is used to acquire the motion matrix corresponding to the target joint of the target character model.

[0083] The calculation module 702 is used to calculate the movement amount of the target joint according to the motion matrix.

[0084] The second acquisition module 703 is used to acquire the displacement of the target vertex of the target character model driven to move based on the movement of the target joint.

[0085] The determination module 704 is configured to determine the displacement weight of the target vertex relative to the target joint according to the movement amount of the target joint and the displacement amount of the target vertex.

[0086] Furthermore, the determination module 704 is further configured to generate an animation of the target character model according to the displacement weights of each vertex of the target character model relative to each joint and the motion matrix corresponding to each joint.

[0087] Furthermore, the determination module 704 is specifically used to obtain the original displacement weight of the target vertex relative to the target joint based on the movement amount of the target joint and the displacement amount of the target vertex; the original displacement weight is normalized to obtain the displacement weight, wherein the sum of the displacement weights of the target vertex relative to each joint is one.

[0088] Furthermore, the first acquisition module 701 is further configured to obtain a motion matrix corresponding to a base character model corresponding to a target character model, where the target character model is a proxy model of the base character model.

[0089] Furthermore, the calculation module 702 is specifically configured to perform an inverse operation on the motion matrix; and obtain the displacement of the target joint based on the inverse operation.

[0090] Furthermore, the second acquisition module 703 is used to obtain the initial position of the vertex on the target character model; drive at least some of the vertices on the target character model to move according to the movement amount of the target joint, and determine the current position of the moving target vertex; obtain the displacement of the target vertex according to the current position and initial position of the target vertex.

[0091] Through this method, the motion matrix corresponding to the target joint of the target character model is obtained; the movement of the target joint is calculated based on the motion matrix; the displacement of the target vertex of the target character model, which is driven by the movement of the target joint, is obtained; and the displacement weight of the target vertex relative to the target joint is determined based on the movement of the target joint and the displacement of the target vertex. Thus, by automatically calculating vertex weights, animation generation efficiency is improved; and using displacement as the weighting basis ensures the physical accuracy of weight distribution.

[0092] Figure 8 A structural diagram of an electronic device provided in an embodiment of the present application includes: a processor 801, a storage medium 802 and a bus 803, wherein the storage medium 802 stores machine-readable instructions executable by the processor 801, and the processor 801 communicates with the storage medium 802 via the bus 803, and the processor 801 executes the machine-readable instructions to perform the above method.

[0093] Get the motion matrix corresponding to the target joint of the target character model.

[0094] According to the motion matrix, calculate the movement of the target joint.

[0095] Gets the displacement of the target vertex of the target character model driven by the movement of the target joint.

[0096] According to the movement amount of the target joint and the displacement amount of the target vertex, the displacement weight of the target vertex relative to the target joint is determined.

[0097] Optionally, the method further includes: generating an animation of the target character model according to the displacement weights of each vertex of the target character model relative to each joint and the motion matrix corresponding to each joint.

[0098] Optionally, the displacement weight of the target vertex relative to the target joint is determined based on the movement amount of the target joint and the displacement amount of the target vertex, including: obtaining the original displacement weight of the target vertex relative to the target joint based on the movement amount of the target joint and the displacement amount of the target vertex; normalizing the original displacement weight to obtain the displacement weight, wherein the sum of the displacement weights of the target vertex relative to each joint is one.

[0099] Optionally, the motion matrix is ​​a motion matrix corresponding to a basic character model corresponding to the target character model, and the target character model is a proxy model of the basic character model.

[0100] Optionally, calculating the movement amount of the target joint according to the motion matrix includes: performing an inverse operation on the motion matrix; and obtaining the displacement amount of the target joint based on the inverse operation.

[0101] Optionally, obtaining the displacement of a target vertex of a target character model driven to move based on the movement amount of a target joint includes: obtaining the initial position of the vertex on the target character model; driving at least some of the vertices on the target character model to move according to the movement amount of the target joint, and determining the current position of the moving target vertex; and obtaining the displacement of the target vertex based on the current position and initial position of the target vertex.

[0102] Through this method, the motion matrix corresponding to the target joint of the target character model is obtained; the movement of the target joint is calculated based on the motion matrix; the displacement of the target vertex of the target character model, which is driven by the movement of the target joint, is obtained; and the displacement weight of the target vertex relative to the target joint is determined based on the movement of the target joint and the displacement of the target vertex. Thus, by automatically calculating vertex weights, animation generation efficiency is improved; and using displacement as the weighting basis ensures the physical accuracy of weight distribution.

[0103] An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the above method embodiment is executed.

[0104] Get the motion matrix corresponding to the target joint of the target character model.

[0105] According to the motion matrix, calculate the movement of the target joint.

[0106] Gets the displacement of the target vertex of the target character model driven by the movement of the target joint.

[0107] According to the movement amount of the target joint and the displacement amount of the target vertex, the displacement weight of the target vertex relative to the target joint is determined.

[0108] Optionally, the method further includes: generating an animation of the target character model according to the displacement weights of each vertex of the target character model relative to each joint and the motion matrix corresponding to each joint.

[0109] Optionally, the displacement weight of the target vertex relative to the target joint is determined based on the movement amount of the target joint and the displacement amount of the target vertex, including: obtaining the original displacement weight of the target vertex relative to the target joint based on the movement amount of the target joint and the displacement amount of the target vertex; normalizing the original displacement weight to obtain the displacement weight, wherein the sum of the displacement weights of the target vertex relative to each joint is one.

[0110] Optionally, the motion matrix is ​​a motion matrix corresponding to a basic character model corresponding to the target character model, and the target character model is a proxy model of the basic character model.

[0111] Optionally, calculating the movement amount of the target joint according to the motion matrix includes: performing an inverse operation on the motion matrix; and obtaining the displacement amount of the target joint based on the inverse operation.

[0112] Optionally, obtaining the displacement of a target vertex of a target character model driven to move based on the movement amount of a target joint includes: obtaining the initial position of the vertex on the target character model; driving at least some of the vertices on the target character model to move according to the movement amount of the target joint, and determining the current position of the moving target vertex; and obtaining the displacement of the target vertex based on the current position and initial position of the target vertex.

[0113] Through this method, the motion matrix corresponding to the target joint of the target character model is obtained; the movement of the target joint is calculated based on the motion matrix; the displacement of the target vertex of the target character model, which is driven by the movement of the target joint, is obtained; and the displacement weight of the target vertex relative to the target joint is determined based on the movement of the target joint and the displacement of the target vertex. Thus, by automatically calculating vertex weights, animation generation efficiency is improved; and using displacement as the weighting basis ensures the physical accuracy of weight distribution.

[0114] In the embodiment of the present application, the computer program can also execute other machine-readable instructions when run by the processor to execute other methods described in the embodiment. For the specific execution method steps and principles, please refer to the description of the embodiment and will not be repeated here.

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

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

[0117] In addition, each functional unit in the embodiments provided in the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0118] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0119] It should be noted that similar numbers and letters represent similar items in the following figures. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. In addition, the terms "first", "second", "third", etc. are only used to distinguish the description and are not to be understood as indicating or implying relative importance.

[0120] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The scope of protection of the present application is not limited thereto. Although the present application has been described in detail with reference to the above-described embodiments, those skilled in the art should understand that any person skilled in the art can modify or easily conceive of changes to the technical solutions described in the above-described embodiments within the technical scope disclosed in the present application, or make equivalent replacements for some of the technical features thereof. However, these modifications, changes, or replacements do not deviate from the spirit and scope of the technical solutions of the embodiments of the present application. They should all be included in the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.

Claims

1. A model processing method, characterized in that: The method comprises: Get the motion matrix corresponding to the target joint of the target character model; Calculating the movement of the target joint according to the motion matrix; Acquire a displacement of a target vertex of the target character model driven to move based on the movement of the target joint; A displacement weight of the target vertex relative to the target joint is determined according to the movement amount of the target joint and the displacement amount of the target vertex.

2. The method according to claim 1, characterized in that The method further comprises: Animation of the target character model is generated according to the displacement weights of each vertex of the target character model relative to each joint and the motion matrix corresponding to each joint.

3. The method according to claim 1, characterized in that The step of determining the displacement weight of the target vertex relative to the target joint according to the movement amount of the target joint and the displacement amount of the target vertex comprises: Obtaining an original displacement weight of the target vertex relative to the target joint according to the movement amount of the target joint and the displacement amount of the target vertex; The original displacement weights are normalized to obtain displacement weights, wherein the sum of the displacement weights of the target vertex relative to each joint is one.

4. The method according to claim 1, wherein The motion matrix is ​​a motion matrix corresponding to a base character model corresponding to the target character model, and the target character model is a proxy model of the base character model.

5. The method according to claim 1, wherein Calculating the movement amount of the target joint according to the motion matrix includes: performing an inverse operation on the motion matrix; The displacement of the target joint is obtained based on the inverse calculation.

6. The method according to claim 1, characterized in that The obtaining of the displacement of the target vertex of the target character model driven to move based on the movement of the target joint includes: Obtaining the initial positions of the vertices on the target character model; driving at least some of the vertices on the target character model to move according to the movement amount of the target joint, and determining the current position of the moved target vertex; The displacement of the target vertex is obtained according to the current position and the initial position of the target vertex.

7. A model processing device, characterized in that: The device comprises: The first acquisition module is used to obtain the motion matrix corresponding to the target joint of the target character model; A calculation module, configured to calculate the movement amount of the target joint according to the motion matrix; A second acquisition module is used to acquire a displacement of a target vertex of the target character model driven to move based on the movement of the target joint; A determination module is used to determine the displacement weight of the target vertex relative to the target joint according to the movement amount of the target joint and the displacement amount of the target vertex.

8. An electronic device, characterized in that: include: A processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor. When the electronic device is running, the processor and the storage medium communicate via the bus, and the processor executes the machine-readable instructions to perform the steps of the model processing method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, which, when executed by a processor, executes the steps of the model processing method according to any one of claims 1 to 6.

10. A computer program instruction, characterized in that The program instructions are used by a processor to execute the steps of the model processing method according to any one of claims 1 to 6.