Virtual object orientation control method and device, equipment and storage medium

By acquiring multi-frame motion data and orientation correction information of virtual objects and vectorizing them, the problem of inaccurate orientation correction in 3D model motion capture data is solved, and efficient and accurate orientation adjustment is achieved.

CN118691772APending Publication Date: 2024-09-24NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310288968.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-22
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

In existing technologies, the orientation correction of motion capture data of 3D models is not accurate enough. Manual correction is time-consuming and has a large subjective impact, making it difficult to guarantee accurate correction results every time.

Method used

By acquiring multi-frame motion data and orientation correction information of the virtual object during its movement, vectorization processing is performed, and the orientation of the virtual object is adjusted based on the vectorization results to ensure that the orientation is consistent with the actual orientation of the model.

Benefits of technology

This improves the efficiency and accuracy of root node orientation correction in motion capture data, ensuring that the orientation of virtual objects is adaptively adjusted according to the direction of root node movement, thus enhancing adjustment efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118691772A
    Figure CN118691772A
Patent Text Reader

Abstract

The invention relates to the technical field of computer vision, and discloses a virtual object orientation control method and device, equipment and a storage medium. The method comprises the following steps: acquiring multi-frame movement data and orientation correction information of a virtual object in a movement process; based on the orientation correction information, vectoring at least part of continuous frame movement data in each frame movement data to obtain a vectoring result; and adjusting the orientation of the virtual object in the moving process based on a vectorization processing result. According to the method, the orientation correction efficiency and accuracy of the model root node in the motion capture data are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer vision technology, and in particular to a method, device, equipment and storage medium for controlling the orientation of a virtual object. Background Art

[0002] In the process of modeling a 3D character model, the root node can be used to represent the key body parts of the character, and the root node can be controlled to manipulate the 3D character model to perform various actions. In some applications, in order to ensure that the 3D character model can rotate to a certain direction according to the required trigger event, the relationship between various trigger events and the rotation direction of the root node can be pre-set, and the 3D character model can be rotated to the target direction by rotating the root node direction. That is, the root node direction is adjusted each time the user triggers an event.

[0003] The root node setting 3D model is also often used in the motion capture system. By tracking the key parts of the user and feeding back to the corresponding root node, the 3D model is controlled to follow the user to perform actions. After each acquisition of the motion capture data, when correcting the motion capture data, the root node (Root_B) of the 3D model is required to be consistent with the actual direction of the 3D model; and in the original data of the motion capture, the difference between the two directions is usually large, so the 3D model needs to be manually modified. There are two problems with manual correction. One is that it is time-consuming to correct each frame of data during the movement of the model. The other is that there is a subjective influence in manual correction, which makes it difficult to ensure that accurate and standardized correction results can be obtained every time. If the root node is uniformly adjusted to a certain direction according to the preset rotation direction as mentioned above, since the actual direction of the 3D model depends on the continuity of the user's action, it is not maintained in a specific direction, so the correct motion capture data direction correction result cannot be obtained. In short, when the existing motion capture data of the 3D model is corrected, there is a problem of inaccuracy. Summary of the invention

[0004] The main purpose of the present invention is to solve the existing technical problem of inaccuracy when correcting the orientation of motion capture data of a three-dimensional model.

[0005] A first aspect of the present invention provides a method for controlling the orientation of a virtual object, comprising: obtaining multiple frames of movement data of the virtual object during movement, and orientation correction information; based on the orientation correction information, performing vectorization processing on at least part of the continuous frame movement data in each frame movement data to obtain a vectorization processing result; based on the vectorization processing result, adjusting the orientation of the virtual object during movement.

[0006] The second aspect of the present invention provides a device for controlling the orientation of a virtual object, comprising: an acquisition module for acquiring multiple frames of movement data of a virtual object during movement, and orientation correction information; a vectorization module for performing vectorization processing on at least part of continuous frame movement data in each frame of movement data based on the orientation correction information to obtain a vectorization processing result; and an adjustment module for adjusting the orientation of the virtual object during movement based on the vectorization processing result.

[0007] A third aspect of the present invention provides a virtual object orientation control device, comprising: a memory and at least one processor, wherein the memory stores instructions; the at least one processor calls the instructions in the memory so that the virtual object orientation control device executes the above-mentioned virtual object orientation control method.

[0008] A fourth aspect of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, which, when executed on a computer, enable the computer to execute the above-mentioned method for controlling the orientation of a virtual object.

