CN115713580A - Method, device, medium and equipment for generating key frame data of root skeleton - Google Patents

Method, device, medium and equipment for generating key frame data of root skeleton Download PDF

Info

Publication number
CN115713580A
CN115713580A CN202211364457.1A CN202211364457A CN115713580A CN 115713580 A CN115713580 A CN 115713580A CN 202211364457 A CN202211364457 A CN 202211364457A CN 115713580 A CN115713580 A CN 115713580A
Authority
CN
China
Prior art keywords
bone
frame
frames
root
key frame
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211364457.1A
Other languages
Chinese (zh)
Inventor
杨富凯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN202211364457.1A priority Critical patent/CN115713580A/en
Publication of CN115713580A publication Critical patent/CN115713580A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

The embodiment of the disclosure provides a method, a device, a medium and equipment for generating key frame data of a root skeleton; the method comprises the following steps: acquiring an initial animation file; determining a motion trend parameter of the virtual model in the motion process based on the first motion data; based on the movement trend parameters, simplifying the first movement data to obtain second movement data of a root bone corresponding to the pelvis bone; performing frame-by-frame motion data vector operation on the multi-frame bone key frames according to second motion data of the root bone in each bone key frame to obtain a speed difference vector; when the sum of the speed difference vectors respectively corresponding to the skeleton key frames adjacent to the multiple frames is larger than a preset threshold value, deleting second motion data in a middle skeleton key frame of the skeleton key frames adjacent to the multiple frames; the efficiency of determining the second motion data of the root skeleton can be prompted, the storage space occupation of the animation file can be reduced, and the performance pressure of animation rendering can be reduced.

Description

