Virtual object manipulation method based on eye movement and controller control

Through the virtual object manipulation method based on eye movements and controllers, the problem of complexity and lack of accuracy in virtual object manipulation in virtual reality technology is solved, enabling users to have an easier and smoother manipulation experience and high-precision operation, which is suitable for a variety of applications. scene.

CN118672401APending Publication Date: 2024-09-20FUZHOU UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410830274.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-25
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

The existing virtual object manipulation methods in virtual reality technology have problems such as complex operation, high physical consumption, insufficient accuracy and poor fluency, especially in high-precision and complex task fields, which cannot meet application needs.

Method used

A virtual object manipulation method based on eye movement and controller is adopted to obtain eye movement ray data, calculate the spatial gaze direction, optimize the data processing, and realize automatic and manual cursor correction. Combined with the virtual object operation mode, the eye gaze method is used to perform spherical movement. and changing the object distance, using object movement collision detection rules to prevent abnormal situations.

Benefits of technology

It enables users to manipulate virtual objects more easily and smoothly, reduces physical exertion, improves manipulation accuracy and accuracy, supports the efficient completion of complex tasks, and is suitable for a variety of application scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118672401A
    Figure CN118672401A
Patent Text Reader

Abstract

The invention provides a virtual object manipulation method based on eye movement and controller control. The virtual object manipulation method comprises the following steps that 1, data supporting eye movement ray tracing are obtained; 2, calculating a space staring direction; 3, optimizing and processing the data; step 4, scanning to find the object; step 5, opening a cursor operation; 6, automatically correcting the position of the cursor; 7, manually correcting the cursor; 8, confirming a selected object; step 9, using a virtual object operation mode; step 10, moving the object; step 11, using an object movement collision detection rule (OMCD) to limit the movement of the object so as to prevent an abnormal condition caused by mold penetration; 12, rotating the object; step 13, zooming the object; and step 14, releasing the object. By applying the technical scheme, a user can operate the virtual object more easily and smoothly.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of virtual reality, in particular to a virtual object manipulation method based on eye movement and controller control. Background Art

[0002] Virtual Reality (VR) technology is a computer simulation technology that uses computer graphics systems and various control devices to generate interactive three-dimensional environments. Currently, in the field of virtual reality interaction, in the virtual environment (VE), although the manipulation of virtual objects has made great progress, it is still a very challenging problem for VR interaction. Efficient and accurate manipulation of virtual objects can help users of VR interactive programs better use VR technology to complete various interactive tasks such as scientific research, experiments, training and games.

[0003] At present, the technical solutions for manipulating virtual objects mainly focus on object selection or object operation. Although using the same manipulation method to achieve object manipulation connected by the two stages of selection and operation can obtain a smooth interactive experience, there are few better solutions. Previously, common object manipulation methods only used controllers to emit light to manipulate virtual objects. Users needed to keep raising their hands to adjust the direction of the controller's rays, which inevitably increased their burden and fatigue, and there were problems such as insufficient operation accuracy. Some virtual object manipulation methods use a two-dimensional operation mode, which is essentially a pseudo-three-dimensional control method and is not suitable for the field of virtual reality. In addition, there are some methods that pre-train various models to judge the user's manipulation intentions, which requires a lot of additional costs. After multiple investigations and experimental analysis, the existing technology has the following problems:

[0004] 1. The traditional method of using only controllers to manipulate virtual objects has various operational problems. Complex tasks or long-term operations bring users greater physical exertion and a certain psychological burden, which indirectly has a negative impact on the user experience and has seriously restricted the application and promotion of virtual reality technology in various fields.

[0005] 2. Most technologies either focus only on object selection or are only applicable to object manipulation (movement, rotation, scaling, etc.). There are few technologies that use the same control method to manipulate virtual objects, and the few methods that exist have poor fluency, high misselection rates, and limited controllable ranges.

[0006] 3. Many application fields (manufacturing / repair / training of precision instruments, simulation training of aerospace components, virtual training of complex surgical operations, etc.) have high technical requirements for manipulating virtual objects in terms of accuracy and operational efficiency. However, the existing technical solutions do not perform well in these two indicators and cannot be applied to these fields. A set of technologies with good usability and ease of use is urgently needed. Summary of the invention

[0007] In view of this, an object of the present invention is to provide a virtual object manipulation method based on eye movement and controller control, so that users can manipulate virtual objects more easily and smoothly.

[0008] To achieve the above-mentioned purpose, the present invention adopts the following technical scheme: a virtual object manipulation method based on eye movement and controller control, characterized in that it includes the following steps: step 1: obtaining data supporting eye movement ray tracking, the data supporting eye movement ray tracking includes the gaze direction provided by the eye tracker and the rotation degree of the virtual camera representing the user's head movement; step 2: calculating the spatial gaze direction; step 3: optimizing the processed data; step 4: scanning to find the object; step 5: turning on the cursor operation; step 6: automatically correcting the cursor position; step 7: manually correcting the cursor; if the selected object ray after executing step 6 to automatically correct the cursor position still does not intersect with the object to be selected, the user controls the left joystick to manually correct the cursor position. Move the cursor to the correct position until an intersection is generated; Step 8: Confirm the object selection; When the object to be selected is selected, enter the object operation stage, and the object selection ray is restored to the scanning ray; Step 9: Use the virtual object operation mode; Step 10: Move the object; When using VOOM to move the object, use eye gaze to complete the spherical movement of the object; Use the left and right arrow keys of the right joystick to switch to the operation dimension corresponding to the object distance, and then use the up and down arrow keys to change the object distance; Step 11: Use an object movement collision detection rule OMCD to limit the movement of the object to prevent abnormal situations caused by penetration; Step 12: Rotate the object; Step 13: Scale the object; Step 14: Release the object.