[0009] In the technical solution provided by the present invention, in the motion capture data, the movement data of the virtual object (the coordinates of each frame) is accurate, so the orientation of the virtual object is corrected based on the movement data, which can ensure the accuracy of the correction of the orientation of the virtual object. Specifically, the actual orientation of the virtual object in each frame of motion data can be recalculated based on the position of the virtual object during the movement of the virtual object through its movement data, and the virtual object is adjusted so that the orientation of the virtual object is consistent with the actual orientation of the model, and the accuracy of the adjustment of the orientation of the virtual object is ensured by standardized processing means. At the same time, in the process of generating motion capture data by user movement, the actual orientation of each root node can be adjusted accordingly with the movement direction of the root node in each frame of motion capture data, so as to adjust the orientation of the virtual object in each frame of motion capture data, so that the orientation of the virtual object is adaptively adjusted with the movement direction of the root node each time, thereby improving its adjustment efficiency and accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] Figure 1 A schematic diagram of an embodiment of a method for controlling the orientation of a virtual object in an embodiment of the present invention;

[0011] Figure 2 A schematic diagram of an embodiment of adjusting the direction of a root node in an embodiment of the present invention;

[0012] Figure 3 A schematic diagram of an embodiment of the virtual object orientation adjustment effect in an embodiment of the present invention;

[0013] Figure 4A schematic diagram of an embodiment of a device for controlling the orientation of a virtual object in an embodiment of the present invention;

[0014] Figure 5 A schematic diagram of another embodiment of a device for controlling the orientation of a virtual object in an embodiment of the present invention;

[0015] Figure 6 Schematic diagram of an embodiment of a device for controlling the orientation of a virtual object in an embodiment of the present invention. DETAILED DESCRIPTION

[0016] The embodiment of the present invention provides a method, device, equipment and storage medium for controlling the orientation of a virtual object, which obtains multiple frames of movement data of a virtual object during motion, and orientation correction information; based on the orientation correction information, vectorizes at least part of the continuous frame movement data in each frame of movement data to obtain a vectorization processing result; based on the vectorization processing result, adjusts the orientation of the virtual object during motion. The present invention improves the efficiency and accuracy of orientation correction of the root node of the model in motion capture data.

[0017] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" or "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0018] For ease of understanding, the specific process of the embodiment of the present invention is described below. Figure 1 , a first embodiment of the method for controlling the orientation of a virtual object in an embodiment of the present invention includes:

[0019] 101. Acquire multiple frames of movement data and orientation correction information of the virtual object during the movement process;

[0020] It is understandable that the execution subject of the present invention may be a virtual object orientation control device, or a terminal or a server, which is not limited here. The embodiment of the present invention is described by taking a terminal device as the execution subject as an example.

[0021] In this embodiment, since the movement data obtained after the motion capture is accurate, the movement data here includes the position coordinates of the virtual object, which means that the orientation of the root node of the virtual object during the movement may not be accurate, but the position coordinates of its root node are accurate, and the orientation correction of the root node of the virtual object is performed based on this. In addition, the orientation correction information configured for the virtual object during the movement is obtained at the same time, including at least one of the following: the number of segments that need to be corrected during the movement of the virtual object, the frame time period corresponding to each segment, the additional correction angle value corresponding to each segment, etc.

[0022] In one embodiment, the acquisition of multi-frame movement data of a virtual object during movement and orientation correction information includes: acquiring motion capture data corresponding to the virtual object, and extracting the root node coordinates of each frame of the virtual object during movement to obtain corresponding multi-frame movement data; acquiring orientation correction segments and / or orientation correction angles configured for the virtual object, and obtaining orientation correction information based on the orientation correction segments and / or the orientation correction angles.

[0023] In this embodiment, the motion capture data includes the root node coordinates and root node orientation of each frame of the virtual object as time progresses during the motion process. The virtual object is obtained by setting the root node at the key position, and the movement of the virtual object can be controlled by controlling the movement of the root node. Here, the root node coordinates are the spatial position coordinates of the root node during the movement process, which represent the spatial position coordinates of the key parts of the virtual object. For example, the movement position change of the hand of the virtual object is controlled by the change of the root node coordinates of each frame corresponding to the hand. Since the root node coordinates are accurate, but the accuracy of the root node orientation cannot be determined, only the root node coordinates are extracted here as the movement data, and then the orientation correction segment and / or orientation correction angle are obtained as the orientation correction information. Here, the orientation correction angle includes the number of correction segments and the correction frame time involved in each correction segment.

[0024] Specifically, when configuring the orientation correction segment and / or orientation correction angle, the motion capture data of the virtual object that needs to be corrected can be imported into a 3D animation software such as MotionBuilder, and the orientation correction tool can be opened. Then edit one or more segments in the motion capture data that need to be corrected for the root node orientation. The specific method is to increase or decrease the segments that need to be corrected by clicking buttons such as "[+]" and "[-]" in the tool panel. After determining each segment, the segment includes configurable [Start Frame] and [End Frame]. Enter the number of frames in the corresponding text boxes to determine the specific time period that needs to be corrected, such as segment 1: start frame is "0", end frame is "15"; segment 2: start frame is "20", end frame is "41", and so on. Enter the angle that needs additional correction in each segment. If no additional correction is required, you can leave it blank or enter "0".

