Action redirection method and device, equipment and storage medium

By adjusting the position of the spine joint point of the target bone so that its cervical vertebra joint point is consistent with the position of the source bone's cervical vertebra joint point, the problem of movement differences caused by differences in bone structure in virtual object movement redirection is solved, and the accuracy of movement redirection is improved. Effect.

CN118570347APending Publication Date: 2024-08-30BEIJING QIYI CENTURY SCI & TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410603524.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-15
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

In the action redirection of virtual objects, due to the difference in the spinal structure of the target bone and the source bone, the movement difference after movement migration is large and the effect is not good.

Method used

By determining the rotation axis and optimal rotation method of the target bone, the spine joint point position of the target bone is gradually adjusted so that the cervical joint point position of the target bone is consistent with the cervical joint point position of the source bone, thereby reducing movement differences.

Benefits of technology

It effectively reduces the action difference between the target bone and the source bone when performing the same action, and improves the accuracy and consistency of action redirection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570347A
    Figure CN118570347A
Patent Text Reader

Abstract

The invention provides an action redirection method and device, equipment and a storage medium. The method comprises the following steps: determining a first target skeleton state and a first source skeleton state of a target skeleton and a source skeleton when a first action is executed, and target action data required by the source skeleton for executing a second action; based on the target action data, the first target skeleton state and the first source skeleton state, determining a second target skeleton state of the target skeleton and a second source skeleton state of the source skeleton; for a target skeleton in a second target skeleton state, determining a current to-be-adjusted target spine joint point for each spine joint point in sequence, and determining that when the target skeleton is adjusted from the first target skeleton state to the second target skeleton state, a target skeleton section connected with the target spine joint point rotates around a target rotating shaft, rotating a target spine skeleton section dragged by the target spine joint point in the target spine according to the target rotation axis, and determining an optimal rotation mode; and controlling the target spine skeleton section to rotate around the target rotating shaft according to the optimal rotating mode, and taking the adjusted second target skeleton state as a second target skeleton state of the target skeleton. According to the invention, the action difference between the target skeleton and the source skeleton after the action migration can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of action generation of virtual objects, and in particular to an action redirection method, device, equipment and storage medium. Background Art

[0002] The motion redirection technology of virtual objects is widely used in games and virtual reality. The motion redirection of virtual objects refers to migrating the motion designed on the source skeleton to the target skeleton of the target virtual object to drive the target skeleton of the virtual object to present the corresponding motion.

[0003] However, due to the differences in the spinal structure relationship between the target bone and the source bone, such as the relative structural relationship between the joints in the spine, after the movement of the source bone is transferred to the target bone of the virtual object, the movement of the target bone is quite different from that of the source bone, resulting in a poor effect of movement redirection. Summary of the invention

[0004] The present application provides an action redirection method, apparatus, device and storage medium to reduce the difference between the action presented on the target skeleton and the action presented on the source skeleton after action migration.

[0005] On the one hand, the present application provides an action redirection method, comprising:

[0006] Determine a first target bone state of the target bone when performing a first action, a first source bone state of the source bone when performing the first action, and target action data required for the source bone to perform a second action, where the second action is the next action that the source bone needs to perform after the first action;

[0007] Using the target action data, respectively drive the target bone in the first target bone state and the source bone in the first source bone state to obtain a second target bone state when the target bone performs the second action and a second source bone state when the source bone performs the second action;

[0008] For the target bone in the second target bone state, according to the order of the spinal joints on the target spine of the target bone from bottom to top, determine the target spinal joints to be adjusted from the spinal joints that have not been adjusted in the target spine;

[0009] Determine the target rotation axis around which the target bone segment connected to the target spinal joint point rotates when the target bone is adjusted from the first target bone state to the second target bone state, wherein the target bone segment is a bone segment from the target spinal joint point to the next joint point in the target spine; the next joint point is a spinal joint point or a target cervical vertebrae joint point in the target spine that is connected to the target spinal joint point and located above the target spinal joint point;

[0010] For the target bone in the second target bone state, the target spinal bone segment driven by the target spinal joint point in the target spine is rotated according to the target rotation axis to determine the optimal rotation method, wherein after rotating the target spinal bone segment according to the optimal rotation method, the distance between the target cervical vertebra joint point and the source cervical vertebra joint point in the source bone in the second source bone state is the smallest, and the target spinal bone segment includes the target spinal joint point and the spinal bone in the target spine located above the target spinal joint point;

[0011] The target spinal bone segment is controlled to rotate around the target rotation axis according to the optimal rotation method to adjust the second target bone state of the target bone, and the adjusted second target bone state is used as the second target bone state of the target bone, and the operation of determining the target spinal joint point to be adjusted is returned to execute until there are no unadjusted spinal joint points in the target spine.

[0012] In a possible implementation, after determining the optimal rotation method, the method further includes:

[0013] If there are multiple optimal rotation modes, determine a target optimal rotation mode from the multiple optimal rotation modes, wherein after rotating the target spinal bone according to the target optimal rotation mode, the distance between the position to which the next joint point is rotated and the position of the next joint point before rotation is the smallest, and the position of the next joint point before rotation is the position of the next joint point when the target bone is in the second target bone state;

[0014] The step of controlling the target spinal bone segment to rotate around the target rotation axis in accordance with the optimal rotation mode comprises:

[0015] The target spinal column bone segment is controlled to rotate around the target rotation axis according to the target optimal rotation mode.

[0016] In another possible implementation, the target rotation axis around which the target bone segment connected to the target spinal joint point rotates when the target bone is determined to be adjusted from the first target bone state to the second target bone state includes:

[0017] When the target bone is in a first target bone state, determining a first vector pointing from the target spine joint point to a next joint point in the local coordinate system of the target spine joint point;

[0018] When the target bone is in a second target bone state, determining a second vector pointing from the target spine joint point to the next joint point in the local coordinate system of the target spine joint point;

[0019] A target rotation axis about which the first vector is rotated to the second vector is determined.

[0020] In another possible implementation, rotating the target spinal bone segment driven by the target spinal joint point in the target spine according to the target rotation axis to determine the optimal rotation method includes:

[0021] Controlling the target spinal bone segment moved by the target spinal joint point to rotate clockwise around the target rotation axis by a set angle value and counterclockwise around the target rotation axis by a set angle value;

[0022] In the process of controlling the target spinal bone segment to rotate around the target rotation axis, respectively recording the cervical vertebra point distance between the target cervical vertebra joint point and the source cervical vertebra joint point in the source skeleton in the second source skeleton state when the target spinal bone segment rotates to a plurality of different rotation angles in different rotation directions, wherein the rotation direction is used to indicate whether the rotation is clockwise or counterclockwise;

[0023] Based on the target rotation angle under the target rotation direction corresponding to the minimum cervical vertebrae point distance, an optimal rotation mode is determined, and the optimal rotation mode is used to indicate that the target rotation angle is rotated in the target rotation direction.

[0024] In another possible implementation, before using the target action data to drive the target skeleton in the first target skeleton state and the source skeleton in the first source skeleton state respectively, the method further includes:

[0025] If the first action is the set initial action, based on the first target bone state of the target bone, each bone segment of the source bone in the first source bone state is scaled proportionally so that the scaled source bone has the same height as the bone belonging to the torso part of the target bone.

[0026] In another possible implementation, scaling each bone segment of the source bone in the first source bone state based on the first target bone state of the target bone includes:

[0027] determining a first height difference between a shoulder joint point and a target sacrum joint point in a target skeleton in a first target skeleton state;

[0028] determining a second height difference between a shoulder joint point and a source sacrum joint point in the source skeleton in the first source skeleton state;

[0029] determining a ratio of the first height difference to the second height difference as a scaling factor;

[0030] Based on the scaling factor, each bone segment of the source bone in the first source bone state is scaled proportionally.

[0031] In another possible implementation, after scaling each bone segment of the source bone in the first source bone state, the method further includes:

[0032] If the source cervical vertebra joint point in the scaled source skeleton is different in height from the target cervical vertebra joint point in the target skeleton in the first target skeleton state, construct a virtual cervical vertebra joint point for the scaled source skeleton, and use the virtual cervical vertebra joint point as the source cervical vertebra joint point of the scaled source skeleton;

[0033] The virtual cervical vertebra joint point is located on a line between the source cervical vertebra joint point and a spinal column joint point connected to the source cervical vertebra joint point, and has the same height as the target cervical vertebra joint point.

[0034] In another aspect, the present application provides an action redirection device, comprising:

[0035] a data determination unit, used to determine a first target bone state when the target bone performs a first action, a first source bone state when the source bone performs the first action, and target action data required for the source bone to perform a second action, where the second action is a next action to be performed by the source bone after the first action;

[0036] A skeleton driving unit, used for driving the target skeleton in the first target skeleton state and the source skeleton in the first source skeleton state respectively by using the target action data, to obtain a second target skeleton state when the target skeleton performs the second action and a second source skeleton state when the source skeleton performs the second action;

[0037] A joint point determination unit is used to determine, for a target bone in a second target bone state, a target spinal joint point to be adjusted from the spinal joint points that have not been adjusted in the target spine according to the order of the spinal joint points on the target spine of the target bone from bottom to top;

[0038] A rotation axis determination unit, used to determine a target rotation axis around which a target bone segment connected to a target spinal joint point rotates when the target bone is adjusted from a first target bone state to a second target bone state, wherein the target bone segment is a bone segment from a target spinal joint point to a next joint point in the target spine; the next joint point is a spinal joint point or a target cervical vertebrae joint point in the target spine that is connected to the target spinal joint point and located above the target spinal joint point;

