Interaction control method and device, electronic equipment and storage medium

By harmonizing the calculation of the projection vector between the user's local coordinate system and the target coordinate system, the problem of deviation between user expectations and actual control results in the interactive interface is solved, and the user experience and efficiency of the interactive interface are improved.

CN118655978APending Publication Date: 2024-09-17BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410693010.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-30
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

In the interactive interface, there are cognitive differences in the conversion between the movement vector of the user holding the controller or hand to the movement vector of the object, resulting in poor user experience and deviations between some users' expectations and actual control results.

Method used

By performing a harmonious calculation of the projection vector between the user's local coordinate system and the target coordinate system, the second displacement vector is determined to control the state of the second object in the target area, and the two calculation methods are combined to reduce the user's expected deviation.

Benefits of technology

It effectively reduces the deviation between the user's second object state and expectations, improves the user experience and efficiency of the interactive interface, and ensures the accuracy and consistency of user operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118655978A
    Figure CN118655978A
Patent Text Reader

Abstract

The invention provides an interaction control method and device, electronic equipment and a storage medium. The interaction control method comprises the steps of determining a first displacement vector of a first object in response to a movement event of the first object; determining a first projection vector of the first displacement vector in a user local coordinate system and a second projection vector of the first displacement vector in a target coordinate system; obtaining a second displacement vector according to a harmonic calculation result of the first projection vector and the second projection vector; controlling the state of a second object in the target area according to the second displacement vector; wherein the target coordinate system is a coordinate system used by the target area, and the second object is limited in the target area. According to the invention, the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to an interactive control method, device, electronic device and storage medium. Background Art

[0002] In an interactive interface, objects in a display area are often controlled according to a controller held by a user or according to the user's hand. The movement distance of the object in the display area is usually controlled according to the displacement distance of the controller or the user's hand. Summary of the invention

[0003] The present disclosure provides an interactive control method, device, electronic device and storage medium.

[0004] The present disclosure adopts the following technical solutions.

[0005] In some embodiments, the present disclosure provides an interactive control method, characterized by comprising:

[0006] In response to a movement event of a first object, determining a first displacement vector of the first object;

[0007] Determine a first projection vector of the first displacement vector in a user local coordinate system and a second projection vector of the first displacement vector in a target coordinate system;

[0008] Obtaining a second displacement vector according to a harmonic calculation result of the first projection vector and the second projection vector;

[0009] controlling a state of a second object in a target area according to the second displacement vector;

[0010] The target coordinate system is a coordinate system used by the target area, and the second object is confined within the target area.

[0011] In some embodiments, the present disclosure provides an interactive control device, including:

[0012] a processing unit, configured to determine a first displacement vector of the first object in response to a movement event of the first object;

[0013] The processing unit is further used to: determine a first projection vector of the first displacement vector in the user local coordinate system and a second projection vector of the first displacement vector in the target coordinate system;

[0014] The processing unit is further used to: obtain a second displacement vector according to a harmonic calculation result of the first projection vector and the second projection vector;

[0015] a control unit, configured to control a state of a second object in a target area according to the second displacement vector;

[0016] The target coordinate system is a coordinate system used by the target area, and the second object is confined within the target area.

[0017] In some embodiments, the present disclosure provides an electronic device, comprising: at least one memory and at least one processor;

[0018] The memory is used to store program codes, and the processor is used to call the program codes stored in the memory to execute the above method.

[0019] In some embodiments, the present disclosure provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store program code, and when the program code is executed by a processor, the processor is prompted to perform the above method.

[0020] In an embodiment of the present disclosure, a second displacement vector is determined according to a harmonized calculation result of the first projection vector and the second projection vector, and the state of the second object in the target area is controlled by the second displacement vector. In this embodiment, the first projection vector and the second projection vector are combined to reconcile the two calculation methods to avoid a large deviation between the state of the second object and the user's expectations. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that components and elements are not necessarily drawn to scale.

[0022] Figure 1 It is a flowchart of the interactive control method of an embodiment of the present disclosure.

[0023] Figure 2 It is a schematic diagram of the user local coordinate system of an embodiment of the present disclosure.

[0024] Figure 3 Schematic diagram of the user local coordinate system and the target coordinate system of an embodiment of the present disclosure.

[0025] Figure 4 4 is a schematic diagram of a user controlling a second object according to an embodiment of the present disclosure.

[0026] Figure 5 4 is a schematic diagram of a user controlling a second object according to an embodiment of the present disclosure.

[0027] Figure 6 4 is a schematic diagram of a user controlling a second object according to an embodiment of the present disclosure.