[0025] 102. Based on the orientation correction information, perform vectorization processing on at least a portion of continuous frame motion data in each frame motion data to obtain a vectorization processing result;

[0026] In this embodiment, the orientation correction information includes an orientation correction segment and / or an orientation correction angle, and based on the contents of different configurations, at least part of the continuous frame motion data in the motion data is vectorized to obtain a vectorized processing result, that is, the processing result of at least part of the continuous frame motion data is represented by a vector.

[0027] In one embodiment, the orientation correction information includes the orientation correction fragment, and based on the orientation correction information, at least part of the continuous frame motion data in each frame motion data is vectorized to obtain the vectorized processing result, including: based on the orientation correction fragment in the orientation correction information, extracting at least one group of continuous frame motion data to be processed in each frame motion data; according to the continuous order of the at least one group of continuous frame motion data, calculating the relative position relationship between the front and rear frame root nodes according to the at least one group of continuous frame motion data, to obtain the vectorized processing result of the at least one group of continuous frame motion data.

[0028] In one embodiment, the method of calculating the relative position relationship between the front and rear frame root nodes according to the continuous order of the at least one group of continuous frame movement data and obtaining the vectorized processing result of the at least one group of continuous frame movement data includes: connecting every two adjacent frame root nodes according to the at least one group of continuous frame movement data in accordance with the continuous order of the at least one group of continuous frame movement data; determining the direction of the connection from the previous frame root node to the next frame root node of every two adjacent frame root nodes, and using the connection direction as the direction vector of the next frame root node; and obtaining the vectorized processing result of the at least one group of continuous frame movement data based on the direction vector of each next frame root node.

[0029] In this embodiment, the root node coordinates of the previous and next frames are read, the two root nodes are connected, and the direction of the connection is regarded as the orientation vector of the root node in the next frame, that is, the orientation vector of the root node in the next frame is modified to the connection direction of the previous and next frames. Specifically, the connection direction of the previous and next frames is assigned to the Rotation data of the root node in the next frame. In this way, the orientation of the root node of the animation clip that needs to be corrected can be corrected.

[0030] Specifically, Figure 2 As shown, for the root nodes A1 and A2 of the two frames before and after, the two are connected, and then the direction of A1-A2 is used as the orientation vector a1a2 of the root node A2 in the next frame, and then a1a2 is used to replace the original orientation a2 of the root node A2 in the next frame; and so on, for the root nodes A2 and A3 of the two frames before and after, the direction of A2-A3 is used as the orientation vector a2a3 of the root node A3 in the next frame, replacing the original orientation a3 of A3; for the root nodes A3 and A4 of the two frames before and after, the direction of A3-A4 is used as the orientation vector a3a4 of the root node A4 in the next frame, replacing the original orientation a4 of A4.

[0031] In one embodiment, the orientation correction information also includes the orientation correction angle. After obtaining the vectorization processing result of the at least one group of continuous frame motion data based on the orientation vector of each root node in the subsequent frame, it also includes: when each frame motion data includes a group of continuous frame motion data to be processed, rotating the orientation vector of each root node in the subsequent frame according to the orientation correction angle in the orientation correction information to obtain the final first orientation vector of each root node in the subsequent frame, and using the first orientation vector as the final vectorization processing result of the at least one group of continuous frame motion data; when each frame motion data includes multiple groups of continuous frame motion data to be processed, determining the local correction angle corresponding to each group of continuous frame motion data based on the orientation correction angle in the orientation correction information; rotating the orientation vector of each root node in the subsequent frame according to the local correction angle corresponding to the continuous frame motion data of the group to which it belongs, to obtain the final second orientation vector of each root node in the subsequent frame, and using the second orientation vector as the final vectorization processing result of the at least one group of continuous frame motion data.

[0032] In this embodiment, if the orientation of the character's root node in the corrected action needs to have an angle difference with the moving direction, the corresponding orientation correction angle is configured, for example, the angle difference between the root node orientation of the horizontal movement action and the moving direction is 90°, and the angle difference between the root node orientation of the backward movement and the moving direction is 180°. In this case, the angle difference between the two that needs additional correction can be input for correction, that is, the orientation correction angle is set.

[0033] In one embodiment, when each frame movement data includes a group of continuous frame movement data to be processed, each orientation vector of the root node in the subsequent frame is rotated according to the orientation correction angle in the orientation correction information to obtain the final first orientation vector of each root node in the subsequent frame, and before using the first orientation vector as the final vectorization processing result of the at least one group of continuous frame movement data, it also includes: according to the vectorization processing result of the at least one group of continuous frame movement data, identifying the movement posture of the virtual object when the at least one group of continuous frame movement data corresponds to the root node; matching the correction angle corresponding to the movement posture, and setting it as the orientation correction angle of the root node corresponding to the at least one group of continuous frame movement data.