[0009] In a preferred embodiment, in step 2, the spatial gaze direction is used to represent the viewing direction of the user relative to the VE coordinate system, which is calculated by the following formula:

[0010] Environment GazeDirection=R·GazeDirection (1)

[0011] Among them, Environment Gaze Direction and Gaze Direction are 3D vectors, R is a 3x3 rotation matrix representing the rotation of the virtual camera; R converts the Gaze Direction vector into the Environment GazeDirection vector to reflect the user's actual gaze direction in VE; when the relevant parameters in VE are set to |GazeDirection|=1 and |R|=1, |Environment Gaze Direction|=1.

[0012] In a preferred embodiment, step 3 includes:

[0013] Step 31: Initialize and maintain the EGD list

[0014] Initialize an EGD list EGDL to store the EGD of each frame; whenever a new EGD appears, add it to the end of the list; set the preset maximum length of the list between 10-100, if the actual length of the list exceeds the preset maximum length of the list, continuously remove the earliest EGD;

[0015] Step 32: Calculate the exponential moving average of all EGDs in the list;

[0016] First, take the first EGD in the list as the initial average value EMA Mean; for each EGD in the list, use the following formula to update the average value in the loop traversing EGDL: EMA Mean = Smoothing Factor EGDL i +(1-Smoothing Factor)·EMA Mean(2)

[0017] Among them, EGDL i is the i-th spatial gaze direction of EGDL in the traversal loop, and Smoothing Factor is the smoothing factor, which is calculated by the following formula:

[0018]

[0019] Among them, EMAConstant is the constant used to calculate EMA; EGDL Count is the actual length of EGDL; after the traversal, the optimized EMA Mean is calculated and used as the EGD used in each frame in VE; the EGD in the object selection stage and the object operation stage both use the optimized EMA Mean.

[0020] In a preferred embodiment, the step 5 specifically includes:

[0021] Step 51: Displaying a cursor and a cursor moving range on the plane;

[0022] Step 52: Change the cursor position; after turning on the cursor, first execute the EGDP algorithm and automatically correct the cursor position. After reaching the preset algorithm execution time, execute step 6 to change the cursor position. Then, the movement of the cursor on the plane is controlled by the left joystick. At this time, the changeable range of the cursor position is limited to the cursor movement range.

[0023] Step 53: Switching rays; after the plane and the cursor are activated, the scanning ray is switched to the object selection ray B;

[0024] Step 54: Limit the range of change of the ray direction of the selected object;

[0025] Step 55: If the user is not satisfied with the current center point position of the cursor moving range, press the right grab button again to return to the scanning stage.

[0026] In a preferred embodiment, step 6 includes:

[0027] Step 61: Initialize UEGDL and start recording UEGD

[0028] Initialize the list UEGDL that saves UEGD and the list of posterior probabilities; after entering the precise selection phase, immediately start recording the UEGD of each frame;

[0029] Step 62: Stop recording UEGD and calculate UEGD

[0030] When the time of recording UEGD reaches the preset prediction time, stop recording and start calculating the most likely UEGD in UEGDL;

[0031] Step 63: Calculate the posterior probability of each UEGD in UEGDL

[0032] Before the calculation begins, the most likely UEGD is initialized as a three-dimensional zero vector, and the maximum posterior probability is initialized to 0; then, each UEGD in the UEGDL is traversed, their posterior probabilities are calculated, and added to the posterior probability list;

[0033] Step 64: Use the UEGD corresponding to the maximum posterior probability

[0034] If the calculated result of the posterior probability of the currently traversed UEGD is greater than the maximum posterior probability, the most likely UEGD is set to the currently traversed UEGD, and the maximum posterior probability is set to the posterior probability of the UEGD; after the traversal of UEGDL is completed, the UEGD corresponding to the maximum posterior probability is returned, that is, the most likely UEGD is obtained.

[0035] In a preferred embodiment, step 63 includes:

[0036] Step 631: Calculate the average value Mean of all UEGDs in UEGDL, the formula is as follows:

[0037]

[0038] Among them, x i is each UEGD in UEGDL, UEGDL length is the actual length of UEGDL;

[0039] Step 632: Calculate the covariance matrix Covariance of UEGDL, the formula is as follows:

[0040]

[0041] Among them, Mean is the calculation result of step ①;

[0042] Step 633: Calculate the Mahalanobis distance between the currently traversed UEGD and the average value

[0043] Mahalanobis distance D in EGDP M The calculation formula is:

[0044]

[0045] where x is the current round of UEGD in the loop that traverses UEGDL, and C -1 is the inverse matrix of the calculation result of step 632;

[0046] Step 634: Calculate the posterior probability of the currently traversed UEGD.

[0047] In a preferred embodiment, step 634 includes:

[0048] Step 6341: Calculate the likelihood of the current UEGD;

[0049] The calculation formula for calculating likelihood is:

[0050] (7)

[0052] Where x is the UEGD of the current round in the loop traversing the UEGDL, k is the dimension of the UEGD, and since the direction is represented by a three-dimensional vector, k = 3;

[0053] Substituting formula (6) and k=3 into formula (7), we get the likelihood formula of the EGDP algorithm:

[0054]

[0055] Step 6342: Calculate the prior probability of the currently traversed UEGD;

[0056] The EGDP algorithm assumes that all UEGDs in the UEGDL have equal probability of being selected as the most likely UEGD, so the calculation formula for the prior probability is:

[0057]

[0058] Step 6343: Use the Bayesian rule to calculate the posterior probability of the currently traversed UEGD

[0059] The EGDP algorithm calculates the posterior probability using the following formula:

[0060]

[0061] The posterior probability of the currently traversed UEGD is obtained by formula (10) and added to the list of stored posterior probabilities.