[0028] Figure 7Schematic diagram of a first displacement vector according to an embodiment of the present disclosure.

[0029] Figure 8 It is a schematic diagram of determining the second displacement vector according to an embodiment of the present disclosure.

[0030] Fig. 9 It is a schematic diagram of the use effect of the embodiment of the present disclosure.

[0031] Fig.10 It is a schematic diagram of the structure of an electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0032] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.

[0033] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.

[0034] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.

[0035] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.

[0036] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.

[0037] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0038] It should be understood that the various steps described in the method embodiments of the present disclosure can be performed in sequence and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0039] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.

[0040] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0041] It should be noted that the modification of “one” mentioned in the present disclosure is illustrative rather than restrictive, and those skilled in the art should understand that it should be understood as “one or more” unless otherwise clearly indicated in the context.

[0042] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0043] The solution provided by the embodiment of the present disclosure will be described in detail below with reference to the accompanying drawings.

[0044] In an interactive interface, such as a virtual display world, objects on a display area (such as a display screen in a display panel in a virtual reality world) are often controlled according to a controller (such as a handle) held by a user. There are many ways to convert the controller's movement vector to the object's movement vector. Due to different cognitions, no matter which conversion method is used, some users' expectations will be disappointed, resulting in a poor user experience.

[0045] like Figure 1 As shown, Figure 1 It is a flowchart of the interactive control method of an embodiment of the present disclosure, which includes the following steps.

[0046] S11. In response to a movement event of a first object, determine a first displacement vector of the first object.

[0047] In some embodiments, the method proposed in the present disclosure can be used in extended reality devices such as virtual reality devices, augmented reality devices, and mixed reality devices, and can also be used in terminal devices such as mobile phones, tablets, and computers. The first object can be a controller (such as a handle) that can control the second object, or the first object can be a user's hand. The user can move the first object, and then determine the first displacement vector of the first object by using a sensor (for example, a sensor can be built into the controller) or taking a photo. The first displacement vector describes the moving direction and moving distance (module length) of the first object.

[0048] S12. Determine a first projection vector of the first displacement vector in the user local coordinate system and a second projection vector of the first displacement vector in the target coordinate system.

[0049] In some embodiments, Figure 2 The user local coordinate system is schematically shown. The user local coordinate system has a coordinate system whose posture changes with the user's posture. Usually, the user's facial orientation, the user's left and right direction, and the user's head direction are the three coordinate axes of the user local coordinate system. Therefore, as the user's orientation changes, the direction of the user local coordinate system will change, but the relative position of the user local coordinate system and the user remains unchanged. The first displacement vector can be calculated by projection. In some cases, if the user local coordinate system adopts a plane coordinate system (for example, only Figure 2 In some embodiments, the target coordinate system is a coordinate system used by the target area, and the user local coordinate system may have an offset angle relative to the target coordinate system and the offset angle is greater than zero. Specifically, a surface in the user local coordinate system (e.g., a surface defined by the x-axis and the y-axis) and the same surface in the target coordinate system (e.g., a surface defined by the x-axis and the y-axis) may be non-parallel; the target area may be a display area displayed in a display panel, and the display panel may be a virtual display panel or a physical display panel. The target coordinate system may be a three-dimensional coordinate system, a two-dimensional coordinate system, or even a one-dimensional coordinate system. For example, a coordinate system with the horizontal and vertical directions of the display area of ​​the display panel as coordinate axes. The second object is confined within the target area. The second object may be a physical object or a virtual object. When the target area is a display area in a display panel, the second object may be a virtual object displayed in the display area. The state of the second object may be controlled by moving the first object, for example, the position of the second object in the target area may be controlled, or the posture of the second object in the target area may be controlled.

[0050] S13. Obtain a second displacement vector according to a harmonic calculation result of the first projection vector and the second projection vector.

[0051] In some embodiments, a reconciliation calculation is performed after the first projection vector and the second projection vector, and the reconciliation calculation result can be used directly as the second displacement vector, or the second displacement vector can be obtained by further adjustment based on the reconciliation calculation result. In some embodiments of the present disclosure, the offset angle of the user local coordinate system relative to the target coordinate system is greater than zero.

[0052] S14. Control the state of the second object in the target area according to the second displacement vector.

[0053] In some embodiments, after the second displacement vector is obtained, the state of the second object in the target area is controlled, for example, the position or posture of the second object in the target area may be controlled.