Generation method, device, medium and equipment of key frame data of root skeleton
Technical Field
The present disclosure relates to the field of rendering technologies, and in particular, to a method for generating root skeleton key frame data, a device for generating root skeleton key frame data, a computer-readable storage medium, and an electronic device.
Background
Including virtual objects, such as virtual models, in a virtual world constructed by a computer requires control of the virtual models for interaction, including identification of the position and orientation of characters by motion data of the root skeleton.
In general, the animation file does not include the motion data of the root bone, and the motion data of the root bone can be determined by using the motion data of the pelvis bone because the root bone is a parent node of the pelvis bone.
In the related art, the movement data of the root bone is determined manually according to the movement data of the pelvis bone, so that the manual work is wasted, and errors are easy to occur; and redundant data can exist in the motion data of the root skeleton, so that the storage space is wasted, and the consumption of computing resources in the animation display process can be caused.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present disclosure, and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
An object of the embodiments of the present disclosure is to provide a method, an apparatus, a medium, and an electronic device for generating root skeleton key frame data. And automatically determining second motion data of the root bone in the animation file, and deleting redundant data in the second motion data of the root bone. To a certain extent, the efficiency and accuracy of determining the second motion data of the root skeleton can be improved, the storage space occupation of the animation file can be reduced, and the performance pressure of animation rendering can be reduced.
In a first aspect of the embodiments of the present disclosure, a method for generating root skeleton key frame data is provided, where the method includes:
acquiring an initial animation file, wherein the animation file comprises a plurality of skeleton key frames corresponding to a virtual model, and the skeleton key frames at least comprise first motion data corresponding to a pelvis skeleton;
determining a motion trend parameter of the virtual model in the motion process based on the first motion data;
based on the movement trend parameters, simplifying the first movement data to obtain second movement data of a root bone corresponding to the pelvis bone;
according to second motion data of the root bone in each bone key frame, performing frame-by-frame motion data vector operation on the multiple bone key frames to obtain a speed difference vector for representing motion change of the root bone in the multiple bone key frames;
and when the sum of the speed difference vectors respectively corresponding to the multiple adjacent skeleton key frames is larger than a preset threshold value, deleting second motion data in a middle skeleton key frame of the multiple adjacent skeleton key frames to obtain simplified key frame data required for generating the root skeleton animation corresponding to the initial animation file, wherein the frame number of the multiple adjacent skeleton key frames comprises at least three frames.
According to a second aspect of the embodiments of the present disclosure, there is provided an apparatus for generating root skeleton key frame data, the apparatus comprising:
the system comprises an acquisition module, a display module and a display module, wherein the acquisition module is configured to acquire an initial animation file, the animation file comprises a plurality of frames of skeleton key frames corresponding to a virtual model, and the skeleton key frames at least comprise first motion data corresponding to pelvis bones;
a determination module configured to determine a motion trend parameter of the virtual model during the motion process based on the first motion data;
the processing module is configured to simplify the first motion data to obtain second motion data of a root bone corresponding to the pelvis bone based on the motion trend parameter;
the operation module is configured to perform frame-by-frame motion data vector operation on the multiple skeleton key frames according to the second motion data of the root skeleton in each skeleton key frame to obtain a speed difference vector for representing motion change of the root skeleton in the multiple skeleton key frames;
and the deleting module is configured to delete the second motion data in the middle skeleton key frame of the skeleton key frames adjacent to the multiple frames to obtain simplified key frame data required for generating the root skeleton animation corresponding to the initial animation file when the sum of the speed difference vectors respectively corresponding to the skeleton key frames adjacent to the multiple frames is greater than a preset threshold value, wherein the number of the frames of the skeleton key frames adjacent to the multiple frames comprises at least three frames.
According to a third aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium, on which a computer program is stored, wherein the program, when executed by a processor, implements the method as described in the first aspect of the embodiments.
According to a fourth aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including: one or more processors; storage means for storing one or more programs which, when executed by one or more processors, cause the one or more processors to carry out the method according to the first aspect of the embodiments described above.
According to a fifth aspect of the present disclosure, there is provided a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to cause the computer device to perform the method provided in the various alternative implementations described above.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
according to the method, the device, the equipment and the medium for generating the key frame data of the root skeleton, on one hand, the first motion data of the pelvis skeleton of the virtual model can be simplified according to the motion trend parameters of the virtual model to obtain the second motion data of the root skeleton, so that the second motion data of the root skeleton can be generated automatically, the consumption of human resources is reduced, and the accuracy of the determined second motion data of the root skeleton is improved; on the other hand, the second motion data in the skeleton key frame with the motion trend not changing significantly can be deleted, and on the basis of not influencing the animation rendering effect, the waste of data storage space is reduced and the performance pressure of animation rendering is reduced.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure. It is to be understood that the drawings in the following description are merely exemplary of the disclosure, and that other drawings may be derived from those drawings by one of ordinary skill in the art without the exercise of inventive faculty.
FIG. 1 schematically illustrates a schematic diagram of a system for generating root skeleton key frame data to which embodiments of the present disclosure may be applied;
FIG. 2 schematically illustrates a flow diagram of a method of generating root skeletal key frame data, according to one embodiment of the present disclosure;
FIG. 3 schematically illustrates a diagram of the locations of the pelvis bone and the root bone when the virtual model is not in motion, in accordance with one embodiment of the present disclosure;
FIG. 4 schematically illustrates a flow chart of the locations of the pelvis bone and the root bone when the virtual model moves in accordance with an embodiment of the present disclosure;
FIG. 5 is a schematic diagram illustrating a variation of displacement difference vectors between skeletal keyframes according to an embodiment of the present disclosure;
FIG. 6 schematically shows a diagram of velocity difference vectors between skeletal keyframes according to an embodiment of the present disclosure;
FIG. 7 schematically illustrates a graph of a sum of a plurality of adjacent velocity disparity vectors in accordance with an embodiment of the present disclosure;
FIG. 8 schematically illustrates a simplified schematic representation of root bone position change in accordance with an embodiment of the present disclosure;
fig. 9 schematically shows a block diagram of a generating apparatus of root skeleton key frame data according to an embodiment of the present disclosure;
FIG. 10 schematically illustrates a block diagram of a computer system suitable for use with an electronic device that implements an embodiment of the disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the disclosure. One skilled in the relevant art will recognize, however, that the embodiments of the present disclosure can be practiced without one or more of the specific details, or with other methods, components, devices, steps, etc. In other instances, well-known technical solutions have not been shown or described in detail to avoid obscuring aspects of the present disclosure.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus their repetitive description will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
In the related art, for the animation file, the motion data of the pelvis bone can be copied and pasted to the root bone manually, and the motion data which does not need to be in the axial direction in the motion data of the pelvis bone is deleted to obtain the motion data of the root bone.
However, this method of manually determining the motion data of the root bone usually takes a lot of time and labor and is prone to errors; meanwhile, the motion data of the root bone is mainly used for calibrating the position and the orientation of the virtual model, and the animation is displayed by directly utilizing the motion data of the root bone determined according to the motion data of the pelvis bone, so that the storage space is wasted, and the consumption of computing resources in the animation display process can be caused.
In view of the foregoing, exemplary embodiments of the present disclosure provide a method for generating root skeleton key frame data, which is directed to an animation processing service. The application scenarios of the generation method of the root skeleton key frame data include but are not limited to: in the motion data generation service of the root skeleton of the virtual model, obtaining an initial animation file, wherein the animation file comprises a plurality of skeleton key frames corresponding to the virtual model, and the skeleton key frames at least comprise first motion data corresponding to the pelvis skeleton; determining a motion trend parameter of the virtual model in the motion process based on the first motion data; based on the movement trend parameters, simplifying the first movement data to obtain second movement data of a root bone corresponding to the pelvis bone; performing frame-by-frame motion data vector operation on the multi-frame bone key frames according to second motion data of the root bone in each bone key frame to obtain a speed difference vector for representing motion change of the root bone in the multi-frame bone key frames; and when the sum of the speed difference vectors respectively corresponding to the skeleton key frames adjacent to the multiple frames is larger than a preset threshold value, deleting second motion data in a middle skeleton key frame of the skeleton key frames adjacent to the multiple frames to obtain simplified key frame data required for generating a root skeleton animation corresponding to the initial animation file, wherein the number of the frames of the skeleton key frames adjacent to the multiple frames comprises at least three frames. The second motion data of the root skeleton can be automatically determined according to the first motion data of the pot skeleton, the determination efficiency and accuracy of the second motion data of the root skeleton are improved, and the labor consumption is reduced; furthermore, redundant data in the second motion data of the root skeleton can be deleted, and waste of data storage space is reduced on the basis of not influencing animation rendering effect.
In order to implement the above-described method for generating root skeleton key frame data, an exemplary embodiment of the present disclosure provides a system for generating root skeleton key frame data. Fig. 1 shows a schematic architecture diagram of a system for generating root skeleton key frame data. As shown in fig. 1, the system for generating root skeleton key frame data may include a terminal device 110 and a server 120, wherein the terminal device 110 may be various electronic devices with display functions, including but not limited to desktop computers, portable computers, smart phones, tablet computers, and the like. The terminal device may be installed with three-dimensional animation software, a game program, and the like that can perform animation rendering. The server 120 may be a server deployed by a game developer.
In an alternative embodiment, the initial animation file may be stored in the terminal device 110, and the terminal device 110 may execute the generation scheme of the root skeleton key frame data provided in the embodiment of the present disclosure;
in another optional implementation manner, the initial animation file may be stored in the server 120, when a game developer needs to process the initial animation file, the terminal device 110 may generate an initial animation file acquisition instruction according to the acquired initial animation file loading operation associated with the initial animation file identifier, and send the initial animation file acquisition instruction to the server 120, and the server 120 may acquire the initial animation file according to the initial animation file identifier in the initial animation file acquisition instruction, and send the initial animation file to the terminal device 110, so that the terminal device 110 executes the generation scheme of the root skeleton key frame data provided in the embodiment of the present disclosure.
The present exemplary embodiment provides a method for generating root skeleton key frame data, which may be applied to a terminal device, as shown in fig. 2, the method for generating root skeleton key frame data includes:
step S201, obtaining an initial animation file;
the animation file comprises a plurality of frames of skeleton key frames corresponding to the virtual model, and the skeleton key frames at least comprise first motion data corresponding to pelvic bones;
step S202, determining a motion trend parameter of the virtual model in the motion process based on the first motion data;
s203, simplifying the first motion data based on the motion trend parameters to obtain second motion data of a root bone corresponding to the pelvis bone;
step S204, performing frame-by-frame motion data vector operation on multiple skeleton key frames according to second motion data of the root skeleton in each skeleton key frame to obtain a speed difference vector for representing motion change of the root skeleton in the multiple skeleton key frames;
step S205, when the sum of the speed difference vectors respectively corresponding to the skeleton key frames adjacent to the plurality of frames is larger than a preset threshold value, deleting second motion data in a middle skeleton key frame of the skeleton key frames adjacent to the plurality of frames to obtain simplified key frame data required for generating a root skeleton animation corresponding to the initial animation file;
wherein the number of the adjacent skeleton key frames of the multi-frame comprises at least three frames.
To sum up, according to the method for generating key frame data of a root bone provided by the embodiment of the disclosure, on one hand, the first motion data of the pelvis bone of the virtual model can be simplified according to the motion trend parameter of the virtual model to obtain the second motion data of the root bone, so that the second motion data of the root bone can be generated automatically, the consumption of human resources is reduced, and the accuracy of the determined second motion data of the root bone is improved; on the other hand, the second motion data in the skeleton key frame with the motion trend not changing significantly can be deleted, and on the basis of not influencing the animation rendering effect, the waste of data storage space is reduced and the performance pressure of animation rendering is reduced.
The following is a description of concepts to which the disclosure relates:
static models are three-dimensional models consisting of a connection of points in space into a surface, without skeletal bindings, the model being static. After the bones are bound to the static model, the motion of the bones can drive the motion of the model.
Pelvic bone skeleton: the skeleton system of the three-dimensional model is of a tree structure, the father node of the head skeleton is a neck skeleton, and the father node of the neck skeleton is a spine skeleton. A set of human bones is generally initiated from the pelvic bone (pelvis), which may be approximately equal in position and orientation to the human body.
Root bone: the root skeleton is the root node of the tree-like skeletal system, which is the parent node of the pelvic skeleton. The root skeleton does not bind the model, can be used to identify the location and orientation of virtual objects, such as virtual models, and can be used to mount objects, such as collision volumes. In a three-dimensional game, in the case where the shape of a virtual object is complicated, it is difficult to simulate physical calculations, so the physical surface of this object is simulated by mounting a collision volume of a simple geometric volume approximating the shape of an object on the root skeleton.
For example, as shown in FIG. 3, which shows a frame of a three-dimensional model of a virtual model during a set of in-place release actions, a pelvis bone is located at a pelvis bone position of the three-dimensional model, a root bone position is at the bottom of the three-dimensional model, and a box is a collision volume mounted on the root bone. As shown in FIG. 3, the pelvis bones are moving in each frame and are in different positions, the root bones are not animated so the positions remain unchanged, and the collision volume is not changed.
If the virtual model does not move in place or performs a displaced action, the root skeleton needs to move together with the three-dimensional model or the pelvis skeleton, otherwise, the position of the collision body is not changed, and further interaction cannot be performed.
For example, as shown in fig. 4. The upper part of fig. 4 shows the running motion of the virtual model, the root bone does not move together with the pelvis bone, and the actual position of the collision body is not changed. The lower part of fig. 3 also performs a running motion for the virtual model, the root bone and the pelvis bone move together, and the actual position of the collision volume follows the virtual model.
The above steps of the present exemplary embodiment will be described in more detail below.
In step S201, the terminal device may acquire an initial animation file.
In this embodiment of the present disclosure, the initial animation file may be an animation information file of the virtual model, the animation file includes multiple frames of skeleton key frames corresponding to the virtual model, the skeleton key frames include at least first motion data corresponding to a pelvis bone, where the first motion data corresponding to the pelvis bone at least includes position data of the pelvis bone, and the first motion data corresponding to the pelvis bone may further include orientation data of the pelvis bone.
In an optional implementation manner, the process of acquiring the initial animation file by the terminal device may include: when the terminal device runs the three-dimensional animation processing software, responding to the selected operation of the initial animation file, and acquiring the initial animation file, wherein the initial animation file can be any animation file stored in the terminal device.
In an optional implementation manner, the process of acquiring the initial animation file by the terminal device may include: when the terminal equipment runs the three-dimensional animation processing software, the terminal equipment obtains an initial animation file loading operation associated with an initial animation file identification, generates an initial animation file obtaining instruction according to the initial animation file identification, and sends the initial animation file obtaining instruction to the server, and the server can obtain an initial animation file according to the initial animation file identification in the initial animation file obtaining instruction, and returns the initial animation file to the terminal equipment.
In step S202, the terminal device may determine a movement trend parameter of the virtual model during the movement based on the first movement data.
In an embodiment of the disclosure, the motion trend parameter is used to characterize a motion trend of the virtual model, the motion trend including at least one of a location trend and an orientation trend, for example, the location trend may include: in the three-dimensional virtual scene, the virtual model moves on the y axis; the motion trend parameters may include position axial parameters (xp, yp, zp) of the three-dimensional virtual model, and a rotation axial parameter zr, where xp is an axial parameter of an x-axis in the three-dimensional virtual scene, yp is an axial parameter of a y-axis in the three-dimensional virtual scene, and zp is an axial parameter of a z-axis in the three-dimensional virtual scene.
It should be noted that, in the embodiment of the present disclosure, the position axial parameter may be 0 or 1, where the position axial parameter is 0, and indicates that the virtual model does not move in the position axial direction, and the position axial parameter is 1, and indicates that the virtual model moves in the position axial direction; for example, if the x-axis axial parameter xp is 1, it indicates that the virtual model moves in the x-axis direction.
In an optional implementation manner, the process of determining, by the terminal device, the motion trend parameter of the virtual model during the motion process based on the first motion data may include: and acquiring a pre-generated motion trend parameter associated with the initial animation file, wherein the motion trend parameter of the virtual model associated with the initial animation file in the motion process is determined based on the first motion data associated with the initial animation file.
Wherein, the process of the terminal device determining the motion trend parameter of the virtual model in the motion process based on the first motion data associated with the initial animation file may include: when the terminal equipment runs the three-dimensional animation processing software, rendering and displaying an animation picture corresponding to the initial animation file according to first motion data corresponding to the pelvis bones in each frame of the bone key frame in response to rendering operation associated with the initial animation file; and obtaining the motion trend parameters of the virtual model associated with the initial animation file in the motion process in response to obtaining the motion trend parameters input by the user.
In step S203, the terminal device may perform simplification processing on the first motion data based on the motion trend parameter to obtain second motion data of a root bone corresponding to a pelvis bone.
In an optional implementation manner, the first motion data includes pelvic bone position data, and the terminal device performs simplification processing on the first motion data based on the motion trend parameter to obtain second motion data of a root bone corresponding to the pelvic bone, including: acquiring position axial parameters in the motion trend parameters; and determining root bone position data according to the pelvic bone position data and the position axial parameters, and determining the root bone position data as second motion data of the root bone corresponding to the pelvic bone. The method can quickly and accurately determine the position data of the root skeleton according to the position axial parameters for representing the position change condition of the virtual model and the pelvis skeleton position data of the pelvis skeleton serving as the child nodes of the root skeleton, and simplifies the difficulty of determining the motion data of the root skeleton.
Wherein, according to the pelvis bone position data and the position axial parameter, the process of determining the root bone position data may include: determining root bone position data p2 according to the pelvic bone position data, the position axial parameters and a first formula (formula 1):
p2= (p 1.X · xp, p1.Y · yp, p1.Z · zp); equation 1
Wherein, p1.X represents the pelvic bone position data of the pelvic bone on the x-axis, p1.Y represents the pelvic bone position data of the pelvic bone on the y-axis, and p1.Z represents the pelvic bone position data of the pelvic bone on the z-axis; if xp is 0, it indicates that the position of the virtual model does not move on the x axis, and p1.X · xp indicates that the position data of the pelvis bone on the x axis is not retained when determining the position data of the root bone; or if xp is 1, the position of the virtual model is shown to move on the x axis, and p1.X · xp shows that when the position data of the root bone is determined, the position data of the pelvis bone on the x axis is reserved. p1. Y. Yp and p1. Z. Zp are similar to p1. X. Xp and the embodiments of the present disclosure will not be described herein.
In an alternative embodiment, the first motion data includes pelvis bone orientation data, and the process of the terminal device performing simplified processing on the first motion data to obtain second motion data of a root bone corresponding to the pelvis bone based on the motion trend parameter may include: acquiring a rotation axial parameter in the motion trend parameter; and determining root bone orientation data according to the pelvis bone orientation data and the rotation axial parameters, and determining the root bone orientation data as second motion data of the root bone corresponding to the pelvis bone. The orientation data of the root skeleton can be quickly and accurately determined according to the rotation axial parameters for representing the orientation change condition of the virtual model and the orientation data of the pelvis skeleton as the child node of the root skeleton, and the difficulty in determining the motion data of the root skeleton is simplified.
Wherein, the process of determining the root bone orientation data by the terminal device according to the pelvis bone orientation data and the rotation axial parameter may include: determining root bone orientation data r2 according to the pelvic bone orientation data, the position axial parameters and a second formula (formula 2):
Figure BDA0003923359190000102
wherein, r1.
Figure BDA0003923359190000103
Representing the position vector of the pelvic bone in the z-axis in the orientation data of the pelvic bone.
It is to be understood that the second motion data of the root bone corresponding to the pelvis bone may comprise at least root bone position data and the second motion data of the root bone corresponding to the pelvis bone may further comprise orientation data.
In step S204, the terminal device may perform a frame-by-frame motion data vector operation on multiple frames of skeleton key frames according to the second motion data of the root skeleton in each skeleton key frame, so as to obtain a speed difference vector for representing the motion change of the root skeleton in the multiple frames of skeleton key frames.
In an optional implementation manner, the process that the terminal device performs a frame-by-frame motion data vector operation on multiple frames of bone key frames according to the second motion data of the root bone in each bone key frame to obtain a speed difference vector for characterizing the motion change of the root bone in the multiple frames of bone key frames may include:
sequentially determining root bone position data in the current bone key frame and a first difference value of the root bone position data in the previous bone key frame from a second bone key frame in the multi-frame bone key frames to obtain a displacement difference vector associated with each frame of bone key frame; and sequentially determining a displacement difference vector associated with the current skeleton key frame and a second difference value of the displacement difference vector associated with the previous skeleton key frame from a second skeleton key frame in the plurality of skeleton key frames to obtain a speed difference vector associated with each skeleton key frame, wherein the displacement difference vector is used for representing the position change degree of two adjacent frames, and the speed difference vector is used for representing the speed change degree of the two adjacent frames. The speed change condition of the virtual model can be determined according to the root skeleton position data in the two adjacent skeleton key frames, and the accuracy of the determined speed change condition of the virtual model can be improved.
For example, as shown in fig. 5, the circle in fig. 5 represents the position of the root bone, and the process of gradually moving the position of the root bone from left to right in the multi-frame bone key frame of the initial animation file moves from the position of the first circle to the position of the second circle, corresponding to passing through one frame. Starting from the second frame skeletal key frame, determining a first difference of the root skeletal position data 502 in the second frame skeletal key frame and the root skeletal position data 501 in the first frame skeletal key frame, a displacement difference vector V associated with the second frame skeletal key frame can be obtained 1 (ii) a Next, determining a first difference between the root bone position data 503 in the bone key frame of the third frame and the root bone position data 502 in the bone key frame of the second frame, a displacement difference vector V associated with the bone key frame of the third frame can be obtained 2 . By analogy, based on the root bone position data in all the bone key frames, the displacement difference vector associated with each frame of bone key frame can be obtained, and it can be understood that the displacement difference vector associated with each frame of bone key frame does not include the displacement difference vector associated with the first frame of bone key frame.
Further, as shown in FIG. 6, starting from the second frame skeletal key frame, a displacement difference vector V associated with the second frame skeletal key frame is determined 1 And a second difference of the displacement difference vector 0 associated with the first frame of skeletal keyframes, a velocity difference vector associated with the second frame of skeletal keyframes can be obtained; next, a displacement difference vector V associated with the skeletal key frame of the third frame is determined 2 And a displacement difference vector V associated with the second frame skeletal keyframe 1 May yield a velocity difference vector 601 associated with the third frame skeletal keyframe; next, a displacement difference vector V associated with the fourth frame skeletal key frame is determined 3 And a displacement difference vector V associated with the third frame skeletal keyframe 2 May be used to derive a velocity difference vector 602 associated with the fourth frame skeletal keyframe.
In an optional implementation manner, the process that the terminal device performs a frame-by-frame motion data vector operation on multiple frames of bone key frames according to the second motion data of the root bone in each bone key frame to obtain a speed difference vector for characterizing the motion change of the root bone in the multiple frames of bone key frames may include:
starting from a third skeleton key frame in the multi-frame skeleton key frames, determining root skeleton position data in the current skeleton key frame and a first difference value of the root skeleton position data in the last skeleton key frame at intervals of one frame to obtain a displacement difference vector associated with the odd-frame skeleton key frame; starting from a third skeletal key frame of the plurality of skeletal key frames, determining a displacement difference vector associated with the current skeletal key frame one frame apart and a second difference of the displacement difference vectors associated with the last skeletal key frame apart, resulting in a velocity difference vector associated with the odd skeletal key frames. The speed change condition of the virtual model can be determined according to the root skeleton position data in the interval frame skeleton key frame, and the efficiency of the determined speed change condition of the virtual model can be improved.
It can be understood that, in the above embodiment, the process of the terminal device determining, starting from a third skeletal key frame in the multiple skeletal key frames, root skeletal position data in the current skeletal key frame and a first difference value of the root skeletal position data in the previous skeletal key frame at an interval of one frame to obtain a displacement difference vector associated with the skeletal key frame of the odd frame may be referred to, and the process of the terminal device determining, starting from a second skeletal key frame in the multiple skeletal key frames, the root skeletal position data in the current skeletal key frame and a first difference value of the root skeletal position data in the previous skeletal key frame in sequence to obtain a displacement difference vector associated with each skeletal key frame is referred to, which is not described in detail in this disclosure.
Similarly, the terminal device determines, from a third bone key frame of the multiple bone key frames, a displacement difference vector associated with the current bone key frame at an interval of one frame and a second difference value of the displacement difference vector associated with the previous bone key frame at an interval of one frame to obtain a velocity difference vector associated with the odd bone key frame.
In step S205, when the sum of the velocity difference vectors respectively corresponding to the skeleton key frames adjacent to the multiple frames is greater than a preset threshold, deleting the second motion data in the middle skeleton key frame of the skeleton key frames adjacent to the multiple frames to obtain the simplified key frame data required for generating the root skeleton animation corresponding to the initial animation file.
In the embodiment of the disclosure, when the sum of the velocity difference vectors respectively corresponding to multiple frames of adjacent skeletal key frames is greater than a preset threshold, it may be determined that the motion trend of the virtual model in the middle skeletal key frame of the multiple frames of adjacent skeletal key frames does not change greatly, the second motion data in the middle skeletal key frame of the multiple frames of adjacent skeletal key frames may be deleted, and the visual effect of the virtual model may not be affected; wherein the number of the adjacent skeleton key frames of the multi-frame comprises at least three frames.
In an alternative embodiment, when the sum of the velocity difference vectors respectively corresponding to the skeleton key frames adjacent to the multiple frames is greater than a preset threshold, the deleting, by the terminal device, the second motion data in the middle skeleton key frame of the skeleton key frames adjacent to the multiple frames may include: determining the sum value of velocity difference vectors respectively associated with any frame of bone key frames to a target bone key frame in a plurality of frames of bone key frames to obtain an accumulated velocity difference vector; and if the accumulated speed difference vector is larger than a preset threshold value, deleting second motion data in the skeleton key frame between any frame of the skeleton key frame and the target skeleton key frame. Wherein, the target skeleton key frame is behind any frame skeleton key frame and is separated from any frame skeleton key frame by at least one frame; the redundant data in the multi-frame skeleton key frames can be deleted from any one of the multi-frame skeleton key frames, and the requirement of a user on diversified simplification of the second motion data of the root skeleton is met.
It should be noted that the preset threshold may be determined based on actual needs, which is not limited in the embodiments of the present disclosure, and for example, different preset thresholds may be configured for different animation files based on reference factors including animation accuracy, rendering performance, and the like.
In an alternative embodiment, when the sum of the velocity difference vectors respectively corresponding to the skeleton key frames adjacent to the plurality of frames is greater than a preset threshold, the deleting, by the terminal device, the second motion data in the middle skeleton key frame of the skeleton key frames adjacent to the plurality of frames may include:
determining the sum value of velocity difference vectors respectively associated with a first frame of bone key frames to a target bone key frame in a plurality of frames of bone key frames to obtain an accumulated velocity difference vector; and if the accumulated speed difference vector is larger than a preset threshold value, deleting second motion data in the skeleton key frame between the first frame skeleton key frame and the target skeleton key frame. Wherein the target skeletal key frame is after the first skeletal key frame and is separated from the first skeletal key frame by at least one frame, for example, the target skeletal key frame may be a third skeletal key frame; the redundant second motion data in the multi-frame skeleton key frames can be deleted from the first frame skeleton key frame in the multi-frame skeleton key frames, so that the data volume of the simplified key frame data required by generating the root skeleton animation corresponding to the initial animation file is reduced, and the occupation of the data storage space is reduced.
In an optional implementation manner, if the first accumulated velocity difference vector is less than or equal to a preset threshold, determining a next frame bone key frame after the target frame bone key frame in the multiple frames of bone key frames as an updated target bone key frame; determining the sum of velocity difference vectors respectively associated with the first frame of the skeleton key frame to the updated target skeleton key frame to obtain a first updated accumulated velocity difference vector; and if the first updated accumulated velocity difference vector is larger than a preset threshold, deleting the skeleton key frame between the first frame skeleton key frame and the updated target skeleton key frame. The target key frame can be updated when it is determined that the skeletal shutdown key frame of the redundant second motion data does not exist in the first frame skeletal key frame to the target skeletal key frame from the first frame skeletal key frame in the multi-frame skeletal key frames, until each skeletal key frame in the multi-frame skeletal key frames is traversed, and the data volume of the obtained simplified key frame data required for generating the root skeletal animation corresponding to the initial animation file is further reduced.
For example, as shown in fig. 7. FIG. 7 includes a displacement difference vector, a velocity difference vector, and a sum vector of velocity difference vectors corresponding to adjacent bone key frames of a plurality of frames, the displacement difference vector is indicated by a first arrow in FIG. 7, the velocity difference vector is indicated by a second arrow in FIG. 7, and the sum vector of the velocity difference vectors is indicated by a third arrow in FIG. 7; in fig. 7, the sum vector of velocity difference vectors corresponding to adjacent skeletal keyframes in a plurality of frames comprises 701 and 702, respectively.
The second motion data of the root bone is simplified after the second motion data in the middle bone key frame of the plurality of adjacent frame bone key frames. For example, with continued reference to fig. 7, from left to right may be a first frame skeletal key frame, a second frame skeletal key frame, a third frame skeletal key frame, and a fourth frame skeletal key frame, respectively. And accumulating the sum of the velocity difference vectors from the first frame of the skeletal key frame to the fourth frame of the skeletal key frame, wherein the sum is larger than a preset threshold value, and represents that the motion trend of the virtual model is greatly changed when the fourth frame of the skeletal key frame is used. It is indicated that the motion trend of the virtual model does not change greatly in the second skeletal key frame and the third skeletal key frame between the first skeletal key frame and the fourth skeletal key frame, and the second motion data in the second skeletal key frame and the third skeletal key frame can be deleted without affecting the visual effect of the animation picture.
In an optional embodiment, after deleting the second motion data in the skeletal key frame between the first frame skeletal key frame and the target skeletal key frame, the terminal device may further: determining a next frame bone key frame behind a target bone key frame in a plurality of frames of bone key frames as an updated first frame bone key frame; determining a bone key frame which is behind the updated first frame bone key frame and is at least one frame away from the updated first frame bone key frame in the plurality of frames of bone key frames as an updated target bone key frame; determining the sum of velocity difference vectors respectively associated with the updated first frame bone key frame to the updated target bone key frame to obtain a second updated accumulated velocity difference vector; and if the second updated accumulated velocity difference vector is larger than a preset threshold, deleting second motion data in the skeleton key frame between the updated first frame skeleton key frame and the updated target skeleton key frame. The method comprises the steps of starting from a first skeleton key frame in a plurality of skeleton key frames, determining that a skeleton key frame with redundant second motion data exists in a target skeleton key frame from the first skeleton key frame, continuously determining a new first skeleton key frame and a new target skeleton key frame after deleting the redundant second motion data until each skeleton key frame in the plurality of skeleton key frames is traversed, deleting all redundant data in the skeleton key frames of the plurality of frames, and further reducing the data volume of the obtained simplified key frame data required by generating a root skeleton animation corresponding to an initial animation file.
As shown in fig. 8, fig. 8 is a diagram of the change in position of the root bone generated by simplifying the process of changing the position of the root bone shown in fig. 7 by two points. Nine skeletal key frames are included in fig. 7, two of which indicate a large change in root skeletal animation. Therefore, in fig. 8, the second and third key frames from left to right among the nine key frames are deleted, and the fifth and sixth key frames are deleted, so as to obtain the position change map of the root skeleton after two simplification processes.
It should be noted that, in the embodiment of the present disclosure, after obtaining simplified key frame data required for generating a root bone animation corresponding to the initial animation file, in a rendering process of the initial animation file, when rendering is performed to a first bone key frame in which second motion data of a root bone is reserved, a motion state of the virtual model may be rendered according to the second motion data of the root bone, and when rendering is performed to a second bone key frame in which second motion data of the root bone is not reserved, a bone key frame in which second motion data of the root bone is reserved last and a bone key frame in which second motion data of the root bone is reserved next may be automatically supplemented, so as to render a motion state of the virtual model.
In the present exemplary embodiment, a device 900 for generating root skeleton key frame data is also provided. Referring to fig. 9, the generating means 900 of the root bone key frame data may include:
an obtaining module 901 configured to obtain an initial animation file, where the animation file includes multiple frames of skeleton key frames corresponding to the virtual model, and the skeleton key frames at least include first motion data corresponding to a pelvis bone;
a determining module 902 configured to determine a motion trend parameter of the virtual model during the motion process based on the first motion data;
the processing module 903 is configured to simplify the first motion data based on the motion trend parameter to obtain second motion data of a root bone corresponding to the pelvis bone;
an operation module 904, configured to perform frame-by-frame motion data vector operation on multiple skeleton key frames according to the second motion data of the root skeleton in each skeleton key frame, so as to obtain a velocity difference vector for representing motion change of the root skeleton in the multiple skeleton key frames;
a deleting module 905 configured to delete the second motion data in the middle skeleton key frame of the skeleton key frames adjacent to the plurality of frames to obtain simplified key frame data required for generating the root skeleton animation corresponding to the initial animation file when the sum of the velocity difference vectors respectively corresponding to the skeleton key frames adjacent to the plurality of frames is greater than a preset threshold, wherein the number of the frames of the skeleton key frames adjacent to the plurality of frames comprises at least three frames.
Optionally, the first motion data includes pelvic bone position data, and the processing module 903 is configured to:
acquiring position axial parameters in the motion trend parameters;
and determining root bone position data according to the pelvic bone position data and the position axial parameters, and determining the root bone position data as second motion data of the root bone corresponding to the pelvic bone.
Optionally, the first motion data includes pelvic bone orientation data, and the processing module 903 is configured to:
obtaining a rotation axial parameter in the motion trend parameters;
and determining root bone orientation data according to the pelvis bone orientation data and the rotation axial parameters, and determining the root bone orientation data as second motion data of the root bone corresponding to the pelvis bone.
Optionally, the operation module 904 is configured to:
sequentially determining root bone position data in the current bone key frame and a first difference value of the root bone position data in the previous bone key frame from a second bone key frame in the multi-frame bone key frames to obtain a displacement difference vector associated with each frame of bone key frame;
and sequentially determining a displacement difference vector associated with the current skeleton key frame and a second difference value of the displacement difference vector associated with the previous skeleton key frame from a second skeleton key frame in the plurality of skeleton key frames to obtain a speed difference vector associated with each skeleton key frame.
Optionally, the deleting module 905 is configured to:
determining sum values of velocity difference vectors respectively associated with a first frame of bone key frames to a target bone key frame in a plurality of frames of bone key frames to obtain an accumulated velocity difference vector, wherein the target bone key frame is positioned behind the first frame of bone key frames and is at least one frame away from the first frame of bone key frames;
and if the accumulated speed difference vector is larger than a preset threshold value, deleting second motion data in the skeleton key frame between the first frame of the skeleton key frame and the target skeleton key frame.
Optionally, as shown in fig. 9, the apparatus 900 for generating root skeleton key frame data further includes a first updating module 906 configured to:
if the first accumulated speed difference vector is smaller than or equal to a preset threshold value, determining a next skeleton key frame after the skeleton key frame of the target frame in the multi-frame skeleton key frames as an updated target skeleton key frame;
determining sum values of velocity difference vectors respectively associated with the first frame of bone key frame to the updated target bone key frame to obtain a first updated accumulated velocity difference vector;
and if the first updated accumulated velocity difference vector is larger than a preset threshold, deleting the skeleton key frame between the first frame skeleton key frame and the updated target skeleton key frame.
Optionally, as shown in fig. 9, the apparatus for generating root skeleton key frame data further includes a second updating module 907 configured to:
determining a next frame bone key frame behind a target bone key frame in the plurality of frames of bone key frames as an updated first frame bone key frame;
determining a bone key frame which is behind the updated first frame bone key frame and is at least one frame away from the updated first frame bone key frame in the plurality of frames of bone key frames as an updated target bone key frame;
determining the sum of velocity difference vectors respectively associated with the updated first frame bone key frame to the updated target bone key frame to obtain a second updated accumulated velocity difference vector;
and if the second updated accumulated velocity difference vector is larger than a preset threshold, deleting second motion data in the skeleton key frame between the updated first frame skeleton key frame and the updated target skeleton key frame.
Fig. 10 shows a schematic structural diagram of a computer system suitable for implementing an electronic device of an embodiment of the present disclosure, which may be a terminal device.
It should be noted that the computer system of the electronic device shown in fig. 10 is only an example, and should not bring any limitation to the functions and the application scope of the embodiment of the present disclosure.
As shown in fig. 10, the computer system includes a Central Processing Unit (CPU) that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) or a program loaded from a storage section into a Random Access Memory (RAM). In the RAM, various programs and data necessary for system operation are also stored. The CPU, ROM, and RAM are connected to each other via a bus. An input/output (I/O) interface is also connected to the bus.
The following components are connected to the (I/O) interface: an input section including a keyboard, a mouse, and the like; an output section including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section including a hard disk and the like; and a communication section including a network interface card such as a LAN card, a modem, or the like. The communication section performs communication processing via a network such as the internet. The drive is also connected to the (I/O) interface as needed. A removable medium such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive as needed, so that the computer program read out therefrom is mounted into the storage section as needed.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functions of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
Since each functional module of the root skeleton animation simplification device of the exemplary embodiment of the present disclosure corresponds to the steps of the exemplary embodiment of the root skeleton animation generation method described above, for details and effects not disclosed in the embodiment of the device of the present disclosure, please refer to the embodiment of the root skeleton animation generation method described above of the present disclosure.
These above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more Application Specific Integrated Circuits (ASICs), or one or more microprocessors (DSPs), or one or more Field Programmable Gate Arrays (FPGAs), among others. For another example, when one of the above modules is implemented in the form of a Processing element scheduler code, the Processing element may be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor capable of calling program code. For another example, the modules may be integrated together and implemented in the form of a System-on-a-chip (SOC).
In the embodiments provided in the present disclosure, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit may be implemented in the form of hardware, or in the form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present invention.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A method for generating root skeleton key frame data, the method comprising:
acquiring an initial animation file, wherein the animation file comprises a plurality of frames of skeleton key frames corresponding to a virtual model, and the skeleton key frames at least comprise first motion data corresponding to a pelvis skeleton;
determining a motion trend parameter of the virtual model in the motion process based on the first motion data;
based on the movement trend parameters, simplifying the first movement data to obtain second movement data of a root bone corresponding to the pelvis bone;
according to second motion data of the root bone in each bone key frame, performing frame-by-frame motion data vector operation on the multiple bone key frames to obtain a speed difference vector for representing motion change of the root bone in the multiple bone key frames;
and when the sum of the speed difference vectors respectively corresponding to the multiple adjacent skeleton key frames is larger than a preset threshold value, deleting second motion data in a middle skeleton key frame of the multiple adjacent skeleton key frames to obtain simplified key frame data required for generating the root skeleton animation corresponding to the initial animation file, wherein the frame number of the multiple adjacent skeleton key frames comprises at least three frames.
2. The method of claim 1, wherein the first motion data comprises pelvis bone position data, and the simplifying processing of the first motion data based on the motion trend parameter to obtain second motion data of a root bone corresponding to the pelvis bone comprises:
acquiring a position axial parameter in the motion trend parameter;
and determining root bone position data according to the pelvis bone position data and the position axial parameters, and determining the root bone position data as second motion data of a root bone corresponding to the pelvis bone.
3. The method of claim 1, wherein the first motion data comprises pelvis bone orientation data, and the simplifying processing of the first motion data based on the motion trend parameter to obtain second motion data of a root bone corresponding to the pelvis bone comprises:
acquiring a rotating axial parameter in the motion trend parameter;
and determining root bone orientation data according to the pelvic bone orientation data and the rotation axial parameters, and determining the root bone orientation data as second motion data of a root bone corresponding to the pelvic bone.
4. The method of claim 1, wherein the second motion data comprises root bone position data, and the performing a frame-by-frame motion data vector operation on the plurality of frames of bone key frames according to the second motion data of the root bone in each bone key frame to obtain a velocity difference vector for characterizing the motion change of the root bone in the plurality of frames of bone key frames comprises:
sequentially determining root bone position data in the current bone key frame and a first difference value of the root bone position data in the previous bone key frame from a second bone key frame in the multiple bone key frames to obtain a displacement difference vector associated with each frame of bone key frame;
and sequentially determining a displacement difference vector associated with the current bone key frame and a second difference value of the displacement difference vectors associated with the previous bone key frame from a second bone key frame in the plurality of bone key frames to obtain a speed difference vector associated with each frame of bone key frames.
5. The method according to claim 1, wherein said deleting second motion data in a middle skeletal keyframe of a multi-frame neighboring frame skeletal keyframe when a sum of the velocity difference vectors respectively corresponding to said multi-frame neighboring skeletal keyframe is greater than a preset threshold comprises:
determining the sum of velocity difference vectors respectively associated with a first frame of bone key frames to a target bone key frame in the plurality of frames of bone key frames to obtain an accumulated velocity difference vector, wherein the target bone key frame is positioned behind the first frame of bone key frames and is separated from the first frame of bone key frames by at least one frame;
and if the accumulated speed difference vector is larger than the preset threshold, deleting second motion data in the skeleton key frame between the first frame of skeleton key frame and the target skeleton key frame.
6. The method of claim 5, further comprising:
if the first accumulated velocity difference vector is smaller than or equal to the preset threshold, determining a next frame bone key frame after the target frame bone key frame in the plurality of frames of bone key frames as an updated target bone key frame;
determining the sum of velocity difference vectors respectively associated with the first frame of bone key frame to the updated target bone key frame to obtain a first updated accumulated velocity difference vector;
and if the first updated accumulated velocity difference vector is larger than the preset threshold, deleting the skeleton key frame between the first frame skeleton key frame and the updated target skeleton key frame.
7. The method of claim 5, wherein after deleting second motion data in skeletal keyframes between the first frame skeletal keyframe and the target skeletal keyframe, the method further comprises:
determining a next frame bone key frame after the target bone key frame in the plurality of frames of bone key frames as an updated first frame bone key frame;
determining the bone key frames which are behind the updated first frame bone key frame and are at least one frame away from the updated first frame bone key frame in the plurality of frames of bone key frames as updated target bone key frames;
determining the sum of velocity difference vectors respectively associated with the updated first frame bone key frame to the updated target bone key frame to obtain a second updated accumulated velocity difference vector;
and if the second updated accumulated velocity difference vector is larger than the preset threshold, deleting second motion data in the skeleton key frame between the updated first frame skeleton key frame and the updated target skeleton key frame.
8. An apparatus for generating root-skeleton key frame data, the apparatus comprising:
the system comprises an acquisition module, a display module and a display module, wherein the acquisition module is configured to acquire an initial animation file, the animation file comprises a plurality of frames of skeleton key frames corresponding to a virtual model, and the skeleton key frames at least comprise first motion data corresponding to pelvis skeletons;
a determining module configured to determine a motion trend parameter of the virtual model during a motion process based on the first motion data;
the processing module is configured to simplify the first motion data to obtain second motion data of a root bone corresponding to the pelvis bone based on the motion trend parameter;
the operation module is configured to perform frame-by-frame motion data vector operation on the plurality of frames of bone key frames according to the second motion data of the root bone in each bone key frame to obtain a speed difference vector for representing the motion change of the root bone in the plurality of frames of bone key frames;
and the deleting module is configured to delete the second motion data in the middle skeleton key frame of the skeleton key frames adjacent to the multiple frames to obtain simplified key frame data required for generating the root skeleton animation corresponding to the initial animation file when the sum of the speed difference vectors respectively corresponding to the skeleton key frames adjacent to the multiple frames is greater than a preset threshold value, wherein the number of the frames of the skeleton key frames adjacent to the multiple frames comprises at least three frames.
9. A computer-readable storage medium on which a computer program is stored, the program, when executed by a processor, implementing a method of generating root skeletal key frame data according to any one of claims 1 to 7.
10. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the method of generating root skeletal key frame data as claimed in any one of claims 1 to 7.
CN202211364457.1A 2022-11-02 2022-11-02 Method, device, medium and equipment for generating key frame data of root skeleton Pending CN115713580A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211364457.1A CN115713580A (en) 2022-11-02 2022-11-02 Method, device, medium and equipment for generating key frame data of root skeleton

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211364457.1A CN115713580A (en) 2022-11-02 2022-11-02 Method, device, medium and equipment for generating key frame data of root skeleton