[0062] In a preferred embodiment, step 9 uses a virtual object operation mode VOOM to assist basic object operations; the object moving operation is divided into a spherical moving operation and an object distance changing operation; the spherical moving operation means that the object distance remains unchanged, and the direction of H relative to A is determined by EGD; this process is equivalent to H moving on the surface of V; the object distance changing operation is specifically: increasing or decreasing the distance between H and A along the current direction of B to change the object distance; the spherical moving operation is controlled by eye gaze, while the object distance changing operation is completed by the manipulation controller; the user should originally manually control the three data X, Y and Z in the object's position attributes, but now only needs to manually control one data, the object distance.

[0063] In a preferred embodiment, the step 11 specifically includes:

[0064] Step 111: Collision settings; add a preset collision body for the object that needs collision detection in VE, and set the level to the preset collision level; at the same time, add a rigid body to the selected object and the optional object, and use gravity;

[0065] Step 112: emitting an OMCD ray; emitting an OMCD ray with a length equal to the distance of the object from A as the starting point and EGD as the direction; setting the level of the object intersecting with the ray to the preset collision level; and then, the OMCD ray can only generate collision intersections with the object set to the preset level;

[0066] Step 113: Take the following approach based on whether there is a collision intersection:

[0067] Step 1131: If there is no collision intersection, the user freely operates the object to complete the spherical movement operation and the object distance change operation;

[0068] Step 1132: If there is a collision intersection, it means that the object collides with other collision bodies; at this time, the position of the object is set to the position of the collision point, and the object distance is updated; at the same time, the user is prohibited from increasing the object distance; whether the user is allowed to reduce the object distance is determined by the user of the OMCD; the range of the object distance is 0 to +∞, and the reason why it cannot be a negative number is to prevent the object from being moved outside the user's field of view.

[0069] In a preferred embodiment, step 14 specifically includes: after the user moves the object to the vicinity of the target placement position, the user presses the left trigger button to release the object, thereby completing a manipulation of the virtual object.

[0070] Compared with the prior art, the present invention has the following beneficial effects:

[0071] 1. This solution enables users to manipulate virtual objects more easily and smoothly. Users can sit in a chair and complete the entire manipulation process in a relaxed posture without raising their hands to manipulate. As a result, users can use the method provided in this case to perform more complex and time-consuming manipulation tasks, which can appropriately reduce physical exertion and effectively relieve mental fatigue.

[0072] 2. When the user's position in the virtual environment remains unchanged, this solution can manipulate all virtual objects within the visible range by changing the viewing angle, which can better help users complete various interactive tasks of virtual objects in three-dimensional space.

[0073] 3. This solution can accurately move virtual objects to any position within the visible range of the virtual environment. The minimum movement accuracy depends on the smallest data unit in the virtual environment, and the movement rate is controllable. In addition, the use fluency of this solution when selecting and operating virtual objects is relatively stable. When performing object manipulation tasks with a certain degree of complexity, it can achieve high manipulation accuracy and accuracy without spending too much execution time.

[0074] 4. This solution supports the setting of many manipulation parameters and has good adaptability to different application scenarios. Users can change the movement, rotation and scaling rates of virtual objects, the controllable range of manipulated objects, and set other objects that can cause physical collisions as needed to meet the needs of various special operation tasks in different fields. BRIEF DESCRIPTION OF THE DRAWINGS

[0075] Figure 1 OMEC step diagram of a preferred embodiment of the present invention;

[0076] Figure 2A schematic diagram of the command set setting of the handheld controller of the preferred embodiment of the present invention;

[0077] Figure 3 A schematic diagram of the spatial gaze direction of a preferred embodiment of the present invention;

[0078] Figure 4 A schematic diagram of using EGD in the scanning phase of a preferred embodiment of the present invention;

[0079] Figure 5 A schematic diagram of a cursor displayed on a plane and a cursor moving range according to a preferred embodiment of the present invention;

[0080] Figure 6 A schematic diagram of an accurate object selection according to a preferred embodiment of the present invention;

[0081] Figure 7 A schematic diagram of a light cone range for limiting the change in the direction of a selected object ray according to a preferred embodiment of the present invention;

[0082] Figure 8 A schematic diagram of the automatic correction of the cursor position according to a preferred embodiment of the present invention;

[0083] Fig. 9 A schematic diagram of the steps for implementing the EGDP algorithm in a preferred embodiment of the present invention;

[0084] Fig.10 A schematic diagram of a flow chart of determining whether a candidate object is selected according to a preferred embodiment of the present invention;

[0085] Fig.11 A schematic diagram of the operation of moving an object according to a preferred embodiment of the present invention;

[0086] Fig.12 FIG. 1 is a schematic diagram of an OMCD according to a preferred embodiment of the present invention. DETAILED DESCRIPTION

[0087] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

[0088] It should be noted that the following detailed descriptions are illustrative and are intended to provide further explanation of the present application. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present application belongs.

[0089] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit the exemplary embodiments according to the present application; as used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprise" and / or "include" are used in this specification, they indicate the presence of features, steps, operations, devices, components and / or their combinations.

[0090] A control method for virtual object manipulation based on eye gaze and handheld controller (OMEC) is used to select and manipulate virtual objects. This method can not only reduce the time and effort spent by users, but also improve the manipulation accuracy and placement precision of virtual objects, and expand the types of virtual object operations and the applicable scope of manipulated objects.