[0054] In order to better illustrate the method proposed in the embodiment of the present disclosure, a specific embodiment is listed below. The method proposed in the present disclosure can be used in a virtual reality device. In the virtual reality space, there can be a virtual display panel, whose display area is used as the target area, such as Figure 3 As shown, Figure 3 A display area showing a user and a display panel in a virtual reality space, Figure 3 The external coordinate system in is the target coordinate system, and the rectangular frame where the external coordinate system is located is the display area of ​​the virtual display panel. A component is displayed in the display area of ​​the display panel as the second object. The plane where the target area is located is parallel to the x-axis and y-axis in the target coordinate system, and the plane where the x-axis and y-axis of the target coordinate system are located corresponds to the plane composed of the x-axis and y-axis of the user's local coordinate system. Because the second object is displayed in the target area, its freedom of movement is limited by the target area. The second object can move with the movement of the first object. In this embodiment, the external coordinate system can be a two-dimensional plane coordinate system, and the user's local coordinate system is a three-dimensional coordinate system. The plane where the external coordinate system is located corresponds to the plane where the x-axis and y-axis in the user's local coordinate system are located.

[0055] like Figure 4 As shown in (a), when the planes corresponding to the external coordinate system and the user local coordinate system are parallel to each other, there is no cognitive difference, that is, for the first object ( Figure 4 (a) is the user's hand) and the cognition of the up-down, left-right, front-back movement is the same as the cognition of the up-down, left-right, front-back movement of the second object. At this time, the result of controlling the second object by referring to the position change of the first object in the user's local coordinate system or the external coordinate system is the same. However, when the planes corresponding to the user's local coordinate system and the external coordinate system are not parallel and have an offset angle with each other, such as Figure 4As shown in (b), there is an offset angle between the x-axis of the user's local coordinate system and the x-axis of the external coordinate system, and a cognitive difference will occur at this time. At this time, the cognition of the up-down, left-right, front-back movement of the first object in the user's local coordinate system deviates from the cognition of the up-down, left-right, front-back movement of the second object. For example, the user moves the first object in the direction of the x-axis in the user's local coordinate system, but from the perspective of the external coordinate system, this movement operation has a component along the x-axis perpendicular to the external coordinate system, which may cause the second object to move in a direction perpendicular to the x-axis. That is, when the user's local coordinate system has an offset angle relative to the external coordinate system, the user's movement of the first object is inconsistent with the movement of the second object, resulting in ambiguity. As Figure 4 As shown, taking the target area as the display area of ​​the display panel as an example, when the user is facing the display panel and the operation object on the display panel, the "left and right" in the user's local coordinate system is consistent with the "left and right" in the 2D panel, and there is no ambiguity at this time. However, when the user's local coordinate system rotates an angle, there is a direction inconsistency between the user's local coordinate system and the external coordinate system of the display panel. At this time, there is an angle between the "left and right" in the external coordinate system and the "left and right" in the user's local coordinate system. In this case, there are two possible calculation methods. The first calculation method is based on the external coordinate system. As Figure 5 (a) shows that in the first object ( Figure 5 ) moves according to the first moving vector of the first object on the display panel ( Figure 5 The projection component of the first object on the 2D panel in the display panel) controls the second object, which is equivalent to translating the controller to the position of the second object in the display panel for control. The moving direction of the second object (the object moving direction) is the projection direction of the moving vector determined by the axis decomposition method in the external coordinate system, and the moving distance is the length of the projection component of the first moving vector of the first object on the display panel. Figure 5 As shown in (b), the problem with this calculation method is that as the offset angle between the user's local coordinate system and the external coordinate system increases, the projection component of the first motion vector in the external coordinate system will continue to decrease, causing the moving distance of the second object on the display panel to continue to shorten, resulting in the situation where the object cannot be dragged. The second calculation method is to map the user's local coordinate system to the external coordinate system. Figure 6 As shown in (a), first calculate the first object ( Figure 6 The projection components of the first movement vector of the controller in the user's local coordinate system are then directly mapped to the external coordinate system ( Figure 6 The panel coordinate system in the image is not projected on the axis corresponding to the panel coordinate system in the image. Figure 6As shown in (b), this calculation method is equivalent to moving the plane where the display panel is located to the position of the first object (controller), and rotating the plane where the display panel is located to be perpendicular to the line connecting the user and the second object. The projection components of the first movement vector on each axis of the user's local coordinate system are used as the movement vectors of the second object on each axis. In the display panel after the movement, the movement of the first object will be mapped to the display panel at equal distances. For example Figure 6 In (a), the projection component of the first motion vector in the user's local coordinate system is assumed to be 5 unit lengths along the positive direction of the x-axis and 3 unit lengths along the positive direction of the y-axis. The second object will move 5 unit lengths along the positive direction of the x-axis in the external coordinate system and 3 unit lengths along the positive direction of the y-axis in the external coordinate system. Different people have different preferences for these two calculation methods, and even the preferences of the same person may change in different situations. For example, in the extreme case where the user's line of sight is almost parallel to the display panel to the right, in the first calculation method, the user hopes to control the second object to move to the right side of the panel by pushing the first object forward, while in the second cognitive method, the user hopes to control the second object to move to the right side of the panel by pulling the first object to the right. Regardless of which calculation method is used, it will cause a gap in expectations for some users.

[0056] In an embodiment of the present disclosure, a second displacement vector is determined according to a harmonized calculation result of the first projection vector and the second projection vector, and the state of the second object in the target area is controlled by the second displacement vector. In this embodiment, the first projection vector and the second projection vector are combined to reconcile the two calculation methods to avoid a large deviation between the state of the second object and the user's expectations.

[0057] In some embodiments, a camera may be used to shoot a first object to determine a first displacement vector, and the interactive control method is used to determine a first projection vector and a second projection vector for the first displacement vector of each frame position of the first object, and then determine a second displacement vector, and the second displacement vector may be mapped to a target coordinate system to control the state of the second object in a target area. The disclosed embodiments can reduce perception bias during the interaction process, so that the state of the second object meets the user's expectations.

[0058] In some embodiments of the present disclosure, the calculation method of the modulus of the second displacement vector is related to the positional relationship among the first displacement vector, the user local coordinate system, and the target coordinate system. In some embodiments, the positional relationship among the three includes a first positional relationship and a second positional relationship, and the second displacement vector adopts different calculation methods in the first positional relationship and the second positional relationship. In some embodiments, when the first displacement vector remains unchanged, as the user local coordinate system shifts, the control that the user wants to express is different. The present disclosure takes into account that in this case, if the second displacement vector adopts a single calculation method, it is easy for the control of the second object to deviate greatly from the user's expectations. Therefore, different control methods are adopted for different positional relationships, thereby improving the user experience.

[0059] In some embodiments of the present disclosure, obtaining the second displacement vector according to the harmonic calculation result of the first projection vector and the second projection vector includes: using the direction of the vector obtained by the harmonic calculation result of the first projection vector and the second projection vector as the direction of the second displacement vector; and determining the modulus of the second displacement vector according to the positional relationship among the first displacement vector, the user local coordinate system, and the target coordinate system. In some embodiments, the direction of the vector obtained by the harmonic calculation result of the first projection vector and the second projection vector is the same as the direction of the second displacement vector, but the modulus of the second displacement vector is correlated with the positional relationship among the three, so as to avoid a large deviation between the user's expectations and the actual control results of the second object.

[0060] In some embodiments of the present disclosure, determining the modulus of the second displacement vector according to the positional relationship among the first displacement vector, the user local coordinate system, and the target coordinate system includes: in response to the first offset angle being within the range of zero to the second offset angle, or the first offset angle being within the range of 180 degrees to 180 degrees plus the second offset angle, determining that the modulus of the second displacement vector is equal to the modulus of the first displacement vector. The first offset angle is the offset angle of the first displacement vector relative to the target coordinate system, and the second offset angle is the offset angle of the user local coordinate system relative to the target coordinate system.

[0061] In some embodiments, the offset angle has a positive direction, and the direction opposite to the positive direction is a negative direction. The offset angle in the positive direction is a positive value, and the offset angle in the negative direction is a negative value. Figure 7 As shown, Figure 7 The target coordinate system is a plane coordinate system, which is parallel to the display panel (UI panel) and corresponds to the mapping surface in the user's local coordinate system (the user's spherical coordinate system). Figure 7The x-axis of the target coordinate system and the x-axis of the user local coordinate system have an angle, and the y-axes of the two coordinate systems are parallel. The mapping surface is the plane where the x-axis and y-axis of the user local coordinate system are located. Figure 7 On the left, the mapping surface and the target coordinate system are translated to have an intersection line, forming Figure 7 The two shaded areas. Figure 7 The two shaded planes on the right schematically represent the target coordinate system and the mapping surface after translation. Figure 7 The shaded area on the left side of the top view represents the area where the offset angle is from 180 degrees to 180 degrees plus the second offset angle, and the shaded area on the right side of the top view represents the area where the offset angle is from zero to the second offset angle. Figure 7 The displacement vector from A to B is a displacement vector within the range from zero to the second offset angle. Figure 7 When the displacement vector from A to B is in the shaded area of ​​the top view, the modulus of the second displacement vector is equal to the modulus of the first displacement vector. At this time, the deviation between the first displacement vector and the target coordinate system is small, so the distance the user moves the first object is usually the distance the user wants to control the second object. At this time, the modulus of the first displacement vector is directly used as the modulus of the second displacement vector, which meets the user's expectations and reduces the amount of calculation.

[0062] In some embodiments of the present disclosure, in response to the first offset angle not being within the range of zero to the second offset angle, and the first offset angle not being within the range of 180 degrees to 180 degrees plus the second offset angle, the modulus of the vector obtained by the harmonic calculation result of the first projection vector and the second projection vector is used as the modulus of the second displacement vector. Figure 7 As shown, when the first displacement vector is the displacement vector from D to C, the first displacement vector is located at Figure 7 Outside the shaded area of ​​the top view, the first displacement vector has a large first offset angle with the target coordinate system. Therefore, whether the modulus of the first displacement vector, the modulus of the first projection vector, or the modulus of the second projection vector is used as the modulus of the second displacement vector, it may be significantly different from the user's expectations. Therefore, the modulus of the vector after harmonization calculation is used here as the modulus of the second displacement vector to avoid a significant difference from the user's expectations.

[0063] In some embodiments of the present disclosure, the target area is a display area of ​​a display screen, the display screen is parallel to two coordinate axes in the target coordinate system, and the user local coordinate system has a mapping surface corresponding to the display screen. Figure 3 As shown in FIG. 1 , the plane where the x-axis and y-axis of the user's local coordinate system are located is the mapping surface. The mapping surface and the display screen have a y-axis in the same direction and an x-axis in a different direction. The x-axis and y-axis can also be called the horizontal axis and the vertical axis. Figure 7 As shown, the offset angle of the user local coordinate system relative to the target coordinate system is the offset angle of the mapping surface relative to the display screen; the offset angle of the first displacement vector relative to the target coordinate system is the offset angle of the first displacement vector relative to the display screen. In some embodiments, the offset angle of the user local coordinate system relative to the target coordinate system is not greater than 90 degrees.

[0064] In some embodiments of the present disclosure, a balanced difference algorithm is used for harmonic calculation. Figure 8 As shown, it shows that the first displacement vector is Figure 7 Schematic diagram of balanced difference calculation when the displacement vector from A to B in , first calculate the projection vector of the first displacement vector in the external coordinate system and the user local coordinate system, and then use the two projection vectors to perform smooth difference calculation.

[0065] In the embodiment of the present disclosure, when the first displacement vector is located at Figure 7 In the offset angle range shown in the shaded area in the top view (e.g., A to B), the modulus of the second moving vector is equal to the modulus of the first moving vector, and the direction of the second moving vector is the direction of the smooth difference between the first projection vector and the second projection vector. When the first moving vector is outside the two offset angle ranges (e.g., C to D), the modulus and direction of the second moving vector are the smooth difference between the first projection vector and the second projection vector.

[0066] In some embodiments of the present disclosure, controlling the state of the second object in the target area according to the second displacement vector includes: adding the second displacement vector to the initial position coordinates of the second object to obtain the target position coordinates, and moving the second object according to the target position coordinates; wherein the initial position coordinates are the position coordinates of the second object in the target coordinate system before the movement event of the first object. In some embodiments, the second displacement vector represents the moving direction and moving distance of the second object, and the initial position coordinates of the second object in the target coordinate system plus the second displacement vector can be used to obtain the target position coordinates of the second object, and the second object can be moved to the target position coordinates. In some embodiments, when the target coordinate system and the user local coordinate system are three-dimensional coordinate systems, the target position coordinates are obtained by adding the second displacement vector to the three-dimensional initial position coordinates of the second object. When the target coordinate system is a two-dimensional plane coordinate system (e.g., an xy coordinate system) and the user local coordinate system is a three-dimensional coordinate system, the target position coordinates are obtained by adding the two values ​​(e.g., an x ​​value and a y value) corresponding to the two-dimensional plane coordinate system in the second displacement vector to the two-dimensional initial position coordinates of the second object.

[0067] In some embodiments of the present disclosure, the execution end of the method is an extended reality device. In some embodiments, the target area is a virtual or real display screen, such as a virtual display plane in a virtual reality space, and the second object is a virtual object displayed in the display screen. In some embodiments, the first object is a controller or a user's hand that controls the second object, and the first object can be a handle of a virtual reality device.

[0068] In some embodiments of the present disclosure, when the user's local coordinate system and the target coordinate system are inconsistent, the two perception calculation methods are reconciled to improve the user's experience. Fig. 9 As shown, Fig. 9 The left and right sides respectively show schematic diagrams of a user drawing a circle facing the display plane and facing the display screen obliquely. By adopting the method proposed in the embodiment of the present disclosure, after the coordination calculation, even if the user is not drawing graphics facing the display screen, the user's real-time drawing path will be met, and a graphic that meets the user's actual expectations will be generated on the display screen. The present disclosure improves the efficiency and accuracy of interaction, reduces the user's learning cost, and provides a better user experience.

[0069] The present disclosure also provides an interactive control device, comprising:

[0070] a processing unit, configured to determine a first displacement vector of the first object in response to a movement event of the first object;

[0071] The processing unit is further used to: determine a first projection vector of the first displacement vector in the user local coordinate system and a second projection vector of the first displacement vector in the target coordinate system;

[0072] The processing unit is further used to: obtain a second displacement vector according to a harmonic calculation result of the first projection vector and the second projection vector;

[0073] a control unit, configured to control a state of a second object in a target area according to the second displacement vector;

[0074] The target coordinate system is a coordinate system used by the target area, and the second object is confined within the target area.

[0075] In some embodiments, obtaining the second displacement vector according to a harmonic calculation result of the first projection vector and the second projection vector includes:

[0076] Using the direction of a vector obtained by harmonizing the first projection vector and the second projection vector as the direction of the second displacement vector;

[0077] The modulus of the second displacement vector is determined according to the positional relationship among the first displacement vector, the user local coordinate system and the target coordinate system.

[0078] In some embodiments, determining the modulus of the second displacement vector according to the positional relationship among the first displacement vector, the user local coordinate system, and the target coordinate system includes:

[0079] In response to the first offset angle being within the range of zero to the second offset angle, or the first offset angle being within the range of 180 degrees to 180 degrees plus the second offset angle, determining that the modulus of the second displacement vector is equal to the modulus of the first displacement vector; or,

[0080] In response to the first offset angle not being within the range of zero to the second offset angle, and the first offset angle not being within the range of 180 degrees to 180 degrees plus the second offset angle, using the modulus of a vector obtained by a harmonic calculation result of the first projection vector and the second projection vector as the modulus of the second displacement vector;

[0081] The first offset angle is an offset angle of the first displacement vector relative to the target coordinate system, and the second offset angle is an offset angle of the user local coordinate system relative to the target coordinate system.

[0082] In some embodiments, an offset angle of the user local coordinate system relative to the target coordinate system is no greater than 90 degrees.

[0083] In some embodiments, the target area is a display area of ​​a display screen, the display screen is parallel to two coordinate axes in the target coordinate system, and the user local coordinate system has a mapping surface corresponding to the display screen;

[0084] The offset angle of the user local coordinate system relative to the target coordinate system is the offset angle of the mapping surface relative to the display screen;

[0085] The offset angle of the first displacement vector relative to the target coordinate system is the offset angle of the first displacement vector relative to the display screen.

[0086] In some embodiments, controlling the state of the second object in the target area according to the second displacement vector includes:

[0087] Adding the second displacement vector to the initial position coordinates of the second object to obtain the target position coordinates, and moving the second object according to the target position coordinates;

[0088] The initial position coordinates are the position coordinates of the second object in the target coordinate system before the movement event of the first object.

[0089] In some embodiments, the offset angle of the user local coordinate system relative to the target coordinate system is greater than zero; in some embodiments, a balanced difference algorithm is used for harmonic calculation; in some embodiments, the target area is a virtual or real display screen, and the second object is a virtual object displayed in the display screen; in some embodiments, the interactive control device is an extended reality device. In some embodiments, the first object is a controller or a user's hand that controls the second object.

[0090] For the embodiments of the device, since they basically correspond to the method embodiments, the relevant parts refer to the partial description of the method embodiments. The device embodiments described above are merely illustrative, wherein the modules described as separation modules may or may not be separated. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of the present embodiment. Those of ordinary skill in the art can understand and implement without paying creative work.

[0091] The method and device of the present disclosure are described above based on the embodiments and application examples. In addition, the present disclosure also provides an electronic device and a computer-readable storage medium, which are described below.

[0092] Reference below Fig.10 , which shows a schematic diagram of the structure of an electronic device (such as a terminal device or a server) 800 suitable for implementing the embodiment of the present disclosure. The terminal device in the embodiment of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. The electronic device shown in the figure is only an example and should not bring any limitation to the functions and scope of use of the embodiment of the present disclosure.

[0093] The electronic device 800 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 801, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 802 or a program loaded from a storage device 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the electronic device 800 are also stored. The processing device 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.

[0094] Typically, the following devices may be connected to the I / O interface 805: input devices 806 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 807 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 808 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 809. The communication device 809 may allow the electronic device 800 to communicate with other devices wirelessly or by wire to exchange data. Although the electronic device 800 with various devices is shown in the figure, it should be understood that it is not required to implement or have all the devices shown. More or fewer devices may be implemented or have alternatively.

[0095] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 809, or installed from a storage device 808, or installed from a ROM 802. When the computer program is executed by the processing device 801, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

[0096] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0097] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0098] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0099] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device executes the method of the present disclosure.