[0039] A mode determination unit is used for rotating the target spinal bone segment driven by the target spinal joint point in the target spine according to the target rotation axis for the target bone in the second target bone state, and determining the optimal rotation mode, wherein after rotating the target spinal bone segment according to the optimal rotation mode, the distance between the target cervical vertebra joint point and the source cervical vertebra joint point in the source bone in the second source bone state is minimized, and the target spinal bone segment includes the target spinal joint point and the spinal bone in the target spine located above the target spinal joint point;

[0040] An action adjustment unit is used to control the target spinal bone segment to rotate around the target rotation axis according to the optimal rotation method to adjust the second target bone state of the target bone, use the adjusted second target bone state as the second target bone state of the target bone, and return to execute the operation of determining the target spinal joint point to be adjusted currently until there are no unadjusted spinal joint points in the target spine.

[0041] In another aspect, the present application further provides a computer device, characterized in that it includes a memory and a processor;

[0042] Wherein, the memory is used to store programs;

[0043] The processor is used to execute the program, and when the program is executed, it is specifically used to implement any one of the action redirection methods described above.

[0044] On the other hand, the present application also provides a computer-readable storage medium, characterized in that the computer-readable storage medium stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set are loaded and executed by a processor to implement the action redirection method as described in any one of the above.

[0045] From the above, it can be seen that the present application takes into account that in order to make the movement of the target bone after the migration action and the movement of the source bone that performs the corresponding action as consistent as possible, it is necessary to ensure that the spinal movements of the two bones are basically consistent; and to ensure that the spinal movements of the two bones are basically consistent, it is necessary to ensure that the spatial positions of the cervical joint points of the two bones are basically the same.

[0046] Based on this, after determining the second target bone state when the target bone performs the second action and the second source bone state when the source bone performs the second action, the present application will also sequentially determine each spinal joint point on the target bone in the second skeletal state as the target spinal joint point to be adjusted, and determine the target rotation axis around which a target bone segment above the target spinal joint point rotates when the target bone is adjusted from the first target bone state to the second target bone state. On this basis, for the target bone in the second target bone state, by rotating the spinal bone segments above the target spinal joint points according to the target rotation axis, it is possible to find the suitable spatial positions of the spinal joint points on the spinal bone segments above the target joint points when the cervical vertebra joint points in the target bone are closest to the cervical vertebra joint points in the source bone performing the second action. Based on this, by gradually adjusting the spatial positions of the spinal joint points in the spinal bone segments above each spinal joint point on the target spine, it is eventually possible to make the cervical vertebra joint points on the target spine closest to the cervical vertebra joint points on the source bone performing the second action. Naturally, the movements of the target spine and the source spine of the source bone performing the second action are closer, thereby reducing the movement differences between the target bone and the source bone when performing the same action. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are merely embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0048] Figure 1 A schematic diagram of a process flow of an action redirection method provided in an embodiment of the present application is shown;

[0049] Figure 2 An example diagram of a skeleton in an embodiment of the present application is shown;

[0050] Figure 3 An example diagram comparing the movements of the target skeleton's spine and the source skeleton's spine in different movements in an embodiment of the present application is shown;

[0051] Figure 4 Another schematic diagram of a flow chart of the action redirection method provided in an embodiment of the present application is shown;

[0052] Figure 5 A schematic diagram showing a comparison between the target skeleton and the source skeleton in the initial action in the present application is shown;

[0053] Figure 6An example diagram comparing a target skeleton and a scaled source skeleton in the present application is shown;

[0054] Figure 7 Another schematic diagram of a flow chart of the action redirection method provided in an embodiment of the present application is shown;

[0055] Figure 8 An example diagram showing a comparison of a target spine of a target bone performing different actions and a source spine of a source bone performing a second action in an embodiment of the present application is shown;

[0056] Fig. 9 An example diagram comparing the target spine and the source spine after the spinal bones above the target spine joint points are rotated in an optimal rotation manner in an embodiment of the present application is shown;

[0057] Fig.10 An example diagram comparing the target spine and the source spine after adjustment by the solution of the present application is shown;

[0058] Fig.11 An example diagram of a composition structure of an action redirection device provided in an embodiment of the present application is shown;

[0059] Fig.12 A schematic diagram of the composition architecture of a computer device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0060] The solution of the present application is applicable to the action redirection scenario of a virtual object to reduce the difference between the action presented on the target skeleton and the action presented on the source skeleton after the action migration. There are many possible action redirection scenarios applicable to the present application, such as, in the construction of a virtual game object or a virtual character in a virtual reality scene, based on the action information of the source object, determining the redirected action information migrated to the target skeleton of the virtual target object.

[0061] Of course, this application does not impose any restrictions on the application scenarios of specific action redirection.

[0062] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0063] like Figure 1, showing a flow chart of the action redirection method provided in an embodiment of the present application. The method in the embodiment of the present application can be applied to computer devices, such as personal computers or servers, or device nodes in distributed or cluster systems, etc., without limitation.

[0064] The method of this embodiment may include:

[0065] S101, determining a first target bone state of a target bone when performing a first action, a first source bone state of a source bone when performing the first action, and target action data required for the source bone to perform a second action.

[0066] In this application, the source skeleton refers to the skeleton used by designers as a template to design action data, that is, the source skeleton is the skeleton of the source object, and the source object is the object used as an object template to set action data. The target skeleton refers to the skeleton of the target object for which the action needs to be designed, that is, the skeleton corresponding to the target object for which the action behavior needs to be assigned through action migration. Based on this, in the action redirection process, the action data designed based on the source skeleton can be migrated to the target skeleton.

[0067] It is understandable that in the present application, the target object and the source object can be any type of object, for example, the target object and the source object can be virtual characters, such as virtual people, virtual cartoon characters, or human-like game objects that need to be constructed using human skeletons, etc. Of course, the target object and the source object can also be objects that perform other virtual actions or have other skeletal features, without limitation.

[0068] In the present application, for any one of the target bones and the source bones, the bone may include the joints that constitute the bone, the connection relationship between the joints, the bone segments between the joints, and the length of the bone segments, etc.

[0069] It is understandable that in order to achieve action transfer, the target bone generally needs to have the same type and number of joints as the source bone, that is, the target bone and the source bone have the same type of joints, and the number of each type of joints is also the same. For example, the target bone and the source bone both have a spine, and the two ends of the spine are the sacral joint and the cervical joint, and there is at least one spinal joint on the spine.

[0070] However, due to different habits of different designers, the topological structures between different joints in the target skeleton and the source skeleton are different. For example, the length of each bone segment in the spine of the target skeleton may be different from the length of the corresponding bone segment in the spine of the source skeleton.

[0071] It is understandable that, for any one of the source skeleton and the target skeleton, the skeleton is converted from the state of one action to perform another action. In the present application, the action corresponding to the current state of the source skeleton and the target skeleton is referred to as the first action, and the action to be performed after the first action is referred to as the second action. Since action redirection is to migrate the action of the source skeleton to the target skeleton, the second action can be regarded as the next action that the source skeleton needs to perform after the first action.

[0072] In a possible case, the first action may be an initial action of the source skeleton and the target skeleton in an initial action state, where the initial action refers to an action of the source skeleton and the target skeleton in an action state after the source skeleton and the target skeleton are designed.

[0073] For example, in the process of designing the actions of virtual objects, the upright state is generally used as the initial posture, so the first action can be an upright action. Figure 2 An example diagram showing the skeleton in its initial action state. Figure 2 It can be seen that the bone segments belonging to the legs and torso are in an upright state, and the bone segments belonging to the arms are in a straight and stretched state. At this time, it can be considered that the bones are in the initial action state.

[0074] In another possible situation, the first action may be an action in the action sequence that needs to be migrated to the target bone, on this basis, the first action may be the action that is most recently migrated to the target bone. Accordingly, the second action is the next action to be migrated after the first action in the action sequence.

[0075] In this case, after obtaining the first target bone state of the target bone when performing the first action and the first source bone state of the source bone when performing the first action, the target action data corresponding to the second action to be performed after the first action can be obtained from the action sequence data. The action sequence data may include: the action data of each of a plurality of actions in a sequential order.

[0076] In the present application, the target action data is the action data required when the source skeleton performs the second action from the state of the first action. Considering that the source skeleton needs to rotate through different joints to complete the action execution, the target action data can also be called target joint rotation data. Therefore, the target action data may include: the joint rotation data of each joint point in the source skeleton, such as, the joint rotation data of the joint point may include: the rotation value required for the joint point to rotate on different coordinate axes in the spatial coordinate system.

[0077] In the present application, for any one of the source skeleton and the target skeleton, the skeleton state of the skeleton can be considered as the skeleton state data, which can include data related to the skeleton posture presented when the skeleton performs an action. For example, the skeleton state can include the state data of each joint point in the skeleton, such as the position coordinates of the joint point, the relative spatial position relationship between the joint points, etc.

[0078] It can be understood that when the skeletal structure of the skeleton (the number of joints included and the connection relationship between the joints, etc.) is determined, when the skeleton is in a state of performing different actions, the spatial position of each joint on the skeleton will change, causing the skeletal posture presented by the skeleton to be different. Therefore, the skeletal state of the skeleton can reflect the position information of each joint on the skeleton and the overall skeletal posture when the skeleton is performing a certain action.