[0091] The steps of OMEC are as follows Figure 1 As shown in the figure, it is divided into the preprocessing stage, the object selection stage and the object operation stage. In the first stage, the data required to support eye tracking is first obtained, and the spatial gaze direction (Environment Gaze Direction, EGD) is calculated. Then, the exponential sliding average algorithm is used to optimize the processed data. This method divides the object selection stage into the scanning stage and the precise selection stage. In the scanning stage, EGD is used to control the movement of the scanning ray to quickly find the approximate location of the object. Then, the cursor used for auxiliary selection is turned on and the precise selection stage is entered. If the user is not satisfied with the current position of the cursor, the cursor can be turned off and returned to the scanning stage. In the precise selection stage, after calling the spatial gaze direction prediction algorithm, the cursor position is automatically corrected, and then the direction of the ray is corrected. If the corrected ray has hit the object to be selected, the manual cursor correction operation is skipped. Otherwise, the user can manually correct the cursor until the ray hits the object to be selected. After confirming the selection of the object, the operation enters the object operation stage. In this stage, the virtual object operation mode (Virtual Object Operation Mode, VOOM) is used to implement operations including movement, rotation and scaling. Among them, the object moving operation needs to complete the object movement collision detection rules (OMCD). After completing the above operation, the object is released, and the manipulation of the virtual object ends.

[0092] In order to cooperate with the eye tracker to perform the relevant operations in the OMEC method, this method has developed a set of commands for the use of handheld controllers. The corresponding relationship between the joystick, trigger and grab button and the command is as follows Figure 2 As shown, OMEC users can also change the settings of the command set according to their personal needs.

[0093] Stage 1. Preprocessing stage

[0094] Step 1. Obtain data that supports eye ray tracing

[0095] The data supporting eye ray tracking includes the gaze direction provided by the eye tracker and the rotation of the virtual camera representing the user's head movement.

[0096] Step 2. Calculate the spatial gaze direction

[0097] This method uses the spatial gaze direction to represent the user's viewing direction relative to the VE coordinate system, which is calculated by the following formula:

[0098] Environment Gaze Direction=R·Gaze Direction (1)

[0099] Where Environment Gaze Direction and Gaze Direction are 3D vectors, and R is a 3x3 rotation matrix representing the rotation of the virtual camera. R converts the Gaze Direction vector into the Environment GazeDirection vector to reflect the user's real gaze direction in the VE. When the relevant parameters in the VE are set to |GazeDirection|=1 and |R|=1, |Environment Gaze Direction|=1.

[0100] EGD Figure 3 As shown, A is the user's gaze origin, that is, the location of the virtual camera. Line segment B is EGD. When |EGD|=1, a unit sphere C can be formed with A as the center and |B| as the radius. Any EGD can be regarded as a unit direction vector emitted from point A and pointing to the surface of C. Since the intersection point D of this vector and the surface of C corresponds one-to-one with EGD, D can be regarded as the equivalent spherical point of EGD. When the user turns his head, E represents the forward vector of the virtual camera after rotation, F represents the forward vector of the virtual camera before rotation, G represents the gaze direction provided by the eye tracker, and the angle α1 between B and E is determined by G. The angle α2 between E and F is the rotation degree of the virtual camera.

[0101] Step 3. Optimize the processing data

[0102] This method uses the Exponential Moving Average (EMA) algorithm to optimize the processing of data that supports eye ray tracing through the following steps A, B, and C.

[0103] Step A. Initialize and maintain the EGD list

[0104] Initialize an EGD list (Environment Gaze Direction List, EGDL) to store the EGD of each frame. Whenever a new EGD appears, add it to the end of the list. If the actual length of the list exceeds the preset maximum length of the list, the earliest EGD in the list is continuously removed. According to the range derived from the EMA theory, the preset maximum length of the list is usually set between 10-100.

[0105] Step B. Calculate the exponential moving average of all EGDs in the list

[0106] First, the first EGD in the list is used as the initial mean value (EMAMean). Then, for each EGD in the list, the mean value is updated in the loop that traverses the EGDL using the following formula:

[0107] EMA Mean=Smoothing Factor·EGDL i +(1-Smoothing Factor)·EMA Mean(2)

[0108] Among them, EGDL i is the i-th spatial gaze direction of EGDL in the traversal loop, and Smoothing Factor is the smoothing factor, which is calculated by the following formula:

[0109]

[0110] Among them, EMAConstant is the constant used to calculate EMA, which is usually set to 2. EGDL Count is the actual length of EGDL. After the traversal is completed, the optimized EMAMean can be calculated and used as the EGD used in each frame of VE. The EGD in the object selection stage and the object operation stage both use the optimized EMAMean.

[0111] Stage 2. Object selection stage

[0112] Sweep phase

[0113] Step 4. Scan for objects

[0114] Use EGD to scan and select objects such as Figure 4As shown, B represents the scanning object ray, the ball H represents the object to be selected, and the balls I and J represent other optional objects. The starting point of B is A, and the optimized EGD is used as the direction, and its length is the preset length. This method is applicable to a large range of VEs, and the preset length range of B is 0 to +∞. In the continuous scanning process, B and the optional objects and the objects to be selected generate intersections K, which are collectively referred to as scanning intersections. These intersections are not used to select objects. The dwell time is set to 600ms. When K stays on the optional objects and the objects to be selected for more than the preset dwell time, the highlight outline prompt effect will be triggered to inform the user of the object being stared at. After receiving the prompt information, the user can repeatedly press the right grab button to switch between the scanning stage and the precise selection stage.

[0115] Precision selection stage

[0116] Step 5. Turn on cursor operation

[0117] The user presses the right grab key to open the cursor and enter the precise selection stage, which includes the following steps A~E.

[0118] Step A. Display the cursor and the cursor moving range on the plane. Figure 5 In the figure, there is a rectangular plane L at a preset distance from the gaze origin A in the direction of the virtual camera's forward vector, which is used to draw the cursor icon N and the cursor movement range M on this plane. B is the scanning ray of the last frame, which will be converted into the object selection ray. When the center point of M coincides with the center point of N, they appear at O, which is the intersection of the scanning ray of the last frame and plane L.