[0100] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0101] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0102] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of a unit does not, in some cases, limit the unit itself.

[0103] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0104] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0105] According to one or more embodiments of the present disclosure, there is provided an interactive control method, comprising:

[0106] In response to a movement event of a first object, determining a first displacement vector of the first object;

[0107] Determine a first projection vector of the first displacement vector in a user local coordinate system and a second projection vector of the first displacement vector in a target coordinate system;

[0108] Obtaining a second displacement vector according to a harmonic calculation result of the first projection vector and the second projection vector;

[0109] controlling a state of a second object in a target area according to the second displacement vector;

[0110] The target coordinate system is a coordinate system used by the target area, and the second object is confined within the target area.

[0111] According to one or more embodiments of the present disclosure, an interactive control method is provided, wherein a second displacement vector is obtained according to a harmonized calculation result of the first projection vector and the second projection vector, comprising:

[0112] Using the direction of a vector obtained by harmonizing the first projection vector and the second projection vector as the direction of the second displacement vector;

[0113] The modulus of the second displacement vector is determined according to the positional relationship among the first displacement vector, the user local coordinate system and the target coordinate system.

[0114] According to one or more embodiments of the present disclosure, an interactive control method is provided, which determines the modulus of the second displacement vector according to the positional relationship among the first displacement vector, the user local coordinate system, and the target coordinate system, including:

[0115] In response to the first offset angle being within the range of zero to the second offset angle, or the first offset angle being within the range of 180 degrees to 180 degrees plus the second offset angle, determining that the modulus of the second displacement vector is equal to the modulus of the first displacement vector; or,

[0116] In response to the first offset angle not being within the range of zero to the second offset angle, and the first offset angle not being within the range of 180 degrees to 180 degrees plus the second offset angle, using the modulus of a vector obtained by a harmonic calculation result of the first projection vector and the second projection vector as the modulus of the second displacement vector;

[0117] The first offset angle is an offset angle of the first displacement vector relative to the target coordinate system, and the second offset angle is an offset angle of the user local coordinate system relative to the target coordinate system.

[0118] According to one or more embodiments of the present disclosure, an interactive control method is provided, wherein an offset angle of the user local coordinate system relative to the target coordinate system is not greater than 90 degrees.

[0119] According to one or more embodiments of the present disclosure, an interactive control method is provided, wherein the target area is a display area of ​​a display screen, the display screen is parallel to two coordinate axes in the target coordinate system, and the user local coordinate system has a mapping surface corresponding to the display screen;

[0120] The offset angle of the user local coordinate system relative to the target coordinate system is the offset angle of the mapping surface relative to the display screen;

[0121] The offset angle of the first displacement vector relative to the target coordinate system is the offset angle of the first displacement vector relative to the display screen.