[0034] In this embodiment, in addition to manually setting the orientation correction angle on the setting panel, the movement posture of the root node corresponding to each continuous frame movement data can be automatically identified, such as lateral movement or backward movement, and the corresponding orientation correction angles of 90° and 180° can be matched.

[0035] In one embodiment, extracting at least one group of continuous frame motion data to be processed in each frame motion data based on the orientation correction fragment in the orientation correction information includes: extracting at least one fragment segment of the orientation correction fragment in the correction information, and the starting frame number and the ending frame number corresponding to the at least one fragment segment; determining a correction time period for each frame motion data according to the starting frame number and the ending frame number, and determining at least one group of continuous frame motion data to be processed in each frame motion data based on the correction time period, wherein the number of the fragment segments is the same as the number of groups of continuous frame motion data.

[0036] 103. Based on the vectorization processing result, adjust the orientation of the virtual object during the movement.

[0037] In this embodiment, after the vectorization processing result is calculated, the direction of the connection line is regarded as the orientation vector of the root node in the next frame, that is, the orientation vector of the root node in the next frame is modified to the connection direction of the coordinates of the previous and next frames. Specifically, the connection direction of the coordinates of the previous and next frames is assigned to the Rotation data of the root node in the next frame. In this way, the orientation of the root node of the animation clip that needs to be corrected can be corrected.

[0038] Specifically, Figure 3 As shown in FIG. 1 , the orientation of the virtual object before and after adjustment is performed. The orientation adjustment is performed based on the direction of movement of the virtual object during the motion process. In essence, it is a fine-tuning of the root node orientation. Since the orientations of all root nodes will be adjusted along with the direction of movement of the virtual object, the adjusted virtual object will not change the appearance of the motion process relative to the virtual object before adjustment, and usually only involves a change in orientation.

[0039] In an embodiment of the present invention, in the motion capture data, the movement data of the virtual object (the coordinates of each frame) is accurate, so the orientation of the virtual object is corrected based on the movement data, which can ensure the accuracy of the correction of the orientation of the virtual object. Specifically, the actual orientation of the virtual object in each frame of motion data can be recalculated based on the position of the virtual object during the movement of the virtual object through its movement data, and the virtual object is adjusted so that the orientation of the virtual object is consistent with the actual orientation of the model, and the accuracy of the adjustment of the orientation of the virtual object is ensured by standardized processing means. At the same time, in the process of generating motion capture data by user movement, the actual orientation of each root node can be adjusted accordingly with the movement direction of the root node in each frame of motion capture data, so as to adjust the orientation of the virtual object in each frame of motion capture data, so that the orientation of the virtual object is adaptively adjusted with the movement direction of the root node each time, thereby improving its adjustment efficiency and accuracy.

[0040] The above describes the method for controlling the orientation of a virtual object in an embodiment of the present invention. The following describes the device for controlling the orientation of a virtual object in an embodiment of the present invention. Figure 4 , an embodiment of a device for controlling the orientation of a virtual object in an embodiment of the present invention includes:

[0041] An acquisition module 401 is used to acquire multiple frames of movement data and orientation correction information of a virtual object during its movement;

[0042] A vectorization module 402, configured to perform vectorization processing on at least a portion of continuous frame motion data in each frame motion data based on the orientation correction information to obtain a vectorization processing result;

[0043] The adjustment module 403 is used to adjust the orientation of the virtual object during the movement based on the vector processing result.

[0044] In an embodiment of the present invention, in the motion capture data, the movement data of the virtual object (the coordinates of each frame) is accurate, so the orientation of the virtual object is corrected based on the movement data, which can ensure the accuracy of the correction of the orientation of the virtual object. Specifically, the actual orientation of the virtual object in each frame of motion data can be recalculated based on the position of the virtual object during the movement of the virtual object through its movement data, and the virtual object is adjusted so that the orientation of the virtual object is consistent with the actual orientation of the model, and the accuracy of the adjustment of the orientation of the virtual object is ensured by standardized processing means. At the same time, in the process of generating motion capture data by user movement, the actual orientation of each root node can be adjusted accordingly with the movement direction of the root node in each frame of motion capture data, so as to adjust the orientation of the virtual object in each frame of motion capture data, so that the orientation of the virtual object is adaptively adjusted with the movement direction of the root node each time, thereby improving its adjustment efficiency and accuracy.

[0045] See also Figure 5 Another embodiment of the device for controlling the orientation of a virtual object in the embodiment of the present invention includes:

[0046] An acquisition module 401 is used to acquire multiple frames of movement data and orientation correction information of a virtual object during its movement;

[0047] A vectorization module 402, configured to perform vectorization processing on at least a portion of continuous frame motion data in each frame motion data based on the orientation correction information to obtain a vectorization processing result;