[0119] Step B. Change the cursor position. After turning on the cursor, the EGDP algorithm is first executed to automatically correct the cursor position. After the preset algorithm execution time is reached, step 6 is executed to change the cursor position. Then, the movement of the cursor on the plane is controlled by the left joystick. At this time, the range of change of the cursor position is limited to the cursor movement range.

[0120] Step C. Switch the ray. After the plane and cursor are activated, the scanning ray is switched to the object selection ray B. Figure 6 As shown, the ray B starting from A and passing through the center point P of the cursor is the ray for selecting the object. The object to be selected H is highlighted, indicating that B intersects with the object. The intersection point K generated by the ray for selecting the object, the object to be selected and the optional object is used to select the object. The dwell time of the preset prompt triggered when gazing at the optional object and the object to be selected is changed to 0 seconds, and the prompt in the pre-selection is triggered in real time. The K generated by the ray for selecting the object and these objects are all regarded as the intersection points generated by the gaze behavior.

[0121] Step D: Limit the range of change of the ray direction of the selected object. The limit range is as follows: Figure 7The shown figure is like a light cone area Q. In the precise selection stage, since the rotation of the virtual camera is locked, the direction of the selected object ray is actually changed by the left joystick, and the change range of the direction is limited to the range of Q.

[0122] Step E. If the user is not satisfied with the current center point position of the cursor moving range, the user may press the right grab button again to return to the scanning stage.

[0123] Step 6. Automatically correct the cursor position

[0124] After turning on the cursor in step 5, the selected object ray passes through the center of the cursor. However, at this time, the ray may not intersect the selected object, so the cursor position needs to be corrected. This step can realize automatic correction of the cursor, such as Figure 8 As shown, R represents the selected object ray before executing step 6, and B represents the ray after executing step 6. S and N represent the cursors before and after executing step 6, respectively. After obtaining the EGD calculated by the EGDP algorithm, the gaze origin A is used as the ray starting point to emit an automatic correction ray toward the EGD. Point T is the intersection of the automatic correction ray and plane L. Finally, the cursor position is set to point T, which is the center point of N. Since the direction of the selected object ray is the ray direction from A through point N, the automatic correction operation of ray B is completed while the cursor is automatically corrected.

[0125] EGDP Algorithm

[0126] In the precise selection stage, the user manually controls the movement of the cursor to change the direction of the selection ray to complete the precise selection, which takes a certain amount of time and effort. The EGDP algorithm can predict the most likely gaze direction to help automatically correct the position of the cursor and then correct the direction of the selection ray, so that the ray can approach or hit the object to be selected, thereby improving the selection efficiency.

[0127] The implementation steps of the algorithm are as follows Fig. 9 As shown, after entering the precise selection stage, all the user's unprocessed spatial gaze directions (Unprocessed Environment Gaze Direction, UEGD) within the preset prediction time are saved, and the most likely UEGD is predicted. UEGD is the EGD that has not been processed by the EMA algorithm, that is, the result obtained after executing step 2. Step 6 of this method automatically calculates the position of the cursor based on the most likely UEGD calculated by the EGDP algorithm, and then corrects the direction of the selected object ray. The EGDP algorithm includes steps AD.

[0128] Step A. Initialize UEGDL and start recording UEGD

[0129] Initialize and save the list of UEGD (UEGD List, UEGDL) and the list of posterior probabilities. After entering the precise selection stage, immediately start recording the UEGD of each frame.

[0130] Step B. Stop recording UEGD and calculate the most likely UEGD

[0131] After the time of recording UEGD reaches the preset prediction time, the recording is stopped and the calculation of the most likely UEGD in UEGDL is started.

[0132] Step C. Calculate the posterior probability of each UEGD in UEGDL

[0133] Before the calculation begins, the most likely UEGD is initialized to a three-dimensional zero vector, and the maximum posterior probability is initialized to 0. Then, each UEGD in the UEGDL is traversed, their posterior probabilities are calculated, and added to the posterior probability list.

[0134] ① Calculate the mean value (Mean) of all UEGDs in UEGDL. The formula is as follows:

[0135]

[0136] Among them, x i is each UEGD in UEGDL, and UEGDL length is the actual length of UEGDL.

[0137] ② Calculate the covariance matrix (Covariance) of UEGDL, the formula is as follows:

[0138]

[0139] Among them, Mean is the calculation result of step ①.

[0140] ③Calculate the Mahalanobis distance between the currently traversed UEGD and the average value

[0141] Mahalanobis distance is a method of measuring the distance between data points, which takes into account the covariance of the data. M ) is calculated as:

[0142]

[0143] where x is the current round of UEGD in the loop that traverses UEGDL, and C -1 It is the inverse matrix of the calculation result of step ②.

[0144] ④ Calculate the posterior probability of the currently traversed UEGD, including I-III.

[0145] Ⅰ. Calculate the likelihood of the current UEGD.

[0146] Likelihood is a concept in probability theory that represents the likelihood of observing the current data given certain parameters. The calculation formula for calculating likelihood is:

[0147]

[0148] Among them, x is the UEGD of the current round in the loop traversing the UEGDL, k is the dimension of the UEGD, and since the direction is represented by a three-dimensional vector, k=3.

[0149] Substituting formula (6) and k=3 into formula (7), we can obtain the likelihood formula of the EGDP algorithm:

[0150]

[0151] Ⅱ. Calculate the prior probability of the currently traversed UEGD.

[0152] In statistics, "prior probability" refers to the initial estimate of the likelihood of a parameter before the data is observed. Before the data is observed, the EGDP algorithm assumes that all UEGDs in the UEGDL have an equal probability of being selected as the most likely UEGD, so the calculation formula for the prior probability is:

[0153]

[0154] III. Use Bayes’ rule to calculate the posterior probability of the currently traversed UEGD

