Multi-user virtual reality scene redirection walking alignment method based on state recovery
By introducing the concept of state recovery in multi-user virtual reality scenes, calculating the state error between the user and the interactive target, and dynamically adjusting the user's walking path, the problem of alignment between the user and the interactive object is solved, and the sense of interaction consistency in the virtual and physical environments is improved. and user experience.
Patent Information
- Application Number
- CN202410567570.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-09
- Publication Date
- 2024-08-27
AI Technical Summary
Existing redirected walking technology ignores the alignment problem between users and interactive objects in multi-user virtual reality scenarios, resulting in state differences between the virtual and physical environments and affecting the user's immersion and interactive experience.
A redirected walking alignment method for multi-user virtual reality scenes based on state recovery is adopted. By calculating the distance error and angle error between the user and the interactive target, the user's position and direction are dynamically adjusted to achieve alignment in the virtual and physical environments, reduce collisions and Improve interaction perception.
It effectively avoids collisions between users and physical boundaries and interactive targets, reduces position and angle errors in virtual and physical spaces, and improves users' immersion and interactive experience.
Smart Images

Figure CN118550406A
Abstract
Description
Technical Field
[0001] The invention belongs to the field of virtual reality, and in particular relates to a redirection walking alignment method of a multi-user virtual reality scene based on state recovery. Background Art
[0002] With the increasing maturity of virtual reality (VR) technology, people's experience in virtual tourism, entertainment games, and digital social interaction has been significantly improved. The VR environment allows users to interact with objects in the virtual environment or with other users, providing an unprecedented immersive experience. However, ensuring that users can move freely in limited physical space is still a major technical challenge. To this end, researchers have proposed a redirected walking technology, which adjusts the user's path without the user's perception, allowing the user to walk freely in a limited physical space. In the virtual reality (VR) experience, users usually wear a head-mounted display (HMD), which changes their perception of the surrounding environment. When visual input conflicts with other sensory signals of the body, visual perception usually plays a dominant role. If this perceptual conflict is controlled within a range that the user is difficult to perceive, they will not be aware of the difference between visual and physical perception, which not only enhances the sense of immersion, but also effectively avoids potential collisions between users and obstacles.
[0003] However, most of the current redirected walking solutions focus on how to avoid collision problems in virtual roaming, especially reducing collisions between users and physical boundaries and other users, but these technologies often ignore user interaction and collaboration. With the rise of the concept of the metaverse, virtual reality has great application prospects in virtual games, simulation exercises and other fields. In this virtual space shared by multiple users, enhancing the user's interactive perception will further enhance the user's sense of immersion. However, to achieve interaction and enhance the perception of interaction, it is necessary to achieve alignment between the user and the interactive object. Therefore, it is necessary to develop new algorithms to adjust the user's position and direction in the virtual and physical environments in real time, so that the user can reach the interactive state in both the virtual and physical environments at the end of the walking process, so as to improve the user's sense of consistency between the virtual and the real, which is not considered by the existing algorithms. Summary of the invention
[0004] The present invention aims to overcome the above-mentioned shortcomings of the prior art and provides a multi-user redirected walking alignment method based on state recovery in a virtual reality scene.
[0005] When a user interacts with a static object in a virtual space, the algorithm hopes that the user can also interact with it in the physical space. Therefore, the algorithm introduces the concept of state difference, which includes distance error (DE) and angle error (AE). By reducing the difference in state between the virtual environment and the physical environment, the distance and angle of the interactive object to the user are dynamically adjusted, so that the end user can interact with the interactive object in both the virtual and real space. The algorithm calls this process state recovery, and the gain of guiding the user to redirect walking is obtained through state recovery to guide the user to walk. At the same time, while achieving a good alignment effect, it is necessary to minimize the collision between the user and the physical boundary and the user as much as possible to improve the user experience.
[0006] The state recovery-based multi-user virtual reality scene redirection walking alignment method of the present invention comprises the following steps:
[0007] (1) Obtain the user's path in the virtual space, analyze the user's state with the interactive target in the virtual space and physical space, and calculate the distance error and angle error between the user and the interactive target;
[0008] Classify according to the distance error between the user and the interactive target. If there is no distance error, proceed to step (2); otherwise, proceed to step (3);
[0009] (2) If there is no distance error, the angle error is reduced first and the gain is calculated to deflect the user;
[0010] (3) If there is a distance error, prioritize reducing the distance error before reducing the angle error. Categorize and discuss based on whether the user is going straight or turning in the virtual space, and select an appropriate strategy to calculate the gain of guiding the user;
[0011] (4) The calculated gain is used to guide the user to perform redirected walking.
[0012] (5) Reset when a user collides with a boundary or between users.
[0013] In order to solve the problem of aligning users with interactive objects in the same physical space and virtual space in a multi-user virtual reality scene, the present invention proposes a multi-user redirection alignment method suitable for a dynamic environment. The present invention introduces the concept of state recovery, calculates the optimal gain for guiding users by analyzing the state of the interactive object to the user in the virtual space and the physical space, and performs state recovery. The method can not only effectively avoid collisions, but also enable users to reach an aligned state, reduce the distance and angle errors between the user and the interactive target in the virtual space and the physical space, and enable users to interact with the interactive object in both the virtual and physical spaces.
[0014] The advantages of the present invention are that it can reduce the position error and angle error between the user and the static interaction target in the virtual space and the physical space while ensuring the minimum number of collisions, thereby optimizing the user experience and improving the sense of interaction. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 is a flow chart of the method of the present invention.
[0016] Figure 2 It is a schematic diagram of the state when the distance loss of the user in the virtual environment (VE) and the physical environment (PE) is zero.
[0017] Figure 3 It is a schematic diagram of the state when the distance loss of the user in the virtual environment (VE) and the physical environment (PE) is not zero.
[0018] Figure 4 It is a schematic diagram showing that when a user walks straight in a virtual environment (VE), the physical environment (PE) turns the user into a fan shape by manipulating the gain. DETAILED DESCRIPTION
[0019] The technical solution of the present invention is further described below in conjunction with the accompanying drawings.
[0020] The redirected walking alignment method for a multi-user virtual reality scene based on state recovery includes the following steps:
[0021] (1) Obtain the user's path in the virtual space, analyze the user's state with the interactive target in the virtual space and physical space, and calculate the distance error and angle error between the user and the interactive target.
[0022] The interactive state is considered achieved when the virtual user can interact with an object in the virtual environment and at the same time can interact with the corresponding set of objects in the physical environment (PE). The closer the user's state in the virtual environment is to their state in the physical environment (PE), the greater the possibility of simultaneous interaction. This difference is called state loss. Figure 2 It shows the status of users in the virtual environment (VE) and the physical environment (PE).
[0023] The cube represents the final target that the user needs to interact with. p Represents the direction of movement in the physical environment (PE), dir v represents the moving direction in the virtual environment (VE). Then the user's state in the physical environment and the virtual environment can be represented by {d p ,θ p} and {d v ,θ v}. The state loss is quantified by two main parts: distance lossdis And angle loss loss θ , calculated as follows:
[0024] loss=(d v -d p ) 2 +(θ v -θ p ) 2 (1)
[0025] Where d represents the distance between the user and the interactive target in the virtual environment (VE) or physical environment (PE), and θ represents the angle between the user's movement direction in the virtual environment (VE) or physical environment (PE) and the line between the user and the interactive target. When θ < 0, it means moving in a clockwise direction relative to the line between the user and the target; when θ > 0, it means moving in a counterclockwise direction.
[0026] (2) When d p =d v When, that is, the distance loss loss dis is zero. Figure 2 As shown, in this case, the method will give priority to reducing the angle loss loss θ In order to reduce the angle loss during the in-situ rotation process θ , using the rotation gain g r To minimize θ p and θ v The target is θ p =θ v . Rotation gain g r The calculation formula is as follows:
[0027]
[0028] Among them, minG r and maxG r represents the minimum and maximum rotation gain, Ro represents the rotation degree, Ro<0 represents clockwise rotation, and Ro>0 represents counterclockwise rotation. For straight-line walking, this method uses the state of the virtual user at the current time t Calculate the state of the virtual user at the next time t+1 In order to minimize the angle loss θ , in the case of walking, use the translation gain g t and the curvature gain g c More suitable. According to the curvature radius R c The maximum deviation angle maxRo can be calculated, where the calculation formula of maxRo is:
[0029]
[0030] Where L is the step size of each sampling interval. The curvature gain g c The calculation formula is
[0031]
[0032] At time t, d p =d v , at time t+1, and In order to minimize the loss, it is also necessary to use the translation gain g t ,make As close as possible Translation gain g t The calculation formula is:
[0033]
[0034] Among them, maxG t Indicates the maximum translation gain, minG t Indicates the minimum translation gain.
[0035] (3) When d p ≠d v When Figure 3 As shown, at this time loss dis ≠0. As analyzed above, the distance loss dis The priority is greater than the angle loss loss θ The algorithm prioritizes minimizing the distance loss loss dis , and d should be reduced p With d v The difference between the user's state in the virtual environment (VE) and the physical environment (PE) is as follows: Figure 3 As shown. During the rotation in place, d p and d v Will not change, that is, the distance loss loss dis Will not change. In order to reduce the angle loss θ , the algorithm uses the rotation gain g r As much as possible, p =θ v , rotation gain g r The calculation formula is as follows:
[0036]
[0037] When the user moves in a straight line, in order to reduce state loss, the translation gain g is needed t and the curvature gain g cTo avoid affecting the user's roaming experience, the translation gain g t The calculation method is the same as in (2), and the curvature gain g c The calculation formula is as follows:
[0038] g c = clamp(θ p ,-maxRo,maxRo)(6)
[0039] When the user walks straight in the virtual environment (VE), the physical environment (PE) can make the user turn into a fan by manipulating the gain, such as Figure 4 Here, the minimum and maximum travel distances under different translation gains are represented by r and R, respectively, r = minG t ×L and R=maxG t ×L,maxG t Indicates the maximum translation gain, minG t represents the minimum translation gain, where L is the travel distance per 2 sampling intervals.
[0040] For users traveling straight, the position relationship of users will be changed, thus affecting the status of other users. Therefore, the users traveling straight are placed in the band calculation queue Cal[], and finally the users to be calculated and their sectors in the queue are traversed to select the gain set Gains with the smallest total system loss LOSS, and finally the user's position and motion status are redirected through the gain set Gains.
[0041] (4) The calculated gain is used to guide the user to perform redirected walking.
[0042] (5) When a user collides with the boundary of the physical environment (PE) during roaming, the system must adjust the user's direction of movement to prevent further collisions. The present invention uses the concept of artificial potential field (APF) to guide users away from the boundary of the physical environment (PE) and towards the interactive target. In terms of direction resetting, a "2:1 steering" mechanism is adopted, that is, for every unit rotation of the user in the physical environment (PE), the rotation amplitude in the virtual environment (VE) will double. This method ensures that the user's movement direction in the physical environment (PE) is ultimately consistent with the artificial potential force acting on them. When a collision occurs between users sharing the physical environment (PE), the system first adjusts the user's movement direction based on the user's state. <d p ,θ p >、 <d v ,θ v>Calculate the state error of each user. Then reset the user with the larger state error. If the state error of two users is the same, the system will prioritize resetting the user with the larger distance error. If the distance error is also the same, the user with the larger digital identifier is selected for reset. The direction reset after collision again uses the artificial potential field (APF) principle, which is exactly the same as the boundary collision reset method.
[0043] The contents described in the embodiments of this specification are merely an enumeration of the implementation forms of the inventive concept. The protection scope of the present invention should not be regarded as limited to the specific forms described in the embodiments. The protection scope of the present invention also extends to equivalent technical means that can be conceived by those skilled in the art based on the inventive concept.
Claims
1. A redirected walking alignment method for a multi-user virtual reality scene based on state recovery, comprising the following steps: (1) Obtain the user's path in the virtual space, analyze the user's state with the interactive target in the virtual space and physical space, and calculate the distance error and angle error between the user and the interactive target; Classify according to the distance error between the user and the interactive target. If there is no distance error, proceed to step (2); otherwise, proceed to step (3); (2) If there is no distance error, the angle error is reduced first and the gain is calculated to deflect the user; (3) If there is a distance error, give priority to reducing the distance error, then reducing the angle error; classify and discuss based on whether the user is going straight or turning in the virtual space, and select an appropriate strategy to calculate the gain of guiding the user; (4) guiding the user to redirect walking through the calculated gain; (5) Reset when a user collides with a boundary or between users.
2. The redirection walking alignment method for a multi-user virtual reality scene based on state recovery as claimed in claim 1, characterized in that: Step (1) specifically includes: the user's state in the physical environment and the virtual environment are represented by {d p ,θ p } and {d v ,θ v }; the state loss is quantified by two parts: distance loss loss dis And angle loss loss θ , calculated as follows: loss=(d v -d p ) 2 +(θ v -θ p ) 2 (1) Where d represents the distance between the user and the interactive target in the virtual environment (VE) or physical environment (PE), and θ represents the angle between the user's movement direction in the virtual environment (VE) or physical environment (PE) and the line between the user and the interactive target; when θ < 0, it means moving in a clockwise direction relative to the line between the user and the target; when θ > 0, it means moving in a counterclockwise direction.
3. The redirection walking alignment method for a multi-user virtual reality scene based on state recovery as claimed in claim 1, characterized in that: Step (2) specifically includes: When p =d v When, that is, the distance loss loss dis Zero, giving priority to reducing angle loss θ ; In order to reduce the angle loss during the in-situ rotation θ , using the rotation gain g r To minimize θ p and θ v The target is θ p =θ v ; Rotation gain g r The calculation formula is as follows: Among them, minG r and maxG r represents the minimum and maximum rotation gain, Ro represents the rotation degree, Ro<0 represents clockwise rotation, and Ro>0 represents counterclockwise rotation; for straight line walking, according to the state of the virtual user at the current time t Calculate the state of the virtual user at the next time t+1 In order to minimize the angle loss θ , in the case of walking, use the translation gain g t and the curvature gain g c More suitable; according to the curvature radius R c The maximum deviation angle maxRo can be calculated, where the calculation formula of maxRo is: Where L is the step size of each sampling interval; the curvature gain g c The calculation formula is At time t, d p =d v , at time t+1, and changes; in order to minimize the loss, it is also necessary to use the translation gain g t ,make As close as possible Translation gain g t The calculation formula is: Among them, maxG t Indicates the maximum translation gain, minG t Indicates the minimum translation gain.
4. The redirection walking alignment method for a multi-user virtual reality scene based on state recovery as claimed in claim 1, characterized in that: Step (3) specifically includes: When p ≠d v When dis ≠0, distance loss dis The priority is greater than the angle loss loss θ Priority; prioritize minimizing distance loss loss dis , and d should be reduced p With d v The difference between the virtual environment (VE) and the physical environment (PE) during the user's rotation in situ, d p and d v Will not change, that is, the distance loss loss dis Will not change; in order to reduce the angle loss loss θ , using the rotation gain g r As much as possible, p =θ v , rotation gain g r The calculation formula is as follows: When the user moves in a straight line, in order to reduce state loss, the translation gain g is needed t and the curvature gain g c To avoid affecting the user's roaming experience, the translation gain g t The calculation method is the same as in step (2), and the curvature gain g c The calculation formula is as follows: g c =clamp(θ p (-maxRo) maxRo) (6) When the user walks straight in the virtual environment (VE), the physical environment (PE) can transform the user into a fan shape by manipulating the gain. The minimum and maximum walking distances under different translation gains are represented by r and R, respectively, r = minG t ×L and R=maxG t ×L,maxG t Indicates the maximum translation gain, minG t represents the minimum translation gain, where L is the walking distance per 2 sampling intervals; For users traveling straight, the position relationship of the users will be changed, thus affecting the status of other users; therefore, the users traveling straight are placed in the band calculation queue Cal[], and finally the users to be calculated and their sectors in the queue are traversed, and the gain set Gains with the smallest system total loss LOSS is selected, and finally the user's position and motion status are redirected through the gain set Gains.
5. The redirection walking alignment method for a multi-user virtual reality scene based on state recovery as claimed in claim 1, characterized in that: Step (5) specifically includes: The concept of artificial potential field (APF) is used to guide users away from the boundary of the physical environment (PE) and towards the interactive target. In terms of direction resetting, a "2:1 steering" mechanism is adopted, that is, for every unit rotation of the user in the physical environment (PE), the rotation amplitude in the virtual environment (VE) will double, ensuring that the user's movement direction in the physical environment (PE) is ultimately consistent with the artificial potential force acting on them. When a collision occurs between users sharing the physical environment (PE), the user's state is first reset according to the user's state. <d p ,θ p >、 <d v ,θ v >Calculate the state error of each user, and then reset the user with the larger state error; if the state errors of two users are the same, reset the user with the larger distance error first; if the distance errors are also the same, select the user with the larger digital identifier for reset; the direction reset after the collision again adopts the artificial potential field (APF) principle.
Citation Information
Cited By
Virtual reality translation gain threshold expansion method based on telescope type field angle transformation
CN120949441A