[0048] The adjustment module 403 is used to adjust the orientation of the virtual object during the movement based on the vector processing result.

[0049] Specifically, the acquisition module 401 includes:

[0050] The first acquisition unit 4011 is used to acquire motion capture data corresponding to the virtual object, and extract the root node coordinates of each frame of the virtual object during the motion process to obtain corresponding multi-frame movement data;

[0051] The second acquisition unit 4012 is used to acquire the orientation correction segment and / or the orientation correction angle configured for the virtual object, and obtain the orientation correction information according to the orientation correction segment and / or the orientation correction angle.

[0052] Specifically, the orientation correction information includes the orientation correction segment, and the vectorization module 402 includes:

[0053] An extraction unit 4021 is used to extract at least one group of continuous frame motion data to be processed from each frame motion data based on the orientation correction segment in the orientation correction information;

[0054] The calculation unit 4022 is used to calculate the relative position relationship between the front and rear frame root nodes according to the continuous order of the at least one group of continuous frame motion data, and obtain the vectorized processing result of the at least one group of continuous frame motion data.

[0055] Specifically, the calculation unit 4022 is further used for:

[0056] According to the continuous order of the at least one group of continuous frame movement data, connecting every two adjacent frame root nodes according to the at least one group of continuous frame movement data;

[0057] Determine the direction of the line from the root node in the previous frame to the root node in the next frame among every two adjacent frame root nodes, and use the direction of the line as the direction vector of the root node in the next frame;

[0058] Based on the orientation vector of each root node in the subsequent frame, a vectorized processing result of the at least one group of continuous frame motion data is obtained.

[0059] Specifically, the calculation unit 4022 is further used for:

[0060] When each frame motion data includes a group of continuous frame motion data to be processed, rotating the orientation vector of each root node in the subsequent frame according to the orientation correction angle in the orientation correction information to obtain a final first orientation vector of each root node in the subsequent frame, and using the first orientation vector as the final vectorization processing result of the at least one group of continuous frame motion data;

[0061] When each frame of motion data includes a plurality of groups of continuous frame motion data to be processed, determining a local correction angle corresponding to each group of continuous frame motion data based on the orientation correction angle in the orientation correction information;

[0062] The orientation vector of each root node in the subsequent frame is rotated according to the local correction angle corresponding to the continuous frame motion data of the group to which it belongs, so as to obtain the final second orientation vector of each root node in the subsequent frame, and the second orientation vector is used as the final vectorization processing result of the at least one group of continuous frame motion data.

[0063] Specifically, the calculation unit 4022 is further used for:

[0064] According to the vectorization processing result of the at least one set of continuous frame movement data, identifying the movement posture of the virtual object when the at least one set of continuous frame movement data corresponds to a root node;

[0065] The correction angle corresponding to the motion posture is matched and set as the orientation correction angle of the root node corresponding to the at least one set of continuous frame movement data.

[0066] Specifically, the extraction unit 4021 is further used for:

[0067] Extracting at least one segmentation toward the correction segment in the correction information, and a start frame number and an end frame number corresponding to the at least one segmentation;

[0068] A correction time period for each frame motion data is determined according to the starting frame number and the ending frame number, and at least one group of continuous frame motion data to be processed in each frame motion data is determined based on the correction time period, wherein the number of fragment segments is the same as the number of groups of continuous frame motion data.

[0069] above Figure 4 and Figure 5 The virtual object orientation control device in the embodiment of the present invention is described in detail from the perspective of modular functional entities. The virtual object orientation control device in the embodiment of the present invention is described in detail from the perspective of hardware processing.

[0070] Figure 66 is a schematic diagram of the structure of a virtual object orientation control device provided by an embodiment of the present invention. The virtual object orientation control device 600 may have relatively large differences due to different configurations or performances, and may include one or more processors (central processing units, CPU) 610 (for example, one or more processors) and a memory 620, and one or more storage media 630 (for example, one or more mass storage devices) storing application programs 633 or data 632. Among them, the memory 620 and the storage medium 630 can be short-term storage or permanent storage. The program stored in the storage medium 630 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the virtual object orientation control device 600. Furthermore, the processor 610 can be configured to communicate with the storage medium 630 to execute a series of instruction operations in the storage medium 630 on the virtual object orientation control device 600.

[0071] The virtual object orientation control device 600 may also include one or more power supplies 640, one or more wired or wireless network interfaces 650, one or more input and output interfaces 660, and / or one or more operating systems 631, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, etc. It will be appreciated by those skilled in the art that Figure 6 The structure of the virtual object orientation control device shown does not constitute a limitation on the virtual object orientation control device, and may include more or less components than shown in the figure, or a combination of certain components, or a different arrangement of components.

[0072] The present invention also provides a virtual object orientation control device, the computer device includes a memory and a processor, the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the processor executes the steps of the virtual object orientation control method in the above embodiments, for example:

[0073] Obtaining multi-frame movement data and orientation correction information of the virtual object during the motion process;

[0074] Based on the orientation correction information, vectorization processing is performed on at least a portion of continuous frame motion data in each frame motion data to obtain a vectorization processing result;

[0075] Based on the vectorization processing result, the orientation of the virtual object during the movement is adjusted.

[0076] Optionally, the step of acquiring multiple frames of movement data of the virtual object during the movement process and the direction correction information includes:

[0077] Acquire motion capture data corresponding to the virtual object, and extract the root node coordinates of each frame of the virtual object during the motion process to obtain corresponding multi-frame movement data;

[0078] An orientation correction segment and / or an orientation correction angle configured for the virtual object is acquired, and orientation correction information is obtained according to the orientation correction segment and / or the orientation correction angle.

[0079] Optionally, the orientation correction information includes the orientation correction segment, and the vectorization processing is performed on at least part of the continuous frame motion data in each frame motion data based on the orientation correction information to obtain the vectorization processing result, which includes:

[0080] extracting at least one group of continuous frame motion data to be processed from each frame motion data based on the orientation correction segment in the orientation correction information;

[0081] According to the continuous order of the at least one group of continuous frame motion data, the relative position relationship between the front and rear frame root nodes is calculated according to the at least one group of continuous frame motion data to obtain the vectorized processing result of the at least one group of continuous frame motion data.

[0082] Optionally, the calculating the relative position relationship between the front and rear frame root nodes according to the at least one set of continuous frame motion data in a continuous order of the at least one set of continuous frame motion data to obtain the vectorization processing result of the at least one set of continuous frame motion data includes:

[0083] According to the continuous order of the at least one group of continuous frame movement data, connecting every two adjacent frame root nodes according to the at least one group of continuous frame movement data;

[0084] Determine the direction of the line from the root node in the previous frame to the root node in the next frame among every two adjacent frame root nodes, and use the direction of the line as the direction vector of the root node in the next frame;

[0085] Based on the orientation vector of each root node in the subsequent frame, a vectorized processing result of the at least one group of continuous frame motion data is obtained.

[0086] Optionally, the orientation correction information further includes the orientation correction angle, and after obtaining the vectorization processing result of the at least one set of continuous frame motion data based on the orientation vector of each root node in the subsequent frame, further includes:

[0087] When each frame motion data includes a group of continuous frame motion data to be processed, rotating the orientation vector of each root node in the subsequent frame according to the orientation correction angle in the orientation correction information to obtain a final first orientation vector of each root node in the subsequent frame, and using the first orientation vector as the final vectorization processing result of the at least one group of continuous frame motion data;

[0088] When each frame of motion data includes a plurality of groups of continuous frame motion data to be processed, determining a local correction angle corresponding to each group of continuous frame motion data based on the orientation correction angle in the orientation correction information;

[0089] The orientation vector of each root node in the subsequent frame is rotated according to the local correction angle corresponding to the continuous frame motion data of the group to which it belongs, so as to obtain the final second orientation vector of each root node in the subsequent frame, and the second orientation vector is used as the final vectorization processing result of the at least one group of continuous frame motion data.

[0090] Optionally, when each frame motion data includes a group of continuous frame motion data to be processed, rotating the orientation vector of each root node in the subsequent frame according to the orientation correction angle in the orientation correction information to obtain a final first orientation vector of each root node in the subsequent frame, and using the first orientation vector as the final vectorization processing result of the at least one group of continuous frame motion data, further comprising:

[0091] According to the vectorization processing result of the at least one set of continuous frame movement data, identifying the movement posture of the virtual object when the at least one set of continuous frame movement data corresponds to a root node;

[0092] The correction angle corresponding to the motion posture is matched and set as the orientation correction angle of the root node corresponding to the at least one set of continuous frame movement data.

[0093] Optionally, extracting at least one group of continuous frame motion data to be processed from each frame motion data based on the orientation correction segment in the orientation correction information includes:

[0094] Extracting at least one segmentation toward the correction segment in the correction information, and a start frame number and an end frame number corresponding to the at least one segmentation;

[0095] A correction time period for each frame motion data is determined according to the starting frame number and the ending frame number, and at least one group of continuous frame motion data to be processed in each frame motion data is determined based on the correction time period, wherein the number of fragment segments is the same as the number of groups of continuous frame motion data.

[0096] The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium, wherein instructions are stored in the computer-readable storage medium, and when the instructions are executed on a computer, the computer executes the steps of the virtual object orientation control method, for example:

[0097] Obtaining multi-frame movement data and orientation correction information of the virtual object during the motion process;

[0098] Based on the orientation correction information, vectorization processing is performed on at least a portion of continuous frame motion data in each frame motion data to obtain a vectorization processing result;

[0099] Based on the vectorization processing result, the orientation of the virtual object during the movement is adjusted.