[0155] In statistics, "posterior probability" refers to the probability distribution of a parameter given certain observed data. It is a measure of the likelihood of the parameter after the data is observed. The EGDP algorithm calculates the posterior probability using the following formula:

[0156]

[0157] The posterior probability of the currently traversed UEGD can be obtained from formula (3-10) and added to the list that stores the posterior probabilities.

[0158] Step D. Use the UEGD corresponding to the maximum a posteriori probability

[0159] If the calculated result of the posterior probability of the currently traversed UEGD is greater than the maximum posterior probability, the most likely UEGD is set as the currently traversed UEGD, and the maximum posterior probability is set as the posterior probability of the UEGD. After the traversal of UEGDL is completed, the UEGD corresponding to the maximum posterior probability is returned, that is, the most likely UEGD is obtained.

[0160] This algorithm can obtain the EGDP result set, which includes the most likely UEGD, the normalized maximum posterior probability, and a Boolean variable (Bool) indicating whether it is greater than the preset posterior probability threshold. The absolute value of the maximum posterior probability calculated in step III may be greater than 1. If the maximum posterior probability is to directly correspond to the possibility that the most likely UEGD is the central UEGD, the posterior probability needs to be normalized. For example, a maximum posterior probability of 0.5 corresponds to a 50% probability that the UEGD is the central UEGD. The normalized posterior probability requires the use of the previously saved list of posterior probabilities. Users of the OMEC method can decide whether to execute step 6 of the OMEC method based on Bool.

[0161] Step 7. Manually calibrate the cursor

[0162] If the selected object ray still does not intersect with the object to be selected after the automatic correction of the cursor position in step 6, the user controls the left joystick to manually correct the cursor position until an intersection is generated.

[0163] Step 8. Confirm the selection

[0164] In the precise selection stage, the user presses the right trigger button to confirm the selection, and then executes the following Fig.10 When the object to be selected is selected, the object operation phase is entered, and the object selection ray is restored to the scanning ray.

[0165] Phase 3. Object manipulation phase

[0166] Step 9. Use Virtual Object Operation Mode

[0167] This method uses a Virtual Object Operation Mode (VOOM) to help basic object operations. For the most common move, rotate and scale operations, they are all implemented by changing the position, rotation and size data of the object in the X, Y and Z dimensions in VE.

[0168] Taking moving objects as an example, since the engine software that builds VE can calculate the distance between the intersection of the ray and the object and the starting point of the ray, the object moving operation using VOOM is completed by changing the distance. Fig.11 As shown in the figure, H is the object to be moved, and distance 1 is the straight-line distance between H and A, which is called the object distance. With A as the center of the sphere and the object distance as the radius of the sphere, a sphere called the moving object sphere V is formed to represent the motion trajectory of the object in space. In VOOM, the moving object operation is divided into two parts: spherical moving operation and object distance change operation.

[0169] Spherical movement operation

[0170] The spherical translation operation means that the distance of the object remains unchanged, and the direction of H relative to A is determined by EGD. This process is equivalent to H moving on the surface of V.

[0171] Changing the distance of an object

[0172] The distance of the object is changed by increasing or decreasing the distance of H and A along the current direction of B. The spherical movement operation is controlled by the eye gaze method, while the operation of changing the object distance is completed by the manipulation controller. The user should manually control the three data X, Y and Z in the position attribute of the object, but now only needs to manually control the object distance data.

[0173] In short, the data that users need to change include three data of object distance, rotation degree and three data of size. VOOM regards each data as an operation dimension. The left and right arrow keys of the right joystick control the switching of operation dimensions, and the up and down arrow keys control the increase and decrease of the value of the current operation dimension data. The rate of increase and decrease of the value is determined by the user of this method according to the usage requirements of different scenarios. All types of operations involving changes in the numerical values ​​of virtual object attributes can be completed by using VOOM to expand the dimensions of the operation data, such as changing the transparency of the object or the script parameters of the object.

[0174] Step 10. Move the object

[0175] When using VOOM to move an object, this method uses eye gaze to complete the spherical movement of the object. Use the left and right arrow keys of the right joystick to switch to the operation dimension corresponding to the object distance, and then use the up and down arrow keys to change the object distance.

[0176] In order to avoid objects penetrating the model during movement, which may lead to abnormalities in the object movement operation, such as objects getting stuck in certain positions or areas, the object movement collision detection rules must be completed when moving virtual objects using this method.

[0177] Step 11. OMCD

[0178] This method uses an object movement collision detection rule (OMCD) to limit the movement of objects to prevent abnormal situations caused by penetration. Fig.12 As shown, Y is the OMCD ray, distance 1 and distance 2 are the object distances before and after calling OMCD, W is the collision body in VE, and X and H are the objects before and after calling OMCD. The OMCD rule includes steps A to C.

[0179] Step A. Collision Settings

[0180] Add a preset collision body to the object that needs collision detection in VE, and set the level to the preset collision level. At the same time, add rigid bodies to the selected objects and optional objects, and use gravity.

[0181] Step B. Emitting OMCD rays

[0182] With A as the starting point and EGD as the direction, an OMCD ray with a length equal to the distance of the object is emitted. The level of the object intersecting with the ray is set to the preset collision level. After that, the OMCD ray can only produce collision intersections with objects set to the preset level.

[0183] Step C. Take the following two response methods ① and ② depending on whether there is a collision intersection.

[0184] ① If there is no collision intersection, the user can freely operate the object to complete the spherical movement operation and change the object distance operation.

[0185] ② If there is a collision intersection, it means that the object collides with another collision body. At this time, the position of the object is set to the position of the collision point, and the object distance is updated. At the same time, the user is prohibited from increasing the object distance. Whether to allow the user to reduce the object distance is determined by the user of OMCD. The range of the object distance is 0 to +∞. The reason why it cannot be a negative number is to prevent the object from being moved out of the user's field of view.