[0079] Further, in practical applications, the skeleton state of the skeleton may also include attribute data of the skeleton, such as the connection relationship between the joints constituting the skeleton and the length of the skeleton segment between two adjacent joints. Accordingly, the skeleton state of the skeleton can not only determine the structure of the skeleton, but also determine the current posture of the skeleton.

[0080] For example, the first target bone state of the target bone may include state data such as the position coordinates of each joint point in the target bone when the target bone is performing the first action. Of course, the first target bone state may also include component structure data of the target bone, such as each joint point constituting the target bone, the connection relationship between each joint point, and the length between the bone segments between each joint point, etc., without limitation.

[0081] Similarly, the first source skeleton state of the source skeleton may include state data such as position coordinates of each joint point in the source skeleton when the source skeleton is performing the first action. Of course, the first source skeleton state may also include composition structure data of the source skeleton, which is not limited.

[0082] S102, using the target action data to respectively drive the target bone in the first target bone state and the source bone in the first source bone state, to obtain the second target bone state when the target bone performs the second action and the second source bone state when the source bone performs the second action.

[0083] Among them, using the target action data to drive the target skeleton in the first target skeleton state means that when the target skeleton is in (or has) the first target skeleton state, the target action data is mapped to the target skeleton so that the target skeleton is converted from the state of being in the first action to the state of performing the second action. For example, the joint rotation data of each joint point in the target action data is mapped to the corresponding joint point of the target skeleton to drive the corresponding joint point on the target skeleton to rotate, and finally the target skeleton presents the skeleton state of performing the second action.

[0084] In this application, for the sake of distinction, the skeletal state of the target skeleton when performing the second action is referred to as the second target skeletal state.

[0085] Combined with the previous explanation of the bone state, it can be seen that the second target bone state may include: state data such as the position coordinates of each joint point in the target bone when the target bone is performing the second action; of course, the second target bone state may also include the composition structure data of the target bone.

[0086] Similarly, when the source skeleton is in the first source skeleton state, the target action data can be mapped to the source skeleton so that the source skeleton is converted from being in the state of executing the first action to being in the state of executing the second action, thereby obtaining the second source skeleton state of the source skeleton. The second source skeleton state may include: state data such as the position coordinates of each joint point in the source skeleton when the source skeleton is in the state of executing the second action, and of course, may also include the composition structure data of the source skeleton.

[0087] S103, for the target bone in the second target bone state, determine the target spinal joint points to be adjusted currently from the spinal joint points that have not been adjusted in the target spine according to the order of the spinal joint points on the target spine of the target bone from bottom to top.

[0088] In this application, for ease of distinction, the spine of the target skeleton is referred to as the target spine, and the spine of the source skeleton is referred to as the source spine.

[0089] It can be understood that for any bone in the target bone and the source bone, the spine of the bone refers to the bone part of the bone between the sacrum joint point and the cervical joint point. Therefore, the lowest joint point of the spine is the sacrum joint point, and the uppermost joint point of the spine (also called the apex) is the cervical joint point.

[0090] like Figure 2 As shown, the spine refers to the bone portion between the cervical joint point 201 and the sacral joint point 202. The spine includes a plurality of spinal joint points 203. Figure 2The example in which the spine has three spinal joints is used for illustration only. The number of spinal joints may also be other and there is no limitation to this.

[0091] It is understandable that the sacrum joint point and the cervical joint point are the joint points at both ends of the spine. Due to the particularity of the sacrum joint point and the cervical joint point, the spinal joint points on the spine mentioned in this application can be the joint points on the spine other than the sacrum joint point and the cervical joint point, such as Figure 2 As shown, the spinal joints may be joints on the spine and located between the sacral joints and the cervical joints.

[0092] The inventor of the present application has found through research that: if the target skeleton and the source skeleton are different, if the action data required for the source skeleton to perform an action is directly assigned to the target skeleton, then the target skeleton may be deformed, making the target action performed by the target skeleton and the source skeleton different. Moreover, since the spinal bone part of the skeleton belonging to the body trunk occupies a large part of the skeleton, the difference between different skeletons in performing the same action is mainly reflected in the difference in the action performed by the spine.

[0093] Based on the above research findings, in order to reduce the difference in motion on the bones, this application needs to ensure that the motion differences presented by the spines of the two bones are small. Considering that in the motion redirection scenario, the sacral joints of the source and target bones are overlapped, based on this, if the heights of the two bones are basically the same, and the spinal movements of the two bones are consistent, then the cervical joints at the top of the spine of the two bones should also be in the same spatial position.

[0094] like Figure 3 As shown, from Figure 3 As can be seen from the left side of the middle arrow, the lengths of different bone segments in the source spine 31 of the source skeleton and the target spine 32 of the target skeleton are different, but the heights of the source spine and the target spine are basically the same. Among them, any point on the source spine 31 and the target spine 32 represents a joint point.

[0095] The shape of the source spine after the source bone performs a certain action and the shape of the target bone after the action is transferred to the target bone can be seen in Figure 3 As shown to the right of the arrow.

[0096] Depend on Figure 3 It can be seen from the part to the right of the middle arrow that the sacral joint point 300 at the lowest end of the source spine 31 and the target spine 32 overlaps, but the source cervical joint point 311 of the source spine 31 and the target spine joint point 321 of the target spine 32 are significantly different in position, resulting in a significant difference in the movements of the source spine 31 and the target spine 32.

[0097] By adjusting the positions of the spinal joints on the target spine, the target spinal joints on the target spine are finally made to coincide with the source cervical spine joints 311, and the adjusted target spine 33 can be obtained. It can be seen that compared with the target spine 32 before adjustment, the movement of the target spine 33 after adjustment is relatively small compared with the movement of the source spine 31, so that the movements are basically consistent.

[0098] On the basis of the above, after using the target action data of the target action to drive the source bone in the first source bone state and the target bone in the first target bone state, the present application needs to adjust the positions of each spinal joint point on the target spine of the target bone in turn, so as to finally make the target cervical vertebra joint point at the top of the target spine of the target bone basically consistent with the position of the source cervical vertebra joint point of the source bone, so that the action state presented by the target spine is as consistent as possible with the action presented on the source spine.

[0099] It is understandable that, in the process of migrating the target action to the target skeleton or assigning the data of the target action to the source skeleton, the position of the sacral joint in the target skeleton coincides with the position of the sacral joint of the source skeleton, and there is no need to adjust the spatial position of the sacral joint in the target skeleton. For any one of the source skeleton and the target skeleton, the spatial position of each spinal joint on the spine of the skeleton will be affected by the spatial position of other spinal joints below the spinal joint that are connected to the spinal joint. Based on this, when the target skeleton is in the second skeleton state, in order to be able to reasonably adjust the spatial form of the spine of the target skeleton in the future, so that the action presented by the spine of the target skeleton can be consistent with the action presented by the source skeleton in the second source skeleton state, the present application needs to adjust the position of each spinal joint on the target spine of the target skeleton in sequence from bottom to top.

[0100] It is understandable that each time a target spinal joint point to be adjusted is determined, the present application will execute subsequent steps S104 to S106, and then determine the next spinal joint point after the target spinal joint point as the target spinal joint point to be adjusted, and execute steps S104 to S106, and continue to iterate until all spinal joint points on the target spine are used as target spinal joint points to be adjusted. S104, for the currently determined target spinal joint point, determine the target rotation axis around which the target bone segment connected to the target spinal joint point rotates when the target bone is adjusted from the first target bone state to the second target bone state.

[0101] The target bone segment is a bone segment in the target spine from the target spinal joint point to the next joint point of the target spinal joint point. Here, the next joint point corresponding to the target spinal joint point is a spinal joint point in the target spine that is connected to the target spinal joint point and located above the target spinal joint point or a target cervical vertebrae joint point.

[0102] For example, according to the order of the joints on the target spine from bottom to top, the next joint in the target spine that is connected to the target spine joint and located above the target spine joint is a spinal joint, then the next joint is this spinal joint; if the joint that is connected to the target spine joint and located above the target spine joint is the target cervical joint on the target spine, then the target cervical joint is the next joint.

[0103] For ease of understanding, the target bone is Figure 2 The skeleton shown is used as an example. Figure 2 The mid-spine includes three spinal joints 203 between the cervical joint 201 and the sacral joint 202 .

[0104] For the convenience of description, the following sequence is used from bottom to top. Figure 2 The three spinal joints are called spinal joint A, spinal joint B and spinal joint C respectively.

[0105] Assuming that the currently determined target spinal joint point is the lowest spinal joint point A, then the next spinal joint point of spinal joint point A is spinal joint point B, and the target bone segment connected to spinal joint point A is a bone segment between spinal joint point A and spinal joint point B.

[0106] If the currently determined target spinal joint point is the uppermost spinal joint point C, then since the next joint point above the spinal joint point C is the cervical vertebrae joint point, the next joint point of the spinal joint point is the cervical vertebrae joint point.

[0107] It is understandable that, in the process of the target bone being converted from the first target bone state to the second target bone state, the target bone segment will also rotate in space, so that the rotation axis around which the target bone rotates can be determined, and this rotation axis is called the target rotation axis.

[0108] In the present application, there is no limitation on the specific implementation method of determining the target rotation axis.

