Virtual hand control method and device, storage medium and electronic equipment
Through a virtual hand control method based on physical hand movement data, the virtual hand and wrist deformation is avoided, and the virtual reality interactive experience is improved.
Patent Information
- Application Number
- CN202410977277.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-19
- Publication Date
- 2024-11-08
AI Technical Summary
In virtual reality technology, distorted and deformed display effects are prone to occur at the wrist of the virtual hand, affecting the user's interactive experience.
By obtaining the motion data of the physical hand, the target motion control instructions of the virtual hand are determined based on the target angle range, and the virtual hand is controlled to achieve the target motion state that matches the physical hand motion state, so as to avoid the rotation angle of the virtual hand exceeding the physical hand's ability. Rotate the range to avoid wrist deformation.
It effectively avoids the wrist deformation of the virtual hand, improves the user's interactive experience, and makes the movement of the virtual hand in line with the movement status and visual effects of the physical hand.
Smart Images

Figure CN118915911A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a virtual hand control method, device, storage medium and electronic device. Background Art
[0002] Virtual reality (VR) technology combines virtuality and display, using specific technology to generate a virtual situation, but people feel it is real. It is a computer simulation system that can create and experience a virtual world. It uses computers to generate a simulated environment and immerse users in it. Virtual reality is often used in education, training, medical and other scenarios. During its application, it can track and collect human limb data to improve the realism of interaction. Among them, the hand is the most flexible organ of the human body. Introducing virtual hands into the interaction process can complete complex interactions.
[0003] However, during the virtual hand control process, the wrist of the virtual hand is easily distorted, which affects the user's interactive experience. Summary of the invention
[0004] In order to solve the above problems, this application provides the following technical solutions:
[0005] A virtual hand control method, the method comprising:
[0006] Obtaining first motion data of the entity's hand;
[0007] Determining a target motion control instruction for a virtual hand corresponding to the physical hand based on a target angle range and the first motion data, wherein the target angle range represents a rotatable range of the physical hand;
[0008] Based on the target motion control instruction, the virtual hand is controlled to reach a target motion state, wherein the target motion state matches the current motion state of the physical hand.
[0009] Optionally, the method further comprises:
[0010] Collecting second motion data of the entity's hand;
[0011] Based on the second motion data, determining a first target rotation angle and a second target rotation angle of the entity hand in a first direction and a second direction, respectively, wherein the first direction is a counterclockwise direction and the second direction is a clockwise direction;
[0012] A target angle range is determined according to the first target rotation angle and the second target rotation angle.
[0013] Optionally, the second motion data represents surface motion data of the physical hand, wherein determining the target angle range according to the first target rotation angle and the second target rotation angle includes:
[0014] Determining a weight coefficient of the surface node relative to each bone node according to a spatial distance between a surface node of the physical hand and each bone node;
[0015] Determining, according to the weight coefficient, the first target rotation angle, and the second target rotation angle, a third target rotation angle corresponding to the first target rotation angle and a fourth target rotation angle corresponding to the second target rotation angle;
[0016] A target angle range is determined based on the first target rotation angle, the second target rotation angle, the third target rotation angle, and the fourth target rotation angle.
[0017] Optionally, determining a target motion control instruction for a virtual hand corresponding to the physical hand based on the target angle range and the first motion data includes:
[0018] Obtaining a rotation angle of the entity hand in the first motion data;
[0019] If the rotation angle exceeds the target angle range, generating a first movement instruction, wherein the first movement instruction at least includes a rotation restriction instruction for the virtual hand;
[0020] If the rotation angle does not exceed the target angle range, a second motion instruction is generated.
[0021] Optionally, controlling the virtual hand to reach a target motion state based on the target motion control instruction includes:
[0022] Based on the first motion instruction, control the virtual hand to rotate in a second direction when it moves to an extreme value of the first direction, and control the virtual hand to synchronize with the motion state corresponding to the first motion data, wherein the first direction and the second direction are opposite directions to each other;
[0023] Based on the second motion instruction, the virtual hand is controlled to synchronize with the motion state corresponding to the first motion data.
[0024] Optionally, the method further comprises:
[0025] Based on the first motion data, obtaining a current first rotation angle of the entity hand;
[0026] Obtaining a time parameter corresponding to the current application scenario and a current second rotation angle of the virtual hand;
[0027] Based on the first rotation angle, the second rotation angle and the time parameter, it is determined whether the virtual hand moves to an extreme value of a current direction.
[0028] A virtual hand control device, comprising:
[0029] An acquisition unit, used for acquiring first motion data of a hand of an entity;
[0030] A first determining unit, configured to determine a target motion control instruction for a virtual hand corresponding to the physical hand based on a target angle range and the first motion data, wherein the target angle range represents a rotatable range of the physical hand;
[0031] A control unit is used to control the virtual hand to reach a target motion state based on the target motion control instruction, wherein the target motion state matches the current motion state of the physical hand.
[0032] Optionally, the device further comprises:
[0033] A collection unit, used for collecting second motion data of the entity's hand;
[0034] A second determining unit is used to determine, based on the second motion data, a first target rotation angle and a second target rotation angle of the physical hand in a first direction and a second direction, respectively, wherein the first direction is a counterclockwise direction and the second direction is a clockwise direction;
[0035] The third determining unit is configured to determine a target angle range according to the first target rotation angle and the second target rotation angle.
[0036] A storage medium stores a computer program, which, when executed by a processor, implements any of the virtual hand control methods described above.
[0037] An electronic device, comprising:
[0038] Memory, used to store programs;
[0039] A processor is used to execute the program, wherein the program is specifically used to implement the virtual hand control method as described in any one of the above.
[0040] Compared with the prior art, the present application provides a virtual hand control method, device, storage medium and electronic device, the method comprising: obtaining first motion data of a physical hand; determining a target motion control instruction for a virtual hand corresponding to the physical hand based on a target angle range and the first motion data, wherein the target angle range represents the rotatable range of the physical hand; and controlling the virtual hand to reach a target motion state based on the target motion control instruction, wherein the target motion state matches the current motion state of the physical hand. In the present application, the motion state of the virtual hand can be controlled based on the rotatable range of the physical hand and real-time motion data, so that the motion of the virtual hand not only conforms to the motion state of the physical hand but also conforms to the motion visual effect, avoiding the problem of wrist deformation of the virtual hand and improving the user's interactive experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only 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.
[0042] Figure 1 A flowchart of a virtual hand control method provided in an embodiment of the present application;
[0043] Figure 2 A schematic diagram of the effect of wrist deformation of a virtual hand provided in an embodiment of the present application;
[0044] Figure 3 A schematic diagram of a process of controlling a virtual hand based on an operating handle provided in an embodiment of the present application;
[0045] Figure 4 A schematic diagram of the structure of a virtual hand control device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0046] 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.
[0047] The terms "first" and "second" in this application are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but may include steps or units that are not listed.
[0048] In an embodiment of the present application, a virtual hand control method is provided, which can be applied in a virtual reality scene to control the movement of a virtual hand. The virtual hand can be a pre-generated virtual hand image, or a virtual image generated based on the user's physical hand. The movement of the virtual hand is driven by the motion data of the physical hand. However, due to the influence of the range of motion of the physical hand, there will be defects in the presentation of the virtual hand, such as deformation of the wrist of the virtual hand. Therefore, in order to avoid the above-mentioned problems of the virtual hand display effect, an embodiment of the present application provides a virtual hand control method, which can detect the movement state of the virtual hand in real time and process it before it produces inappropriate deformation, so as to provide a virtual hand display effect that can meet the user's interaction needs.
[0049] See also Figure 1 , is a flow chart of a virtual hand control method provided in an embodiment of the present application, the method may include the following steps:
[0050] S101, obtaining first motion data of a hand of an entity.
[0051] The physical hand may be a real hand of the user, or an operating body of the real hand of the user, such as a game controller or an operating handle held by the user. The first motion data of the physical hand may be motion data of the real hand of the user or an operating handle (such as a VR handle), and may specifically include displacement data, direction data, rotation angle data, etc. For example, a VR handle moves from a first position point to a second position point, and realizes actions such as rotation of the handle.
[0052] S102: Determine a target motion control instruction for a virtual hand corresponding to the physical hand based on the target angle range and the first motion data.
[0053] The target angle range represents the rotatable range of the physical hand. The target angle range can be the maximum rotation range of the user's real hand or the maximum rotation range of the operating handle held by the user. Correspondingly, the range in which the virtual hand does not deform when it moves can be determined based on the target angle range. In this way, the rotation of the virtual hand can be restricted before it deforms. When no deformation occurs during the movement, the movement of the virtual hand matches the physical hand. For example, a VR handle can rotate 360 degrees, and the virtual hand is usually bound to the VR handle in position and rotation. When rotating the handle, it is easier to encounter the following problems: Figure 2 Therefore, by monitoring the movement of the virtual hand, a rotation restriction control instruction will be generated before the virtual hand is deformed to avoid Figure 2 situation.
[0054] S103: Based on the target motion control instruction, control the virtual hand to reach the target motion state.
[0055] Among them, the target motion state matches the current motion state of the physical hand. Furthermore, the movement of the virtual hand follows the movement of the physical hand, while also satisfying the user's interactive experience, making the motion presentation of the virtual hand more realistic and avoiding the problem of deformation of the virtual hand.
[0056] The embodiment of the present application provides a virtual hand control method, the method comprising: obtaining first motion data of a physical hand; determining a target motion control instruction for a virtual hand corresponding to the physical hand based on a target angle range and the first motion data, wherein the target angle range represents a rotatable range of the physical hand; and controlling the virtual hand to reach a target motion state based on the target motion control instruction, wherein the target motion state matches the current motion state of the physical hand. In the present application, the motion state of the virtual hand can be controlled based on the rotatable range of the physical hand and the real-time motion data, so that the motion of the virtual hand not only conforms to the motion state of the physical hand but also conforms to the motion visual effect, thereby avoiding the problem of wrist deformation of the virtual hand and improving the user's interactive experience.
[0057] The virtual hand control method of the embodiment of the present application is described below in conjunction with actual application scenarios.
[0058] In order to match the current application scenario and enable the virtual hand to present a better display effect during movement, in an embodiment of the present application, the target angle range used to control the movement of the virtual hand can be determined based on the characteristics of the specific physical hand and the application process of the real user.
[0059] In one implementation of the embodiment of the present application, it also includes:
[0060] The second motion data of the entity hand is collected. Based on the second motion data, a first target rotation angle and a second target rotation angle of the entity hand in the first direction and the second direction are determined respectively; and a target angle range is determined according to the first target rotation angle and the second target rotation angle.
[0061] Among them, the first direction is counterclockwise, and the second direction is clockwise. The physical hand can be the real hand of the user, or it can be a handle operated by the user (such as a VR handle). The second motion data can be the real hand motion data of the user, and the rotation range of the physical hand is determined by collecting the real motion data of the user's hand. The target rotation angle can be the maximum angle when the corresponding hand moves. When the physical hand is an operating handle, it can also be based on the sensitivity of the operating handle, and the corresponding executable rotation angle is used as the target rotation angle. Usually based on the application requirements of the actual application scenario, in the embodiment of the present application, the target rotation angle is the maximum rotation angle. The first target rotation angle is the maximum rotation angle of the physical hand corresponding to the first direction (i.e., counterclockwise), and the second target rotation angle is the maximum rotation angle of the physical hand corresponding to the second direction (i.e., clockwise). Thus, the target angle range can be determined based on the first target rotation angle and the second target rotation angle.
[0062] For example, by capturing the movement of the user's physical hand (which can be the user's hand or the operating handle held by the user, etc.), the angle range within which the physical hand can rotate is obtained, with clockwise being the positive direction and counterclockwise being the negative direction, and the following is obtained:
[0063] A1≤a≤B1
[0064] Where a represents the rotation angle of the entity hand, A1 represents the maximum counterclockwise angle, B1 represents the maximum clockwise angle, -360°≤A1, B1≤360°.
[0065] In order to meet the accuracy of three-dimensional rendering, further, the second motion data represents the surface motion data of the entity hand, that is, the motion image of the real hand is collected by the image acquisition module, so as to obtain the surface motion data of the entity hand, which is the motion effect data displayed by the hand skin. Therefore, the skeleton and the skin can be connected through the skeleton binding processing mode to achieve the skeleton animation effect of the model. In one implementation of the embodiment of the present application, according to the first target rotation angle and the second target rotation angle, the target angle range is determined, including:
[0066] According to the spatial distance between the surface nodes of the physical hand and each bone node, the weight coefficient of the surface node relative to each bone node is determined; according to the weight coefficient, the first target rotation angle and the second target rotation angle, the third target rotation angle corresponding to the first target rotation angle and the fourth target rotation angle corresponding to the second target rotation angle are determined; based on the first target rotation angle, the second target rotation angle, the third target rotation angle and the fourth target rotation angle, the target angle range is determined.
[0067] The geometric data of the three-dimensional human body model can be obtained, including skin layer data and bone layer data. The bone layer is composed of a series of joints, each of which has information about its position, rotation and scale. The skin layer is the appearance of the model, usually composed of a series of triangular meshes. By assigning weight coefficients related to bone nodes (bone joints) to each surface node of the physical hand (surface nodes represent skin vertices), the deformation effect of the surface node during movement is achieved. The weight coefficient indicates the degree to which the surface node is affected by each bone node, which can be a number between 0 and 1. Then the weight coefficient can be determined based on the spatial distance between the surface node and the bone node. The third target rotation angle corresponding to the first target rotation angle and the fourth target rotation angle corresponding to the second target rotation angle are calculated to determine the target angle range. Among them, the third target rotation angle and the fourth target rotation angle are the maximum rotation values of the first direction and the second direction before the wrist of the virtual hand is deformed.
[0068] For example, in 3D rendering software, by calculating the bone binding weights, the maximum values of the wrist of the virtual hand in the clockwise and counterclockwise directions before deformation can be obtained, and A2≤a≤B2 can be obtained. Among them, A2 represents the maximum counterclockwise angle, B2 represents the maximum clockwise angle, -360°≤A2, B2≤360°.
[0069] Then, the first target rotation angle A1 is compared with the third target rotation angle A2, and the second target rotation angle B1 is compared with the fourth target rotation angle B2 to determine the target angle range. For example:
[0070] A = min(|A1|, |A2|);
[0071] B = min(|B1|, |B2|);
[0072] The final target angle range is A≤a≤B (-360°≤A, B≤360°)
[0073] Furthermore, the extreme values of the corresponding angles in clockwise and counterclockwise directions can be calculated, such as:
[0074] A * =A+360;
[0075] B * =B-360.
[0076] In one implementation of the embodiment of the present application, based on the target angle range and the first motion data, determining a target motion control instruction for a virtual hand corresponding to a physical hand includes:
[0077] Obtaining a rotation angle of the entity hand in the first motion data;
[0078] If the rotation angle exceeds the target angle range, a first movement instruction is generated, and the first movement instruction at least includes a rotation restriction instruction for the virtual hand;
[0079] If the rotation angle does not exceed the target angle range, a second motion command is generated.
[0080] Further, based on the target motion control instruction, controlling the virtual hand to reach the target motion state includes:
[0081] Based on the first motion instruction, the virtual hand is controlled to rotate in a second direction when it moves to an extreme value of the first direction, and the virtual hand is controlled to synchronize a motion state corresponding to the first motion data, wherein the first direction and the second direction are opposite directions to each other;
[0082] Based on the second motion instruction, the virtual hand is controlled to synchronize the motion state corresponding to the first motion data.
[0083] Correspondingly, the method further includes:
[0084] Based on the first motion data, obtaining a current first rotation angle of the entity hand;
[0085] Obtaining a time parameter corresponding to the current application scenario and a current second rotation angle of the virtual hand;
[0086] Based on the first rotation angle, the second rotation angle and the time parameter, it is determined whether the virtual hand moves to an extreme value of the current direction.
[0087] For example, in a virtual reality game scene, the physical hand is the VR handle operated by the user, and the rotation angle of the physical hand is the real-time rotation angle of the VR handle, represented by n. The rotation angle of the virtual hand is represented by a.
[0088] If it is a normal rotational movement, that is, there will be no problems such as deformation of the wrist of the virtual hand, the second movement instruction will be executed.
[0089] For example, if the rotation is clockwise:
[0090]
[0091] If it is counterclockwise rotation:
[0092]
[0093] When the virtual hand reaches the extreme value of clockwise and counterclockwise, the state of the wrist of the virtual hand switches instantly, which will be displayed abruptly in the user's perspective. Therefore, when the extreme value is reached, the wrist is rotated in the opposite direction and quickly returns to the angle of the extreme value, thereby reducing the abrupt feeling. That is, in the embodiment of the present application, when the wrist rotation of the virtual hand reaches the extreme value, the reverse direction rotation is increased, and it is quickly returned to the extreme value, and the movement of the physical hand is continued to be synchronized, so as to avoid the problem of too stiff picture caused by direct extreme value conversion.
[0094] In the embodiment of the present application, the time parameter corresponding to the current application scenario is used to determine whether the wrist rotation of the virtual hand is about to reach an extreme value. The time parameter is determined according to the actual application requirements. Several time parameters can be tested in advance, and then the time parameter with better user interaction experience is selected as the time parameter corresponding to the current application scenario.
[0095] For example, taking a physical hand as an operating handle, the real-time rotation angle of the operating handle is n, and the rotation angle a of the wrist of the virtual hand is set according to n.
[0096] When the real-time rotation angle n of the operating handle reaches the extreme value of clockwise rotation, the corresponding relationship between n and a is: a=(1-t)*a+t*(n-360), 0≤t≤1.
[0097] Among them, t is the interpolation factor, which is usually determined by the time parameter. The longer the time required to rotate in the opposite direction, the slower the value of t reaches 1.
[0098] If the real-time rotation angle n of the operating handle reaches the extreme value of counterclockwise rotation, the corresponding relationship between n and a is: a=(1-t)*a+t*(n+360), 0≤t≤1.
[0099] After the above operation is completed, the wrist angle a returns to the range of [A, B] and rotates normally.
[0100] The following describes a method for controlling a virtual hand (referred to as wrist in the following embodiments) in an embodiment of the present application by taking a physical hand as an operating handle as an example.
[0101] See also Figure 3, through motion capture data and bone binding weight data, the maximum rotation angle of the wrist before clockwise and counterclockwise deformation is obtained respectively. The value with the smallest absolute value between the two is taken as the angle range of wrist rotation. The maximum and minimum values of the angle range are -360 and +360 respectively, which are used as the extreme values of angle conversion. Get the real-time rotation angle data of the operating handle in the game engine. Determine whether the real-time angle data exceeds the angle range. If not, control the virtual hand to continue to rotate with the operating handle. If so, restrict the virtual hand from continuing to rotate and continue to obtain the real-time rotation angle of the operating handle. Determine whether the extreme value of the angle conversion is reached. If so, convert the angle of the current operating handle to the maximum or minimum value of the angle range, and release the wrist rotation restriction. If not, return to the execution step of obtaining the real-time conversion angle data of the operating handle.
[0102] In another embodiment of the present application, a virtual hand control device is also provided. Figure 4 , the device may include:
[0103] An acquisition unit 401 is used to obtain first motion data of a hand of an entity;
[0104] A first determining unit 402 is configured to determine a target motion control instruction for a virtual hand corresponding to the physical hand based on a target angle range and the first motion data, wherein the target angle range represents a rotatable range of the physical hand;
[0105] The control unit 403 is used to control the virtual hand to reach a target motion state based on the target motion control instruction, wherein the target motion state matches the current motion state of the physical hand.
[0106] Optionally, the device further comprises:
[0107] A collection unit, used for collecting second motion data of the entity's hand;
[0108] A second determining unit is used to determine, based on the second motion data, a first target rotation angle and a second target rotation angle of the physical hand in a first direction and a second direction, respectively, wherein the first direction is a counterclockwise direction and the second direction is a clockwise direction;
[0109] The third determining unit is configured to determine a target angle range according to the first target rotation angle and the second target rotation angle.
[0110] Optionally, the second motion data represents surface motion data of the physical hand, wherein the third determining unit is configured to:
[0111] Determining a weight coefficient of the surface node relative to each bone node according to a spatial distance between a surface node of the physical hand and each bone node;
[0112] Determining, according to the weight coefficient, the first target rotation angle, and the second target rotation angle, a third target rotation angle corresponding to the first target rotation angle and a fourth target rotation angle corresponding to the second target rotation angle;
[0113] A target angle range is determined based on the first target rotation angle, the second target rotation angle, the third target rotation angle, and the fourth target rotation angle.
[0114] Optionally, the first determining unit includes:
[0115] A first acquisition subunit, used to obtain a rotation angle of the entity hand in the first motion data;
[0116] A first generating subunit, configured to generate a first motion instruction if the rotation angle exceeds the target angle range, wherein the first motion instruction at least includes a rotation limiting instruction for the virtual hand;
[0117] The second generating subunit is used to generate a second motion instruction if the rotation angle does not exceed the target angle range.
[0118] Optionally, the control unit:
[0119] a first control subunit, configured to control the virtual hand to rotate in a second direction when the virtual hand moves to an extreme value of the first direction based on the first motion instruction, and to control the virtual hand to synchronize with a motion state corresponding to the first motion data, wherein the first direction and the second direction are opposite directions to each other;
[0120] A second control subunit is configured to control the virtual hand to synchronize with the motion state corresponding to the first motion data based on the second motion instruction.
[0121] Optionally, the device further comprises:
[0122] A first acquisition unit, configured to obtain a current first rotation angle of the entity hand based on the first motion data;
[0123] A second acquisition unit, used to obtain a time parameter corresponding to a current application scenario and a current second rotation angle of the virtual hand;
[0124] The fourth determination unit is used to determine whether the virtual hand moves to an extreme value of a current direction based on the first rotation angle, the second rotation angle and the time parameter.
[0125] It should be noted that the specific implementation of each unit and sub-unit in this embodiment can refer to the corresponding content in the previous text and will not be described in detail here.
[0126] In another embodiment of the present application, a storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the virtual hand control method as described in any one of the above items is implemented.
[0127] In another embodiment of the present application, an electronic device is further provided, and the electronic device may include:
[0128] Memory, used to store programs;
[0129] A processor is used to execute the program, wherein the program is specifically used to implement the virtual hand control method as described in any one of the above.
[0130] It should be noted that the specific implementation of the processor in this embodiment can refer to the corresponding content in the previous text and will not be described in detail here.
[0131] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0132] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0133] 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.
Claims
1. A virtual hand control method, characterized in that: The method comprises: Obtaining first motion data of the entity's hand; determining a target motion control instruction for a virtual hand corresponding to the physical hand based on a target angle range and the first motion data, wherein the target angle range represents a rotatable range of the physical hand; Based on the target motion control instruction, the virtual hand is controlled to reach a target motion state, wherein the target motion state matches the current motion state of the physical hand.
2. The method according to claim 1, characterized in that The method further comprises: collecting second motion data of the entity's hand; determining, based on the second motion data, a first target rotation angle and a second target rotation angle of the physical hand in a first direction and a second direction, respectively, wherein the first direction is a counterclockwise direction and the second direction is a clockwise direction; A target angle range is determined according to the first target rotation angle and the second target rotation angle.
3. The method according to claim 2, characterized in that The second motion data represents surface motion data of the physical hand, wherein determining the target angle range according to the first target rotation angle and the second target rotation angle includes: Determining a weight coefficient of the surface node relative to each skeletal node based on a spatial distance between the surface node of the physical hand and each skeletal node; determining, according to the weight coefficient, the first target rotation angle, and the second target rotation angle, a third target rotation angle corresponding to the first target rotation angle and a fourth target rotation angle corresponding to the second target rotation angle; A target angle range is determined based on the first target rotation angle, the second target rotation angle, the third target rotation angle, and the fourth target rotation angle.
4. The method according to claim 1, wherein The determining, based on the target angle range and the first motion data, a target motion control instruction for the virtual hand corresponding to the physical hand includes: Obtaining a rotation angle of the entity hand in the first motion data; If the rotation angle exceeds the target angle range, generating a first motion instruction, the first motion instruction at least including a rotation restriction instruction for the virtual hand; If the rotation angle does not exceed the target angle range, a second motion instruction is generated.
5. The method according to claim 4, characterized in that The controlling the virtual hand to reach a target motion state based on the target motion control instruction includes: Based on the first motion instruction, controlling the virtual hand to rotate in a second direction when the hand moves to an extreme value of the first direction, and controlling the virtual hand to synchronize with the motion state corresponding to the first motion data, wherein the first direction and the second direction are opposite to each other; Based on the second motion instruction, the virtual hand is controlled to synchronize with the motion state corresponding to the first motion data.
6. The method according to claim 5, characterized in that The method further comprises: Obtaining a current first rotation angle of the entity hand based on the first motion data; Obtaining a time parameter corresponding to the current application scenario and a current second rotation angle of the virtual hand; Based on the first rotation angle, the second rotation angle, and the time parameter, it is determined whether the virtual hand moves to an extreme value of a current direction.
7. A virtual hand control device, characterized in that: The device comprises: an acquiring unit, configured to acquire first motion data of a hand of an entity; a first determining unit, configured to determine a target motion control instruction for a virtual hand corresponding to the physical hand based on a target angle range and the first motion data, wherein the target angle range represents a rotatable range of the physical hand; A control unit is used to control the virtual hand to reach a target motion state based on the target motion control instruction, wherein the target motion state matches the current motion state of the physical hand.
8. The device according to claim 7, characterized in that The device further comprises: A collection unit, configured to collect second motion data of the entity's hand; a second determining unit, configured to determine, based on the second motion data, a first target rotation angle and a second target rotation angle of the physical hand in a first direction and a second direction, respectively, wherein the first direction is a counterclockwise direction and the second direction is a clockwise direction; The third determining unit is configured to determine a target angle range according to the first target rotation angle and the second target rotation angle.
9. A storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor, the virtual hand control method according to any one of claims 1 to 6 is implemented.
10. An electronic device, characterized in that: include: Memory, used to store programs; A processor is used to execute the program, wherein the program is specifically used to implement the virtual hand control method according to any one of claims 1 to 6.