[0122] According to one or more embodiments of the present disclosure, an interactive control method is provided, which controls a state of a second object in a target area according to the second displacement vector, including:

[0123] Adding the second displacement vector to the initial position coordinates of the second object to obtain the target position coordinates, and moving the second object according to the target position coordinates;

[0124] The initial position coordinates are the position coordinates of the target coordinate system of the second object before the movement event of the first object.

[0125] According to one or more embodiments of the present disclosure, an interactive control method is provided, which satisfies at least one of the following conditions:

[0126] The offset angle of the user local coordinate system relative to the target coordinate system is greater than zero;

[0127] The balanced difference algorithm is used for harmonic calculation;

[0128] The target area is a virtual or real display screen, and the second object is a virtual object displayed in the display screen;

[0129] The execution end of the method is an extended reality device;

[0130] The first object is a controller or a user's hand that controls the second object.

[0131] According to one or more embodiments of the present disclosure, there is provided an interactive control device, comprising:

[0132] a processing unit, configured to determine a first displacement vector of the first object in response to a movement event of the first object;

[0133] The processing unit is further used to: determine a first projection vector of the first displacement vector in the user local coordinate system and a second projection vector of the first displacement vector in the target coordinate system;

[0134] The processing unit is further used to: obtain a second displacement vector according to a harmonic calculation result of the first projection vector and the second projection vector;