[0109] S105, for the target skeleton in the second target skeleton state, the target spinal bone segments driven by the target spinal joints in the target spine are rotated according to the target rotation axis to determine the optimal rotation method.

[0110] The target spinal bone segment includes the target spinal joint point and the spinal bones in the target spine located above the target spinal joint point.

[0111] If still Figure 2 To illustrate, if the target spine joint is Figure 2 The target spinal bone segment is the lowermost spinal joint point, then the target spinal bone segment includes the spinal bones between the spinal joint point and the cervical joint point 201. Therefore, the target spinal bone segment includes the spinal joint point and three bone segments from the spinal joint point to the cervical joint point.

[0112] Among them, after rotating the target spinal bone segment according to the optimal rotation method, the distance between the target cervical vertebra joint point in the target bone and the source cervical vertebra joint point in the source bone in the second source bone state (that is, the source bone performing the second action) is the smallest.

[0113] Combined with the previous research findings of the inventor, in order to reduce the difference in movement between the target bone and the source bone when performing the second action, the present application needs to adjust the position of each spinal joint point on the target spine of the target bone, so that the position of the target cervical joint point at the top of the target spine and the source cervical joint point of the source bone are ultimately kept as consistent as possible.

[0114] In the process of adjusting the position of each spinal joint point on the target spine of the target bone, it is necessary to ensure that the target spine does not deform, such as ensuring that the target spine does not bend in violation of physiological limitations. Based on this, when adjusting the spatial position of each spinal joint point on the target spine, the present application needs to determine the rotation axis around which the target bone segment connected to each spinal joint point rotates, and control the rotation of the target spinal bone segment located above the spinal joint point in the target spine according to the rotation axis, so that the target spinal bone segment above the spinal joint point can rotate according to the actual rotation direction of the spinal joint point, rather than rotating arbitrarily, thereby avoiding the situation where the target spine bends arbitrarily, and naturally reducing the situation where the target spine deforms.

[0115] In combination with the above content, it can be known that the present application rotates the spinal portion above the target spinal joint point as a whole according to the target rotation axis, so as to find through rotation the spatial position suitable for the spinal portion above the target spinal joint point when the distance between the target cervical vertebra joint point and the source cervical vertebra joint point in the source bone in the second source bone state is minimized, thereby achieving the premise of reducing the unnatural deformation of the target spine, and gradually adjusting the spinal bones above each spinal joint point in sequence, so that the position of the target cervical vertebra joint point can be basically consistent with the source cervical vertebra joint point of the source bone.

[0116] In the present application, the optimal rotation method at least includes: the optimal rotation angle. For example, in the process of rotating the target spinal bone segment according to the target rotation axis, the target spinal bone segment is always controlled to rotate along the same rotation direction, then it is only necessary to determine the rotation angle to which the distance between the source cervical vertebra joint point in the second source bone state and the target cervical vertebra joint point is the smallest.

[0117] Of course, in actual applications, the target spinal bone segment can also be rotated in clockwise and counterclockwise rotation modes respectively. On this basis, the optimal rotation mode can include an optimal rotation angle and a rotation direction corresponding to the optimal rotation angle.

[0118] In an optional method, in order to reduce unnatural deformation of the target spine and to reduce the amount of data processing, and considering that the most suitable position of each spinal joint on the target spine will not be too far from the initial position of the spinal joint in the second skeletal state, the present application can control the rotation of the target spinal skeletal segment driven by the target spinal joint according to the target rotation axis, and the maximum rotation angle value shall not exceed the set angle value.

[0119] S106, control the target spinal bone segment to rotate around the target rotation axis according to the optimal rotation method to adjust the second target bone state of the target bone, use the adjusted second target bone state as the second target bone state of the target bone, and return to execute step S103 to determine the next target spinal joint point to be adjusted until there are no unadjusted spinal joint points in the target spine.

[0120] It can be understood that, for the target spinal joint point, after determining the optimal rotation method for the target spinal bone segment affected by the target spinal joint point, and rotating the target spinal bone segment according to the optimal rotation method, the target source joint point on the target spine of the target bone can be made closest to the source cervical vertebra joint point in the source bone in the second source bone state.

[0121] On this basis, in order to continue to adjust the spinal bone segments above the subsequent spinal joints, the present application will use the second target bone state of the adjusted target bone segment as the latest second target bone state of the target bone, and return to step S103 to finally determine the optimal position of all spinal joints on the target spine, thereby completing the motion redirection.

[0122] From the above content, it can be seen that the present application takes into account that in order to make the target bone after the migration action and the action of the source bone that performs the corresponding action as consistent as possible, it is necessary to ensure that the spinal movements of the two bones are basically consistent; and to ensure that the spinal movements of the two bones are basically consistent, it is necessary to ensure that the spatial positions of the cervical joint points of the two bones are basically the same.

[0123] Based on this, after determining the second target bone state when the target bone performs the second action and the second source bone state when the source bone performs the second action, the present application will also sequentially determine each spinal joint point on the target bone in the second skeletal state as the target spinal joint point to be adjusted, and determine the target rotation axis around which a target bone segment above the target spinal joint point rotates when the target bone is adjusted from the first target bone state to the second target bone state. On this basis, for the target bone in the second target bone state, by rotating the spinal bone segments above the target spinal joint points according to the target rotation axis, it is possible to find the suitable spatial positions of the spinal joint points on the spinal bone segments above the target joint points when the cervical vertebra joint points in the target bone are closest to the cervical vertebra joint points in the source bone performing the second action. Based on this, by gradually adjusting the spatial positions of the spinal joint points in the spinal bone segments above each spinal joint point on the target spine, it is eventually possible to make the cervical vertebra joint points on the target spine closest to the cervical vertebra joint points on the source bone performing the second action. Naturally, the movements of the target spine and the source spine of the source bone performing the second action are closer, thereby reducing the movement differences between the target bone and the source bone when performing the same action.

[0124] Moreover, when adjusting the spatial position of each spinal joint on the target spine, the present application needs to determine the rotation axis around which the target bone segment connected to each spinal joint rotates, and control the rotation of the target spinal bone segment located above the spinal joint in the target spine according to the rotation axis, so that the target spinal bone segment above the spinal joint can rotate according to the actual rotation direction of the spinal joint, rather than rotating randomly, thereby avoiding random bending of the target spine, and naturally reducing deformation of the target spine.

[0125] It is understandable that in actual applications, the topological structures of the target bone and the source bone will be different, which may result in a significant difference in the bone height between the source bone and the target bone. If the height difference between the target bone and the source bone is large, then the difference in the spine height between the target bone and the source bone will inevitably be large. On this basis, after the joint rotation data required for the source bone to perform the target action is assigned to the target bone and the source bone, due to the difference in the spine height between the target bone and the source bone, it is difficult to ensure that the cervical vertebrae joint points of the source bone and the target bone coincide, and the cervical vertebrae joint points of the two bones can be made to coincide. In this case, there will be a situation where the spinal movement of the target bone is very different from that of the source bone, and it is difficult to ensure the consistency of the movement of the source bone and the target bone.

[0126] Based on this, if the first action is a set initial action, before using the target action data to drive the target bone in the first target bone state and the source bone in the first source bone state respectively, the present application can also scale the various bone segments of the source bone in the first source bone state in equal proportion based on the first target bone state of the target bone, so that the scaled source bone has the same height as the bone belonging to the torso part in the target bone. On this basis, after scaling the source bone, each subsequent use of action data to drive the source bone refers to driving the scaled source bone.

[0127] In order to understand the specific implementation of scaling the source bone, Figure 4 , an implementation is used as an example to illustrate.

[0128] like Figure 4 , which shows another flow chart of the action redirection method provided in an embodiment of the present application. The method of this embodiment may include:

[0129] S401, determining a first target bone state of a target bone when performing a first action, a first source bone state of a source bone when performing the first action, and target action data required for the source bone to perform a second action.

[0130] This step can refer to the previous introduction, but in this embodiment, the first action is taken as an example of the initial action of the source bone and the target bone.

[0131] S402, if the first action is the set initial action, based on the first target bone state of the target bone, each bone segment of the source bone in the first source bone state is scaled proportionally, so that the scaled source bone is the same height as the bone belonging to the torso part in the target bone.

[0132] For example, in a possible implementation method 1, the bones belonging to the torso in the scaled source bone and the target bone in the first target bone state may be the spine, that is, the height of the spine in the scaled source bone and the target bone is the same.

[0133] In practical applications, considering that the length of the bone segment between the thoracic vertebra joint point and the cervical vertebra joint point in the target bone and the source bone is quite different, and the trunk movement of an object is mainly reflected in the bone segment between the shoulder and sacrum joint points. Based on this, in another possible implementation method 2, the bones belonging to the trunk part of the skeleton are the spinal bones below the shoulder and above the sacrum joint point in the spine.

[0134] On this basis, the present application can scale the source bone in the first source bone state based on the height difference between the shoulder of the target bone in the first target bone state and the sacrum joint point of the target bone, and the height difference between the shoulder and the sacrum joint point of the source bone in the first source bone state, so that the scaled source bone has the same height as the spinal bone between the shoulder and the sacrum joint point in the target bone.

[0135] For example, the possible implementation method 2 can be implemented as follows:

[0136] First, determining a first height difference between a shoulder joint point and a target sacrum joint point in a target bone in a first target bone state;

[0137] Secondly, determining a second height difference between a shoulder joint point and a source sacrum joint point in the source skeleton in the first source skeleton state;