[0100] Optionally, the step of acquiring multiple frames of movement data of the virtual object during the movement process and the direction correction information includes:

[0101] Acquire motion capture data corresponding to the virtual object, and extract the root node coordinates of each frame of the virtual object during the motion process to obtain corresponding multi-frame movement data;

[0102] An orientation correction segment and / or an orientation correction angle configured for the virtual object is acquired, and orientation correction information is obtained according to the orientation correction segment and / or the orientation correction angle.

[0103] Optionally, the orientation correction information includes the orientation correction segment, and the vectorization processing is performed on at least part of the continuous frame motion data in each frame motion data based on the orientation correction information to obtain the vectorization processing result, which includes:

[0104] extracting at least one group of continuous frame motion data to be processed from each frame motion data based on the orientation correction segment in the orientation correction information;

[0105] According to the continuous order of the at least one group of continuous frame motion data, the relative position relationship between the front and rear frame root nodes is calculated according to the at least one group of continuous frame motion data to obtain the vectorized processing result of the at least one group of continuous frame motion data.

[0106] Optionally, the calculating the relative position relationship between the front and rear frame root nodes according to the at least one set of continuous frame motion data in a continuous order of the at least one set of continuous frame motion data to obtain the vectorization processing result of the at least one set of continuous frame motion data includes:

[0107] According to the continuous order of the at least one group of continuous frame movement data, connecting every two adjacent frame root nodes according to the at least one group of continuous frame movement data;

[0108] Determine the direction of the line from the root node in the previous frame to the root node in the next frame among every two adjacent frame root nodes, and use the direction of the line as the direction vector of the root node in the next frame;

[0109] Based on the orientation vector of each root node in the subsequent frame, a vectorized processing result of the at least one group of continuous frame motion data is obtained.

[0110] Optionally, the orientation correction information further includes the orientation correction angle, and after obtaining the vectorization processing result of the at least one set of continuous frame motion data based on the orientation vector of each root node in the subsequent frame, further includes:

[0111] When each frame motion data includes a group of continuous frame motion data to be processed, rotating the orientation vector of each root node in the subsequent frame according to the orientation correction angle in the orientation correction information to obtain a final first orientation vector of each root node in the subsequent frame, and using the first orientation vector as the final vectorization processing result of the at least one group of continuous frame motion data;

[0112] When each frame of motion data includes a plurality of groups of continuous frame motion data to be processed, determining a local correction angle corresponding to each group of continuous frame motion data based on the orientation correction angle in the orientation correction information;

[0113] The orientation vector of each root node in the subsequent frame is rotated according to the local correction angle corresponding to the continuous frame motion data of the group to which it belongs, so as to obtain the final second orientation vector of each root node in the subsequent frame, and the second orientation vector is used as the final vectorization processing result of the at least one group of continuous frame motion data.

[0114] Optionally, when each frame motion data includes a group of continuous frame motion data to be processed, rotating the orientation vector of each root node in the subsequent frame according to the orientation correction angle in the orientation correction information to obtain a final first orientation vector of each root node in the subsequent frame, and using the first orientation vector as the final vectorization processing result of the at least one group of continuous frame motion data, further comprising:

[0115] According to the vectorization processing result of the at least one set of continuous frame movement data, identifying the movement posture of the virtual object when the at least one set of continuous frame movement data corresponds to a root node;

[0116] The correction angle corresponding to the motion posture is matched and set as the orientation correction angle of the root node corresponding to the at least one set of continuous frame movement data.

[0117] Optionally, extracting at least one group of continuous frame motion data to be processed from each frame motion data based on the orientation correction segment in the orientation correction information includes:

[0118] Extracting at least one segmentation toward the correction segment in the correction information, and a start frame number and an end frame number corresponding to the at least one segmentation;

[0119] A correction time period for each frame motion data is determined according to the starting frame number and the ending frame number, and at least one group of continuous frame motion data to be processed in each frame motion data is determined based on the correction time period, wherein the number of fragment segments is the same as the number of groups of continuous frame motion data.

[0120] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0121] 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 invention 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. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program codes.

[0122] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. 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 invention.

Claims

1. A method for controlling the orientation of a virtual object, characterized in that: The virtual object orientation control method comprises: Obtaining multi-frame movement data and orientation correction information of the virtual object during the motion process; Based on the orientation correction information, vectorization processing is performed on at least a portion of continuous frame motion data in each frame motion data to obtain a vectorization processing result; Based on the vectorization processing result, the orientation of the virtual object during the movement is adjusted.

2. The method for controlling the orientation of a virtual object according to claim 1, characterized in that: The step of obtaining multiple frames of movement data of the virtual object during the movement process and the direction correction information includes: Acquire motion capture data corresponding to the virtual object, and extract the root node coordinates of each frame of the virtual object during the motion process to obtain corresponding multi-frame movement data; An orientation correction segment and / or an orientation correction angle configured for the virtual object is acquired, and orientation correction information is obtained according to the orientation correction segment and / or the orientation correction angle.