[0135] a control unit, configured to control a state of a second object in a target area according to the second displacement vector;

[0136] The target coordinate system is a coordinate system used by the target area, and the second object is confined within the target area.

[0137] According to one or more embodiments of the present disclosure, there is provided an electronic device, including: at least one memory and at least one processor;

[0138] The at least one memory is used to store program codes, and the at least one processor is used to call the program codes stored in the at least one memory to execute any one of the above methods.

[0139] According to one or more embodiments of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium is used to store program code, and when the program code is executed by a processor, the processor is prompted to execute the above method.

[0140] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.

[0141] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0142] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.

Claims

1. An interactive control method, characterized in that: include: In response to a movement event of a first object, determining a first displacement vector of the first object; Determine a first projection vector of the first displacement vector in a user local coordinate system and a second projection vector of the first displacement vector in a target coordinate system; Obtaining a second displacement vector according to a harmonic calculation result of the first projection vector and the second projection vector; controlling a state of a second object in a target area according to the second displacement vector; The target coordinate system is a coordinate system used by the target area, and the second object is confined within the target area.

2. The method according to claim 1, characterized in that Obtaining a second displacement vector according to a harmonic calculation result of the first projection vector and the second projection vector includes: Using the direction of a vector obtained by harmonizing the first projection vector and the second projection vector as the direction of the second displacement vector; The modulus of the second displacement vector is determined according to the positional relationship among the first displacement vector, the user local coordinate system and the target coordinate system.