[0138] Again, the ratio of the first height difference to the second height difference is determined as a scaling factor;

[0139] Finally, based on the scaling factor, each bone segment in the source bone in the first source bone state is scaled proportionally.

[0140] In this application, for ease of distinction, the sacrum joint point in the target skeleton is referred to as the target sacrum joint point, and the sacrum joint point in the source skeleton is referred to as the source sacrum joint point.

[0141] Among them, the first height difference reflects the vertical height of the shoulder and sacrum joint of the target bone when the target bone is in the initial action state; similarly, the second height difference reflects the vertical height of the shoulder and sacrum joint of the source bone when the source bone is in the initial action state.

[0142] In a possible implementation, after the scaling factor is determined, the length of each bone segment in the source bone may be multiplied by the scaling factor, thereby scaling each bone segment in the source bone, and ultimately achieving overall scaling of the source bone.

[0143] like Figure 5 , shows a comparison example diagram of the source skeleton and the target skeleton in the initial action.

[0144] exist Figure 5In the initial action state, the sacrum joint point 501 of the source bone and the target bone overlap, wherein the target bone has a shoulder joint point 502, each dot in the target bone represents a joint point, and the approximate horizontal line where the shoulder joint point 502 is located is the shoulder of the target bone. Similarly, the source bone has a shoulder joint point 503, and the approximate horizontal line where the shoulder joint point 503 is located is the shoulder of the source bone. Both sides of the target bone and the source bone have a shoulder joint point, Figure 5 Only one shoulder joint point on one side of each skeleton is shown. In the initial action state, the heights of the two shoulder joint points in the skeleton are the same, so the present application can be described by taking any one shoulder joint point in each skeleton as an example.

[0145] Depend on Figure 5 It can be seen that the shoulders of the source bone and the target bone are horizontally extended, but the heights of the shoulder joint point 502 of the target bone and the shoulder joint point 503 of the source bone are different, which makes the shoulder heights of the target bone and the source bone different, resulting in obvious differences in the spinal movements of the target bone and the source bone. Moreover, the overall bone heights of the source bone and the target bone are also different.

[0146] exist Figure 5 Based on this, the present application can determine the first height difference from the shoulder joint point 502 of the target bone to its sacrum joint point 501, and the second height difference from the shoulder joint point 503 of the source bone to the sacrum joint point 501. On this basis, the ratio of the first height difference to the second height difference is used as a scaling factor, and each bone segment of the source bone is scaled, so that the height from the shoulder of the scaled source bone to the sacrum joint point can be kept consistent with the height from the shoulder of the target bone to the sacrum joint point. For example, a comparison example of the scaled source bone and the target bone can be seen in Figure 6 .

[0147] Depend on Figure 6 It can be seen that the sacrum joint points of the scaled source bone and the target bone still remain coincident, and the shoulder heights of the scaled source bone and the target bone are the same, so that the bones of the scaled source bone and the target bone belonging to the torso part in the spine are the same height.

[0148] It can be understood that when the height of the bones belonging to the torso part of the scaled source bone and the target bone is the same, after mapping the target action data of the second action to the scaled source bone and the target bone, it can more intuitively reflect the position difference of the cervical vertebrae joints of the source bone and the target bone, thereby being able to more reasonably adjust the positions of each spinal joint on the target spine of the target bone, thereby increasing the possibility of the positions of the cervical vertebrae joints of the target bone and the source bone being able to overlap.

[0149] It can be understood that if the height of the bones belonging to the torso part of the source bone and the target bone is the same in the initial action, such as the height of the spine is the same or the first height difference and the second height difference mentioned above are the same, then step S403 can be executed without performing scaling processing on the source bone.

[0150] S403, if the height of the source cervical vertebra joint point in the scaled source skeleton is different from the height of the target cervical vertebra joint point in the target skeleton in the first target skeleton state, construct a virtual cervical vertebra joint point for the scaled source skeleton, and use the virtual cervical vertebra joint point as the source cervical vertebra joint point of the scaled source skeleton.

[0151] It can be understood that the spine refers to the bone part between the cervical vertebrae joint point and the sacrum joint point in the skeleton. If the source cervical vertebrae joint point of the scaled source bone is different from the target cervical vertebrae joint point of the target bone in the initial action, it is difficult to keep the positions of the cervical vertebrae joint points of the source bone and the target bone consistent.

[0152] Based on this, in order to further improve the movement consistency between the source bone and the target bone when performing the second action, the present application will construct a virtual cervical vertebra joint point according to the height of the target cervical vertebra joint point in the target bone under the initial action and the scaled source bone, and use the virtual cervical vertebra joint point as the source cervical vertebra joint point of the source bone. Therefore, the source cervical vertebra joint points of the source bone involved subsequently all refer to the virtual cervical vertebra joint point.

[0153] In order to avoid unnatural deformation of the spine of the source skeleton, the virtual cervical vertebra joint point is located on the line between the real source cervical vertebra joint point and the spine joint point directly connected to the source cervical vertebra joint point. Moreover, when the target skeleton and the scaled source skeleton are in the initial action, the virtual cervical vertebra joint point is at the same height as the target cervical vertebra joint point of the target skeleton.

[0154] The spinal joint point connected to the virtual cervical joint point is a spinal joint point located below the source cervical joint point in the scaled source skeleton and closest to the cervical joint point. For example, in general, the spinal joint point located below the cervical joint point in the spine can be a thoracic joint point, and then the virtual cervical joint point can be located on the line between the source cervical joint point and the thoracic joint point in the source skeleton.

[0155] It should be noted that step S403 is an optional step, if the height of the source cervical vertebra joint point and the target cervical vertebra joint point in the scaled source skeleton are the same. For example, if the topological structures related to the cervical vertebra joint points of the source skeleton and the target skeleton are similar, then after scaling the source skeleton, the source cervical vertebra joint point of the source skeleton can be kept consistent with the height of the target cervical vertebra joint point of the target skeleton; or, after scaling the source skeleton using the first implementation method in the previous step S402, the source cervical vertebra joint point and the target cervical vertebra joint point have the same height, then there is no need to construct virtual cervical vertebra joint points.

[0156] S404, using the target action data to respectively drive the target bone in the first target bone state and the source bone in the scaled first source bone state, to obtain the second target bone state when the target bone performs the second action and the second source bone state when the source bone performs the second action.

[0157] S405, for the target bone in the second target bone state, determine the target spinal joint points to be adjusted currently from the spinal joint points that have not been adjusted in the target spine according to the order of the spinal joint points on the target spine of the target bone from bottom to top.

[0158] S406, determining a target rotation axis around which the target bone segments connected to the target spinal joint points rotate when the target bone is adjusted from the first target bone state to the second target bone state.

[0159] Among them, the target bone segment is a bone segment in the target spine from the target spinal joint point to the next joint point; the next joint point is a spinal joint point in the target spine that is connected to the target spinal joint point and located above the target spinal joint point or a target cervical joint point.

[0160] S407, for the target skeleton in the second target skeleton state, rotate the target spine skeleton segments driven by the target spine joints in the target spine according to the target rotation axis to determine the optimal rotation method.

[0161] The target spinal bone segment includes the target spinal joint point and the spinal bones in the target spine located above the target spinal joint point.

[0162] After rotating the target spinal bone segment in the optimal rotation manner, the distance between the target cervical vertebra joint point and the source cervical vertebra joint point in the source skeleton in the second source skeleton state is minimized.

[0163] S408, rotate the target spinal bone segment according to the optimal rotation method to adjust the second target bone state of the target bone, use the adjusted second target bone state as the second target bone state of the target bone, and return to step S405 to determine the next target spinal joint point to be adjusted until there are no unadjusted spinal joint points in the target spine.

[0164] For the above steps S404 to S408, please refer to the relevant introduction of other embodiments of the present application and will not be repeated here.

[0165] It can be understood that when the source bone and the target bone are in the initial action, after the source bone is scaled, the source bone and the target bone can be driven in sequence according to the action data of each action to be redirected in the action sequence without scaling the source bone again.

[0166] For example, the action sequence includes action A, action B and action C in sequence. Then, under the initial action, the next action to be migrated is action A. Based on the action data of action A, it is necessary to drive the scaled source bone under the initial action and the target bone under the initial action to obtain the bone state of the target bone when executing action A and the bone state of the scaled source bone when executing action A.

[0167] On this basis, the solution of the present application is used to adjust the skeletal state of the target bone when performing action A, and obtain the adjusted skeletal state of the target bone when performing action A. Then, when the target bone is in the adjusted skeletal state when performing action A, the action data of action B can be used to drive the target bone; at the same time, when the scaled source bone is in the skeletal state when performing action A, the action data of action B can be used to drive the scaled source bone, and so on. No further details will be given.

[0168] In any of the above embodiments of the present application, there are multiple possibilities for the specific implementation of determining the target rotation axis around which the target bone segment connected to the target spinal joint point rotates. There are also multiple possibilities for the specific implementation of determining the optimal rotation mode. A specific implementation of determining the target rotation axis and the optimal rotation mode is introduced below.

[0169] like Figure 7 , which shows another flow chart of the action redirection method provided in an embodiment of the present application. The method of this embodiment may include:

[0170] S701, determining a first target bone state of the target bone when performing a first action, a first source bone state of the source bone when performing the first action, and target action data required for the source bone to perform a second action.