3. The method for controlling the orientation of a virtual object according to claim 2, characterized in that: The orientation correction information includes the orientation correction segment, and the vectorization processing is performed on at least part of the continuous frame motion data in each frame motion data based on the orientation correction information to obtain the vectorization processing result, which includes: extracting at least one group of continuous frame motion data to be processed from each frame motion data based on the orientation correction segment in the orientation correction information; According to the continuous order of the at least one group of continuous frame motion data, the relative position relationship between the front and rear frame root nodes is calculated according to the at least one group of continuous frame motion data to obtain the vectorized processing result of the at least one group of continuous frame motion data.

4. The method for controlling the orientation of a virtual object according to claim 3, characterized in that: The step of calculating the relative position relationship between the front and rear frame root nodes according to the at least one set of continuous frame motion data in a continuous order of the at least one set of continuous frame motion data to obtain the vectorization processing result of the at least one set of continuous frame motion data comprises: According to the continuous order of the at least one group of continuous frame movement data, connecting every two adjacent frame root nodes according to the at least one group of continuous frame movement data; Determine the direction of the line from the root node in the previous frame to the root node in the next frame among every two adjacent frame root nodes, and use the direction of the line as the direction vector of the root node in the next frame; Based on the orientation vector of each root node in the subsequent frame, a vectorized processing result of the at least one group of continuous frame motion data is obtained.

5. The method for controlling the orientation of a virtual object according to claim 4, characterized in that: The orientation correction information also includes the orientation correction angle, and after obtaining the vectorization processing result of the at least one set of continuous frame motion data based on the orientation vector of each root node in the subsequent frame, further includes: When each frame motion data includes a group of continuous frame motion data to be processed, rotating the orientation vector of each root node in the subsequent frame according to the orientation correction angle in the orientation correction information to obtain a final first orientation vector of each root node in the subsequent frame, and using the first orientation vector as the final vectorization processing result of the at least one group of continuous frame motion data; When each frame of motion data includes a plurality of groups of continuous frame motion data to be processed, determining a local correction angle corresponding to each group of continuous frame motion data based on the orientation correction angle in the orientation correction information; The orientation vector of each root node in the subsequent frame is rotated according to the local correction angle corresponding to the continuous frame motion data of the group to which it belongs, so as to obtain the final second orientation vector of each root node in the subsequent frame, and the second orientation vector is used as the final vectorization processing result of the at least one group of continuous frame motion data.

6. The method for controlling the orientation of a virtual object according to claim 4, characterized in that: When each frame motion data includes a group of continuous frame motion data to be processed, the method further includes: rotating the orientation vector of each root node in the subsequent frame according to the orientation correction angle in the orientation correction information to obtain a final first orientation vector of each root node in the subsequent frame, and using the first orientation vector as the final vectorization processing result of the at least one group of continuous frame motion data. According to the vectorization processing result of the at least one set of continuous frame movement data, identifying the movement posture of the virtual object when the at least one set of continuous frame movement data corresponds to a root node; The correction angle corresponding to the motion posture is matched and set as the orientation correction angle of the root node corresponding to the at least one set of continuous frame movement data.

7. The method for controlling the orientation of a virtual object according to any one of claims 3 to 6, characterized in that: The extracting at least one set of continuous frame motion data to be processed from each frame motion data based on the orientation correction segment in the orientation correction information comprises: Extracting at least one segmentation toward the correction segment in the correction information, and a start frame number and an end frame number corresponding to the at least one segmentation; A correction time period for each frame motion data is determined according to the starting frame number and the ending frame number, and at least one group of continuous frame motion data to be processed in each frame motion data is determined based on the correction time period, wherein the number of fragment segments is the same as the number of groups of continuous frame motion data.

8. A virtual object orientation control device, characterized in that: The virtual object orientation control device comprises: An acquisition module, used to acquire multi-frame movement data of a virtual object during its motion, and orientation correction information; A vectorization module, configured to perform vectorization processing on at least a portion of continuous frame motion data in each frame motion data based on the orientation correction information to obtain a vectorization processing result; An adjustment module is used to adjust the orientation of the virtual object during the movement based on the vector processing result.

9. A virtual object orientation control device, characterized in that: The virtual object orientation control device comprises: a memory and at least one processor, wherein instructions are stored in the memory; The at least one processor calls the instruction in the memory to enable the virtual object orientation control device to perform each step of the virtual object orientation control method as described in any one of claims 1-7.

10. A computer-readable storage medium having instructions stored thereon, characterized in that: When the instructions are executed by the processor, the steps of the method for controlling the orientation of a virtual object as described in any one of claims 1 to 7 are implemented.