3. The method according to claim 2, characterized in that Determining the modulus of the second displacement vector according to the positional relationship among the first displacement vector, the user local coordinate system, and the target coordinate system includes: In response to the first offset angle being within the range of zero to the second offset angle, or the first offset angle being within the range of 180 degrees to 180 degrees plus the second offset angle, determining that the modulus of the second displacement vector is equal to the modulus of the first displacement vector; or, In response to the first offset angle not being within the range of zero to the second offset angle, and the first offset angle not being within the range of 180 degrees to 180 degrees plus the second offset angle, using the modulus of a vector obtained by a harmonic calculation result of the first projection vector and the second projection vector as the modulus of the second displacement vector; The first offset angle is an offset angle of the first displacement vector relative to the target coordinate system, and the second offset angle is an offset angle of the user local coordinate system relative to the target coordinate system.

4. The method according to claim 3, characterized in that The offset angle of the user local coordinate system relative to the target coordinate system is not greater than 90 degrees.

5. The method according to claim 3, characterized in that: The target area is a display area of ​​a display screen, the display screen is parallel to two coordinate axes in the target coordinate system, and the user local coordinate system has a mapping surface corresponding to the display screen; The offset angle of the user local coordinate system relative to the target coordinate system is the offset angle of the mapping surface relative to the display screen; The offset angle of the first displacement vector relative to the target coordinate system is the offset angle of the first displacement vector relative to the display screen.

6. The method according to claim 1, characterized in that Controlling the state of the second object in the target area according to the second displacement vector includes: Adding the second displacement vector to the initial position coordinates of the second object to obtain the target position coordinates, and moving the second object according to the target position coordinates; The initial position coordinates are the position coordinates of the second object in the target coordinate system before the movement event of the first object.

7. The method according to claim 1, characterized in that Satisfy at least one of the following: The offset angle of the user local coordinate system relative to the target coordinate system is greater than zero; The balanced difference algorithm is used for harmonic calculation; The target area is a virtual or real display screen, and the second object is a virtual object displayed in the display screen; The execution end of the method is an extended reality device; The first object is a controller or a user's hand that controls the second object.

8. An interactive control device, characterized in that: include: a processing unit, configured to determine a first displacement vector of the first object in response to a movement event of the first object; The processing unit is further used to: determine a first projection vector of the first displacement vector in the user local coordinate system and a second projection vector of the first displacement vector in the target coordinate system; The processing unit is further used to: obtain a second displacement vector according to a harmonic calculation result of the first projection vector and the second projection vector; a control unit, configured to control a state of a second object in a target area according to the second displacement vector; The target coordinate system is a coordinate system used by the target area, and the second object is confined within the target area.

9. An electronic device, comprising: at least one memory and at least one processor; The at least one memory is used to store program code, and the at least one processor is used to call the program code stored in the at least one memory to execute the method according to any one of claims 1 to 7. 10 . A computer-readable storage medium, wherein the computer-readable storage medium is used to store program codes, wherein when the program codes are executed by a processor, the processor is prompted to execute the method according to claim 1 .