[0171] S702, using the target action data to respectively drive the target bone in the first target bone state and the source bone in the first source bone state, to obtain the second target bone state when the target bone performs the second action and the second source bone state when the source bone performs the second action.

[0172] It is understandable that if the first action is the set initial action, the present application will also perform scaling processing on the source bone in the first source bone state before executing step S702. For details, please refer to the previous introduction and will not be repeated here.

[0173] S703, for the target bone in the second target bone state, determine the target spinal joint points to be adjusted currently from the spinal joint points that have not been adjusted in the target spine according to the order of the spinal joint points on the target spine of the target bone from bottom to top.

[0174] For the above steps S701 to S703, reference may be made to the related introduction of the previous embodiment, which will not be repeated here.

[0175] S704, when the target skeleton is in the first target skeleton state, determine a first vector pointing from the target spine joint point to the next joint point in the local coordinate system of the target spine joint point.

[0176] For each target spinal joint point, the next joint point is a spinal joint point in the target spine that is connected to the target spinal joint point and located above the target spinal joint point or a target cervical joint point.

[0177] It can be understood that the bone segment from the target spinal joint point to its first joint point is essentially the target bone segment connected to the target spinal joint point mentioned above. Therefore, the first vector can be regarded as the direction vector representation of the target femoral segment from the target spinal joint point to the first joint point.

[0178] In this application, for the sake of ease of distinction, the vector pointing from the target spinal joint point to the next joint point when the target bone is in the first target bone state is called the first vector, and the vector pointing from the target spinal joint point to the next joint point when the target bone is in the second target bone state is called the second vector.

[0179] It is understandable that when the designer constructs the target skeleton, a local coordinate system will be constructed for the joints on the target skeleton. Therefore, each target spinal joint has its own corresponding local coordinate system. This application does not limit the specific form of the local coordinate system of the target spinal joint.

[0180] S705, when the target skeleton is in the second target skeleton state, determine a second vector pointing from the target spine joint point to the next joint point in the local coordinate system of the target spine joint point.

[0181] The first vector and the second vector are both directional vectors in nature.

[0182] S706: Determine a target rotation axis around which the first vector rotates to the second vector.

[0183] The target rotation axis is perpendicular to the first vector and the second vector.

[0184] To understand the process of determining the target rotation axis, see Figure 8 . Figure 8 Can be seen as Figure 3 Based on the source spine of the source bone and the target spine of the target bone shown on the left side of the arrow, after assigning the action data to the source spine of the source bone and the target spine of the target bone, an example diagram of the posture of the source spine and the target spine is obtained.

[0185] exist Figure 8 FIG. 1 shows the source spine scr of the source skeleton in the second source skeleton state when performing the second action. t The target spine tar of the target bone in the second target bone state t At the same time, the target spine tar of the target bone in the first target bone state when performing the first action is also shown. t-1 posture (shown by the dotted line in the figure).

[0186] Depend on Figure 8 It can be seen that during the execution of any action, the sacral joints 801 of the source and target bones overlap. Since the spinal joints 802 are directly connected to the sacral joints and the sacral joints are fixed, the possibility of positional changes of the spinal joints 802 on the target spine when performing different actions is small. Based on this, when performing the first action and the second action, the position of the spinal joints 802 on the target spine is basically the same. Figure 8 , the target spine tar for the first action t-1 The target spine tar with the second action t The middle spine joint point 802 overlaps. However, when performing different actions, the spatial positions of other spine joint points above the spine joint point 802 on the target spine vary greatly.

[0187] exist Figure 8 Based on the target spine tar in the second target bone state t , this application will follow the target spine tar t The spinal joints are sequentially determined as target spinal joints to be adjusted in order from bottom to top. On this basis, the first target spinal joint to be adjusted is spinal joint 802.

[0188] On this basis, for the target spine tar of the first target bone state t-1 , the present application can determine the local coordinate system of the spinal joint point 802 pointing to the target spinal tar t-1 A first vector of a spinal joint point (as shown by a point above the spinal joint point 802 in the dotted line) located above the spinal joint point 802 and directly connected to the spinal joint point 802.

[0189] For the second target bone state the target spine tar t , the present application can determine a second vector pointing from the spinal joint point 802 to the spinal joint point 803 in the local coordinate system of the spinal joint point 802.

[0190] On this basis, the target rotation axis from the first vector to the second vector can be determined, such as Figure 8 Middle rotation axis n 1 shown.

[0191] It is understandable that in Figure 8 In the embodiment, after the subsequent steps S707 to S710 are performed based on the target rotation axis corresponding to the spine joint point 802, the target spine tar t In the order of the upper spinal joints from bottom to top, the present application will use the spinal joint point 803 that has not been adjusted as the target spinal joint point.

[0192] It can be understood that in this embodiment, an implementation method of determining a target rotation axis corresponding to a target spinal joint point is used as an example for explanation, and the other implementation methods mentioned above are also applicable to this embodiment, which will not be described in detail.

[0193] S707, for the target skeleton in the second target skeleton state, control the target spine skeleton segments driven by the target spine joint points to rotate clockwise and counterclockwise around the target rotation axis by a set angle value, respectively.

[0194] The target spinal bone segment includes the target spinal joint point and the spinal bones in the target spine located above the target spinal joint point.

[0195] In the present application, the set angle value is the maximum angle value that the target spinal bone segment can rotate around the target rotation axis. The set angle value can limit the maximum angle of rotation of the target spinal bone segment around the target rotation axis, avoiding the target spinal bone from rotating significantly around the target rotation axis, which causes the spatial position of the target spinal bone subsequently determined based on the optimal rotation angle to be too different from the original spatial position, thereby causing the risk of unnatural deformation of the target spine.

[0196] The set angle value can be set as needed, for example, the set angle value can be 30 degrees.

[0197] The present application controls the target spinal bone segment to rotate around the target rotation axis in both clockwise and counterclockwise directions, and the rotation angle values ​​in these two directions cannot exceed the set angle value, which is conducive to more reasonably determining the spatial position suitable for adjusting the target spinal bone segment while ensuring that the cervical vertebrae joint points of the target spine and the source spine are closer.

[0198] S708, in the process of controlling the target spinal bone segment to rotate around the target rotation axis, respectively record the cervical point distances between the target cervical joint points and the source cervical joint points in the source skeleton in the second source skeleton state when the target spinal bone segment rotates to multiple different rotation angles in different rotation directions.

[0199] In this application, for the sake of easy distinction, the distance between the target cervical vertebra joint point of the target bone and the source cervical vertebra joint point of the source bone is referred to as the cervical vertebra point distance.

[0200] The rotation direction is used to indicate whether the rotation is clockwise or counterclockwise.

[0201] For example, the angle step value of the rotation can be set, and each time the rotation reaches an angle step value, the distance between the current target spine joint point and the source spine joint point in the source bone that also performs the second action is recorded. For example, the angle step value can be set to 0.5 degrees, 1 degree, or 2 degrees, etc., without limitation.

[0202] For example, taking the angle step value of 1 degree as an example, in the process of controlling the target spinal bone segment to rotate clockwise around the target rotation axis, each time it rotates 1 degree around the target rotation axis, the current clockwise rotation angle is recorded once, as well as the distance between the current target spinal joint point and the source cervical vertebra joint point in the source bone in the second source bone state, until it rotates clockwise around the target rotation axis to the set angle value. The process of controlling the target spinal bone segment to rotate counterclockwise around the target rotation axis is similar and will not be repeated here.

[0203] S709: Determine an optimal rotation method based on a target rotation angle in a target rotation direction corresponding to the minimum cervical vertebrae point distance.

[0204] It can be understood that the minimum cervical point distance is determined based on the recorded cervical point distances at different rotation angles in each rotation direction. When the cervical point distance is the minimum, the spatial position of the target spinal bone segment driven by the target spinal joint point is the spatial position that is most suitable for the adjustment under the premise of ensuring that the distance between the source cervical joint point and the target cervical joint point is the shortest.

[0205] Correspondingly, the target rotation angle in the target rotation direction corresponding to the minimum cervical vertebrae point distance is the rotation mode around the target rotation axis required to adjust the target spinal column bone segment to the most suitable spatial position.

[0206] Based on this, the optimal rotation method in this application is used to indicate that the target rotation angle is rotated using the target rotation direction.

[0207] S710, control the target spinal bone segment to rotate the target rotation angle around the target rotation axis along the target rotation direction to adjust the second target bone state of the target bone, use the adjusted second target bone state as the second target bone state of the target bone, return to execute S703 to determine the next target spinal joint point to be adjusted, until there are no unadjusted spinal joint points in the target spine.

[0208] It can be understood that after determining the optimal rotation method, for the target bone in the second skeletal state, the target spinal bone segment is controlled to rotate accordingly around the target rotation axis according to the optimal rotation method, thereby adjusting the rotation angle of the target spinal joint point and the spatial positions of each spinal joint point above the target spinal joint point and the target cervical vertebra joint point, so that the target cervical vertebra joint point can be closest to the source cervical vertebra joint point in the source bone in the second source bone state.

[0209] Still combined Figure 8 As an example, after determining the target rotation axis n 1 After the optimal rotation method is obtained, the target spinal tar can be controlled according to the target rotation direction and target rotation angle indicated by the optimal rotation method. t The spinal joint point 802 and the spinal bone segments above the spinal joint point 802 rotate around the target axis n 1 Rotation can eventually change the rotation value on the spinal joint point 802, and drive the spatial position of the spinal bone segment above the spinal joint point 802 to change. t After the spinal joint point 802 and the spinal bone segments above the spinal joint point 802 are rotated, the rotated target spinal column tar' is obtained. t , you can Fig. 9 shown.