[0186] Step 12. Rotate the object

[0187] When the user uses VOOM to rotate an object, click the left and right arrow keys on the right joystick to switch to the corresponding operation dimension when rotating the object, and then use the up and down arrow keys to increase or decrease the value of the corresponding operation dimension data.

[0188] Step 13. Scale the object

[0189] When the user uses VOOM to scale an object, click the left and right arrow keys on the right joystick to switch to the corresponding operation dimension when scaling the object, and then use the up and down arrow keys to increase or decrease the value of the corresponding operation dimension data.

[0190] Step 14. Release the object

[0191] After the user moves the object to the vicinity of the target placement position, he presses the left trigger button to release the object, completing the manipulation of the virtual object. Since the gravity property of the object is set, the object will fall after it is released until it encounters an object with a collision body. It can be seen that objects can be moved to areas that users cannot see through gravity relationships. This method needs to declare that OMCD is used to prevent abnormal situations caused by object penetration during the operation of the object. If OMCD is not used, VOOM can be used to move the object to any position in VE.

[0192] By using virtual reality engines such as Unity and Unreal to build an environment for manipulating virtual objects. First, connect the eye tracker component to the VR head-mounted display to collect the user's eye movement data. The user builds a virtual scene that meets his or her needs and adds collision settings to the objects that perform collision detection in the scene. Add a script to obtain eye tracker data in the virtual reality engine to execute step 1 of the OMEC method. Then add multiple scripts to execute steps 2 to 14 of the OMEC method. The specific implementation of the script content can be written accordingly according to the content of the OMEC method.

[0193] This solution can help with the task of manipulating virtual objects in virtual reality games, and players can use this solution to interact with objects in the virtual world. For example, object manipulation in puzzle games, prop manipulation in physical simulation games, and interaction with virtual objects in interactive story games to advance different plots.

[0194] In the virtual training and education environment, especially in those fields with more stringent requirements on operation accuracy and execution efficiency, trainees can use this solution to learn and manipulate various virtual objects, such as precision aerospace equipment, highly integrated microelectronic chips, various biological tissues and organs, dangerous biochemical agents, complex structure gene editing, bionic robots, etc.

[0195] In the field of VR-assisted architectural design, architectural designers can use this solution to accurately manipulate virtual building models, furniture and other elements.

[0196] In a VR remote collaboration scenario that supports multiple users, users can use this solution to jointly manipulate virtual objects, such as jointly editing a 3D model in a VR meeting.

[0197] When the space of the virtual environment is large or the range of movement is limited, the user cannot reach certain operable areas. At this time, it is difficult for the user to directly manipulate the virtual objects located in the area, but this solution can be used to complete such tasks.

Claims

1. A virtual object manipulation method based on eye movement and controller control, characterized in that: The following steps are involved: Step 1: Acquire data that supports eye ray tracking, which includes the gaze direction provided by the eye tracker and the rotation of the virtual camera representing the user's head movement; Step 2: Calculate the spatial gaze direction; Step 3: Optimize the processed data; Step 4: Scan to find the object; Step 5: Turn on the cursor operation; Step 6: Automatically correct the cursor position; Step 7: Manually correct the cursor position; If the object selection ray after automatically correcting the cursor position in step 6 still does not intersect with the object to be selected, the user controls the left joystick to manually correct the cursor position until an intersection is generated; Step 8: Confirm the object selection; When the object to be selected is selected, enter the object operation stage, and the object selection ray is restored to the scanning ray; Step 9: Use the virtual object operation mode; Step 10: Move the object; When using VOOM to move an object, use eye gaze to complete the spherical movement of the object; use the left and right arrow keys of the right joystick to switch to the operation dimension corresponding to the object distance, and then use the up and down arrow keys to change the object distance; Step 11: Use an object movement collision detection rule OMCD to limit the movement of the object to prevent abnormal situations caused by penetration; Step 12: Rotate the object; Step 13: Scale the object; Step 14: Release the object.

2. The method for manipulating a virtual object based on eye movement and controller control according to claim 1, characterized in that: In step 2, the spatial gaze direction is used to represent the user's viewing direction relative to the VE coordinate system, which is calculated by the following formula: Environment GazeDirection=R·GazeDirection (1) Among them, Environment Gaze Direction and Gaze Direction are 3D vectors, R is a 3x3 rotation matrix representing the rotation of the virtual camera; R converts the Gaze Direction vector into the Environment GazeDirection vector to reflect the user's actual gaze direction in VE; when the relevant parameters in VE are set to |GazeDirection|=1 and |R|=1, |Environment Gaze Direction|=1.

3. The method for manipulating a virtual object based on eye movement and controller control according to claim 1, characterized in that: The step 3 comprises: Step 31: Initialize and maintain the EGD list Initialize an EGD list EGDL to store the EGD of each frame; whenever a new EGD appears, add it to the end of the list; set the preset maximum length of the list between 10-100, if the actual length of the list exceeds the preset maximum length of the list, continuously remove the earliest EGD; Step 32: Calculate the exponential moving average of all EGDs in the list; First, take the first EGD in the list as the initial average EMA Mean; for each EGD in the list, use the following formula to update the average in the loop that traverses the EGDL: EMA Mean=Smoothing Factor·EGDL i +(1-Smoothing Factor)·EMA Mean(2) Among them, EGDL i is the i-th spatial gaze direction of EGDL in the traversal loop, and Smoothing Factor is the smoothing factor, which is calculated by the following formula: Among them, EMAConstant is the constant used to calculate EMA; EGDL Count is the actual length of EGDL; after the traversal, the optimized EMA Mean is calculated and used as the EGD used in each frame in VE; the EGD in the object selection stage and the object operation stage both use the optimized EMA Mean.

