Virtual reality transmission method and system, electronic equipment, storage medium and product
By constructing a target potential field and dynamically adjusting the target point in virtual reality teleportation, the problem of lack of social awareness in multi-person environments in virtual reality teleportation methods is solved, realizing the social rationality and comfort of users in multi-person environments.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- TSINGHUA UNIVERSITY
- Filing Date
- 2026-01-09
- Publication Date
- 2026-05-12
AI Technical Summary
Virtual reality teleportation methods lack social awareness in multi-person environments, causing users to abruptly intrude into others' personal spaces, triggering discomfort and social anxiety.
By acquiring the current location of the target user and other users around them in the virtual environment, a target potential field is constructed, and the restricted areas of other users are determined based on this potential field. The teleportation target point is dynamically adjusted to avoid the restricted areas, and spatial movement is performed.
This effectively prevents target users from abruptly intruding into the personal space of others in a multi-person virtual reality environment, thereby improving the social rationality of the transmission and the user experience.
Smart Images

Figure CN122019870A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of virtual reality technology, and in particular to a virtual reality transmission method, system, electronic device, storage medium and product. Background Technology
[0002] Virtual reality teleportation allows a user's avatar in a virtual environment to be instantly moved to a selected location as needed, without requiring the user to actually walk in physical space. However, in multi-person environments, virtual reality teleportation methods lack social awareness, which can easily lead to users abruptly intruding into others' personal spaces, causing discomfort and social anxiety. Summary of the Invention
[0003] This application provides a virtual reality transmission method, system, electronic device, storage medium, and product to solve the problems in related technologies where virtual reality transmission methods lack social awareness in multi-person environments, causing users to abruptly intrude into others' personal spaces, leading to discomfort and social anxiety.
[0004] The first aspect of this application provides a virtual reality teleportation method, comprising the following steps: obtaining the current positions of a target user and other users around the target user in a virtual environment; constructing a target potential field based on the current positions of the target user and other users, and determining the restricted areas of other users based on the target potential field and the target teleportation position of the target user; evaluating and adjusting the target teleportation position based on the restricted areas, and in the adjustment, ensuring that the actual teleportation target point avoids the restricted areas, and performing spatial movement from the current position of the target user to the actual teleportation target point.
[0005] Optionally, constructing a target potential field based on the current locations of the target user and other users includes: calculating the spatial distance between the target user and other users based on their current locations, and obtaining preset interpersonal distance parameters; identifying the mapping relationship between spatial distance and potential energy value in the preset interpersonal distance parameters, wherein the mapping relationship is inversely proportional to the spatial distance and potential energy value; and constructing the target potential field based on the mapping relationship between spatial distance and potential energy value.
[0006] Optionally, determining the restricted area for other users based on the target potential field and the target user's target transmission location includes: obtaining the potential energy values of the target user at the current location and the target transmission location from the target potential field; calculating the expected energy cost of the target user moving to the target transmission location based on the potential energy values of the target user at the current location and the target transmission location; and determining the restricted area based on the relationship between the expected energy cost and the preset energy budget.
[0007] Optionally, the target transmission position is evaluated and adjusted based on the restricted area, including: identifying whether the target transmission position is in the restricted area; if the target transmission position is not in the restricted area, the target transmission position is determined to be valid and the target transmission position is taken as the actual transmission target point; if the target transmission position is in the restricted area, the target transmission position is determined to be invalid, and at least one adjustment of the target transmission position, namely directional clipping transmission and boundary adsorption transmission, is performed based on the target potential field and the restricted area to obtain the adjusted actual transmission target point.
[0008] Optionally, the directional clipping transmission adjustment method includes: when the target transmission position is invalid, extending the ray along the direction indicated by the user controller; obtaining candidate intersection points between the ray and the boundary of the restricted area; calculating the first actual distance between the candidate intersection point and the boundary of the restricted area; and selecting the candidate intersection point with the smallest first actual distance as the actual transmission target point.
[0009] Optionally, the adjustment method corresponding to boundary adsorption transmission includes: when the target transmission position is invalid, searching for candidate points on the boundary of the restricted area; calculating the second actual distance between the candidate point and the target transmission position; and selecting the candidate point with the smallest second actual distance as the actual transmission target point.
[0010] A second aspect of this application provides a virtual reality teleportation system, comprising: an acquisition module for acquiring the current positions of a target user and other users around the target user in a virtual environment; a restriction module for constructing a target potential field based on the current positions of the target user and other users, and determining a restriction area for other users based on the target potential field and the target teleportation position of the target user; and an adjustment module for evaluating and adjusting the target teleportation position based on the restriction area, wherein the adjustment causes the actual teleportation target point to avoid the restriction area, and performs spatial movement from the target user's current position to the actual teleportation target point.
[0011] A third aspect of this application provides an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the virtual reality transmission method as described in the above embodiments.
[0012] A fourth aspect of this application provides a computer-readable storage medium having a computer program or instructions stored thereon, which, when executed, implement the virtual reality transmission method as described in the above embodiments.
[0013] A fifth aspect of this application provides a computer program product, including a computer program or instructions, which, when executed, implement the virtual reality transmission method as described in the above embodiments.
[0014] Therefore, this application has at least the following beneficial effects: This application's embodiments can obtain the current positions of a target user and other users in a virtual environment. A target potential field is constructed based on the current positions of the target user and other users. The restricted areas of other users are determined by combining the target user's target teleportation position with these positions. Subsequently, the target teleportation position is evaluated and adjusted based on these restricted areas, ensuring the actual teleportation target point avoids the restricted areas. Finally, spatial movement from the target user's current position to the actual teleportation target point is executed. By constructing a target potential field based on the user's current position and dynamically adjusting the teleportation target point to avoid others' restricted areas, this effectively prevents the target user from abruptly intruding into others' personal spaces in a multi-person virtual reality environment, improving the social rationality of teleportation and user experience. Therefore, it solves the problems of lack of social awareness in multi-person virtual reality teleportation methods in related technologies, which lead to users abruptly intruding into others' personal spaces, causing discomfort and social anxiety.
[0015] Additional aspects and advantages of this application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of this application. Attached Figure Description
[0016] The above and / or additional aspects and advantages of this application will become apparent and readily understood from the following description of the embodiments taken in conjunction with the accompanying drawings, wherein: Figure 1 This is a flowchart of a virtual reality transmission method provided according to an embodiment of this application; Figure 2 This is a flowchart of a virtual reality user location acquisition process according to an embodiment of this application; Figure 3 This is a flowchart of virtual reality teleportation target evaluation and adjustment according to an embodiment of this application; Figure 4 This is a virtual reality transmission control flowchart provided according to an embodiment of this application; Figure 5 This is a schematic diagram of the structure of a virtual reality transmission system provided according to an embodiment of this application; Figure 6 This is a schematic diagram of the structure of an electronic device provided according to an embodiment of this application. Detailed Implementation
[0017] The embodiments of this application are described in detail below. Examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain this application, and should not be construed as limiting this application.
[0018] Virtual reality technology provides an immersive 3D interactive experience through devices such as head-mounted displays. However, game controllers rely on gamepads or joysticks to move the virtual avatar. Although no physical movement is required, the inconsistency between visual and proprioceptive perception can easily cause motion sickness. While teleportation technology can avoid motion sickness, instantaneous movement can disrupt spatial continuity, resulting in an unnatural experience.
[0019] To enhance realism, solutions like omnidirectional treadmills and stationary walking allow users to drive virtual movement through actual actions. However, the former is bulky and costly, while the latter is tiring and has limited speed. In contrast, real walking in physical space is the most natural, but it's constrained by physical boundaries; if these boundaries are crossed, the system must interrupt the experience to ensure safety. RDW (Redirected Walking) technology alleviates this problem by fine-tuning virtual paths, allowing users to explore larger virtual areas within a limited physical space. However, the range of adjustments is limited by human perception thresholds, and the effect has an upper limit. Furthermore, in shared virtual environments, traditional teleportation methods lack social awareness; users may abruptly intrude into others' personal spaces, causing discomfort and social anxiety.
[0020] The following description, with reference to the accompanying drawings, describes a virtual reality teleportation method, system, electronic device, storage medium, and product according to embodiments of this application. Addressing the problem mentioned in the background art where virtual reality teleportation methods lack social awareness in multi-person environments, leading to users abruptly intruding into others' personal spaces and causing discomfort and social anxiety, this application provides a virtual reality teleportation method. In this method, the current positions of the target user and other users in the virtual environment are obtained. A target potential field is constructed based on the current positions of the target user and other users. The restricted areas of other users are determined by combining the target user's target teleportation position. Subsequently, the target teleportation position is evaluated and adjusted based on these restricted areas, ensuring that the actual teleportation target point avoids the restricted areas. Finally, spatial movement from the target user's current position to the actual teleportation target point is executed. By constructing a target potential field based on the user's current position and dynamically adjusting the teleportation target point to avoid others' restricted areas, the method effectively prevents target users from abruptly intruding into others' personal spaces in multi-person virtual reality environments, improving the social rationality of teleportation and user experience. Thus, it solves the problem of virtual reality teleportation methods lacking social awareness in multi-person environments, leading to users abruptly intruding into others' personal spaces and causing discomfort and social anxiety.
[0021] Specifically, Figure 1 This is a flowchart of a virtual reality transmission method provided in an embodiment of this application.
[0022] like Figure 1 As shown, the virtual reality transmission method includes the following steps: In step S101, the current positions of the target user and other users around the target user in the virtual environment are obtained.
[0023] The target user refers to the user who is currently initiating the transmission operation; other users around the target user refer to other online users in the virtual environment who are located in the vicinity of the target user and may be affected by its transmission.
[0024] It is understood that the embodiments of this application can obtain the current location of the target user and other users around them, thereby providing a spatial data basis for the subsequent construction of the potential field and determination of the restricted area, and ensuring that the transmission process has the ability to perceive the environment of multiple people.
[0025] Specifically, such as Figure 2 As shown, the specific process for obtaining the current location of the target user and other users around the target user in the virtual environment includes: In step 201, raw positioning and tracking data, including position, rotation and speed information, is received from virtual reality hardware, such as a head-mounted device, controller and so on.
[0026] In step 202, the raw data is converted into unified three-dimensional coordinates in the virtual environment, and the positions of the target user and other users around the target user are synchronized in real time.
[0027] In step 203, the processed current location of the target user and the latest location set of all other users around the target user are used as the basic input for potential field construction and evaluation.
[0028] In step S102, a target potential field is constructed based on the current positions of the target user and other users, and the restricted areas of other users are determined based on the target potential field and the target transmission position of the target user.
[0029] Among them, the target potential field refers to the potential energy distribution field constructed based on the current positions of the target user and other users; the target transmission location refers to the desired transmission landing point specified by the target user through interaction.
[0030] It is understood that the embodiments of this application can construct a target potential field based on the current location of the target user and other users, and determine the restricted area of other users in combination with the target transmission location, quantifying the social distance rule into a calculable exclusion area, providing a basis for subsequent avoidance adjustments.
[0031] In some embodiments, constructing a target potential field based on the current locations of the target user and other users includes: calculating the spatial distance between the target user and other users based on their current locations, and obtaining a preset interpersonal distance parameter; identifying the mapping relationship between spatial distance and potential energy value in the preset interpersonal distance parameter, wherein the mapping relationship is inversely proportional to the spatial distance and potential energy value; and constructing the target potential field based on the mapping relationship between spatial distance and potential energy value.
[0032] Among them, spatial distance refers to the Euclidean distance between the target user and another user in the three-dimensional coordinate system of the virtual environment; interpersonal distance parameter refers to the preset threshold parameter that reflects the comfortable distance of human social interaction; potential energy value refers to the numerical value that characterizes the repulsion strength.
[0033] It is understood that the embodiments of this application can construct a target potential field by calculating the spatial distance between the target user and other users, and combining the preset interpersonal distance parameters and the inverse mapping relationship between spatial distance and potential energy value, so that the potential field can objectively reflect social distance constraints and provide a quantitative basis for the dynamic generation of restricted areas.
[0034] In some embodiments, determining the restricted area for other users based on the target potential field and the target user's target transmission location includes: obtaining the potential energy values of the target user at the current location and the target transmission location from the target potential field; calculating the expected energy cost incurred by the target user moving to the target transmission location based on the potential energy values of the target user at the current location and the target transmission location; and determining the restricted area based on the relationship between the expected energy cost and the preset energy budget.
[0035] Among them, the restricted area refers to the area in the virtual environment where the target user is prohibited from teleporting in due to the presence of others; the estimated energy cost refers to the total potential energy difference that the target user needs to overcome in the target potential field to move from the current location to the target teleportation location; and the preset energy budget refers to the maximum energy threshold that is pre-set for the teleportation operation to consume.
[0036] It is understood that the embodiments of this application can obtain the potential energy values of the target user at the current location and the target transmission location, calculate the estimated energy cost generated by the movement, and determine the restricted area of other users based on the relationship between the cost and the preset energy budget, so that the generation of the restricted area has energy rationality and avoids intrusion into other people's personal space.
[0037] In step S103, the target transmission location is evaluated and adjusted based on the restricted area. During the adjustment, the actual transmission target point avoids the restricted area, and spatial movement from the target user's current location to the actual transmission target point is performed.
[0038] The actual delivery target point refers to the effective delivery landing point that has been finally determined after evaluation and adjustment and avoids the restricted area.
[0039] It is understood that the embodiments of this application can evaluate and adjust the target transmission location based on the restricted area, so that the actual transmission target point avoids the restricted area of others, and performs spatial movement from the target user's current location to the actual transmission target point, effectively preventing abrupt intrusion into other people's personal space and ensuring social comfort in a multi-person virtual reality environment.
[0040] In some embodiments, evaluating and adjusting the target transmission position based on the restricted area includes: identifying whether the target transmission position is within the restricted area; if the target transmission position is not within the restricted area, determining that the target transmission position is valid and using the target transmission position as the actual transmission target point; if the target transmission position is within the restricted area, determining that the target transmission position is invalid, and adjusting the target transmission position based on the target potential field and the restricted area using at least one of directional clipping transmission and boundary adsorption transmission to obtain the adjusted actual transmission target point.
[0041] Among them, directional clipping transmission refers to the adjustment method of taking the nearest intersection point of the restricted area boundary as the transmission point along the controller direction; boundary adsorption transmission refers to the adjustment method of taking the point on the restricted area boundary that is closest to the target transmission position as the transmission point.
[0042] It is understood that the embodiments of this application can determine whether the target transmission location is in a restricted area. If invalid, at least one of the methods of directional clipping transmission or boundary snapping transmission is used to adjust and obtain the actual transmission target point that avoids the restricted area, so as to ensure that the transmission result not only meets the user's intention but also avoids intruding on other people's personal space.
[0043] Specifically, the original target transmission location indicated by the user is first determined. Whether it falls within any predetermined restricted area: If the judgment result is "no" (i.e., the target teleportation location is safe and located outside the restricted area), then the final actual teleportation target point will be... Set as the original target teleport location If the judgment result is "yes" (i.e., the target teleportation location has intruded into another person's restricted area), then according to the preset adjustment strategy, an effective point located on the boundary of the restricted area will be automatically calculated and selected. As the final actual teleportation target point .
[0044] Furthermore, such as Figure 3 As shown, the virtual reality teleportation target evaluation and adjustment process includes: In step 301, it is checked whether the original target delivery location falls within any other user-defined personal space restriction area to determine whether adjustments are needed.
[0045] In step 302, if the target is located within the restricted area, then a valid point on the boundary of the restricted area is calculated and selected according to a preset adjustment strategy, such as directional clipping or boundary snapping.
[0046] In step 303, if no adjustment is required, the original target position is used; if adjustment has been made, the valid boundary point is used as the final actual transmission target point.
[0047] In step 304, the avatar of the driver instantly moves from its current position to the determined final target point, thereby completing the intelligent teleportation.
[0048] In some embodiments, the directional clipping transmission adjustment method includes: when the target transmission position is invalid, extending a ray along the direction indicated by the user controller; obtaining candidate intersection points between the ray and the boundary of the restricted area; calculating a first actual distance between the candidate intersection point and the boundary of the restricted area; and selecting the candidate intersection point with the smallest first actual distance as the actual transmission target point.
[0049] Among them, candidate intersection points refer to all intersection points between the ray indicated by the user controller and the boundary of the restricted area; the first actual distance refers to the distance from the candidate intersection point to the current position of the target user along the controller ray.
[0050] It is understood that, in this embodiment of the application, when the target transmission position is invalid, the ray is extended along the direction indicated by the user controller to obtain the candidate intersection points with the boundary of the restricted area, the first actual distance of each candidate intersection point is calculated, and the smallest one is selected as the actual transmission target point, so that the adjusted transmission point is both close to the user's intended direction and can reliably avoid the restricted areas of others.
[0051] Specifically, directional clipping delivery prioritizes preserving the user's intended delivery direction. When When intruding into someone else's restricted area, follow the direction indicated by the transmitter controller. Extend the ray, calculate the intersection point of the ray with the boundary of the restricted area, and select the effective intersection point closest to the transmitter, i.e., the first actual distance, as the adjusted actual transmission target point. To maintain visual continuity, the transport ray may be rendered in this embodiment as starting from the transporter's initial position. To the adjusted actual teleportation target point A smooth parabolic arc.
[0052] In some embodiments, the adjustment method corresponding to boundary adsorption transmission includes: when the target transmission position is invalid, searching for candidate points on the boundary of the restricted area; calculating the second actual distance between the candidate point and the target transmission position; and selecting the candidate point with the smallest second actual distance as the actual transmission target point.
[0053] The second actual distance refers to the Euclidean distance between the candidate point on the boundary of the restricted area and the target teleportation location.
[0054] It is understood that in this embodiment of the application, when the target transmission location is invalid, candidate points on the boundary of the restricted area are searched, the second actual distance between each candidate point and the target transmission location is calculated, and the smallest distance is selected as the actual transmission target point, so that the adjusted transmission point is as close as possible to the user's original selected location, while ensuring that it does not intrude into the restricted areas of others.
[0055] Specifically, boundary-adhesive delivery prioritizes satisfying the user's intention to approach the target location. When When intruding into another's restricted area, calculate and select the boundary of the restricted area relative to the original target location. The boundary point with the closest spatial distance, i.e., the candidate point with the smallest second actual distance, is selected as the adjusted target point. In this embodiment, the transmission trajectory can be rendered as a quadratic Bézier curve, which is based on... Starting from, As the endpoint, and using the original target location. These serve as control points to ensure the smoothness and spatial consistency of the trajectory.
[0056] After determining the final actual teleportation target point Then, perform a movement operation, transporting the teleporter avatar from its current location. Instantly teleport to the final target point In this embodiment, the transmitter's orientation after transmission is automatically set to from... point to The direction is designed to maintain the user's focused attention and visual consistency.
[0057] Specifically, such as Figure 4 As shown, the virtual reality transmission control process includes: In step 401, the potential energy model parameters are set, and the potential energy value is defined to be inversely proportional to the spatial distance between users, ensuring that the potential energy increases sharply with distance.
[0058] In step 402, the potential energy value at the target transmission location is calculated based on the target potential field and other user locations.
[0059] In step 403, the estimated energy cost from the current location to the target teleportation location is calculated.
[0060] In step 404, it is determined whether the estimated energy cost exceeds the preset energy budget. If it does, the target is deemed invalid, and the user is asked to reselect or cancel the transmission.
[0061] Specifically, this application uses interpersonal distance theory to divide the space around an individual into an intimate zone (e.g., 0-0.45 meters), a personal zone (e.g., 0.45-1.2 meters), a social zone (e.g., 1.2-3.6 meters), and a public zone (e.g., greater than 3.6 meters). To prevent discomfort and fright, and to avoid being transported into another person's intimate zone, the personal and social zones are designated as the primary areas of active influence in the potential field model.
[0062] This application employs an inverse distance potential field to simulate social repulsion. For a position located at... Other users Its location in space Potential energy generated Defined as:
[0063] in, For position To users Location The Euclidean distance; The coefficient used to control the strength of the potential field; It is a very small positive number; It is potential energy.
[0064] When calculating the projected energy cost, for a given location from the current position Try to move to the target location The transmitter Its relative to users Energy cost required Defined as the potential energy difference between two locations, i.e., the expected energy cost:
[0065] in, Current position; For the target location; To estimate energy costs.
[0066] Furthermore, the effectiveness is assessed based on the projected energy cost. This application sets a preset energy budget. The conditions under which transmission is allowed are This energy budget A restricted area was defined around other users. When If the request is deemed too abrupt or intrusive (e.g., jumping directly from a public area to a private area), the user is deemed to have made the transfer invalid and is asked to reselect or cancel the transfer. This energy-budget-based decision-making mechanism forces users to gradually approach other users through a multi-step, incremental transfer process, thus providing both parties with time for social adaptation.
[0067] It should be noted that the energy model used in this application is asymmetric: moving towards other users (i.e., entering a high-potential-energy zone) consumes energy, but leaving other users (entering a low-potential-energy zone) does not restore energy. Furthermore, the energy cost is non-cumulative; that is, the energy budget for each transmission is calculated independently, preventing users from circumventing proximity constraints through phased, short-distance movements. By ensuring the non-cumulative and asymmetric nature of the energy budget, users are forced to approach others gradually, preventing the circumvention of social constraints through phased, short-distance movements and providing both parties with time for social adaptation.
[0068] In multi-user scenarios, each user generates an independent potential field. To avoid excessive congestion in densely populated areas, this application adopts the "maximum influence principle" rather than the "cumulative sum principle" when calculating the composite potential field. That is, the total potential energy of a point is taken from the potential energy value with the greatest influence among all surrounding users, rather than the sum of all potential energies, thus ensuring a feasible transmission path.
[0069] Furthermore, to improve computational efficiency, this application sets a cutoff distance. , for those located Potential field calculations are performed on other users within the range. The calculation method is as follows:
[0070] in, The radius of the inner boundary of the public area; This represents the maximum allowed distance for a single transmission. This is the cutoff distance.
[0071] The virtual reality teleportation method proposed in this application obtains the current positions of the target user and other users in the virtual environment. A target potential field is constructed based on the current positions of the target user and other users. The restricted areas of other users are determined by combining the target user's target teleportation position with the target potential field. The target teleportation position is then evaluated and adjusted based on these restricted areas to ensure the actual teleportation target point avoids the restricted areas. Finally, spatial movement from the target user's current position to the actual teleportation target point is executed. By constructing a target potential field based on the user's current position and dynamically adjusting the teleportation target point to avoid other users' restricted areas, the method effectively prevents the target user from abruptly intruding into the personal space of others in a multi-person virtual reality environment, improving the social rationality of the teleportation and the user experience. This solves the problems in related technologies where virtual reality teleportation methods lack social awareness in multi-person environments, leading to users abruptly entering others' personal spaces and causing discomfort and social anxiety.
[0072] Next, a virtual reality transmission system according to an embodiment of this application is described with reference to the accompanying drawings.
[0073] Figure 5 This is a block diagram of a virtual reality transmission system according to an embodiment of this application.
[0074] like Figure 5 As shown, the virtual reality transmission system 10 includes: an acquisition module 100, a limiting module 200, and an adjustment module 300.
[0075] The acquisition module 100 is used to acquire the current positions of the target user and other users around the target user in the virtual environment; the restriction module 200 is used to construct a target potential field based on the current positions of the target user and other users, and determine the restriction area of other users based on the target potential field and the target user's target teleportation position; the adjustment module 300 is used to evaluate and adjust the target teleportation position based on the restriction area, and during the adjustment, make the actual teleportation target point avoid the restriction area, and perform spatial movement from the target user's current position to the actual teleportation target point.
[0076] In some embodiments, the limiting module 200 is used to: calculate the spatial distance between the target user and other users based on their respective current locations, and obtain a preset interpersonal distance parameter; identify the mapping relationship between spatial distance and potential energy value in the preset interpersonal distance parameter, wherein the mapping relationship is an inverse relationship between spatial distance and potential energy value; and construct a target potential field based on the mapping relationship between spatial distance and potential energy value.
[0077] In some embodiments, the limiting module 200 is configured to: obtain the potential energy values of the target user at the current position and the target transmission position from the target potential field; calculate the expected energy cost generated by the target user moving to the target transmission position based on the potential energy values of the target user at the current position and the target transmission position; and determine the limiting area based on the relationship between the expected energy cost and the preset energy budget.
[0078] In some embodiments, the adjustment module 300 is used to: identify whether the target transmission position is in a restricted area; if the target transmission position is not in a restricted area, determine that the target transmission position is valid and use the target transmission position as the actual transmission target point; if the target transmission position is in a restricted area, determine that the target transmission position is invalid, and adjust the target transmission position based on the target potential field and the restricted area by at least one of directional clipping transmission and boundary adsorption transmission to obtain the adjusted actual transmission target point.
[0079] In some embodiments, the adjustment module 300 is configured to: extend a ray along the direction indicated by the user controller when the target transmission position is invalid; obtain candidate intersection points between the ray and the boundary of the restricted area; calculate a first actual distance between the candidate intersection points and the boundary of the restricted area; and select the candidate intersection point with the smallest first actual distance as the actual transmission target point.
[0080] In some embodiments, the adjustment module 300 is used to: search for candidate points on the boundary of the restricted area when the target transmission location is invalid; calculate the second actual distance between the candidate point and the target transmission location; and select the candidate point with the smallest second actual distance as the actual transmission target point.
[0081] It should be noted that the foregoing explanation of the virtual reality transmission method embodiment also applies to the virtual reality transmission system of this embodiment, and will not be repeated here.
[0082] The virtual reality teleportation system proposed in this application obtains the current positions of the target user and other users in the virtual environment. A target potential field is constructed based on the current positions of the target user and other users. The restricted areas of other users are determined by combining the target user's target teleportation position with the target potential field. The target teleportation position is then evaluated and adjusted based on these restricted areas to ensure the actual teleportation target point avoids the restricted areas. Finally, spatial movement from the target user's current position to the actual teleportation target point is executed. By constructing a target potential field based on the user's current position and dynamically adjusting the teleportation target point to avoid other users' restricted areas, the system effectively prevents the target user from abruptly intruding into the personal space of others in a multi-person virtual reality environment, improving the social rationality of the teleportation and the user experience. This solves the problems in related technologies where virtual reality teleportation methods lack social awareness in multi-person environments, leading to users abruptly entering others' personal spaces and causing discomfort and social anxiety.
[0083] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of this application. The electronic device may include: The memory 601, the processor 602, and the computer program stored on the memory 601 and capable of running on the processor 602.
[0084] When the processor 602 executes the program, it implements the virtual reality transmission method provided in the above embodiments.
[0085] Furthermore, electronic devices also include: Communication interface 603 is used for communication between memory 601 and processor 602.
[0086] The memory 601 is used to store computer programs that can run on the processor 602.
[0087] The memory 601 may include high-speed RAM (Random Access Memory) memory, and may also include non-volatile memory, such as at least one disk storage.
[0088] If the memory 601, processor 602, and communication interface 603 are implemented independently, then the communication interface 603, memory 601, and processor 602 can be interconnected via a bus to complete communication between them. The bus can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, or an EISA (Extended Industry Standard Architecture) bus, etc. The bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 6 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.
[0089] Optionally, in a specific implementation, if the memory 601, processor 602, and communication interface 603 are integrated on a single chip, then the memory 601, processor 602, and communication interface 603 can communicate with each other through an internal interface.
[0090] The processor 602 may be a CPU (Central Processing Unit), an ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of this application.
[0091] This application also provides a computer-readable storage medium storing a computer program or instructions thereon, which, when executed, implements the virtual reality transmission method as described in the above embodiments.
[0092] This application also provides a computer program product, including a computer program or instructions, which, when executed, implement the virtual reality transmission method as described in the above embodiments.
[0093] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., refer to specific features, structures, materials, or characteristics described in connection with that embodiment or example, which are included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.
[0094] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this application, "N" means at least two, such as two, three, etc., unless otherwise explicitly specified.
[0095] Any process or method described in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or N executable instructions for implementing custom logic functions or processes, and the scope of the preferred embodiments of this application includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the functions involved, as should be understood by those skilled in the art to which embodiments of this application pertain.
[0096] It should be understood that various parts of this application can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, steps or methods can be implemented using software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any of the following techniques known in the art, or a combination thereof: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (FPGAs), field-programmable gate arrays (FPGAs), etc.
[0097] Those skilled in the art will understand that all or part of the steps of the methods implementing the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, the program includes one or a combination of the steps of the method embodiments.
[0098] Although embodiments of this application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting this application. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of this application.
Claims
1. A virtual reality transmission method, characterized in that, Includes the following steps: Obtain the current location of the target user and other users around the target user in the virtual environment; A target potential field is constructed based on the current positions of the target user and other users, and the restricted areas of the other users are determined based on the target potential field and the target transmission position of the target user. The target transmission location is evaluated and adjusted based on the restricted area, and the actual transmission target point is made to avoid the restricted area during the adjustment, and spatial movement from the target user's current location to the actual transmission target point is performed.
2. The virtual reality transmission method according to claim 1, characterized in that, The step of constructing the target potential field based on the current positions of the target user and other users includes: Based on the current locations of the target user and other users, the spatial distance between the target user and the other users is calculated to obtain a preset interpersonal distance parameter; Identify the mapping relationship between spatial distance and potential energy value in the preset interpersonal distance parameters, wherein the mapping relationship is inversely proportional to the spatial distance and the potential energy value; The target potential field is constructed based on the mapping relationship between the spatial distance and the potential energy value.
3. The virtual reality transmission method according to claim 1, characterized in that, Determining the restricted area for the other users based on the target potential field and the target user's target transmission location includes: Obtain the potential energy values of the target user at the current position and the target transmission position from the target potential field, and calculate the estimated energy cost generated by the target user moving to the target transmission position based on the potential energy values of the target user at the current position and the target transmission position. The restricted area is determined based on the relationship between the projected energy cost and the preset energy budget.
4. The virtual reality transmission method according to claim 1, characterized in that, The evaluation and adjustment of the target transmission location based on the restricted area includes: Identify whether the target delivery location is within the restricted area; If the target transmission location is not within the restricted area, then the target transmission location is determined to be valid, and the target transmission location is taken as the actual transmission target point. If the target transmission location is within the restricted area, the target transmission location is determined to be invalid. Based on the target potential field and the restricted area, at least one adjustment is made to the target transmission location using directional clipping transmission and boundary adsorption transmission to obtain the adjusted actual transmission target point.
5. The virtual reality transmission method according to claim 4, characterized in that, The adjustment methods corresponding to the directional trimming and transmission include: When the target transmission location is invalid, extend the ray along the direction indicated by the user controller; Obtain candidate intersection points between the ray and the boundary of the restricted region; Calculate the first actual distance between the candidate intersection point and the boundary of the restricted area; The candidate intersection point with the smallest actual distance is selected as the actual transmission target point.
6. The virtual reality transmission method according to claim 4, characterized in that, The adjustment methods corresponding to the boundary adsorption and transport include: When the target transmission location is invalid, search for candidate points on the boundary of the restricted area; Calculate the second actual distance between the candidate point and the target transmission location; The candidate point with the smallest second actual distance is selected as the actual transmission target point.
7. A virtual reality transmission system, characterized in that, include: The acquisition module is used to acquire the current location of the target user and other users around the target user in the virtual environment. The restriction module is used to construct a target potential field based on the current positions of the target user and other users, and to determine the restriction area of the other users based on the target potential field and the target transmission position of the target user. The adjustment module is used to evaluate and adjust the target transmission location based on the restricted area, so that the actual transmission target point avoids the restricted area during the adjustment, and performs spatial movement from the target user's current location to the actual transmission target point.
8. An electronic device, characterized in that, include: A memory, a processor, and a computer program stored in the memory and executable on the processor, the processor executing the program to implement the virtual reality transmission method according to any one of claims 1-6.
9. A computer-readable storage medium having a computer program or instructions stored thereon, characterized in that, When the computer program or instructions are executed, they implement the virtual reality transmission method according to any one of claims 1-6.
10. A computer program product, comprising a computer program or instructions, characterized in that, When the computer program or instructions are executed, they implement the virtual reality transmission method according to any one of claims 1-6.