[0210] contrast Figure 8 Target spine in tar t , Fig. 9 The target spine after rotation is shown in tar' t and the source spine scr of the source bone in the second source bone state t , it can be clearly seen that: the adjusted target spine tar' t The spatial position of the spinal joint point 803 is Figure 8 Target spine tar before adjustment t The spatial position of the spinal joint point 803 in the target spinal column is obviously different. t , adjusted target spine tar' t Mid-cervical joint point (target spine tar' t The topmost point in the source spine scr t The source cervical vertebrae joint point in the t The top point in the graph is closer.

[0211] Based on the above, this application will target the spine tar' t As the spinal state of the target spine in the target skeleton under the latest second target skeleton state. Fig. 9 For the adjusted target spine tar' t , the present application can determine the next target spinal joint point, that is, spinal joint point 803 is used as the target spinal joint point. t-1 , based on the target spine tar t-1 The position of the same spinal joint point matched by the spinal joint point 803 in the target spinal tar is determined. t-1 The first vector of the topmost target cervical vertebra joint point in the target vertebra is determined accordingly. t The second vector of the middle spine joint point 803 pointing to the target cervical joint point. Finally, the target rotation axis n can be determined for the spine joint point 803. 2 .

[0212] contrast Figure 8 and Fig. 9 It can be seen that for the spinal joint point 803, before and after the target spine is adjusted, the target rotation axis n determined based on the spinal joint point 803 is 2 Not different.

[0213] On the basis of the above, the target spine tar' can also be determined through the solution of this application. tThe optimal rotation mode of the spinal bone segment above the spinal joint point 803 is determined, and the spinal bone segment above the spinal joint point 803 and the spinal bone segment above the spinal joint point 803 are controlled to rotate, and finally the target spinal tar' t The topmost target cervical joint point in the source spine scr t The topmost source cervical vertebrae joint points coincide, e.g. Fig.10 shown.

[0214] exist Fig.10 The target spine tar in the target skeleton obtained after the final adjustment of this scheme is shown in the figure. t By Fig.10 It can be clearly seen that according to the scheme of the present application, the optimal rotation mode of the spinal bone segments above each spinal joint point on the target spine is determined in sequence, and the corresponding spinal bone segments are rotated according to the optimal rotation mode, and finally the target spine tar" t The cervical joint points (target spine tar" t The topmost joint point in the source bone) and the source spine scr t Mid-cervical vertebrae joint point (source bone scr t The position of the top joint point in the image is almost the same, which also makes the adjusted target spine tar" t With the source spine scr t The posture is more consistent.

[0215] It is understandable that in the above embodiments of the present application, multiple optimal rotation modes may be obtained at the same time. Figure 7 In the embodiment, there may be a plurality of cervical vertebrae point distances that are all minimum values. Accordingly, the plurality of minimum cervical vertebrae point distances may correspond to a plurality of different optimal rotation modes.

[0216] If there are multiple optimal rotation modes, the present application may determine a target optimal rotation mode from the multiple optimal rotation modes.

[0217] Wherein, after rotating the target spinal bone according to the target optimal rotation mode, the distance between the position to which the next joint point of the target spinal joint point is rotated and the position before rotation of the next joint point is the smallest. Wherein, the position before rotation of the next joint point is the position of the next joint point when the target bone is in the second target bone state.

[0218] It can be seen that when there are multiple optimal rotation methods, the present application will preferably select the optimal rotation method that minimizes the position change of the next joint point of the target spinal joint point, so as to minimize the position change of the next joint point.

[0219] Accordingly, the present application can control the target spinal bone segment to rotate around the target rotation axis according to the target optimal rotation mode.

[0220] Corresponding to an action redirection method of the present application, the present application also provides an action redirection device.

[0221] like Fig.11 , shows a schematic diagram of a composition structure of an action redirection device provided in an embodiment of the present application. The device of this embodiment may include:

[0222] The data determination unit 1101 is used to determine a first target bone state when the target bone performs a first action, a first source bone state when the source bone performs the first action, and target action data required for the source bone to perform a second action, where the second action is the next action that the source bone needs to perform after the first action;

[0223] A skeleton driving unit 1102 is used to respectively drive the target skeleton in the first target skeleton state and the source skeleton in the first source skeleton state by using the target action data to obtain a second target skeleton state when the target skeleton performs the second action and a second source skeleton state when the source skeleton performs the second action;

[0224] A joint point determination unit 1103 is used to determine, for a target bone in a second target bone state, a target spinal joint point to be adjusted from the spinal joint points that have not been adjusted in the target spine according to the sequence of the spinal joint points on the target spine of the target bone from bottom to top;

[0225] A rotation axis determination unit 1104 is used to determine a target rotation axis around which a target bone segment connected to a target spinal joint point rotates when the target bone is adjusted from a first target bone state to a second target bone state, wherein the target bone segment is a bone segment from a target spinal joint point to a next joint point in the target spine; the next joint point is a spinal joint point or a target cervical vertebrae joint point in the target spine that is connected to the target spinal joint point and located above the target spinal joint point;

[0226] A mode determination unit 1105 is used to rotate the target spinal bone segment driven by the target spinal joint point in the target spine according to the target rotation axis for the target bone in the second target bone state, and determine the optimal rotation mode, wherein after rotating the target spinal bone segment according to the optimal rotation mode, the distance between the target cervical vertebra joint point and the source cervical vertebra joint point in the source bone in the second source bone state is minimized, and the target spinal bone segment includes the target spinal joint point and the spinal bone in the target spine located above the target spinal joint point;

[0227] The action adjustment unit 1106 is used to control the target spinal bone segment to rotate around the target rotation axis according to the optimal rotation method to adjust the second target bone state of the target bone, use the adjusted second target bone state as the second target bone state of the target bone, and return to execute the operation of determining the target spinal joint point to be adjusted until there are no unadjusted spinal joint points in the target spine.

[0228] In a possible implementation, the method further includes: a target mode determination unit, which is used to determine a target optimal rotation mode from the multiple optimal rotation modes after the mode determination unit determines the optimal rotation mode, if there are multiple optimal rotation modes, wherein after the target spinal bone is rotated according to the target optimal rotation mode, the distance between the position to which the next joint point is rotated and the pre-rotation position of the next joint point is the smallest, and the pre-rotation position of the next joint point is the position of the next joint point when the target bone is in the second target bone state;

[0229] When the action adjustment unit controls the target spinal bone segment to rotate around the target rotation axis according to the optimal rotation mode, specifically: controls the target spinal bone segment to rotate around the target rotation axis according to the target optimal rotation mode.

[0230] In yet another possible implementation, the rotation axis determination unit includes:

[0231] A first vector determination subunit is used to determine a first vector pointing from the target spinal joint point to a next joint point in the local coordinate system of the target spinal joint point when the target bone is in a first target bone state;

[0232] The second vector determination subunit is used to determine, when the target bone is in the second target bone state, a second vector pointing from the target spinal joint point to the next joint point in the local coordinate system of the target spinal joint point;

[0233] The rotation axis determination subunit is used to determine a target rotation axis around which the first vector rotates to the second vector.

[0234] In yet another possible implementation manner, the mode determination unit includes:

[0235] A rotation control subunit, used for controlling the target spinal bone segment driven by the target spinal joint point to rotate clockwise and counterclockwise around the target rotation axis to a set angle value respectively;

[0236] An information recording unit, used for recording, during the process of controlling the target spinal bone segment to rotate around the target rotation axis, the cervical vertebra point distance between the target cervical vertebra joint point and the source cervical vertebra joint point in the source bone in the second source bone state when the target spinal bone segment rotates to a plurality of different rotation angles in different rotation directions, wherein the rotation direction is used to indicate whether the rotation is clockwise or counterclockwise;

[0237] The mode determination subunit is used to determine the optimal rotation mode based on the target rotation angle under the target rotation direction corresponding to the minimum cervical vertebrae point distance, and the optimal rotation mode is used to indicate that the target rotation angle is rotated in the target rotation direction.

[0238] In another possible implementation, it also includes: a bone scaling unit, which is used to proportionally scale each bone segment of the source bone in the first source bone state based on the first target bone state of the target bone before the bone driving unit uses the target action data to respectively drive the target bone in the first target bone state and the source bone in the first source bone state, if the first action is a set initial action, so that the scaled source bone has the same height as the bone belonging to the torso part of the target bone.

[0239] In yet another possible implementation, the bone scaling unit includes:

[0240] A first difference determination subunit, for determining a first height difference between a shoulder joint point and a target sacrum joint point in a target bone in a first target bone state;

[0241] A second difference determination subunit, used to determine a second height difference between a shoulder joint point and a source sacrum joint point in the source skeleton in the first source skeleton state;

[0242] a factor determination subunit, configured to determine a ratio of the first height difference to the second height difference as a scaling factor;

[0243] The bone scaling subunit is used to scale each bone segment of the source bone in the first source bone state in equal proportion based on the scaling factor.

[0244] In another possible implementation, the method further includes: a virtual node construction unit, which is used to, after the bone scaling unit or the bone scaling subunit scales each bone segment of the source bone in the first source bone state in equal proportion, if the source cervical vertebra joint point in the scaled source bone is different in height from the target cervical vertebra joint point in the target bone in the first target bone state, construct a virtual cervical vertebra joint point for the scaled source bone, and use the virtual cervical vertebra joint point as the source cervical vertebra joint point of the scaled source bone;

[0245] The virtual cervical vertebra joint point is located on a line between the source cervical vertebra joint point and a spinal column joint point connected to the source cervical vertebra joint point, and has the same height as the target cervical vertebra joint point.

[0246] In another aspect, the present application also provides a computer device, such as Fig.12 , which shows a schematic diagram of a composition structure of the computer device, and the computer device at least includes a processor 1201 and a memory 1202;

[0247] Wherein, the memory 1202 is used to store programs;

[0248] The processor 1201 is used to execute a program stored in the memory. When the program is executed, it is specifically used to implement any of the action redirection methods described above.

[0249] It is understandable that the computer device may further include a display unit 1203 and an input unit 1204 .

[0250] Of course, the computer device may also have Fig.12 There may be more or fewer components, without limitation.

[0251] On the other hand, the present application also provides a computer-readable storage medium, which stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set are loaded and executed by a processor to implement the action redirection method described in any one of the above embodiments.

[0252] The present application also proposes a computer program, which includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. When the computer program is run on an electronic device, it is used to execute the action redirection method of any of the above embodiments.

[0253] It is understood that in the present application, the terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims and the above-mentioned drawings are used to distinguish similar parts, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated herein.

[0254] It should be noted that each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the embodiments can be referred to each other. At the same time, the features recorded in each embodiment in this specification can be replaced or combined with each other, so that professionals in the field can implement or use this application. For device embodiments, since they are basically similar to method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0255] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0256] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