4. The method for manipulating a virtual object based on eye movement and controller control according to claim 1, characterized in that: The step 5 specifically includes: Step 51: Displaying a cursor and a cursor moving range on the plane; Step 52: Change the cursor position; after turning on the cursor, first execute the EGDP algorithm and automatically correct the cursor position. After reaching the preset algorithm execution time, execute step 6 to change the cursor position. Then, the movement of the cursor on the plane is controlled by the left joystick. At this time, the changeable range of the cursor position is limited to the cursor movement range. Step 53: Switching rays; after the plane and the cursor are activated, the scanning ray is switched to the object selection ray B; Step 54: Limit the range of change of the ray direction of the selected object; Step 55: If the user is not satisfied with the current center point position of the cursor moving range, press the right grab button again to return to the scanning stage.

5. The method for manipulating a virtual object based on eye movement and controller control according to claim 1, characterized in that: The step 6 comprises: Step 61: Initialize UEGDL and start recording UEGD Initialize the list UEGDL that saves UEGD and the list of posterior probabilities; after entering the precise selection phase, immediately start recording the UEGD of each frame; Step 62: Stop recording UEGD and calculate UEGD After the time of recording UEGD reaches the preset prediction time, stop recording and start calculating the most likely UEGD in UEGDL; Step 63: Calculate the posterior probability of each UEGD in UEGDL Before the calculation begins, the most likely UEGD is initialized as a three-dimensional zero vector, and the maximum posterior probability is initialized to 0; then, each UEGD in the UEGDL is traversed, their posterior probabilities are calculated, and added to the posterior probability list; Step 64: Use the UEGD corresponding to the maximum posterior probability If the calculated result of the posterior probability of the currently traversed UEGD is greater than the maximum posterior probability, the most likely UEGD is set to the currently traversed UEGD, and the maximum posterior probability is set to the posterior probability of the UEGD; after the traversal of UEGDL is completed, the UEGD corresponding to the maximum posterior probability is returned, that is, the most likely UEGD is obtained.

6. The method for manipulating a virtual object based on eye movement and controller control according to claim 5, characterized in that: The step 63 comprises: Step 631: Calculate the average value Mean of all UEGDs in UEGDL, the formula is as follows: Among them, x i is each UEGD in UEGDL, UEGDL length is the actual length of UEGDL; Step 632: Calculate the covariance matrix Covariance of UEGDL, the formula is as follows: Among them, Mean is the calculation result of step ①; Step 633: Calculate the Mahalanobis distance between the currently traversed UEGD and the average value Mahalanobis distance D in EGDP M The calculation formula is: where x is the current round of UEGD in the loop that traverses UEGDL, and C -1 is the inverse matrix of the calculation result of step 632; Step 634: Calculate the posterior probability of the currently traversed UEGD.

7. The method for manipulating a virtual object based on eye movement and controller control according to claim 6, characterized in that: The step 634 includes: Step 6341: Calculate the likelihood of the current UEGD; The calculation formula for calculating likelihood is: (7) Where x is the UEGD of the current round in the loop traversing the UEGDL, k is the dimension of the UEGD, and since the direction is represented by a three-dimensional vector, k = 3; Substituting formula (6) and k=3 into formula (7), we get the likelihood formula of the EGDP algorithm: Step 6342: Calculate the prior probability of the currently traversed UEGD; The EGDP algorithm assumes that all UEGDs in the UEGDL have equal probability of being selected as the most likely UEGD, so the calculation formula for the prior probability is: Step 6343: Use the Bayesian rule to calculate the posterior probability of the currently traversed UEGD The EGDP algorithm calculates the posterior probability using the following formula: The posterior probability of the currently traversed UEGD is obtained by formula (10) and added to the list of stored posterior probabilities.

8. The method for manipulating a virtual object based on eye movement and controller control according to claim 1, characterized in that: The step 9 uses a virtual object operation mode VOOM to assist basic object operations; the object moving operation is divided into a spherical moving operation and an object distance changing operation; the spherical moving operation means that the object distance remains unchanged, and the direction of H relative to A is determined by EGD; this process is equivalent to H moving on the surface of V; the object distance changing operation is specifically: increasing or decreasing the distance between H and A along the current direction of B to change the object distance; the spherical moving operation is controlled by eye gaze, while the object distance changing operation is completed by manipulating the controller; the user should originally manually control the three data X, Y and Z in the object's position attributes, but now only needs to manually control one data, the object distance.

9. The method for manipulating a virtual object based on eye movement and controller control according to claim 1, characterized in that: The step 11 specifically includes: Step 111: Collision settings; add a preset collision body for the object that needs collision detection in VE, and set the level to the preset collision level; at the same time, add a rigid body to the selected object and the optional object, and use gravity; Step 112: emitting an OMCD ray; emitting an OMCD ray with a length equal to the distance of the object from A as the starting point and EGD as the direction; setting the level of the object intersecting with the ray to the preset collision level; and then, the OMCD ray can only generate collision intersections with the object set to the preset level; Step 113: Take the following approach based on whether there is a collision intersection: Step 1131: If there is no collision intersection, the user freely operates the object to complete the spherical movement operation and the object distance change operation; Step 1132: If there is a collision intersection, it means that the object collides with other collision bodies; at this time, the position of the object is set to the position of the collision point, and the object distance is updated; at the same time, the user is prohibited from increasing the object distance; whether the user is allowed to reduce the object distance is determined by the user of the OMCD; the range of the object distance is 0 to +∞, and the reason why it cannot be a negative number is to prevent the object from being moved outside the user's field of view.

10. The method for manipulating a virtual object based on eye movement and controller control according to claim 1, characterized in that: The step 14 specifically includes: after the user moves the object to the vicinity of the target placement position, the user presses the left trigger button to release the object, thereby completing a manipulation of the virtual object.