Publications (1)

Publication Number Publication Date
CN115713580A true CN115713580A (en) 2023-02-24

Family

ID=85231987

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211364457.1A Pending CN115713580A (en) 2022-11-02 2022-11-02 Method, device, medium and equipment for generating key frame data of root skeleton

Country Status (1)

Country Link
CN (1) CN115713580A (en)

Similar Documents

Publication Publication Date Title
CN108010112B (en) Animation processing method, device and storage medium
CN111803945B (en) Interface rendering method and device, electronic equipment and storage medium
JP2012528376A (en) Ray tracing apparatus and method
CN111773690B (en) Task processing method and device, storage medium and electronic device
CN110120087B (en) Label marking method and device for three-dimensional virtual sand table and terminal equipment
CN115661310B (en) Virtual digital human expression approximation method and device, storage medium and electronic equipment
JP4936522B2 (en) Image processing method and image processing apparatus
CN116115995A (en) Image rendering processing method and device and electronic equipment
CN113409444A (en) Three-dimensional reconstruction method and device, electronic equipment and storage medium
CN115129460A (en) Method and device for acquiring operator hardware time, computer equipment and storage medium
CN113240789A (en) Virtual object construction method and device
CN110378948B (en) 3D model reconstruction method and device and electronic equipment
CN112669418A (en) Model rendering method and device
CN115713580A (en) Method, device, medium and equipment for generating key frame data of root skeleton
TW202312100A (en) Grid generation method, electronic device and computer-readable storage medium
CN114797109A (en) Object editing method and device, electronic equipment and storage medium
CN112489203A (en) Model processing method, model processing apparatus, electronic device, and storage medium
Liang et al. Time‐Domain Parallelization for Accelerating Cloth Simulation
CN115457189B (en) PBD (skeletal driven software) simulation system and method based on cluster coloring
CN115908678B (en) Bone model rendering method and device, electronic equipment and storage medium
CN116152460B (en) Method, device, terminal and medium for generating rock stratum model based on UE4
US20220335691A1 (en) Computer-implemented methods for simulating deformation in real-world scene, electronic devices, and computer-readable storage medium
CN111767594B (en) Temporary building model generation method, device, equipment and storage medium
CN112807695B (en) Game scene generation method and device, readable storage medium and electronic equipment
CN112200890B (en) Method for setting collider based on Unity and storage medium

Legal Events

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