Animation data generation method and apparatus, and related product
The pre-trained neural network uses the trajectory characteristics and skeletal characteristics of virtual objects to generate animation data, which solves the problems of high memory usage and poor query performance in action matching technology, and achieves low memory usage and efficient animation data generation. Improved gaming experience.
Patent Information
- Application Number
- PCT/CN2023/091117
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2022-07-15
- Filing Date
- 2023-04-27
- Publication Date
- 2024-09-06
AI Technical Summary
Action matching technology results in high memory usage and poor query performance in the animation engine, which limits the generation and display of animation data.
Animation data of virtual objects is generated through pre-trained neural networks, using trajectory features and skeletal features of virtual objects as input to increase feature dimensions to generate animation data, avoiding the need to store massive animation data and reducing memory usage.
It realizes animation data generation with low memory usage, improves query performance and game running smoothness, and enhances the player's gaming experience.
Smart Images

Figure CN2023091117_06092024_PF_FP
Abstract
Description
Animation data generation method, device and related products
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on July 15, 2022, with application number 202210832558.0 and application name “A method, device and related products for generating animation data based on neural network”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of artificial intelligence technology, and in particular to animation data generation technology. Background Art
[0003] In game development and animation production, flexible and realistic animation effects are often needed to enhance the viewer experience. For example, in gaming, actions like running, jumping, squatting, gentle breathing or swaying while idle, and raising arms in panic after falling can be animated flexibly and realistically. This enriches the player's visual experience and enhances their sense of interaction within the game.
[0004] To create animations of virtual objects with different movements, related technologies provide motion matching technology. Motion matching technology can select the most matching animation frame from a large number of animations to play, thereby generating animations of virtual objects with different movements.
[0005] However, when motion matching technology drives animation data, it must store massive amounts of data in memory during runtime and perform motion matching within this massive data set, resulting in high memory usage and poor query performance. This problem has limited the development of motion matching technology in animation engines.
[0006] Summary of the Invention
[0007] The embodiments of the present application provide a method, device and related products for generating animation data, aiming to generate animation data with low memory usage.
[0008] In a first aspect of the present application, a method for generating animation data is provided. The method is executed by an animation data generating device and includes:
[0009] Generating query features of virtual objects in the virtual scene according to the running data of the virtual scene; the query features include trajectory features and skeleton features of the virtual object;
[0010] Based on the trajectory features and skeleton features of the virtual object, increasing the feature dimensions of the virtual object through a feature generation network in a neural network to obtain a combined feature of the virtual object, wherein the neural network is pre-trained;
[0011] Based on the combined features of the virtual object, animation data of the virtual object is generated by an animation generation network in the neural network.
[0012] In a second aspect of the present application, an animation data generating apparatus is provided. The animation data generating apparatus is deployed on an animation data generating device and includes:
[0013] A query feature generating unit, configured to generate query features of virtual objects in the virtual scene according to the operation data of the virtual scene; the query features include trajectory features and skeleton features of the virtual objects;
[0014] a combined feature generating unit, configured to increase the feature dimension of the virtual object by a feature generating network in a neural network based on the trajectory feature and the skeleton feature of the virtual object, thereby obtaining a combined feature of the virtual object, wherein the neural network is pre-trained;
[0015] An animation data generating unit is used to generate animation data of the virtual object through the animation generating network in the neural network based on the combined features of the virtual object.
[0016] In a third aspect of the present application, an animation data generating device is provided, the animation data generating device comprising a processor and a memory:
[0017] The memory is used to store a computer program and transmit the computer program to the processor;
[0018] The processor is configured to execute the steps of the animation data generating method described in the first aspect according to the instructions in the computer program.
[0019] In a fourth aspect, the present application provides a computer-readable storage medium for storing a computer program that, when executed by an animation data generating device, implements the steps of the animation data generating method described in the first aspect.
[0020] In a fifth aspect, the present application provides a computer program product, which includes a computer program that, when executed by an animation data generating device, implements the steps of the animation data generating method described in the first aspect.
[0021] It can be seen from the above technical solutions that the embodiments of the present application have the following advantages:
[0022] In the technical solution of this application, trajectory features and skeletal features of a virtual object in a virtual scene are obtained as query features. Based on these features, animation data for the virtual object is generated using a pre-trained neural network. Because this pre-trained neural network has the ability to add feature dimensions to the query features and generate animation data for the virtual object based on these high-dimensional features, it can meet the demand for animation data generation. Furthermore, the use of a neural network eliminates the need to store massive amounts of data in memory and query matching animations, as in previous motion matching techniques. Instead, the use of a neural network only requires pre-storing weight data related to the neural network. Therefore, the entire solution uses less memory and eliminates the need for real-time queries from massive amounts of data. This avoids the problems of high memory usage and poor query performance when generating animation data. Furthermore, due to the reduced memory usage and reduced query requirements, in gaming scenarios, for example, games run more smoothly, and more storage space can be used for other purposes, facilitating improvements in other aspects of the game, such as graphics quality. This, in turn, enhances the player's gaming experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 is a schematic diagram of an animation state machine;
[0024] FIG2 is a scene architecture diagram of a method for generating animation data according to an embodiment of the present application;
[0025] FIG3 is a flow chart of a method for generating animation data provided by an embodiment of the present application;
[0026] FIG4 is a schematic diagram of the structure of a neural network provided in an embodiment of the present application;
[0027] FIG5A is a schematic diagram of the structure of another neural network provided in an embodiment of the present application;
[0028] FIG5B is a flowchart of another method for generating animation data provided by an embodiment of the present application;
[0029] FIG6 is a schematic diagram of the structure of a feature generation network provided in an embodiment of the present application;
[0030] FIG7 is a schematic diagram of the structure of a feature update network provided in an embodiment of the present application;
[0031] FIG8 is a schematic diagram of the structure of an animation generation network provided in an embodiment of the present application;
[0032] FIG9A is a flowchart of a neural network training method according to an embodiment of the present application;
[0033] FIG9B is a schematic diagram of a root bone trajectory before denoising provided by an embodiment of the present application;
[0034] FIG9C is a schematic diagram of a root bone trajectory after denoising provided by an embodiment of the present application;
[0035] FIG10A is a schematic diagram of the structure of a deep learning network capable of extracting auxiliary query features provided by an embodiment of the present application;
[0036] FIG10B is a schematic diagram of animation effects obtained by a traditional motion matching method and an animation data generation method provided by an embodiment of the present application;
[0037] FIG11 is a schematic structural diagram of an animation data generating device provided in an embodiment of the present application;
[0038] FIG12 is a schematic structural diagram of another animation data generating device provided in an embodiment of the present application;
[0039] FIG13 is a schematic structural diagram of a server in an embodiment of the present application;
[0040] FIG14 is a schematic structural diagram of a terminal device in an embodiment of the present application. DETAILED DESCRIPTION
[0041] In animation production scenarios or game scenarios, a state machine can be designed to control various complex playback and conversion control logics of animations. Figure 1 is a schematic diagram of an animation state machine. In the state machine shown in Figure 1, Defense (Defend), Upset (Upset), Victory (Victory), and Idle (Idle) represent four different animations respectively, and the two-way arrows between the four animations indicate switching between the animations. If the traditional state machine method is used to generate animations in game development or animation production scenarios, when the movements of virtual objects are more complex, the design of the state machine will be very large, and subsequent updates and maintenance will be very difficult, time-consuming, and prone to failures.
[0042] This led to the development of motion matching technology, which addressed the issues of large animation state machine designs, complex logic, and inconvenient maintenance. However, motion matching technology requires pre-storing massive amounts of animation data for query matching, which consumes a lot of memory and leads to poor storage and query performance.
[0043] In view of the above problems, an animation data generation method, device and related products are provided in the present application. When it is necessary to generate an animation of a virtual object, based on the query features (trajectory features and skeletal features) of the virtual object that have been obtained, the animation data of the virtual object can be generated with the help of a pre-trained neural network. Compared with the implementation method of pre-storing massive animation data for query matching in obtaining the animation effect of virtual objects, since the weight data of the neural network takes up little memory, the storage and query performance can be improved. This advantage enables the embodiment of the present application to be better applied and developed in the animation engine.
[0044] It should be noted that the animation data generation method provided in the embodiment of the present application mainly involves artificial intelligence (AI) technology, especially machine learning in artificial intelligence technology, and uses the neural network obtained by machine learning training to solve the storage and query performance problems of action matching technology in animation production and film production.
[0045] First, several noun terms that may be involved in the embodiments below in this application are explained.
[0046] 1) Machine Learning:
[0047] Machine learning is a multidisciplinary field, encompassing probability theory, statistics, approximation theory, convex analysis, and algorithmic complexity theory. It specifically studies how computers simulate or implement human learning behaviors to acquire new knowledge or skills and reorganize existing knowledge structures to continuously improve their performance. Machine learning is at the core of artificial intelligence and a branch of it. It is the fundamental path to computer intelligence, and its applications span all areas of artificial intelligence. Machine learning and deep learning typically include techniques such as artificial neural networks, belief networks, reinforcement learning, transfer learning, inductive learning, and self-learning. The history of artificial intelligence research follows a clear and natural progression, evolving from a focus on reasoning to knowledge, and finally to learning. Clearly, machine learning is a path to achieving artificial intelligence, using machine learning as a tool to solve problems within artificial intelligence.
[0048] 2)Neutral Network:
[0049] Artificial neural networks, also known as neural networks or neural-like networks, are mathematical or computational models in machine learning and cognitive science that mimic the structure and function of biological neural networks and are used to estimate or approximate functions. Neural networks perform computations by connecting large numbers of artificial neurons. In most cases, artificial neural networks can adapt their internal structure based on external information, making them adaptive systems. In layman's terms, they possess learning capabilities.
[0050] 3) Motion capture:
[0051] Motion capture, also known as dynamic capture, refers to the technology used to record and process the movements of people or other objects. It is widely used in fields such as entertainment, sports, medical applications, computer vision, and robotics. In animation, filmmaking, and video game development, it typically involves recording the movements of a human actor and translating them into the movements of a digital model, generating two- or three-dimensional computer animation. When capturing subtle facial or finger movements, it is often referred to as performance capture.
[0052] 4) Virtual scene:
[0053] It is a virtual scene displayed (or provided) when the application is running on the terminal. The virtual scene can be a simulation scene of the real world, or a semi-simulation and semi-fictitious three-dimensional scene, or a purely fictitious three-dimensional scene. The virtual scene can be any one of a two-dimensional virtual scene, a 2.5-dimensional virtual scene and a three-dimensional virtual scene. The following embodiment is illustrated by an example in which the virtual scene is a three-dimensional virtual scene, but this is not limited to this. In one possible implementation, the virtual scene is also used for a virtual scene battle between at least two virtual objects. The virtual scene can be, for example, a game scene, a virtual reality scene, an extended reality scene, etc., which is not limited in the embodiments of the present application.
[0054] 4) Virtual objects:
[0055] A virtual object refers to an object that can be moved within a virtual scene. This object can be at least one of a virtual person, a virtual animal, or an animated character. In one possible implementation, when the virtual scene is a three-dimensional scene, the virtual object can be a three-dimensional model created using animation skeletal technology. Each virtual object has its own shape and volume within the three-dimensional virtual scene and occupies a portion of the space within the three-dimensional virtual scene.
[0056] The animation data generation method provided in the embodiment of the present application can be executed by an animation data generation device, which can be, for example, a terminal device. That is, query features are generated on the terminal device and animation data is generated according to a pre-trained neural network. As an example, the terminal device can specifically include but is not limited to mobile phones, computers, intelligent voice interaction devices, smart home appliances, vehicle-mounted terminals, aircraft, etc. The embodiments of the present invention can be applied to various scenarios, including but not limited to cloud technology, artificial intelligence, digital humans, virtual humans, games, virtual reality, extended reality (XR, Extended Reality), etc. In addition, the above-mentioned animation data generation device can also be a server, that is, query features can be generated on the server and animation data can be generated according to a pre-trained neural network.
[0057] In some other implementations, the animation data generation method provided in the embodiment of the present application can also be implemented jointly by a terminal device and a server. Figure 2 is a scene architecture diagram of a method for implementing animation data generation provided in an embodiment of the present application. To facilitate understanding of the technical solution provided in the embodiment of the present application, the implementation scenario of the solution is introduced below in conjunction with Figure 2. In the implementation scenario, a terminal device and a server are involved. For example, the operation data of the virtual scene can be extracted on the terminal device to generate query features of virtual objects in the virtual scene, the weight data of the neural network can be retrieved from the server, and animation data of the virtual object can be generated on the terminal device based on the neural network. In addition, query features of virtual objects in the virtual scene can be generated in the server based on the operation data of the virtual scene, the query features can be sent to the terminal device, and then the neural network can be used on the terminal device to realize the generation of animation data. Therefore, in the embodiment of the present application, there is no limitation on the implementation subject of the technical solution of the present application.
[0058] The server shown in Figure 2 can be a standalone physical server, a server cluster composed of multiple physical servers, or a distributed system. Furthermore, the server can also be 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.
[0059] FIG3 is a flow chart of a method for generating animation data according to an embodiment of the present application. The following describes the specific implementation of this method using a terminal device as the execution subject. The method for generating animation data as shown in FIG3 includes:
[0060] S301: Generate query features of virtual objects in the virtual scene according to operation data of the virtual scene.
[0061] Taking the game scene as an example, when the player manipulates the virtual object, the virtual object needs to display the corresponding animation effect according to the player's manipulation. For example, when the virtual object performs a walking action, when the player manipulates the virtual object to perform a squatting action, it is necessary to display the animation of the virtual object performing the squatting action in the virtual scene (i.e., the game scene). The animation data of this squatting action needs to be generated by the technical solution provided by this application. In order to generate animation data that matches the virtual object with the player's operation purpose, the technical solution provided by this application first needs to generate the query feature of the virtual object, which will be used as the input of the neural network in the subsequent steps to finally generate the animation data.
[0062] The query features may include trajectory features and skeleton features of the virtual object. The so-called trajectory features may refer to features related to the trajectory of the virtual object in the virtual scene. The trajectory features are features from the perspective of the virtual object as a whole. In contrast, the skeleton features are features from the perspective of the individual bones of the virtual object. For example, the trajectory features in the query features may include: trajectory speed and trajectory direction. In addition, the trajectory features may also include the position of the trajectory point. The skeleton features in the query features may include left foot skeleton position information, left foot skeleton rotation information, right foot skeleton position information and right foot skeleton rotation information. In addition, the skeleton features may also include left foot skeleton speed and right foot skeleton speed.
[0063] It should be noted that the trajectory referred to in the trajectory feature may refer to the trajectory of the root joint of the virtual object. It may be a path formed by the projection of the hip bone of the virtual object on the ground. If the virtual object is a humanoid character, the generation method is to project the hip bone information of the humanoid skeleton onto the ground, so that multiple animation frames are connected to form the trajectory point information of the virtual object. The ground referred to here may specifically be the ground in the virtual scene coordinate system. The skeletal features of the two feet are incorporated into the query features. Since the foot is an important part of the human body that represents posture, the information of its bones in terms of position, rotation, etc. is conducive to generating matching animations through neural networks. In this application, by using trajectory features and bone features as query features, the characteristics of the virtual object are characterized from two aspects: the overall virtual object and the individual bones. Combining these two types of features is conducive to the accurate generation of animation data and ensures that the generated animation data realistically depicts the display effect of the virtual object's movements.
[0064] As an optional implementation of this step, generating query features of virtual objects in the virtual scene based on the running data of the virtual scene may specifically include:
[0065] First, the motion control signal for the virtual object is extracted from the running data of the virtual scene. Then, the trajectory feature and skeleton feature of the virtual object are generated based on the control parameters in the motion control signal and the historical control parameters in the historical motion control signal for the virtual object.
[0066] When the game is running, the character's walking and running mainly depends on the player's input. If the player wants to run, the corresponding action control signal will be input through the keyboard and the handle, and then the animation engine will calculate a reasonable running speed as a trajectory feature based on the action control signal. During the calculation, the historical control parameters in the previous historical action control signals can be combined. For example, the control parameters may include the action type (running, jumping, walking, etc.). In addition, the character attributes of the virtual object can also be combined to generate its trajectory features and skeleton features. For example, different character attributes have different maximum speed and minimum speed. Here, the historical action control signal can be an action control signal received before the latest action control signal received, for example, it can be an action control signal received before the latest action control signal received, or an action control signal received within a preset time. With the help of the historical control parameters in the historical action control signal, it is conducive to generating more accurate and more real-time trajectory features and skeleton features.
[0067] S302: Based on the trajectory features and skeleton features of the virtual object, the feature dimension of the virtual object is increased by a feature generation network in the neural network to obtain a combined feature of the virtual object.
[0068] FIG4 is a schematic diagram of the structure of a neural network provided in an embodiment of the present application. The network structure illustrated in the figure includes a feature generation network and an animation generation network. Among them, the feature generation network can be used to increase the feature dimension of the virtual object, that is, the query feature dimension of the virtual object is enriched through the feature generation network. For example, the query features input into the feature generation network include trajectory speed, trajectory direction, left foot bone position information, left foot bone rotation information, right foot bone position information and right foot bone rotation information, and through the processing of the feature generation network, the output features include not only the feature information in the input query features, but also other auxiliary features that help to accurately generate animation data. The method for obtaining auxiliary features will be described in more detail later. In order to facilitate the distinction between input features and output features in the text, the features with increased dimensions obtained by processing the feature generation network in the embodiment of the present application are referred to as combined features. Since combined features are features obtained based on the input trajectory features and skeletal features, it is understandable that the combined features output by the feature generation network match the query features input into the feature generation network and can be used as combined features of the virtual object for generating animation data.
[0069] S303: Based on the combined features of the virtual object, generate animation data of the virtual object through the animation generation network in the neural network.
[0070] The network structure shown in Figure 4 also includes an animation generation network. This network's function is to generate animation data for virtual objects based on the combined features of the virtual objects fed into it. In practical applications, the combined features of the virtual objects in each frame of the animation engine can be used as input to the animation generation network to generate the animation data for that frame. A coherent animation is then formed in a time sequence based on the animation data from each frame of the animation engine. Therefore, based on the functional requirements of the neural network, when the neural network needs to meet the above functional requirements, the output of the feature generation network can be directly used as the input to the animation generation network for training and use.
[0071] In the animation data generation method introduced in the embodiment of the present application, since the pre-trained neural network has the function of increasing the feature dimension of the virtual object based on the query feature and generating the animation data of the virtual object based on the high-dimensional feature, it can meet the generation demand for animation data. In addition, due to the use of neural networks, when generating animation data, it is no longer necessary to store massive data in the memory and query matching animations from it in the way of previous action matching technology; the use of neural networks only requires the storage of weight data related to the neural network in advance, so the implementation of the entire solution has a low memory usage, thereby avoiding the problems of high memory usage and poor query performance when generating animation data. Therefore, the embodiment of the present application can be better applied and developed in the animation engine.
[0072] In some possible implementations, feature generation network may not be that each frame all moves, so as to improve the performance when this scheme is running and reduce animation jitter.That is to say, the execution of S302 needs certain condition, for example, when the variation of the track feature of virtual object and skeletal features meets the first precondition and / or the time interval of the last output combined feature of distance feature generation network meets the second precondition, according to the track feature of the virtual object of latest input and skeletal features, output the combined feature of virtual object by feature generation network.That is to say, in this possible implementation, the operation of feature generation network needs to meet prerequisite, this prerequisite may be the condition (for example the first precondition) about feature variation, also may be the condition (for example the second precondition) about its running time interval, can also be the combination of these two aspects of conditions.
[0073] In view of the fact that the feature generation network will not run for every frame in some possible implementations, in order to ensure the animation effect and to ensure that the animation can run smoothly, the present application may adopt another neural network structure to generate animation data. Figure 5A is a schematic diagram of the structure of another neural network provided in an embodiment of the present application. Compared with the network structure shown in Figure 4, the neural network shown in Figure 5A also includes a feature update network. In the structure shown in Figure 5A, the output of the feature generation network serves as the input of the feature update network; the output of the feature update network serves as the input of the animation generation network. When the feature generation network is not running, the feature update network is used to drive the generation of the next frame of animation to ensure that the animation is smooth and continuous. Figure 5B is a flow chart of another animation data generation method provided in an embodiment of the present application. The neural network structure used in the method shown in this figure is consistent with the neural network structure shown in Figure 5A. That is, the neural network includes a feature generation network, a feature update network and an animation generation network.
[0074] The animation data generation method shown in FIG5B includes:
[0075] S501: Generate query features of virtual objects in the virtual scene according to operation data of the virtual scene.
[0076] S502: Based on the trajectory features and skeleton features of the virtual object, the feature dimension of the virtual object is increased by a feature generation network in the neural network to obtain a combined feature of the virtual object.
[0077] In the embodiment of the present application, the implementation method of S501-S502 is basically the same as the implementation method of S301-S302 in the aforementioned embodiment. Therefore, the relevant introduction can refer to the embodiment provided above and will not be repeated here.
[0078] It should be noted that, when the feature generation network is not run in every frame, the combined features of the virtual object generated by the feature generation network during operation may be the combined features of the virtual object in the current frame.
[0079] S503: Based on the combined features of the virtual object in the current frame output by the feature generation network, the combined features of the virtual object in the next frame of the current frame are output by the feature update network in the neural network.
[0080] S503 embodies the function of the feature update network in the neural network shown in Figure 5A. As an optional implementation, S503 can be implemented by the feature update network outputting the combined features of the virtual object in the current frame based on the combined features of the virtual object in the current frame output by the feature generation network and the inter-frame difference of the virtual scene's animation engine, outputting the combined features of the virtual object in the next frame after the current frame. The inter-frame difference (deltaTime) can refer to the time difference between two updates of the animation logic thread of the animation engine. Generally speaking, it is close to the game update time. For example, if the game update rate is 60 frames per second, then deltaTime is 1 / 60 of a second. In other words, in this embodiment of the present application, the feature update network can use the combined features of the current frame to derive the combined features of the virtual object in the next frame of the same dimension. In other words, the feature update network updates the combined features of the virtual object in the adjacent frames, using the combined features of the previous frame as the basis for updating the combined features of the next frame. In this way, when the feature generation network is not working properly, the function of the feature update network can ensure the coherence and smoothness of the animation data output by the subsequent animation generation network.
[0081] S504: Generate animation data of the virtual object through an animation generation network in the neural network based on the combined features of the virtual object in the next frame of the current frame.
[0082] Different from the method of the process shown in Figure 3, in the embodiment S504 of the present application, since the output of the feature update network is used as the input of the animation generation network, the animation generation network directly generates and outputs animation data based on the combined features of the next frame input therein.
[0083] In the embodiment of this application, the feature generation network is not run on every frame, thereby improving the performance of the solution and reducing animation jitter. At the same time, through the feature update network, even if the feature generation network is not run on every frame, the animation can still be kept coherent and smooth.
[0084] Figure 6 is a schematic diagram of the structure of a feature generation network provided in an embodiment of the present application. Figure 7 is a schematic diagram of the structure of a feature update network provided in an embodiment of the present application. Figure 8 is a schematic diagram of the structure of an animation generation network provided in an embodiment of the present application. In the examples of Figures 6 to 8, the structure of the feature generation network is a six-layer fully connected network with four hidden layers, and the number of units in each hidden layer is 512. The feature update network is a four-layer fully connected network with two hidden layers, and the number of units in each hidden layer is 512. The animation generation network is a three-layer fully connected network with one hidden layer. The number of units in each hidden layer is 512. In other implementations, the above three networks may also include other numbers of hidden layers or the hidden layers may include other numbers of units. Therefore, the network structure with 6+4+2 layers and 512 units in the neural network is only used as an implementation method and is not limited here.
[0085] The method embodiments previously described a neural network used to generate animation data for a virtual object based on query features, and provided an exemplary description of its structure. The following describes a neural network training method for the network structure shown in FIG. 5A , in conjunction with FIG. 9A . FIG. 9A is a flowchart of a neural network training method provided in an embodiment of the present application. As shown in FIG. 9A , training the neural network includes the following steps:
[0086] S901: Acquire motion capture data of a real scene.
[0087] The purpose of obtaining motion capture data of real scenes is to train neural networks. Motion capture technology has been introduced above and is a relatively mature technology currently used in fields such as film production, animation production, and game development. In the embodiments of this application, this technology is used to obtain motion capture data of human bodies in real scenes. As an example, to improve the accuracy of training, this step can be implemented in the following way:
[0088] Design a motion capture route and preset multiple actions to be captured. As the subject (typically a person, such as an actor, but possibly an animal) moves along the preset motion capture route and performs preset actions in a real-world scenario, motion capture is performed on the subject to obtain initial motion capture data. The initial motion capture data is processed using at least one of the following preprocessing methods to obtain processed motion capture data: noise reduction, data expansion, or generation of data in a coordinate system suitable for the animation engine of the virtual scene. The processed motion capture data can generally be directly applied to the subsequent step S902.
[0089] Initial motion capture data is preprocessed using at least one of noise reduction and data augmentation. Since noise reduction improves the quality of motion capture data and data augmentation increases the amount of motion capture data, providing massive amounts of data for training neural networks, these preprocessing methods can improve training results.
[0090] In some scenarios, the acquisition device used to collect motion capture data may contain signal noise. To prevent noise from affecting the training of the neural network, noise reduction measures can be implemented for the initial motion capture data. For example, a smoothing (Savitzky-Golay, SG) filter can be used to process the initial motion capture data. For the location of the skeletal root node in each frame of motion capture data, a least squares fit is performed using the data from the N frames preceding and following it, for a total of 2N+1 frames. The least squares method requires that the squared difference of the data be minimized. The value of the current frame is then selected from this fitted curve as the result of the fitting. It should be noted that the value of N is related to the number of animation frames and the data variation between frames. If the animation is large and the variation between frames is small, a larger N is required for successful smoothing and noise reduction. Generally speaking, a larger N results in a stronger noise reduction effect. As an example, N = 50 is selected. In actual applications, other filtering methods can also be used; the SG filter is only used as an implementation example. Filtering smoothes the trajectory curve in the motion capture data and reduces disturbances. Figures 9B and 9C are schematic diagrams of the root bone trajectory before and after noise reduction. Combining Figures 9B and 9C, it is not difficult to see that after noise reduction, the motion capture data, for example, the root bone trajectory, becomes less noisy and the trajectory is smoother.
[0091] In some scenarios, the initial motion capture data is relatively small. To improve the performance of the subsequent neural network training, the initial motion capture data can be augmented. This augmentation can include mirroring the initial motion capture data and / or scaling the timeline. For example, the mirroring method can mirror a left-foot walk into a right-foot walk, and vice versa, thereby increasing the data volume for each pattern. Animation data may only capture a single walk of the subject, such as one in which the left foot steps forward followed by the right foot. To augment the data set, such as when the right foot steps forward followed by the left foot, the mirroring method is used. Scaling the timeline to augment the data involves increasing or decreasing the trajectory speed. This method primarily adjusts the velocity in the animation data to simulate motion capture data at different movement speeds. For example, the initial motion capture data may include a 100-meter walk completed in 30 seconds. By enlarging the time axis, for example, enlarging it to twice the length of the time axis, the original motion capture data is transformed into a walking action that completes a path of up to 100 meters within 60 seconds. It can be seen that enlarging the time axis is to reduce the speed of the execution subject corresponding to the data. Similarly, shortening the time axis is equivalent to increasing the speed of the execution subject corresponding to the data. For example, by shortening the time axis, for example, shortening it to half the length of the time axis, the original motion capture data is transformed into a walking action that completes a path of up to 100 meters within 15 seconds. For the implementation method of enlarging the time axis, the extra time is linearly interpolated. For the implementation method of shortening the time axis, the data can be regularly filtered according to the time series. The expansion of motion capture data in the above manner provides massive data support for training neural networks, which is conducive to improving the performance of neural networks.
[0092] In addition to noise reduction and data expansion, due to the difference in coordinate systems between the real scene and the virtual scene, and the need for the animation data finally obtained to correspond to the coordinate system of the virtual scene, it is also possible in this step to generate data in the coordinate system of the animation engine adapted to the virtual scene based on the initial motion capture data. In this way, a basic database for training neural networks can be constructed. For example, the initial motion capture data is in the right-handed coordinate system, and the coordinate system of the animation engine is the left-handed coordinate system with the Z axis upward. It can be converted according to the coordinate system relationship to generate motion capture data in the coordinate system of the animation engine.
[0093] That is, in practical applications, in order to improve the training effect, the initial motion capture data can be processed by at least one of the following preprocessing methods to obtain processed motion capture data: noise reduction, data expansion, or generating data in a coordinate system suitable for the animation engine of the virtual scene.
[0094] S902: Root motion data, skeletal posture information, and basic query features of the action subject are respectively obtained according to the motion capture data.
[0095] Basic query features can include the action subject's trajectory features and skeletal features. These basic query features are consistent with the query features that are input to the feature generation network after neural network training. The trajectory features in the basic query features can be generated based on the action subject's movement direction and position; the skeletal features in the basic query features can be derived from the motion information of the current action subject's feet.
[0096] The root motion data and skeletal posture information of the action subject obtained from the motion capture data are information obtained from the motion capture data in this step, in addition to the basic query features, which helps train the feature generation network and increase the query feature dimension.
[0097] S903: Extracting feature values of the action subject from the root motion data and skeletal posture information of the action subject, and using the feature values as auxiliary query features.
[0098] In an embodiment of the present application, S903 can be completed by another trained deep learning network. The function of the neural network is to extract feature values as auxiliary query features. It should be noted that the features referred to in the embodiment of the present application, such as query features, basic query features, auxiliary query features, combined features, etc., can all be represented by feature vectors. The vector representation of the auxiliary query feature can also be called an auxiliary vector. The auxiliary vector is a number generated by the deep learning network that executes S903. The dimension of the vector is consistent with the feature dimension. Figure 10A is a structural diagram of a deep learning network capable of extracting auxiliary query features provided by an embodiment of the present application. The deep learning network shown in Figure 10A can be a five-layer fully connected network with three hidden layers. After passing through each hidden layer, a low-dimensional feature vector representing the input data is gradually obtained. The final output is the auxiliary vector that needs to be used together with the vector representation of the basic query feature to train the feature generation network.
[0099] S904: Obtaining the combined features of the motion subject according to the trajectory features of the motion subject, the skeleton features of the motion subject, and the auxiliary query features.
[0100] The basic query features (i.e., the trajectory features of the action subject and the skeletal features of the action subject) and the auxiliary query features can obtain the combined features of the motion subject. The auxiliary query features are used to increase the dimension of the query features on the basis of the basic query features. As mentioned earlier, the function of the feature generation network is to increase the feature dimension of the query features. Therefore, in the embodiment of the present application, the feature generation network in the neural network can be trained by using the basic query features and the combined features as a set of training data. Among them, the basic query features serve as the input of the feature generation network in the training stage, and the combined features of the motion subject serve as the output result for the aforementioned input. See S905 below.
[0101] S905: Using the trajectory features of the action subject, the skeleton features of the action subject, and the combined features of the motion subject, a feature generation network in the neural network is trained.
[0102] In practical applications, a training cutoff condition for the feature generation network can be set. For example, the number of training iterations and / or the loss function can be used to determine whether training needs to be cut off. Similarly, a training cutoff condition can also be set for the training of the feature update network and the animation generation network. In an embodiment of the present application, the process of training the neural network is carried out in sequence, first training the feature generation network, then training the feature update network, and finally training the animation generation network. By training the above networks in this way, the performance of each network after training can be guaranteed as much as possible. For the process of training the feature generation network and the animation generation network in this way, see S906 and S907 below.
[0103] S906: After the feature generation network is trained, the feature update network in the neural network is trained using the combined features of the current frame output by the feature generation network and the combined features of the action subject in the next frame.
[0104] Among them, the combined features of the action subject in the next frame are obtained based on the motion capture data of the action subject. The combined features of the action subject in the next frame serve as the output result of the trained feature update network, and the combined features of the current frame output by the feature generation network serve as the actual input of the trained feature update network.
[0105] S907: After the feature update network is trained, the animation generation network is trained using the root motion data and skeletal posture information of the action subject and the combined features of the action subject in the next frame output by the feature generation network.
[0106] Among them, the root motion data and skeletal posture information of the action subject are used as the output results of the trained animation generation network, and the combined features of the action subject in the next frame output by the feature generation network are used as the actual input of the trained animation generation network.
[0107] The entire neural network trained through the above steps can be used in the animation data generation method provided in the embodiment of the present application. Table 1 compares the storage required for various contents of the traditional action matching method and the storage required for various contents of the animation generation method provided in the embodiment of the present application.
[0108] Table 1
[0109] As can be seen from Table 1, compared with the action matching technical solution, the present application can greatly save the amount of storage space occupied when generating animation data, and improve storage performance. Figure 10B is a schematic diagram of the animation effects obtained by the traditional action matching method and the animation data generation method provided by the embodiment of the present application. The humanoid animation on the left is obtained by the traditional action matching method, and the humanoid animation on the right is obtained by the technical solution of the present application. Combining the animation effect diagrams on the left and right sides of Figure 10B, it is not difficult to find that the animation effect finally obtained by the technical solution of the present application is very close to the animation effect obtained by the action matching method. That is, a better effect is achieved, meeting the needs of animation data generation. On the basis of ensuring the animation effect, the improvement of storage performance makes the game run more smoothly and the animation viewing more smooth. The improvement in storage performance gives more storage space to support improvements in other aspects, such as further improving the game image quality, storing more user game data, adding more rich virtual character related data or scene data, etc., thereby further enhancing the player's gaming experience.
[0110] The following describes the practical application of the animation data generation method provided by the embodiment of the present application in conjunction with a game scene. A certain game is run on a terminal device, and the player operates in real time, using the mouse and keyboard to control the virtual object to perform actions such as running, jumping, and dodging in the game scene. When the player presses the F key on the keyboard, according to the game settings, the virtual object controlled by the player needs to make a jumping action in the virtual scene. When the player presses the T key on the keyboard, according to the game settings, the virtual object controlled by the player needs to run in the virtual scene. Applying the method provided by the embodiment of the present application, the terminal device can determine the player's action control intention through the control parameters and historical control parameters in the action control signal input by the player with the mouse and / or keyboard, and obtain the query feature of the virtual object by calculation. After the query feature of the virtual object is calculated, the terminal device communicates with the remote server to call the neural network. After the weight data of the neural network is called, it is stored locally on the terminal device. The terminal device uses the query feature as the input of the neural network. The neural network is pre-trained on the server based on motion capture data from real-world scenarios. Therefore, the terminal device can either locally store the neural network's weight data or retrieve locally stored neural network weight data from the server to perform computations based on the input content, ultimately outputting animation data for the virtual object. The terminal device uses rendering methods from the animation engine to render the virtual object's animation data into visual animation effects within the game scene displayed on the terminal device. When the player presses the F key on the keyboard, the virtual object controlled by the player leaps through the virtual scene displayed on the terminal device screen. The animation displays the virtual object's changing posture during the leap and its legs, which are separated by a larger distance than in other poses. When the player presses the T key on the keyboard, the virtual object controlled by the player adopts a running posture within the virtual scene displayed on the terminal device screen, swinging its arms back and forth in a rhythmic manner, demonstrating alternating leg movements beyond walking. From the time the player initiates control on the terminal device to the corresponding animation effect appearing on the virtual scene, the entire process is extremely short, and the rest of the game screen is not affected by the control commands, resulting in lag or pixelated areas.
[0111] FIG11 is a schematic diagram of the structure of an animation data generating device provided in an embodiment of the present application. As shown in FIG11 , the animation data generating device includes:
[0112] A query feature generating unit 111 is configured to generate query features of virtual objects in the virtual scene according to the operation data of the virtual scene; the query features include trajectory features and skeleton features of the virtual objects;
[0113] a combined feature generating unit 112 for increasing the feature dimension of the virtual object based on the trajectory feature and the skeleton feature of the virtual object by using a feature generating network in a neural network, where the neural network is pre-trained;
[0114] The animation data generating unit 113 is configured to generate animation data of the virtual object through the animation generating network in the neural network based on the combined features of the virtual object.
[0115] Because this pre-trained neural network has the ability to increase the feature dimensions of virtual objects based on query features and generate animation data for these virtual objects based on high-dimensional features, it can meet the demand for animation data generation. In addition, the use of neural networks eliminates the need to store massive amounts of data in memory and query matching animations as in previous motion matching techniques. Instead, the use of neural networks only requires pre-storing weight data related to the neural network. Therefore, the implementation of the entire solution requires less memory, thus avoiding the problems of high memory usage and poor query performance when generating animation data.
[0116] FIG12 is a schematic diagram of the structure of another animation data generating device provided in an embodiment of the present application. In the device structure shown in FIG12 , the combined features of the virtual objects are the combined features of the virtual objects in the current frame, and the animation data generating unit 113 specifically includes:
[0117] a combined feature updating subunit, configured to output, based on the combined features of the virtual object in the current frame output by the feature generation network, the combined features of the virtual object in the next frame of the current frame through a feature updating network in the neural network;
[0118] The animation data generating subunit is used to generate animation data of the virtual object through the animation generating network in the neural network based on the combined features of the virtual object in the next frame of the current frame.
[0119] In a possible implementation, the combined feature generating unit 112 is specifically configured to:
[0120] When the changes in the trajectory features and skeleton features of the virtual object meet a first preset condition and / or the time interval from the last time the feature generation network output the combined features meets a second preset condition, the combined features of the virtual object are output through the feature generation network based on the most recently input trajectory features and skeleton features of the virtual object.
[0121] In a possible implementation, the combined feature updating subunit is specifically configured to:
[0122] Based on the combined features of the virtual object in the current frame and the inter-frame difference of the animation engine adapted to the virtual scene, the combined features of the virtual object in the next frame of the current frame are output through the feature update network.
[0123] In a possible implementation, the animation data generating device may further include a network training unit for obtaining a neural network through training. The network training unit specifically includes:
[0124] A motion capture data acquisition subunit, used to acquire motion capture data of real scenes;
[0125] A data analysis subunit, configured to obtain root motion data, skeletal posture information, and basic query features of the action subject according to the motion capture data; the basic query features include trajectory features and skeletal features of the action subject;
[0126] a feature value extraction subunit, configured to extract feature values of the action subject from the root motion data and skeletal posture information of the action subject, and use the feature values as auxiliary query features;
[0127] a feature combination subunit, configured to obtain a combined feature of the motion subject based on the trajectory feature of the motion subject, the skeleton feature of the motion subject, and the auxiliary query feature;
[0128] A first training subunit is configured to train a feature generation network in the neural network using the trajectory features of the action subject, the skeleton features of the action subject, and the combined features of the motion subject;
[0129] a second training subunit, configured to train a feature update network in the neural network after the feature generation network is trained, using the combined features of the current frame output by the feature generation network and the combined features of the action subject in the next frame, where the combined features of the action subject in the next frame are obtained based on the motion capture data of the action subject;
[0130] The third training subunit is used to train the animation generation network after the feature update network is trained by using the root motion data and skeletal posture information of the action subject and the combined features of the action subject in the next frame output by the feature generation network.
[0131] In a possible implementation, the motion capture data acquisition subunit is specifically configured to:
[0132] When the action subject moves along a preset motion capture route in the real scene and performs a preset action, motion capture is performed on the action subject to obtain initial motion capture data;
[0133] The initial motion capture data is processed by at least one of the following preprocessing methods to obtain processed motion capture data:
[0134] Noise reduction, data expansion, or generation of data in a coordinate system suitable for the animation engine of the virtual scene.
[0135] In a possible implementation, data expansion methods may include but are not limited to:
[0136] Performing data expansion on the initial motion capture data by a mirroring method; and / or,
[0137] The initial motion capture data is expanded by scaling the time axis.
[0138] In a possible implementation, the query feature generating unit 111 includes:
[0139] a signal extraction subunit, configured to extract an action control signal for the virtual object from the operation data of the virtual scene;
[0140] The feature generation subunit is used to generate the trajectory feature and the skeleton feature of the virtual object according to the control parameters in the action control signal and the historical control parameters in the historical action control signal for the virtual object.
[0141] In one possible implementation, the trajectory features include trajectory speed and trajectory direction, and the bone features include left foot bone position information, left foot bone rotation information, right foot bone position information, and right foot bone rotation information; wherein the trajectory is formed based on the projection of the hip bone.
[0142] The following describes the structure of the animation data generating device in terms of server form and terminal device form respectively.
[0143] Figure 13 is a schematic diagram of a server structure provided in an embodiment of the present application. The server 900 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPUs) 922 (for example, one or more processors) and a memory 932, and one or more storage media 930 (for example, one or more mass storage devices) for storing application programs 942 or data 944. Among them, the memory 932 and the storage medium 930 can be temporary storage or permanent storage. The program stored in the storage medium 930 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations on the server. Furthermore, the central processing unit 922 can be configured to communicate with the storage medium 930 to execute a series of instruction operations in the storage medium 930 on the server 900.
[0144] The server 900 may also include one or more power supplies 926, one or more wired or wireless network interfaces 950, one or more input and output interfaces 958, and / or one or more operating systems 941, such as Windows Server 2003 or Windows Server 2003R. TM , Mac OS X TM , Unix TM ,Linux TM , FreeBSD TM etc.
[0145] The CPU 922 is configured to execute the following steps:
[0146] Generating query features of virtual objects in the virtual scene according to the running data of the virtual scene; the query features include trajectory features and skeleton features of the virtual object;
[0147] Based on the trajectory features and skeleton features of the virtual object, increasing the feature dimensions of the virtual object through a feature generation network in a neural network to obtain a combined feature of the virtual object, wherein the neural network is pre-trained;
[0148] Based on the combined features of the virtual object, animation data of the virtual object is generated by an animation generation network in the neural network.
[0149] The present application also provides another animation data generation device, which can be a terminal device, as shown in FIG14. For ease of explanation, only the parts related to the present application are shown. For specific technical details not disclosed, please refer to the method section of the present application. The terminal device can be any terminal device including a mobile phone, a tablet computer, a personal digital assistant (English full name: Personal Digital Assistant, English abbreviation: PDA), a sales terminal (English full name: Point of Sales, English abbreviation: POS), an in-vehicle computer, etc. Taking the terminal device as a mobile phone as an example:
[0150] Figure 14 shows a block diagram of a partial structure of a mobile phone related to the terminal device provided in an embodiment of the present application. Referring to Figure 14, the mobile phone includes components such as a radio frequency (RF) circuit 1010, a memory 1020, an input unit 1030, a display unit 1040, a sensor 1050, an audio circuit 1060, a wireless fidelity (WiFi) module 1070, a processor 1080, and a power supply 1090. The input unit 1030 may include a touch panel 1031 and other input devices 1032, the display unit 1040 may include a display panel 1041, and the audio circuit 1060 may include a speaker 1061 and a microphone 1062. It will be understood that the mobile phone structure shown in Figure 14 does not constitute a limitation on the mobile phone, and may include more or fewer components than shown, or combine certain components, or arrange components differently.
[0151] The memory 1020 can be used to store software programs and modules. The processor 1080 executes the various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 1020. The memory 1020 may mainly include a program storage area and a data storage area. The program storage area may store an operating system and at least one application required for a function (such as a sound playback function, an image playback function, etc.); the data storage area may store data created based on the use of the mobile phone (such as audio data, a phone book, etc.). In addition, the memory 1020 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state memory device.
[0152] Processor 1080 is the control center of the phone, connecting all parts of the phone using various interfaces and circuits. By running or executing software programs and / or modules stored in memory 1020 and accessing data stored in memory 1020, it executes various phone functions and processes data, thereby collecting data and information about the phone as a whole. Optionally, processor 1080 may include one or more processing units; preferably, processor 1080 may integrate an application processor and a modem processor, where the application processor primarily handles the operating system, user interface, and application programs, while the modem processor primarily handles wireless communications. It is understood that the modem processor may not be integrated into processor 1080.
[0153] In the embodiment of the present application, the processor 1080 included in the terminal further has the following functions:
[0154] Generating query features of virtual objects in the virtual scene according to the running data of the virtual scene; the query features include trajectory features and skeleton features of the virtual object;
[0155] Based on the trajectory features and skeleton features of the virtual object, increasing the feature dimensions of the virtual object through a feature generation network in a neural network to obtain a combined feature of the virtual object, wherein the neural network is pre-trained;
[0156] Based on the combined features of the virtual object, animation data of the virtual object is generated by an animation generation network in the neural network.
[0157] An embodiment of the present application further provides a computer-readable storage medium for storing a computer program, which, when executed by an animation data generating device, implements any one of the implementations of the animation data generating methods described in the aforementioned embodiments.
[0158] An embodiment of the present application further provides a computer program product including instructions, wherein the computer program product includes a computer program, which, when executed on a computer, enables the computer to execute any one of the methods for generating animation data described in the aforementioned embodiments.
[0159] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described systems and devices can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0160] In the several embodiments provided in this application, it should be understood that the disclosed systems and methods can be implemented in other ways. For example, the system embodiments described above are merely illustrative. For example, the division of the system is merely a logical function division. In actual implementation, there may be other division methods, such as multiple systems can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interface, device or unit, which can be electrical, mechanical or other forms.
[0161] The systems described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the objectives of this embodiment as needed.
[0162] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
[0163] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (English full name: Read-Only Memory, English abbreviation: ROM), random access memory (English full name: Random Access Memory, English abbreviation: RAM), magnetic disk or optical disk and other media that can store program code.
[0164] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for generating animation data, the method being executed by an animation data generating device, comprising: Generating query features of virtual objects in the virtual scene according to the operation data of the virtual scene; The query features include trajectory features and skeleton features of the virtual object; Based on the trajectory features and skeleton features of the virtual object, the feature dimension of the virtual object is increased by a feature generation network in a neural network to obtain a combined feature of the virtual object, wherein the neural network is pre-trained; Based on the combined features of the virtual object, animation data of the virtual object is generated by an animation generation network in the neural network.
2. According to the method of claim 1, the combined features of the virtual object are the combined features of the virtual object in the current frame, and the generating of the animation data of the virtual object by the animation generating network in the neural network based on the combined features of the virtual object comprises: Based on the combined features of the virtual object in the current frame output by the feature generation network, the combined features of the virtual object in the next frame of the current frame are output by a feature update network in the neural network; Based on the combined features of the virtual object in the next frame of the current frame, animation data of the virtual object is generated by an animation generation network in the neural network.
3. The method according to claim 2, wherein the step of increasing the feature dimension of the virtual object by a feature generation network in a neural network based on the trajectory feature and the skeleton feature of the virtual object to obtain the combined feature of the virtual object comprises: When the changes in the trajectory features and skeleton features of the virtual object meet a first preset condition and / or the time interval from the last time the feature generation network output the combined features meets a second preset condition, the combined features of the virtual object are output through the feature generation network based on the most recently input trajectory features and skeleton features of the virtual object.
4. The method according to claim 2, wherein the combined features of the virtual object in the current frame output by the feature generation network and outputting the combined features of the virtual object in the next frame of the current frame through the feature update network in the neural network include: Based on the combined features of the virtual object in the current frame and the frame difference of the animation engine adapted to the virtual scene, the combined features of the virtual object in the next frame of the current frame are output through the feature update network.
5. The method according to claim 2, wherein the neural network is trained by: Obtain motion capture data of real scenes; The root motion data, the skeleton posture information and the basic query features of the action subject are respectively obtained according to the motion capture data; the basic query features include the trajectory features and the skeleton features of the action subject; Extracting feature values of the action subject from the root motion data and skeletal posture information of the action subject, and using the feature values as auxiliary query features; Obtaining a combined feature of the motion subject according to the trajectory feature of the motion subject, the skeleton feature of the motion subject and the auxiliary query feature; Using the trajectory features of the action subject, the skeleton features of the action subject and the combined features of the motion subject, a feature generation network in the neural network is trained; After the feature generation network is trained, a feature update network in the neural network is trained using the combined features of the current frame output by the feature generation network and the combined features of the action subject in the next frame, wherein the combined features of the action subject in the next frame are obtained based on the motion capture data of the action subject; After the feature update network is trained, the animation generation network is trained using the root motion data and skeletal posture information of the action subject and the combined features of the action subject in the next frame output by the feature generation network.
6. The method according to claim 5, wherein obtaining motion capture data of a real scene comprises: When the action subject moves according to a preset action capture route and performs a preset action in the real scene, the action subject is motion captured to obtain initial motion capture data; The initial motion capture data is processed by at least one of the following preprocessing methods to obtain processed motion capture data: Noise reduction, data expansion or generation of data in a coordinate system suitable for the animation engine of the virtual scene.
7. The method according to claim 6, performing data expansion on the initial motion capture data, comprising: Performing data expansion on the initial motion capture data by using a mirroring method; and / or, The initial motion capture data is expanded by scaling the time axis.
8. The method according to any one of claims 1 to 7, wherein generating query features of virtual objects in the virtual scene according to operation data of the virtual scene comprises: Extracting an action control signal for the virtual object from the operation data of the virtual scene; The trajectory features and the skeleton features of the virtual object are generated according to the control parameters in the action control signal and the historical control parameters in the historical action control signal for the virtual object.
9. The method according to any one of claims 1 to 7, wherein the trajectory features include trajectory speed and trajectory direction, and the bone features include left foot bone position information, left foot bone rotation information, right foot bone position information, and right foot bone rotation information; wherein, The trajectory is formed based on the projection of the hip bone.
10. An animation data generating device, the device being deployed on an animation data generating device, comprising: A query feature generating unit, used to generate query features of virtual objects in the virtual scene according to the operation data of the virtual scene; The query features include trajectory features and skeleton features of the virtual object; A combined feature generating unit, configured to increase the feature dimension of the virtual object through a feature generating network in a neural network based on the trajectory feature and the skeleton feature of the virtual object, so as to obtain a combined feature of the virtual object, wherein the neural network is obtained by pre-training; The animation data generating unit is used to generate the animation data of the virtual object through the animation generating network in the neural network based on the combined features of the virtual object.
11. An animation data generating device, the device comprising a processor and a memory: The memory is used to store a computer program and transmit the computer program to the processor; The processor is configured to execute the steps of the animation data generating method according to any one of claims 1 to 9 according to the instructions in the computer program.
12. A computer-readable storage medium, the computer-readable storage medium being used to store a computer program, wherein the computer program, when executed by an animation data generating device, implements the steps of the animation data generating method according to any one of claims 1 to 9.
13. A computer program product, comprising a computer program, which implements the steps of the animation data generating method according to any one of claims 1 to 9 when executed by an animation data generating device.
