Animation data processing method, device, program product, medium and electronic equipment
By calculating theoretical displacement data and adjusting the overall position of the target bone model under animation posture, the problems of inaccurate animation data processing and large art workload in the existing technology are solved, and flexible character model height adjustment and efficient animation data processing are achieved. .
Patent Information
- Application Number
- CN202111649585.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-29
- Publication Date
- 2025-02-18
- Estimated Expiration
- 2041-12-29
AI Technical Summary
The prior art is difficult to achieve flexible adjustment of character model height without increasing the workload of art, while avoiding the problem of inaccurate animation data processing.
By obtaining the pelvic bone displacement data in the target bone model under the initial posture and the distance data between the pelvic bone and the root bone, combined with the actual distance data under the animation posture, the theoretical displacement data is calculated, which is used to adjust the target bone model under the animation posture. The overall position makes it adapt to the position in the world coordinate system.
It improves the accuracy of animation data processing, avoids the situation where the adjusted skeleton model is inconsistent with the world space under animation posture, thereby reducing the need for re-editing animation data and reducing the workload of art.
Smart Images

Figure CN114332317B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of computer and animation data processing, and in particular to an animation data processing method, device, program product, medium and electronic device. Background Art
[0002] In games or applications with face-pinching functions, the face-pinching system can usually only adjust the character's face shape in a personalized way, but it is rare to adjust the height of the character model to achieve the function of pinching people. Even face-pinching systems that can achieve the "pinching" effect usually encounter problems. For example, after adjusting the character's appearance, if the original animation data continues to be used, an animation model that is inconsistent with the world space may be generated, resulting in inaccurate animation data processing. If animation data needs to be re-produced for the character after the appearance adjustment, it will take a lot of art work, which is generally limited by the cost and the final package size. The height adjustment can only select a few fixed height templates. Based on this, how to achieve flexible character model height adjustment without bringing too much art workload is a technical problem that needs to be solved urgently. Summary of the invention
[0003] The embodiments of the present application provide an animation data processing method, device, program product, medium and electronic device, which can improve the accuracy of animation data processing at least to a certain extent.
[0004] Other features and advantages of the present application will become apparent from the following detailed description, or may be learned in part by the practice of the present application.
[0005] According to one aspect of an embodiment of the present application, a method for processing animation data is provided, the method comprising: obtaining displacement data of a pelvic bone in a target skeletal model in an initial posture as reference displacement data, the target skeletal model in the initial posture being a skeletal model after adjustment of the original skeletal model in the initial posture; obtaining distance data between the pelvic bone and the root bone in the target skeletal model in the initial posture as reference distance data; obtaining distance data between the pelvic bone and the root bone in the target skeletal model in an animation posture as actual distance data; based on the reference displacement data and the reference distance data, determining theoretical displacement data through the actual distance data, the theoretical displacement data being used to adjust the overall position of the target skeletal model in the animation posture to an adaptive position in a world coordinate system.
[0006] According to one aspect of an embodiment of the present application, an animation data processing device is provided, the device comprising: a first acquisition unit, used to acquire displacement data of a pelvic bone in a target skeletal model in an initial posture as reference displacement data, the target skeletal model in the initial posture being a skeletal model after adjustment of the original skeletal model in the initial posture; a second acquisition unit, used to acquire distance data between the pelvic bone and the root bone in the target skeletal model in the initial posture as reference distance data; a third acquisition unit, used to acquire distance data between the pelvic bone and the root bone in the target skeletal model in an animation posture as actual distance data; a determination unit, used to determine theoretical displacement data based on the reference displacement data and the reference distance data through the actual distance data, the theoretical displacement data being used to adjust the overall position of the target skeletal model in the animation posture to an adaptive position of the world coordinate system.
[0007] In some embodiments of the present application, based on the aforementioned scheme, the device also includes: an adjustment unit, which is used to obtain the target skeleton model in the initial posture in response to a scaling operation on the original skeleton model in the initial posture before obtaining the displacement data of the pelvic bone in the target skeleton model in the initial posture; adjust the position of the pelvic bone in the target skeleton model in the initial posture to a first pelvic bone position, so as to adjust the overall position of the target skeleton model in the initial posture to an adapted position of the world coordinate system.
[0008] In some embodiments of the present application, based on the aforementioned scheme, the first acquisition unit is configured to: determine the position of the pelvic bone in the original skeletal model under the initial posture as the second pelvic bone position; and calculate the displacement data of the pelvic bone in the target skeletal model under the initial posture based on the first pelvic bone position and the second pelvic bone position.
[0009] In some embodiments of the present application, based on the aforementioned scheme, the second acquisition unit is configured to: determine the root bone position in the target skeleton model under the initial posture as the first root bone position; and calculate the distance data between the pelvic bone and the root bone in the target skeleton model under the initial posture based on the first pelvic bone position and the first root bone position.
[0010] In some embodiments of the present application, based on the aforementioned scheme, the device also includes: a fourth acquisition unit, which is used to acquire the original animation data used to drive the original skeleton model to achieve the animation pose before acquiring the distance data between the pelvic bone and the root bone in the target skeleton model under the animation pose; and a multiplexing unit, which is used to multiplex the original animation data on the target skeleton model to obtain the target skeleton model under the animation pose.
[0011] In some embodiments of the present application, based on the aforementioned scheme, the third acquisition unit is configured to: determine the position of the pelvic bone in the target skeletal model under the animation pose as the third pelvic bone position; determine the position of the root bone in the target skeletal model under the animation pose as the second root bone position; and calculate the distance data between the pelvic bone and the root bone in the target skeletal model under the animation pose based on the third pelvic bone position and the second root bone position.
[0012] In some embodiments of the present application, based on the aforementioned scheme, the determination unit is configured to: determine the ratio data between the actual distance data and the reference distance data; and calculate the theoretical displacement data according to the reference displacement data and the ratio data.
[0013] In some embodiments of the present application, based on the aforementioned scheme, the determination unit is further configured to: after determining the theoretical displacement data through the actual distance data based on the reference displacement data and the reference distance data, determine the target overall position of the target skeleton model under the animation posture according to the theoretical displacement data, and the target overall position is the adapted position of the target skeleton model in the world coordinate system under the animation posture.
[0014] In some embodiments of the present application, based on the aforementioned scheme, the determination unit is further configured to: after determining the target overall position of the target skeletal model under the animation pose, obtain the skin mesh vertex data, skin weight data and model map data corresponding to the original skeletal model; determine the target animation model through the target skeletal model under the animation pose, the skin mesh vertex data, the skin weight data and the model map data; display the target animation model at the target overall position of the world coordinate system to achieve the animation pose of the target animation model.
[0015] According to one aspect of the embodiments of the present application, a computer program product or a computer program is provided, the computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the animation data processing method described in the above embodiment.
[0016] According to one aspect of an embodiment of the present application, a computer-readable medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the animation data processing method as described in the above embodiment is implemented.
[0017] According to one aspect of an embodiment of the present application, an electronic device is provided, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the animation data processing method as described in the above embodiments.
[0018] In the technical scheme provided by some embodiments of the present application, by referring to displacement data, reference distance data, and actual distance data between pelvic bones and root bones in target skeleton model under animation posture, theoretical displacement data is determined, so that the overall position of target skeleton model under animation posture can be further adjusted to the adaptation position of world coordinate system by the theoretical displacement data. In this way, the original skeleton model (i.e. target skeleton model) after adjustment can be avoided from being inconsistent with world space under animation posture (such as the phenomenon of intersection between skeleton model and the ground in world space), so as to improve the accuracy of animation data processing. From another perspective, since the scheme proposed by the present application can avoid the original skeleton model after adjustment from being inconsistent with world space under animation posture, it is no longer necessary to re-edit animation data for various target skeleton models obtained after adjustment for the original skeleton model, so as to greatly reduce the workload of animation art, improve the efficiency of animation data processing work, such as, while realizing the function of flexible adjustment of character model height, it does not bring too much art workload.
[0019] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0021] Figure 1 A schematic diagram showing an exemplary system architecture to which the technical solution of the embodiments of the present application can be applied;
[0022] Figure 2 A flowchart of an animation data processing method according to an embodiment of the present application is shown;
[0023] Figure 3 A flow chart of a method before obtaining displacement data of a pelvic bone in a target bone model in an initial posture according to an embodiment of the present application is shown;
[0024] Figure 4 A detailed flow chart of obtaining displacement data of the pelvic bone in the target bone model in the initial posture according to one embodiment of the present application is shown;
[0025] Figure 5 A detailed flow chart of obtaining the distance data between the pelvic bone and the root bone in the target skeleton model in the initial posture according to one embodiment of the present application is shown;
[0026] Figure 6 A demonstration diagram showing how to adjust an original skeleton model in an initial posture to a target skeleton model in an initial posture according to an embodiment of the present application is shown;
[0027] Figure 7 A flow chart of a method before obtaining distance data between a pelvic bone and a root bone in a target skeletal model under an animation posture according to an embodiment of the present application is shown;
[0028] Figure 8 A detailed flow chart of obtaining distance data between the pelvic bone and the root bone in the target skeletal model in an animation posture according to one embodiment of the present application is shown;
[0029] Fig. 9 A detailed flow chart of determining theoretical displacement data through the actual distance data based on the reference displacement data and the reference distance data according to one embodiment of the present application is shown;
[0030] Fig.10 A demonstration diagram of adjusting the position of a target skeleton model in an animation posture according to an embodiment of the present application is shown;
[0031] Fig.11 A flow chart of a method after determining the target overall position of the target skeleton model in the animation pose according to an embodiment of the present application is shown;
[0032] Fig.12 The overall flow chart of the animation data processing method according to one embodiment of the present application is shown;
[0033] Fig.13 A comparison diagram of the effects of a target animation model according to an embodiment of the present application is shown;
[0034] Fig.14 A block diagram of an animation data processing device according to an embodiment of the present application is shown;
[0035] Fig.15 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown. DETAILED DESCRIPTION
[0036] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this application will be more comprehensive and complete and fully convey the concept of the example embodiments to those skilled in the art.
[0037] In addition, described feature, structure or characteristic can be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical scheme of the present application can be put into practice without one or more of the specific details, or other methods, components, devices, steps, etc. can be adopted. In other cases, known methods, devices, realizations or operations are not shown or described in detail to avoid blurring the various aspects of the application.
[0038] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0039] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.
[0040] It should be noted that the "multiple" mentioned in this article refers to two or more. "And / or" describes the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship.
[0041] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the objects used in this way can be interchanged where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those shown or described.
[0042] Figure 1 A schematic diagram of an exemplary system architecture to which the technical solution of the embodiments of the present application can be applied is shown.
[0043] like Figure 1As shown, the system architecture may include terminal devices (such as Figure 1 The embodiment of the present invention is a schematic diagram of a mobile phone 101, a tablet computer 102, and a portable computer 103 shown in FIG. 1 ), a network 104, and a server 105. The network 104 is a medium for providing a communication link between the terminal device and the server 105. The network 104 may include various connection types, such as a wired communication link, a wireless communication link, and the like.
[0044] In one embodiment of the present application, after the terminal device sends the target skeleton model in the initial posture obtained after adjusting the original skeleton model in the initial posture to the server 105, the server 105 obtains the reference displacement data of the pelvic bone in the target skeleton model in the initial posture, obtains the reference distance data between the pelvic bone and the root bone in the target skeleton model in the initial posture, and obtains the actual distance data between the pelvic bone and the root bone in the target skeleton model in the animation posture. Finally, the server 105 determines the theoretical displacement data for adjusting the overall position of the target skeleton model in the animation posture to the adaptive position of the world coordinate system based on the reference displacement data and the reference distance data and the actual distance data.
[0045] In the present embodiment, the theoretical displacement data is determined by referring to the displacement data, the distance data, and the actual distance data between the pelvic bone and the root bone in the target skeletal model under the animation posture, so that the overall position of the target skeletal model under the animation posture can be further adjusted to the adaptation position of the world coordinate system through the theoretical displacement data. In this way, the original skeletal model (i.e., the target skeletal model) after adjustment can be avoided from being inconsistent with the world space under the animation posture (such as the phenomenon of the skeletal model and the ground in the world space intersecting), thereby improving the accuracy of the animation data processing. From another perspective, since the scheme proposed in the present application can avoid the original skeletal model after adjustment from being inconsistent with the world space under the animation posture, it is no longer necessary to re-edit the animation data for the various target skeletal models obtained after the original skeletal model after adjustment, thereby greatly reducing the workload of animation art and improving the efficiency of animation data processing, such as, while realizing the function of flexibly adjusting the height of the role model without bringing too much art workload.
[0046] It should be noted that the animation data processing method provided in the embodiment of the present application can be executed by the server 105, and accordingly, the animation data processing device is generally arranged in the server 105. However, in other embodiments of the present application, the terminal device can also have similar functions as the server 105, so as to execute the animation data processing solution provided in the embodiment of the present application.
[0047] It should also be noted that Figure 1 The number of terminal devices, networks and servers in the description is only illustrative. According to the implementation requirements, the server can be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The terminal can be a smart phone, tablet computer, laptop computer, desktop computer, smart speaker, smart watch, etc., but is not limited to this, and this application does not limit it here.
[0048] It should be explained that cloud computing as described above is a computing model that distributes computing tasks on a resource pool composed of a large number of computers, so that various application systems can obtain computing power, storage space and information services as needed. The network that provides resources is called a "cloud". The resources in the "cloud" are infinitely expandable in the eyes of users, and can be obtained at any time, used on demand, and expanded at any time. By establishing a cloud computing resource pool (referred to as a cloud platform, generally referred to as an IaaS (Infrastructure as a Service) platform, various types of virtual resources are deployed in the resource pool for external customers to choose to use. The cloud computing resource pool mainly includes: computing devices (virtualized machines, including operating systems), storage devices, and network devices.
[0049] The implementation details of the technical solution of the embodiment of the present application are described in detail below:
[0050] First of all, it should be noted that the technical solution proposed in this application is mainly used in game production or animation production scenarios. In game production or animation production scenarios, it is necessary to design related animation characters, such as animated characters, etc. Specifically, the animation character mainly includes two parts: bone (Bone) and skin (Skinned Mesh), which is generally produced by bone skinning animation technology.
[0051] The basic principle of skeleton skinning animation is to control each bone and joint first, and then match the skin with each bone and joint. In skeleton skinning animation, a character consists of a single mesh model as skin and a skeleton model organized in a certain hierarchy. The skeleton model describes the structure of the character. Just like the different parts in joint animation, the skeleton model in skeleton skinning animation forms a hierarchical structure according to the characteristics of the character. Adjacent bones are connected by joints and can move relative to each other. By changing the angle and displacement between adjacent bones, the skeleton model that makes up the character can make different actions and achieve different animation effects. The skin is a mesh covering the skeleton model to define the appearance of the character. The skin here is not a fixed rigid mesh, but a deformable mesh that can change under the influence of the skeleton model. Each vertex that makes up the skin will be affected by one or more bones. When the skin vertex is affected by multiple bones, different bones determine the influence weight of the skin vertex according to the geometric and physical relationship with the skin vertex. This weight can be calculated by modeling software or set manually. By calculating the weighted sum of the influence of different bones on the skin vertex, the correct position of the skin vertex in the world coordinate system can be obtained. The keyframes in the animation data generally store the position, orientation and other information of the skeleton model. The new position and orientation of each skeleton model at a certain moment can be determined by interpolating between two adjacent keyframes in the animation sequence. Then, according to the bone index and corresponding weight information stored in each vertex of the skin mesh that affects it, the new position of the vertex can be calculated, thus realizing the deformation animation of a single skin mesh driven by the skeleton model.
[0052] Figure 2 A flowchart of an animation data processing method according to an embodiment of the present application is shown, and the animation data processing method can be executed by a device having a computing processing function. Figure 2 As shown, the animation data processing method at least includes steps 220 to 280, which are described in detail as follows:
[0053] Step 220, obtaining displacement data of the pelvic bone in the target skeleton model in the initial posture as reference displacement data, wherein the target skeleton model in the initial posture is a skeleton model after the original skeleton model in the initial posture is adjusted.
[0054] In one embodiment of the present application, before obtaining the displacement data of the pelvic bone in the target skeletal model in the initial posture, the following steps may also be performed: Figure 3 Steps shown.
[0055] See also Figure 3, shows a flow chart of a method before obtaining displacement data of the pelvic bone in the target skeletal model in the initial posture according to an embodiment of the present application. Specifically, it includes steps 211 to 212:
[0056] Step 211, in response to the scaling operation on the original skeleton model in the initial posture, obtain the target skeleton model in the initial posture.
[0057] Step 212, adjusting the pelvic bone position in the target skeletal model in the initial posture to the first pelvic bone position, so as to adjust the overall position of the target skeletal model in the initial posture to an adaptive position of the world coordinate system.
[0058] In the present application, the target skeleton model may be obtained after the original skeleton model is deformed, for example, the target skeleton model is obtained by pinching the original skeleton model, and the original skeleton model may be the initially designed skeleton model.
[0059] In the present application, the original skeleton model may have an initial posture, such as a standing posture. When the original skeleton model is pinched and pinched, the leg bones of the original skeleton model may be lengthened or shortened, and the arm bones of the original skeleton model may be lengthened or shortened. The present application does not limit the specific method of pinching and pinching.
[0060] In the present application, the original skeleton model in the initial posture may be scaled, so as to pinch the original skeleton model to obtain the target skeleton model in the initial posture. Therefore, the target skeleton model in the initial posture is the skeleton model obtained after adjusting (i.e. scaling) the original skeleton model in the initial posture.
[0061] It should be noted that the control operation may be performed by directly applying a finger on a touch display screen, or may be performed by applying a mouse on a non-touch display screen.
[0062] In the present application, after adjusting the original skeleton model in the initial posture to the target skeleton model in the initial posture, the shape of the skeleton model changes, thereby causing the overall position of the skeleton model in the world coordinate system to change. For example, after lengthening the legs of the skeleton model, the feet of the skeleton model change from being in contact with the ground in the world space to being interlaced with the ground in the world space. For another example, after shortening the legs of the skeleton model, the feet of the skeleton model change from being in contact with the ground in the world space to being separated from the ground in the world space.
[0063] Based on this, the pelvic bone position in the target skeleton model in the initial posture can be adjusted to the first pelvic bone position to adjust the overall position of the target skeleton model in the initial posture to the adaptive position of the world coordinate system, for example, the feet of the target skeleton model in the initial posture are adjusted from being interspersed with the ground in the world space to being in contact with the ground in the world space, or, the feet of the target skeleton model in the initial posture are adjusted from being separated from the ground in the world space to being in contact with the ground in the world space.
[0064] It can be understood that the first pelvic bone position is the position of the pelvic bone in the target skeleton model in the world coordinate system under the initial posture.
[0065] In such Figure 2 In one embodiment of step 220, the displacement data of the pelvic bone in the target skeletal model in the initial posture is obtained, which can be performed as follows: Figure 4 Follow the steps shown.
[0066] See also Figure 4 , shows a detailed flow chart of obtaining displacement data of the pelvic bone in the target skeletal model in the initial posture according to an embodiment of the present application. Specifically including steps 221 to 222:
[0067] Step 221, determining the pelvic bone position in the original skeleton model in the initial posture as the second pelvic bone position.
[0068] Step 222: Calculate the displacement data of the pelvic bone in the target skeleton model in the initial posture according to the first pelvic bone position and the second pelvic bone position.
[0069] Specifically, in this embodiment, the second pelvic bone position may refer to the position of the pelvic bone in the original skeleton model in the world coordinate system in the initial posture.
[0070] Furthermore, after determining the first pelvic bone position and the second pelvic bone position, the first pelvic bone position and the second pelvic bone position may be subtracted to obtain displacement data of the pelvic bone in the target skeleton model in the initial posture.
[0071] It should be noted that the displacement data includes two aspects, one is the displacement size, and the other is the displacement direction. For example, after lengthening the legs of the skeleton model in a standing posture, the pelvic bones in the skeleton model need to be adjusted along the positive direction of the Z axis of the world coordinate system. Therefore, the displacement direction can be the positive direction of the Z axis.
[0072] Continue to refer to Figure 2 , step 240, obtaining the distance data between the pelvic bone and the root bone in the target skeleton model under the initial posture as reference distance data.
[0073] In such Figure 2 In one embodiment of step 240, the distance data between the pelvic bone and the root bone in the target skeleton model in the initial posture is obtained, which can be performed as follows: Figure 5 Follow the steps shown.
[0074] See also Figure 5 , shows a detailed flow chart of obtaining the distance data between the pelvic bone and the root bone in the target skeleton model in the initial posture according to an embodiment of the present application. Specifically including steps 241 to 242:
[0075] Step 241, determine the root bone position in the target skeleton model in the initial posture as the first root bone position.
[0076] Step 242: Calculate the distance data between the pelvic bone and the root bone in the target skeleton model in the initial posture according to the first pelvic bone position and the first root bone position.
[0077] It should be noted that, in this embodiment, since the first pelvic bone position is the position of the pelvic bone in the target skeletal model in the world coordinate system in the initial posture after the position is adjusted, the first root bone position must also be the position of the root bone in the target skeletal model in the world coordinate system in the initial posture after the position is adjusted.
[0078] It can be understood that if the first pelvic bone position is the position of the pelvic bone in the target skeletal model in the world coordinate system in the initial posture before the position is adjusted, then the first root bone position must also be the position of the root bone in the target skeletal model in the world coordinate system in the initial posture before the position is adjusted.
[0079] After determining the first pelvic bone position and the first root bone position, the first pelvic bone position and the first root bone position may be subtracted to obtain distance data between the pelvic bone and the root bone in the target skeleton model in the initial posture.
[0080] In order to make those skilled in the art better understand the present application, Figure 6 Provide explanation.
[0081] See also Figure 6 , showing a demonstration diagram of adjusting the original skeleton model in the initial posture to the target skeleton model in the initial posture according to an embodiment of the present application.
[0082] like Figure 6As shown, skeleton model 601 is the original skeleton model in a standing posture (i.e., the original skeleton model in the initial posture). By scaling the skeleton model (i.e., lengthening the leg bones of the skeleton model), skeleton model 602 (i.e., the target skeleton model in the standing posture) is obtained. At this time, the position of the pelvic bone A remains unchanged. Further, by adjusting the position of the pelvic bone A in the skeleton model 602, skeleton model 603 (i.e., the target skeleton model in the standing posture after the position is adjusted) is obtained. It can be seen from the figure that the displacement data of the pelvic bone A in the target skeleton model in the standing posture (i.e., the reference displacement data) is H1, and the distance data between the pelvic bone A and the root bone B in the target skeleton model in the standing posture (i.e., the reference distance data) is L1.
[0083] Continue to refer to Figure 2 , step 260, obtaining the distance data between the pelvic bone and the root bone in the target skeleton model under the animation posture as the actual distance data.
[0084] In the present application, the target skeleton model in the animation posture can be a skeleton model that completes various animation postures after being driven by animation data, for example, the target skeleton model in a squatting posture, and also for example, the target skeleton model in a jumping posture.
[0085] In one embodiment of the present application, before obtaining the distance data between the pelvic bone and the root bone in the target skeletal model under the animation posture, the following steps may also be performed: Figure 7 Steps shown.
[0086] See also Figure 7 , shows a flow chart of a method before obtaining the distance data between the pelvic bone and the root bone in the target skeleton model under the animation posture according to an embodiment of the present application. Specifically, it includes steps 251 to 252:
[0087] Step 251, obtaining original animation data for driving the original skeleton model to realize animation posture.
[0088] Step 252: reuse the original animation data on the target skeleton model to obtain the target skeleton model in the animation posture.
[0089] In the present application, the original animation data records data for driving the original skeleton model to realize various animation postures. The original animation data is reused on the target skeleton model, which can be to associate the original animation data with the target skeleton model to drive the target skeleton model to realize various animation postures, thereby obtaining the target skeleton model under the animation posture.
[0090] It should be noted that in the present application, since the target skeleton model is obtained after the original skeleton model is deformed, if the target skeleton model is driven by the original animation data to realize various animation postures, it is bound to cause the target skeleton model to be inconsistent with the world space under the animation posture. For example, when the target skeleton model is a skeleton model after the legs of the original skeleton model are elongated, the feet of the target skeleton model in the squatting posture are interlaced with the ground in the world space. Therefore, it is necessary to adjust the overall position of the target skeleton model in the world coordinate system under the animation posture according to the theoretical displacement data in the subsequent animation data processing.
[0091] In the present application, after the original animation data is reused in the target skeleton model, the overall position of the target skeleton model in the world coordinate system under the animation pose can be adjusted according to the theoretical displacement data, thereby avoiding the situation where the original skeleton model after adjustment is inconsistent with the world space under the animation pose. Therefore, there is no need to re-edit the animation data for the various target skeleton models obtained after the original skeleton model is adjusted, which can greatly reduce the workload of animation art and improve the efficiency of animation data processing. For example, it can realize the function of flexible adjustment of the character model's height without bringing too much art workload.
[0092] In such Figure 2 In one embodiment of step 260, the distance data between the pelvic bone and the root bone in the target skeletal model under the animation posture is obtained, which can be performed as follows: Figure 8 Follow the steps shown.
[0093] See also Figure 8 , shows a detailed flow chart of obtaining the distance data between the pelvic bone and the root bone in the target skeleton model under the animation posture according to an embodiment of the present application. Specifically including steps 261 to 263:
[0094] Step 261, determining the pelvic bone position in the target skeletal model under the animation posture as the third pelvic bone position.
[0095] Step 262, determining the root bone position in the target skeleton model under the animation posture as the second root bone position.
[0096] Step 263, calculating the distance data between the pelvic bone and the root bone in the target skeleton model under the animation posture according to the third pelvic bone position and the second root bone position.
[0097] It should be noted that, in the present embodiment, the third pelvic bone position is the position of the pelvic bone in the target skeletal model in the world coordinate system under the animation pose, and the second root bone position is the position of the root bone in the target skeletal model in the world coordinate system under the animation pose. After determining the third pelvic bone position and the second root bone position, the distance data between the pelvic bone and the root bone in the target skeletal model under the animation pose can be obtained by subtracting the third pelvic bone position and the second root bone position.
[0098] It should be noted that since the posture of the target skeleton model in the initial posture is different from the posture of the target skeleton model in the animation posture, the distance data between the pelvic bone and the root bone in the target skeleton model in the initial posture (i.e., the reference distance data) and the distance data between the pelvic bone and the root bone in the target skeleton model in the animation posture (i.e., the actual distance data) will also be different. For example, the distance data between the pelvic bone and the root bone in the target skeleton model in the squatting posture will be smaller than the distance data between the pelvic bone and the root bone in the target skeleton model in the standing posture.
[0099] Continue to refer to Figure 2 , step 280, based on the reference displacement data and the reference distance data, determine theoretical displacement data through the actual distance data, and the theoretical displacement data is used to adjust the overall position of the target skeleton model in the animation posture to an adaptive position of the world coordinate system.
[0100] In such Figure 2 In one embodiment of step 280, based on the reference displacement data and the reference distance data, the theoretical displacement data is determined by the actual distance data, which can be performed as follows: Fig. 9 Follow the steps shown.
[0101] See also Fig. 9 , shows a detailed flow chart of determining theoretical displacement data through the actual distance data based on the reference displacement data and the reference distance data according to an embodiment of the present application.
[0102] Specifically including step 281 to step 282:
[0103] Step 281, determining the ratio data between the actual distance data and the reference distance data.
[0104] Step 282, calculating the theoretical displacement data according to the reference displacement data and the ratio data.
[0105] Further, in an embodiment of the present application, after determining the theoretical displacement data through the actual distance data based on the reference displacement data and the reference distance data, the following steps may also be performed:
[0106] According to the theoretical displacement data, the target overall position of the target skeleton model in the animation posture is determined, and the target overall position is the adapted position of the target skeleton model in the world coordinate system in the animation posture.
[0107] In order to make those skilled in the art better understand the present application, Figure 6 and Fig.10 Provide explanation.
[0108] See also Fig.10 , shows a demonstration diagram of adjusting the position of the target skeleton model under the animation posture according to an embodiment of the present application.
[0109] like Figure 6 and Fig.10 As shown, the skeleton model 1001 is a target skeleton model in a squatting posture (i.e., a target skeleton model in an animation posture) obtained by driving the target skeleton model 603 in a standing posture (i.e., a target skeleton model in an initial posture) with the original animation data. The distance data (i.e., the actual distance data) between the pelvic bone and the root bone in the target skeleton model in the squatting posture is L2.
[0110] Since the target skeleton model is obtained after the original skeleton model is deformed, the feet of the skeleton model 1001 obtained by driving the target skeleton model with the original animation data appear to be interlaced with the ground in the world space. At this time, the overall position of the skeleton model 1001 (i.e. the target skeleton model in the squatting posture) in the world coordinate system needs to be adjusted. In one case, if the overall position of the skeleton model 1001 in the world coordinate system is adjusted directly according to the displacement data of the pelvic bones in the target skeleton model in the initial posture (i.e. the reference displacement data H1), the situation of over-adjustment will occur, such as Fig.10 In another case, if the reference displacement data H1 and the reference distance data L1 are used to determine the theoretical displacement data H2 through the actual distance data L2, and the overall position of the skeleton model 1001 in the world coordinate system is adjusted according to the theoretical displacement data H2, then over-adjustment will not occur. Fig.10 The foot in the skeleton model 1003 is just in contact with the ground in the world space.
[0111] Further, in one embodiment of the present application, after determining the target overall position of the target skeleton model under the animation posture, the following steps may be performed: Fig.11 Steps shown.
[0112] See also Fig.11, shows a flow chart of a method after determining the target overall position of the target skeleton model under the animation posture according to an embodiment of the present application. Specifically comprising steps 291 to 293:
[0113] Step 291, obtaining skin mesh vertex data, skin weight data and model texture data corresponding to the original skeleton model.
[0114] Step 292, determining a target animation model through the target skeleton model in the animation pose, the skin mesh vertex data, the skin weight data and the model texture data.
[0115] Step 293: Display the target animation model at the target overall position in the world coordinate system to achieve the animation posture of the target animation model.
[0116] In the present application, after the original animation data is reused in the target skeletal model, the target overall position of the target skeletal model in the world coordinate system under the animation pose is determined according to the calculated theoretical displacement data, and the target animation model determined by the target skeletal model under the animation pose, the skin mesh vertex data, the skin weight data and the model mapping data is displayed at the target overall position of the world coordinate system. This can avoid the situation where the target animation model is inconsistent with the world space under the animation pose, and improve the accuracy of animation data processing.
[0117] In order to make those skilled in the art better understand the present application, Fig.12 and Fig.13 A specific embodiment is used for description.
[0118] Reference Fig.12 , shows an overall flow chart of an animation data processing method according to an embodiment of the present application. Specifically, it includes steps 1201 to 1206:
[0119] Step 1201, adjust the height of the original skeleton model in the initial posture to obtain the target skeleton model in the initial posture.
[0120] Step 1202, obtaining the displacement data H1 of the pelvic bone in the target skeleton model on the Z axis in the initial posture.
[0121] Step 1203, obtaining the distance data L1 between the pelvic bone and the root bone in the target skeleton model in the initial posture on the Z axis.
[0122] Step 1204, driving the target skeleton model to implement animation actions through the animation data corresponding to the original skeleton model, and obtaining the target skeleton model in the animation posture.
[0123] Step 1205, obtaining the distance data L2 between the pelvic bone and the root bone in the target skeleton model in the animation posture on the Z axis.
[0124] Step 1206, calculating the displacement data H2=H1×(L2 / L1) of the pelvic bone in the target skeleton model on the Z axis under the animation posture.
[0125] See also Fig.13 , showing a comparison diagram of the effects of a target animation model according to an embodiment of the present application.
[0126] like Fig.13 As shown, without using the animation data processing solution proposed in the present application, if the overall position of the target skeletal model of the stretched leg in the world coordinate system is adjusted according to the reference displacement data, the foot 1301 of the target animation model will be separated from the ground in the world space. If the overall position of the target skeletal model of the stretched leg in the world coordinate system is adjusted according to the calculated theoretical displacement data, the foot 1303 of the target animation model will just touch the ground in the world space.
[0127] When using the animation data processing solution proposed in the present application, if the overall position of the target skeletal model with the reduced legs in the world coordinate system is adjusted according to the reference displacement data, the foot 1302 of the target animation model will appear to be interspersed with the ground in the world space. If the overall position of the target skeletal model with the reduced legs in the world coordinate system is adjusted according to the calculated theoretical displacement data, the foot 1304 of the target animation model will appear to be just in contact with the ground in the world space.
[0128] It can be seen that, through the animation data processing scheme proposed in the present application, on the one hand, it is possible to avoid the original skeleton model (i.e., the target skeleton model) after adjustment from being inconsistent with the world space under the animation posture (such as the skeleton model and the ground in the world space intersecting), thereby avoiding the situation where the final target animation model is inconsistent with the world space, and improving the accuracy of animation data processing. On the other hand, since the scheme proposed in the present application can avoid the original skeleton model after adjustment from being inconsistent with the world space under the animation posture, it is no longer necessary to re-edit the animation data for the various target skeleton models obtained after the original skeleton model is adjusted, thereby greatly reducing the workload of animation art and improving the efficiency of animation data processing, for example, while realizing the function of flexibly adjusting the height of the character model, it does not bring too much art workload.
[0129] The following describes an apparatus embodiment of the present application, which can be used to execute the animation data processing method in the above-mentioned embodiment of the present application. For details not disclosed in the apparatus embodiment of the present application, please refer to the above-mentioned embodiment of the animation data processing method of the present application.
[0130] Fig.14 A block diagram of an animation data processing device according to an embodiment of the present application is shown.
[0131] Reference Fig.14 As shown, according to an embodiment of the present application, an animation data processing device 1400 includes: a first acquisition unit 1401 , a second acquisition unit 1402 , a third acquisition unit 1403 and a determination unit 1404 .
[0132] Among them, the first acquisition unit 1401 is used to obtain the displacement data of the pelvic bone in the target skeleton model under the initial posture as reference displacement data, and the target skeleton model under the initial posture is a skeleton model after the original skeleton model under the initial posture is adjusted; the second acquisition unit 1402 is used to obtain the distance data between the pelvic bone and the root bone in the target skeleton model under the initial posture as reference distance data; the third acquisition unit 1403 is used to obtain the distance data between the pelvic bone and the root bone in the target skeleton model under the animation posture as actual distance data; the determination unit 1404 is used to determine the theoretical displacement data based on the reference displacement data and the reference distance data through the actual distance data, and the theoretical displacement data is used to adjust the overall position of the target skeleton model under the animation posture to the adaptive position of the world coordinate system.
[0133] In some embodiments of the present application, based on the aforementioned scheme, the device also includes: an adjustment unit, which is used to obtain the target skeleton model in the initial posture in response to a scaling operation on the original skeleton model in the initial posture before obtaining the displacement data of the pelvic bone in the target skeleton model in the initial posture; adjust the position of the pelvic bone in the target skeleton model in the initial posture to a first pelvic bone position, so as to adjust the overall position of the target skeleton model in the initial posture to an adapted position of the world coordinate system.
[0134] In some embodiments of the present application, based on the aforementioned scheme, the first acquisition unit 1401 is configured to: determine the position of the pelvic bone in the original skeletal model under the initial posture as the second pelvic bone position; and calculate the displacement data of the pelvic bone in the target skeletal model under the initial posture based on the first pelvic bone position and the second pelvic bone position.
[0135] In some embodiments of the present application, based on the aforementioned scheme, the second acquisition unit 1402 is configured to: determine the root bone position in the target skeleton model under the initial posture as the first root bone position; and calculate the distance data between the pelvic bone and the root bone in the target skeleton model under the initial posture according to the first pelvic bone position and the first root bone position.
[0136] In some embodiments of the present application, based on the aforementioned scheme, the device also includes: a fourth acquisition unit, which is used to acquire the original animation data used to drive the original skeleton model to achieve the animation pose before acquiring the distance data between the pelvic bone and the root bone in the target skeleton model under the animation pose; and a multiplexing unit, which is used to multiplex the original animation data on the target skeleton model to obtain the target skeleton model under the animation pose.
[0137] In some embodiments of the present application, based on the aforementioned scheme, the third acquisition unit 1403 is configured to: determine the position of the pelvic bone in the target skeletal model under the animation pose as the third pelvic bone position; determine the position of the root bone in the target skeletal model under the animation pose as the second root bone position; and calculate the distance data between the pelvic bone and the root bone in the target skeletal model under the animation pose based on the third pelvic bone position and the second root bone position.
[0138] In some embodiments of the present application, based on the aforementioned scheme, the determination unit 1404 is configured to: determine the ratio data between the actual distance data and the reference distance data; and calculate the theoretical displacement data according to the reference displacement data and the ratio data.
[0139] In some embodiments of the present application, based on the aforementioned scheme, the determination unit 1404 is also configured to: after determining the theoretical displacement data through the actual distance data based on the reference displacement data and the reference distance data, determine the target overall position of the target skeleton model under the animation posture according to the theoretical displacement data, and the target overall position is the adapted position of the target skeleton model in the world coordinate system under the animation posture.
[0140] In some embodiments of the present application, based on the aforementioned scheme, the determination unit 1404 is also configured to: after determining the target overall position of the target skeletal model under the animation pose, obtain the skin mesh vertex data, skin weight data and model map data corresponding to the original skeletal model; determine the target animation model through the target skeletal model under the animation pose, the skin mesh vertex data, the skin weight data and the model map data; display the target animation model at the target overall position of the world coordinate system to achieve the animation pose of the target animation model.
[0141] Fig.15 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown.
[0142] It should be noted that Fig.15 The computer system 1500 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0143] like Fig.15 As shown, the computer system 1500 includes a central processing unit (CPU) 1501, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 1502 or the program loaded from the storage part 1508 to the random access memory (RAM) 1503, such as executing the method described in the above embodiment. In the RAM 1503, various programs and data required for system operation are also stored. The CPU 1501, the ROM 1502 and the RAM 1503 are connected to each other through the bus 1504. The input / output (I / O) interface 1505 is also connected to the bus 1504.
[0144] The following components are connected to the I / O interface 1505: an input section 1506 including a keyboard, a mouse, etc.; an output section 1507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1508 including a hard disk, etc.; and a communication section 1509 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 1509 performs communication processing via a network such as the Internet. A drive 1510 is also connected to the I / O interface 1505 as needed. A removable medium 1511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1510 as needed so that a computer program read therefrom is installed into the storage section 1508 as needed.
[0145] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 1509, and / or installed from a removable medium 1511. When the computer program is executed by a central processing unit (CPU) 1501, various functions defined in the system of the present application are executed.
[0146] It should be noted that the computer-readable medium shown in the embodiment of the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, - but not limited to - an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by an instruction execution system, device or device or used in combination with it. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate, or transmit programs for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0147] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0148] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.
[0149] As another aspect, the present application also provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the animation data processing method described in the above embodiment.
[0150] As another aspect, the present application also provides a computer-readable medium, which may be included in the electronic device described in the above embodiment; or may exist independently without being assembled into the electronic device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by an electronic device, the electronic device implements the animation data processing method described in the above embodiment.
[0151] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.
[0152] Through the description of the above implementation methods, it is easy for those skilled in the art to understand that the example implementation methods described here can be implemented by software or by combining software with necessary hardware. Therefore, the technical solution according to the implementation methods of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the implementation methods of the present application.
[0153] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the embodiments disclosed herein. The present application is intended to cover any variations, uses or adaptations of the present application, which follow the general principles of the present application and include common knowledge or customary technical means in the art that are not disclosed in the present application.
[0154] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A method for processing animation data, characterized in that: The method comprises: Obtaining displacement data of the pelvic bone in the target bone model in the initial posture as reference displacement data, wherein the target bone model in the initial posture is a bone model after the original bone model in the initial posture is adjusted; Acquire the distance data between the pelvic bone and the root bone in the target skeletal model in the initial posture as reference distance data; Obtain the distance data between the pelvic bone and the root bone in the target skeleton model under the animation posture as the actual distance data; Based on the reference displacement data and the reference distance data, theoretical displacement data is determined through the actual distance data, and the theoretical displacement data is used to adjust the overall position of the target skeleton model in the animation posture to an adaptive position of the world coordinate system. The calculation method of the theoretical displacement data includes: determining the ratio data between the actual distance data and the reference distance data, and calculating the theoretical displacement data based on the reference displacement data and the ratio data.
2. The method according to claim 1, characterized in that Before obtaining the displacement data of the pelvic bone in the target skeletal model in the initial posture, the method further includes: In response to the scaling operation on the original skeleton model in the initial posture, a target skeleton model in the initial posture is obtained; The pelvic bone position in the target skeletal model in the initial posture is adjusted to the first pelvic bone position, so as to adjust the overall position of the target skeletal model in the initial posture to an adaptive position of the world coordinate system.
3. The method according to claim 2, characterized in that The step of obtaining displacement data of the pelvic bone in the target skeletal model in the initial posture includes: Determine the position of the pelvic bone in the original skeletal model in the initial posture as the second pelvic bone position; According to the first pelvic bone position and the second pelvic bone position, displacement data of the pelvic bone in the target skeleton model in the initial posture is calculated.
4. The method according to claim 2, characterized in that: The step of obtaining the distance data between the pelvic bone and the root bone in the target skeletal model in the initial posture includes: Determine the root bone position in the target skeleton model at the initial posture as the first root bone position; According to the first pelvic bone position and the first root bone position, distance data between the pelvic bone and the root bone in the target skeleton model in the initial posture is calculated.
5. The method according to claim 1, characterized in that Before obtaining the distance data between the pelvic bone and the root bone in the target skeletal model under the animation posture, the method further includes: Obtaining original animation data for driving the original skeleton model to realize animation posture; The original animation data is reused on the target skeleton model to obtain the target skeleton model in the animation posture.
6. The method according to claim 5, characterized in that The step of obtaining the distance data between the pelvic bone and the root bone in the target skeletal model under the animation posture includes: Determine the pelvic bone position in the target skeletal model under the animation pose as the third pelvic bone position; Determine the root bone position in the target skeleton model under the animation pose as the second root bone position; According to the third pelvic bone position and the second root bone position, distance data between the pelvic bone and the root bone in the target skeletal model under the animation posture is calculated.
7. The method according to claim 1, characterized in that After determining theoretical displacement data through the actual distance data based on the reference displacement data and the reference distance data, the method further includes: According to the theoretical displacement data, the target overall position of the target skeleton model in the animation posture is determined, and the target overall position is the adapted position of the target skeleton model in the world coordinate system in the animation posture.
8. The method according to claim 7, characterized in that After determining the target overall position of the target skeletal model in the animation posture, the method further includes: Obtain skin mesh vertex data, skin weight data, and model texture data corresponding to the original skeleton model; Determine a target animation model by using the target skeleton model in the animation pose, the skin mesh vertex data, the skin weight data and the model texture data; The target animation model is displayed at the target overall position of the world coordinate system to achieve the animation posture of the target animation model.
9. An animation data processing device, characterized in that: The device comprises: A first acquisition unit is used to acquire displacement data of a pelvic bone in a target skeleton model in an initial posture as reference displacement data, wherein the target skeleton model in the initial posture is a skeleton model after the original skeleton model in the initial posture is adjusted; A second acquisition unit is used to acquire distance data between the pelvic bone and the root bone in the target skeleton model in the initial posture as reference distance data; The third acquisition unit is used to acquire the distance data between the pelvic bone and the root bone in the target skeleton model under the animation posture as the actual distance data; A determination unit is used to determine theoretical displacement data through the actual distance data based on the reference displacement data and the reference distance data, wherein the theoretical displacement data is used to adjust the overall position of the target skeleton model in the animation posture to an adaptive position of the world coordinate system, and a calculation method of the theoretical displacement data includes: determining the ratio data between the actual distance data and the reference distance data, and calculating the theoretical displacement data based on the reference displacement data and the ratio data.
10. A computer program product, characterized in that The computer program product includes computer instructions, which are stored in a computer-readable storage medium and are suitable for being read and executed by a processor, so that a computer device having the processor executes the animation data processing method according to any one of claims 1 to 8.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one program code, and the at least one program code is loaded and executed by a processor to implement the operations performed by the animation data processing method according to any one of claims 1 to 8.
12. A computer device, characterized in that: The computer device includes one or more processors and one or more memories, wherein the one or more memories store at least one program code, and the at least one program code is loaded and executed by the one or more processors to implement the operations performed by the animation data processing method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Face pinching editing and animation additional fusion method and system
CN107633542A
Quaternion-based skeletal redirection in character animation
CN109509241A