[0257] The above are only preferred implementations of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. An action redirection method, characterized in that: include: Determine a first target bone state of the target bone when performing a first action, a first source bone state of the source bone when performing the first action, and target action data required for the source bone to perform a second action, where the second action is the next action that the source bone needs to perform after the first action; Using the target action data, respectively drive the target bone in the first target bone state and the source bone in the first source bone state to obtain a second target bone state when the target bone performs the second action and a second source bone state when the source bone performs the second action; For the target bone in the second target bone state, according to the order of the spinal joints on the target spine of the target bone from bottom to top, determine the target spinal joints to be adjusted from the spinal joints that have not been adjusted in the target spine; Determine the target rotation axis around which the target bone segment connected to the target spinal joint point rotates when the target bone is adjusted from the first target bone state to the second target bone state, wherein the target bone segment is a bone segment from the target spinal joint point to the next joint point in the target spine; the next joint point is a spinal joint point or a target cervical vertebrae joint point in the target spine that is connected to the target spinal joint point and located above the target spinal joint point; For the target bone in the second target bone state, the target spinal bone segment driven by the target spinal joint point in the target spine is rotated according to the target rotation axis to determine the optimal rotation method, wherein after rotating the target spinal bone segment according to the optimal rotation method, the distance between the target cervical vertebra joint point and the source cervical vertebra joint point in the source bone in the second source bone state is the smallest, and the target spinal bone segment includes the target spinal joint point and the spinal bone in the target spine located above the target spinal joint point; The target spinal bone segment is controlled to rotate around the target rotation axis according to the optimal rotation method to adjust the second target bone state of the target bone, and the adjusted second target bone state is used as the second target bone state of the target bone, and the operation of determining the target spinal joint point to be adjusted is returned to execute until there are no unadjusted spinal joint points in the target spine.

2. The action redirection method according to claim 1, characterized in that: After determining the optimal rotation method, it also includes: If there are multiple optimal rotation modes, determine a target optimal rotation mode from the multiple optimal rotation modes, wherein after rotating the target spinal bone according to the target optimal rotation mode, the distance between the position to which the next joint point is rotated and the position of the next joint point before rotation is the smallest, and the position of the next joint point before rotation is the position of the next joint point when the target bone is in the second target bone state; The step of controlling the target spinal bone segment to rotate around the target rotation axis in accordance with the optimal rotation mode comprises: The target spinal column bone segment is controlled to rotate around the target rotation axis according to the target optimal rotation mode.

3. The action redirection method according to claim 1, characterized in that: The target rotation axis around which the target bone segments connected to the target spinal joint points rotate when the target bone is adjusted from the first target bone state to the second target bone state includes: When the target bone is in a first target bone state, determining a first vector pointing from the target spinal joint point to a next joint point in the local coordinate system of the target spinal joint point; When the target bone is in a second target bone state, determining a second vector pointing from the target spine joint point to the next joint point in the local coordinate system of the target spine joint point; A target rotation axis about which the first vector is rotated to the second vector is determined.

4. The action redirection method according to claim 1, characterized in that: The step of rotating the target spinal bone segment driven by the target spinal joint point in the target spinal column according to the target rotation axis to determine the optimal rotation mode includes: Controlling the target spinal bone segment moved by the target spinal joint point to rotate clockwise around the target rotation axis by a set angle value and counterclockwise around the target rotation axis by a set angle value; In the process of controlling the target spinal bone segment to rotate around the target rotation axis, respectively recording the cervical vertebra point distance between the target cervical vertebra joint point and the source cervical vertebra joint point in the source skeleton in the second source skeleton state when the target spinal bone segment rotates to a plurality of different rotation angles in different rotation directions, wherein the rotation direction is used to indicate whether the rotation is clockwise or counterclockwise; Based on the target rotation angle under the target rotation direction corresponding to the minimum cervical vertebrae point distance, an optimal rotation mode is determined, and the optimal rotation mode is used to indicate that the target rotation angle is rotated in the target rotation direction.

5. The action redirection method according to claim 1, characterized in that: Before using the target action data to drive the target skeleton in the first target skeleton state and the source skeleton in the first source skeleton state respectively, the method further includes: If the first action is the set initial action, based on the first target bone state of the target bone, each bone segment of the source bone in the first source bone state is scaled proportionally so that the scaled source bone has the same height as the bone belonging to the torso part of the target bone.

6. The action redirection method according to claim 5, characterized in that: The step of scaling each bone segment of the source bone in the first source bone state based on the first target bone state of the target bone comprises: determining a first height difference between a shoulder joint point and a target sacrum joint point in a target skeleton in a first target skeleton state; determining a second height difference between a shoulder joint point and a source sacrum joint point in the source skeleton in the first source skeleton state; determining a ratio of the first height difference to the second height difference as a scaling factor; Based on the scaling factor, each bone segment of the source bone in the first source bone state is scaled proportionally.

7. The action redirection method according to claim 5 or 6, characterized in that: After scaling each bone segment of the source bone in the first source bone state, the following steps are also included: If the source cervical vertebra joint point in the scaled source skeleton is different in height from the target cervical vertebra joint point in the target skeleton in the first target skeleton state, construct a virtual cervical vertebra joint point for the scaled source skeleton, and use the virtual cervical vertebra joint point as the source cervical vertebra joint point of the scaled source skeleton; The virtual cervical vertebra joint point is located on a line between the source cervical vertebra joint point and a spinal column joint point connected to the source cervical vertebra joint point, and has the same height as the target cervical vertebra joint point.

8. An action redirection device, characterized in that: include: a data determination unit, used to determine a first target bone state when the target bone performs a first action, a first source bone state when the source bone performs the first action, and target action data required for the source bone to perform a second action, where the second action is a next action to be performed by the source bone after the first action; A skeleton driving unit, used for driving the target skeleton in the first target skeleton state and the source skeleton in the first source skeleton state respectively by using the target action data, to obtain a second target skeleton state when the target skeleton performs the second action and a second source skeleton state when the source skeleton performs the second action; A joint point determination unit is used to determine, for a target bone in a second target bone state, a target spinal joint point to be adjusted from the spinal joint points that have not been adjusted in the target spine according to the order of the spinal joint points on the target spine of the target bone from bottom to top; A rotation axis determination unit, used to determine a target rotation axis around which a target bone segment connected to a target spinal joint point rotates when the target bone is adjusted from a first target bone state to a second target bone state, wherein the target bone segment is a bone segment from a target spinal joint point to a next joint point in the target spine; the next joint point is a spinal joint point or a target cervical vertebrae joint point in the target spine that is connected to the target spinal joint point and located above the target spinal joint point; A mode determination unit is used for rotating the target spinal bone segment driven by the target spinal joint point in the target spine according to the target rotation axis for the target bone in the second target bone state, and determining the optimal rotation mode, wherein after rotating the target spinal bone segment according to the optimal rotation mode, the distance between the target cervical vertebra joint point and the source cervical vertebra joint point in the source bone in the second source bone state is minimized, and the target spinal bone segment includes the target spinal joint point and the spinal bone in the target spine located above the target spinal joint point; An action adjustment unit is used to control the target spinal bone segment to rotate around the target rotation axis according to the optimal rotation method to adjust the second target bone state of the target bone, use the adjusted second target bone state as the second target bone state of the target bone, and return to execute the operation of determining the target spinal joint point to be adjusted currently until there are no unadjusted spinal joint points in the target spine.

9. A computer device, characterized in that: including memory and processor; Wherein, the memory is used to store programs; The processor is used to execute the program, and when the program is executed, it is specifically used to implement the action redirection method as described in any one of claims 1 to 7 above.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the action redirection method as described in any one of claims 1 to 7.

Citation Information

Cited By

  • Cloth simulation method and device, electronic equipment, storage medium and program product

    CN119783447A