Method and device for interaction in virtual scene, equipment and storage medium
By displaying interface elements in association with the reference position of the target avatar in the virtual scene and detecting its movement, the problem of limited user interaction flexibility in the virtual reality environment is solved, and the freedom of interactive operations and user experience in the virtual scene are improved.
Patent Information
- Application Number
- CN202310198728.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-01
- Publication Date
- 2024-09-03
AI Technical Summary
In the virtual reality environment, changes in the relative distance between the user's avatar and the UI device lead to limited interaction flexibility and freedom, affecting the user experience.
Specific interface elements are displayed at the reference position associated with the target avatar in the virtual scene, and the movement of the target avatar is detected. If the preset conditions are met, a second set of interface elements is displayed to enhance interaction flexibility.
It improves the user's flexibility and freedom in interactive operations in virtual scenes, improves feedback tactility and information display mode, and enhances user experience.
Smart Images

Figure CN118585091A
Abstract
Description
Technical Field
[0001] Example embodiments of the present disclosure generally relate to the field of computers, and more particularly, to methods, devices, apparatuses, and computer-readable storage media for interacting in a virtual scene. Background Art
[0002] In recent years, Extended Reality (XR) has been widely studied and applied. XR integrates virtual content and real scenes by combining hardware devices and a variety of technical means to provide users with a unique sensory experience. XR includes virtual reality (VR), augmented reality (AR), mixed reality (MR), etc. VR is a virtual world that uses computers to simulate three-dimensional space, providing users with an immersive experience in vision, hearing, touch, etc. AR allows the real environment and virtual objects to be superimposed in the same space in real time and exist at the same time. MR is a new visualization environment that integrates the real world and the virtual world, where objects in the physical real world scene coexist with objects in the virtual world in real time. Summary of the invention
[0003] In a first aspect of the present disclosure, a method for interacting in a virtual scene is provided. The method comprises: displaying a first set of interface elements specific to a target avatar at a reference position associated with the target avatar in the virtual scene; detecting a movement of the target avatar relative to the reference position in the virtual scene; and displaying a second set of interface elements specific to the target avatar adjacent to the target avatar in response to the movement satisfying a preset condition.
[0004] In a second aspect of the present disclosure, a method for interacting in a virtual scene is provided. The method comprises: presenting a first group of interface elements in association with a virtual object in the virtual scene, the first group of interface elements being visually worn on the virtual object; and in response to detecting a predetermined operation on a given interface element in a group of interface elements, presenting a second group of interface elements associated with the given interface element within a predetermined neighborhood of the given interface element.
[0005] In a third aspect of the present disclosure, a device for interacting in a virtual scene is provided. The device includes a detection module configured to detect the distance between a target avatar and a reference position in the virtual scene; a first display module configured to display a first group of interface elements specific to the target avatar at the reference position associated with the target avatar in the virtual scene; a motion detection module configured to detect the motion of the target avatar relative to the reference position in the virtual scene; and a second display module configured to display a second group of interface elements specific to the target avatar adjacent to the target avatar in response to the motion satisfying a preset condition.
[0006] In a fourth aspect of the present disclosure, a device for interacting in a virtual scene is provided. The device includes a first presentation module configured to present a first group of interface elements in association with a virtual object in the virtual scene, wherein the first group of interface elements is visually worn on the virtual object; and a second presentation module configured to present a second group of interface elements associated with a given interface element in a predetermined neighborhood of the given interface element in response to detecting a predetermined operation on the given interface element in the group of interface elements.
[0007] In a fifth aspect of the present disclosure, an electronic device is provided. The device includes at least one processing unit; and at least one memory, the at least one memory is coupled to the at least one processing unit and stores instructions for execution by the at least one processing unit. When the instructions are executed by the at least one processing unit, the device executes the method of the first aspect or the second aspect.
[0008] In a sixth aspect of the present disclosure, a computer-readable storage medium is provided, wherein a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the method of the first aspect or the second aspect is implemented.
[0009] It should be understood that the contents described in the summary of the present invention are not intended to limit the key features or important features of the embodiments of the present disclosure, nor are they intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. In the accompanying drawings, the same or similar reference numerals represent the same or similar elements, wherein:
[0011] Figure 1 A block diagram illustrating an environment according to some embodiments of the present disclosure is shown;
[0012] Figure 2A and Figure 2B A schematic diagram of an interaction process in a virtual scene according to some embodiments of the present disclosure is shown;
[0013] Figures 3A to 3B A schematic diagram of a virtual scene of an interface element according to some other embodiments of the present disclosure is shown;
[0014] FIG. 4A to FIG. 4D A schematic diagram of a virtual scene regarding an interface element according to yet another embodiment of the present disclosure is shown;
[0015] Figure 5A flowchart illustrating an example process for interacting in a virtual scene according to some embodiments of the present disclosure;
[0016] Figure 6 A flowchart illustrating an example process for interacting in a virtual scene according to some embodiments of the present disclosure;
[0017] Figure 7 A block diagram of an apparatus for interacting in a virtual scene according to some embodiments of the present disclosure is shown;
[0018] Figure 8 A block diagram showing an apparatus for interacting in a virtual scene according to some embodiments of the present disclosure; and
[0019] Fig. 9 A block diagram of a device capable of implementing various embodiments of the present disclosure is shown. DETAILED DESCRIPTION
[0020] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0021] In the description of the embodiments of the present disclosure, the term "including" and similar terms should be understood as open inclusion, that is, "including but not limited to". The term "based on" should be understood as "based at least in part on". The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment". The term "some embodiments" should be understood as "at least some embodiments". Other explicit and implicit definitions may also be included below.
[0022] In the description of the embodiments of the present disclosure, the term "XR" includes but is not limited to "VR", "AR" and "MR". It should be understood that the term "XR" can be any one of "VR", "AR" and "MR", or any combination thereof. In the following description, for the sake of convenience of description only, "XR" is used in the embodiments of the present disclosure to represent one or more of "VR", "AR" and "MR", or any combination thereof.
[0023] The term "in response to" means that the corresponding event occurs or the condition is satisfied. It will be understood that the timing of the execution of the subsequent action executed in response to the event or condition is not necessarily strongly related to the time when the event occurs or the condition is satisfied. In some cases, the subsequent action may be executed immediately when the event occurs or the condition is satisfied; in other cases, the subsequent action may be executed some time after the event occurs or the condition is satisfied.
[0024] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.
[0025] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0026] In existing XR displays and interactions, virtual objects are usually rendered and then simply superimposed on the real picture. At present, the user interface (UI) device in the XR environment is usually set in a fixed location. However, in the virtual scene, once the relative distance between the user's virtual avatar and the UI device changes, it may be impossible for the user to conveniently perform interactive actions in the virtual scene by operating the UI device. This seriously affects the flexibility and freedom of interaction in the virtual scene, and thus the user experience is poor.
[0027] In view of the above and other potential problems, an embodiment of the present disclosure provides a solution for interaction in a virtual scene, which displays a first set of interface elements specific to a target avatar in association with a reference position of the target avatar in the virtual scene and detects the movement of the target avatar relative to the reference position in the virtual scene. If it is determined that the movement meets a preset condition, a second set of interface elements specific to the target avatar is displayed adjacent to the target avatar.
[0028] Example embodiments of the present disclosure are described below with reference to the accompanying drawings.
[0029] Figure 1 A block diagram of an environment 100 according to some embodiments of the present disclosure is shown. As shown in the figure, the environment 100 includes multiple users, for example, two users, user 130-1 wearing an XR device 113-1, and user 130-2 wearing an XR device 113-2. The XR device 113-1 communicates with the electronic device 110-1 to reconstruct a virtual scene for the user 130-1 or merge virtual content with a real scene; and the XR device 113-2 communicates with the electronic device 110-2 to reconstruct a virtual scene for the user 130-2 or merge virtual content with a real scene.
[0030] In some embodiments, electronic device 110-1 and electronic device 110-2 can communicate wirelessly. A common virtual scene is constructed for user 130-1 and user 130-2 without restricting multiple users to be in the same physical space. In the following, electronic device 110-1 and electronic device 110-2 may be collectively referred to as electronic device 110. Wearable XR device 113-1 and wearable XR device 113-2 may be collectively referred to as electronic device 110. User 130-1 and user 130-2 may be collectively referred to as user 130.
[0031] In the present disclosure, virtual scenes reconstructed based on VR technology, and scenes that integrate virtual content and real scenes based on AR technology or MR technology are collectively referred to as virtual scenes 120. XR device 110 may be a head-mounted or wearable near-eye display device, such as a head-mounted display, smart glasses, etc., supporting VR, AR, MR and other technologies. XR device 110 may include an image generation component and an optical display component for reconstructing a virtual scene 120 in a monocular or binocular field of view and displaying virtual objects and / or virtual avatars.
[0032] For example, a virtual avatar 121 - 1 (also referred to as a target avatar 121 - 1 ) corresponding to the user 130 - 1 and a virtual avatar 121 - 2 corresponding to the user 130 - 2 may be presented in the virtual scene 120 .
[0033] Virtual objects may include three-dimensional virtual objects and / or two-dimensional virtual objects. For example, a two-dimensional virtual object may include a two-dimensional window without thickness, which is used to present various contents in the virtual scene 120 similar to an electronic screen. For example, a display block 122 in the virtual scene 120. A display block may be a window for loading content such as web pages and documents, also known as a "face". For example, a three-dimensional virtual object may include a part corresponding to a user's virtual avatar, such as a virtual hand 124. For another example, a three-dimensional virtual object may also include a virtual device presented in the virtual scene 120, such as a UI device 123.
[0034] In some embodiments, the electronic device 110 may determine the relative position between a virtual avatar and / or object and another virtual avatar and / or object in the virtual scene 120. The electronic device 110 may be a separate device capable of communicating with the XR device 113 and / or other image capture devices, such as a server, computing node, etc. for image or data processing, or may be integrated with the XR device 110 and / or other image capture devices. In some embodiments, the electronic device 110 may be implemented as an XR device 113, that is, in this case, the XR device 110 may implement all the functions of the electronic device 110. It should be understood that the above description of the electronic device 110 is merely exemplary and non-restrictive, and the electronic device 110 may be implemented as devices of various forms, structures or categories, and the embodiments of the present disclosure are not limited thereto.
[0035] It should be understood that the structure and functionality of environment 100 are described for exemplary purposes only and does not imply any limitation on the scope of the present disclosure.
[0036] Some example embodiments of the present disclosure will be described below with continued reference to the accompanying drawings. Figure 2A and Figure 2B A schematic diagram for interacting in a virtual scene according to some embodiments of the present disclosure is shown. Figure 1 As an example, the virtual scene 120 shown in FIG. Figure 2A and Figure 2B The described process can be accomplished by Figure 1 The electronic device 110 in the embodiment is executed. However, this is only exemplary and does not limit the embodiments of the present disclosure in any way.
[0037] In an embodiment of the present disclosure, the electronic device 110 may obtain an image of the physical scene 110 in a variety of ways. For example, the image of the physical scene 110 may be captured by the XR device 113 worn by the user 130, and the electronic device 110 may correspondingly obtain the image of the physical scene 110 from the XR device 113. As an alternative, the image of the physical scene 110 may also be captured by an image capture device (e.g., a camera, etc.) that is communicatively connected to the electronic device 110 and sent to the electronic device 110. In other alternative implementations, the electronic device 110 itself may have an image capture function, such as being equipped with a camera or the like. In this case, the electronic device 110 may virtualize the scene 120 based on the captured physical scene in the real world.
[0038] In the virtual scene 120, the electronic device 110 may display a first set of interface elements specific to the target avatar. In the virtual scene 120, the first set of interface elements are displayed in association with the reference position of the target avatar. Figure 2A In the embodiment, when the UI device 123 is placed at a predetermined placement position 201 on a table 202 in the virtual scene 120, the first set of interface elements may be displayed through the UI device.
[0039] In some embodiments, for a multi-user virtual scene, the virtual scene may include a public domain and a private domain. The public domain refers to a display domain visible to all users in the virtual scene, while the private domain refers to a display domain visible only to specific users in the virtual scene.
[0040] In an embodiment of the present disclosure, "a set of interface elements specific to a target avatar" may be understood as a set of interface elements that is visible only to the user corresponding to the target avatar 121-1, that is, it is displayed in the private domain of the user. The set of interface elements may include controls. If the electronic device 110 detects a user's operation on the control, it may perform control of virtual objects visible to multiple virtual avatars (e.g., virtual avatar 121-2) in the virtual scene 120 based on the operation, such as control associated with display and interaction in the virtual scene 120.
[0041] For example, the set of interface elements may control the display of display blocks presented in the virtual scene 120. Figure 2A As shown in FIG. 1 , through the set of interface elements, the user can realize the display of the content sharing window 122 in the virtual scene 120 .
[0042] The electronic device 110 may detect the movement of the target avatar relative to the reference position in the virtual scene 120. If the electronic device 110 detects that the movement satisfies a preset condition, a set of interface elements specific to the target avatar is displayed adjacent to the target avatar.
[0043] In some embodiments, the electronic device 110 may determine the distance between the target avatar and the reference position in the virtual scene 120 based on the movement of the target avatar. For example, in some embodiments, the reference position may be a predetermined reference position associated with a virtual object in the virtual scene 120. Figure 2A As shown, the reference position may be a predetermined placement position 201 of the UI device 123 on a table 202 in the virtual scene 120. In this case, the electronic device 110 may, for example, detect the distance between the predetermined placement position 201 and the avatar 121-1 corresponding to the user 130-1.
[0044] like Figure 2AAs shown, the electronic device 110 can determine the position of the virtual avatar 121-1 in the virtual scene 120 (for example, the coordinate point P1 (X1, Y1) on the spatial plane formed by the X-axis and the Y-axis). Assuming that the tabletop of the table 202 in the virtual scene 120 and the coordinate point P of the virtual avatar 121-1 are in the same spatial plane, the reference position P2 (X2, Y2) of the table 202 in the virtual scene 120 can be determined. By locating the height of the tabletop on the Z-axis, the spatial coordinates of the predetermined placement position 201 of the UI device 123 in the virtual scene 120 can be determined. Based on the predetermined placement position 201 of the UI device 123 in the virtual scene 120 and the determined position of the virtual avatar 121-1 in the virtual scene 120, the distance between the reference position in the virtual scene 120 (i.e., the predetermined placement position 201) and the virtual avatar 121-1 can be determined.
[0045] If the electronic device 110 determines based on the detected motion that the distance between the reference position and the avatar 121-1 does not exceed the threshold distance, as described above, a first set of interface elements specific to the avatar 121-1 is displayed in association with the reference position (e.g., via the UI device 123). Figure 2A As shown in , if it is detected that the distance between the virtual avatar 121-1 and the UI device 123 in the virtual scene 120 is less than the threshold distance, a first group of interface elements specific to the virtual avatar 121-1 is presented at the predetermined placement position 201. The first group of interface elements can be presented by the UI device 123, for example.
[0046] If the electronic device 110 determines based on the detected motion that the distance between the reference position and the virtual avatar 121-1 is greater than the threshold distance, that is, the current position of the virtual avatar 121-1 in the virtual scene 120 is far from the predetermined placement position 201, then the second group of interface elements specific to the virtual avatar 121-1 is displayed adjacent to the virtual avatar 121-1. In the embodiment of the present disclosure, "displaying the second interface element specific to the virtual avatar adjacent to the virtual avatar" can be understood as presenting the second interface element in association with the virtual avatar so that the group of interface elements is visually worn on the virtual avatar.
[0047] like Figure 2B As shown, if it is detected that the distance between the virtual avatar 121 - 1 and the reference position 201 exceeds the threshold distance, a second set of interface elements is displayed in the hand area 203 (eg, wrist) of the virtual avatar 121 - 1 .
[0048] Alternatively or additionally, the electronic device 110 may also determine the type of the detected motion. If it is determined that the motion type of the motion matches the preset type, a second set of interface elements specific to the target avatar may be displayed adjacent to the target avatar. For example, if it is detected that the target avatar appears away from the reference position in the virtual scene, for example, gets up from a seat and / or moves in a direction away from the reference position, etc., then a second set of interface elements specific to the target avatar may be displayed adjacent to the target avatar.
[0049] The second set of interface elements can be displayed, for example, by the alienated UI device 204 around the wrist. It should be understood that displaying the second set of interface elements adjacent to the virtual avatar is not limited to Figure 2B In the example shown in FIG. 1 , the second group of interface elements may also be arranged at other suitable locations associated with the virtual avatar.
[0050] with Figure 2A Similar to the scene shown in , “a second set of interface elements specific to a virtual avatar” can be understood as the second set of interface elements being visible only to the user corresponding to the target avatar 121-1. The second set of interface elements may include controls. If the electronic device 110 detects a user operation on the control, it may perform control of virtual objects visible to multiple users corresponding to multiple virtual avatars (e.g., virtual avatar 121-2) in the virtual scene 120 based on the operation, such as control associated with display and interaction in the virtual scene 120. That is, such virtual objects may, for example, be displayed in the public domain of the virtual scene. For example, the set of interface elements may control the display of display blocks presented in the virtual scene 120. As shown in Figure 2B As shown in FIG. 1 , through the set of interface elements, the user can realize the display of the content sharing window 122 in the virtual scene 120 .
[0051] In some embodiments, the first group of interface elements includes at least a first interface element, and the second group of interface elements includes at least a second interface element. The first interface element and the second interface element are associated with the same function in the virtual scene.
[0052] It should be understood that if the electronic device 110 displays the second set of interface elements specific to the target avatar adjacent to the target avatar, the first set of interface elements specific to the target avatar may stop being displayed.
[0053] By combining Figure 2A and Figure 2B The illustrated embodiment can flexibly present a set of interface elements for enabling users to display and interact in a virtual scene without being limited to a specific location, thereby significantly improving the user's freedom in displaying and interacting in a virtual scene.
[0054] In combination Figure 2B In the interactive process in a virtual scene according to an embodiment of the present disclosure, a group of interface elements specific to the virtual avatar are displayed adjacent to the virtual avatar. The user can perform a predetermined operation on one or more given interface elements in the group of interface elements. Figure 3A A partial enlarged view of a group of interface elements (e.g., interface element 301) being visually worn in a hand area (virtual hand 203) is shown. Figure 3A In the example, a set of interface elements may be presented by UI device 204 .
[0055] Reference now Figure 3B , a group of interface elements visually worn in the hand region (virtual hand 203) may, for example, visually slide along the extension direction R of the wrist in response to a user operation. The presentation of the sliding operation on a group of interface elements performed by the virtual hand 302 in the virtual scene 120 may be achieved, for example, by superimposing or rendering the operation of the user's real hand collected in the physical world onto the virtual scene 120.
[0056] exist Figure 3B In the illustrated scene, a given interface element in a set of interface elements can be selected in response to a user selection. The selection of a given interface element can be achieved by visually poking or pinching the given interface element using a virtual hand 302. Similarly, the actions of the virtual hand 203 presented in the virtual scene can also be achieved by superimposing the user's real hand actions collected in the physical world onto the virtual scene.
[0057] If the electronic device 110 detects a predetermined operation for a given interface element, a second group of interface elements associated with the given interface element is presented within a predetermined neighborhood of the given interface element. In some embodiments, the predetermined area can be understood as an area that is visible only to the user performing the operation. In some other embodiments, the predetermined area can also be understood as an area that can be visible to users corresponding to other virtual avatars.
[0058] The term "predetermined operation" appearing herein may be regarded as a predetermined action of the hand (virtual hand) of the virtual avatar. The predetermined action may be caused by an action of the user corresponding to the virtual avatar. For example, in some embodiments, the predetermined operation may include an action of raising or lowering the hand. In some other embodiments, the predetermined operation may include an action of spreading or curling up the palm.
[0059] For example, Figure 4AAs shown, when a given interface element 301 is selected, if the lifting of the virtual hand 203 is detected, one or more interface elements (e.g., interface elements 403-1 to 403-4) may be called out, which may be presented in the predetermined neighborhood 401. The called out one or more interface elements may be associated with the given interface element 301. For example, if the given interface element 301 involves document display, a corresponding document display window may be presented in the one or more interface elements.
[0060] For example, Figure 4B As shown, if the expansion of the virtual hand 203 is detected, one or more interface elements (e.g., interface elements 403-1 to 403-4) may be presented in the expansion direction of the virtual hand 203. That is, the presented interface elements (e.g., interface elements 403-1 to 403-4) associated with the given interface element 301 may be anchored by the virtual hand and present different styles as the virtual hand moves in a predetermined manner.
[0061] In some embodiments, one or more interface elements presented in the predetermined neighborhood 401 may have a certain degree of transparency relative to the virtual hand 203 visually, for example, Figure 4C As shown in .
[0062] In addition, if a predetermined action of the virtual hand 203 is detected, one or more interface elements (e.g., interface elements 403-1 to 403-4) presented in the neighborhood 401 may be collapsed. In some embodiments, if, for example, a selection operation (e.g., a poke or pinch operation) of the close icon 404 by the virtual hand 203 is detected, one or more interface elements are collapsed. In some other implementations, if the movement displacement of the virtual hand 203 in a certain direction is detected to exceed a threshold range, one or more interface elements are collapsed. For example, Figure 4D As shown, if it is detected that the rotation angle of the virtual hand 203 along the Y-axis direction exceeds a threshold angle, one or more interface elements presented in the neighborhood 401 are collapsed.
[0063] In this way, in addition to enhancing the user's flexibility in performing interactive operations in virtual scenes, the solution disclosed in the present invention improves the feedback tactile sensation and information display mode during the interaction process, thereby substantially improving both information acquisition efficiency and user experience.
[0064] It should be understood that if the electronic device 110 detects that the distance between the current position of the virtual avatar and the predetermined reference position in the virtual scene is less than or equal to the threshold distance again, the interface elements displayed near the virtual avatar can be closed, and the interface elements associated with the predetermined reference position can be displayed, that is, for example, in Figure 2AThe virtual scene 120 shown in FIG. Thus, the interface elements in the virtual scene are flexibly switched along with the virtual avatar corresponding to the user.
[0065] Figure 5 FIG. 5 is a flowchart of a method 500 for interacting in a virtual environment according to some embodiments of the present disclosure. The method 500 may be Figure 1 The electronic device 110 in the embodiment is executed. For the convenience of discussion, the electronic device 110 is used as an example for description below. However, this is only exemplary and does not limit the embodiments of the present disclosure in any way. It should be understood that the embodiments of the present disclosure may also be executed by other appropriate servers or electronic devices.
[0066] At block 510 , the electronic device 110 displays a first set of interface elements specific to a target avatar in a virtual scene in association with a reference position of the target avatar.
[0067] At block 520 , the electronic device 110 detects movement of the target avatar relative to a reference position in the virtual scene.
[0068] At block 530 , if it is determined that the motion satisfies the preset condition, then at block 540 , a second set of interface elements specific to the target avatar is displayed adjacent to the target avatar.
[0069] In some embodiments, displaying a second set of interface elements specific to the target avatar adjacent to the target avatar includes: based on the motion, determining that a distance from the target avatar to the reference location is greater than a threshold distance; and displaying the second set of interface elements specific to the target avatar adjacent to the target avatar.
[0070] In some embodiments, displaying a second set of interface elements specific to the target avatar adjacent to the target avatar includes: determining a motion type of the motion based on the motion; and displaying a second set of interface elements specific to the target avatar adjacent to the target avatar in response to the motion type of the motion matching a preset type.
[0071] In some embodiments, the first group of interface elements includes at least a first interface element, the second group of interface elements includes at least a second interface element, and the first interface element and the second interface element are associated with the same function in the virtual scene.
[0072] In some embodiments, the method further includes ceasing to display a first set of interface elements specific to the target avatar.
[0073] In some embodiments, the first set of interface elements and / or the second set of interface elements are visible only to the user corresponding to the target avatar.
[0074] In some embodiments, displaying the second set of interface elements specific to the target avatar adjacent to the target avatar includes presenting the second set of interface elements in association with the target avatar, the second set of interface elements being visually worn on the target avatar.
[0075] In some embodiments, in response to detecting a predetermined operation on a given interface element in the second group of interface elements, electronic device 110 may present a third group of interface elements associated with the given interface element within a predetermined neighborhood of the given interface element.
[0076] Figure 6 FIG. 6 is a flowchart of a method 600 for interacting in a virtual environment according to some embodiments of the present disclosure. The method 600 may be Figure 1 The electronic device 110 in the embodiment is executed. For the convenience of discussion, the electronic device 110 is used as an example for description below. However, this is only exemplary and does not limit the embodiments of the present disclosure in any way. It should be understood that the embodiments of the present disclosure may also be executed by other appropriate servers or electronic devices.
[0077] In box 610, the electronic device 110 presents a first set of interface elements in association with a virtual object in a virtual scene, and the first set of interface elements are visually worn on the virtual object.
[0078] In box 620, if a predetermined operation on a given interface element in a group of interface elements is detected, then in box 630, the electronic device 110 presents a second group of interface elements associated with the given interface element within a predetermined neighborhood of the given interface element.
[0079] In some embodiments, the predetermined operation may include a predetermined motion of a hand of the target avatar, and the predetermined motion may be caused by a motion of a user corresponding to the target avatar.
[0080] In some embodiments, the electronic device 110 may present a window for displaying shared content that is visible to multiple users of the virtual scene.
[0081] In some embodiments, electronic device 110 may detect a distance between a target avatar and a reference location; and in response to the distance exceeding a threshold distance, present a first set of interface elements.
[0082] In some embodiments, the virtual object is a specific body part of a target avatar in the virtual scene, and wherein the first set of interface elements are arranged around the specific body part.
[0083] The embodiments of the present disclosure also provide corresponding devices for implementing the above methods or processes. Figure 7 A block diagram of an apparatus 700 for interacting in a virtual scene according to some embodiments of the present disclosure is shown.
[0084] like Figure 7 As shown, the device 700 includes a first display module 710, which is configured to display a first group of interface elements specific to the target avatar at a reference position associated with the target avatar in the virtual scene. The device 700 also includes a detection module 720, which is configured to detect the movement of the target avatar relative to the reference position in the virtual scene; and a second display module 730, which is configured to display a second group of interface elements specific to the target avatar adjacent to the target avatar in response to the movement satisfying a preset condition.
[0085] In some embodiments, the second display module 730 is further configured to: determine, based on the motion, that the distance from the target avatar to the reference location is greater than a threshold distance; and display a second set of interface elements specific to the target avatar adjacent to the target avatar.
[0086] In some embodiments, the second display module 730 is further configured to: determine a motion type of the motion based on the motion; and display a second set of interface elements specific to the target avatar adjacent to the target avatar in response to the motion type of the motion matching a preset type.
[0087] In some embodiments, the first group of interface elements includes at least a first interface element, the second group of interface elements includes at least a second interface element, and the first interface element and the second interface element are associated with the same function in the virtual scene.
[0088] In some embodiments, apparatus 700 may also be configured to stop displaying a first set of interface elements specific to the target avatar.
[0089] In some embodiments, the first set of interface elements and / or the second set of interface elements are visible only to the user corresponding to the target avatar.
[0090] In some embodiments, second display module 730 is further configured to present a second set of interface elements in association with the target avatar, the second set of interface elements being visually worn on the target avatar.
[0091] In some embodiments, apparatus 700 may also be configured such that, in response to detecting a predetermined operation on a given interface element in the second group of interface elements, electronic device 110 may present a third group of interface elements associated with the given interface element within a predetermined neighborhood of the given interface element.
[0092] The embodiments of the present disclosure also provide corresponding devices for implementing the above methods or processes. Figure 8 A block diagram of an apparatus 800 for interacting in a virtual scene according to some embodiments of the present disclosure is shown.
[0093] like Figure 8As shown, the device 800 includes a first presentation module 810, which is configured to present a first group of interface elements in association with a virtual object in a virtual scene, and the first group of interface elements are visually worn on the virtual object; and a second presentation module 820, which is configured to present a second group of interface elements associated with a given interface element within a predetermined neighborhood of the given interface element in response to detecting a predetermined operation on a given interface element in a group of interface elements.
[0094] In some embodiments, the predetermined operation includes a predetermined movement of a hand of the target avatar, the predetermined movement being caused by a movement of a user corresponding to the target avatar.
[0095] In some embodiments, the second presentation module is further configured to present a window for displaying the shared content, where the shared content is visible to multiple users of the virtual scene.
[0096] In some embodiments, the first presentation module is further configured to: detect a distance between the target avatar and the reference location; and present a first set of interface elements in response to the distance exceeding a threshold distance.
[0097] In some embodiments, the virtual object is a specific body part of a target avatar in the virtual scene, and wherein the first set of interface elements are arranged around the specific body part.
[0098] The modules included in the device 700 and / or 800 can be implemented in various ways, including software, hardware, firmware or any combination thereof. In some embodiments, one or more units can be implemented using software and / or firmware, such as machine executable instructions stored on a storage medium. In addition to or as an alternative to machine executable instructions, some or all of the modules in the device 700 and / or 800 can be implemented at least in part by one or more hardware logic components. As an example and not limitation, exemplary types of hardware logic components that can be used include field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0099] Fig. 9 A block diagram of an electronic device / server 900 is shown in which one or more embodiments of the present disclosure may be implemented. Figure 1 The electronic device 110 can, for example, Fig. 9 It should be understood that the electronic device / server 900 shown in FIG. Fig. 9 The electronic device / server 900 shown is merely exemplary and should not constitute any limitation on the functionality and scope of the embodiments described herein.
[0100] like Fig. 9As shown, the electronic device / server 900 is in the form of a general electronic device. The components of the electronic device / server 900 may include, but are not limited to, one or more processors or processing units 910, a memory 920, a storage device 930, one or more communication units 940, one or more input devices 960, and one or more output devices 960. The processing unit 910 may be an actual or virtual processor and is capable of performing various processes according to a program stored in the memory 920. In a multi-processor system, multiple processing units execute computer executable instructions in parallel to improve the parallel processing capability of the electronic device / server 900.
[0101] The electronic device / server 900 typically includes a plurality of computer storage media. Such media can be any available media accessible to the electronic device / server 900, including but not limited to volatile and non-volatile media, removable and non-removable media. The memory 920 can be a volatile memory (e.g., register, cache, random access memory (RAM)), a non-volatile memory (e.g., a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), flash memory) or some combination thereof. The storage device 930 can be a removable or non-removable medium, and can include a machine-readable medium, such as a flash drive, a disk, or any other medium, which can be used to store information and / or data (e.g., training data for training) and can be accessed within the electronic device / server 900.
[0102] The electronic device / server 900 may further include additional removable / non-removable, volatile / non-volatile storage media. Fig. 9 As shown in , a disk drive for reading or writing from a removable, non-volatile disk (e.g., a "floppy disk") and an optical drive for reading or writing from a removable, non-volatile optical disk may be provided. In these cases, each drive may be connected to the bus (not shown) by one or more data media interfaces. Memory 920 may include a computer program product 925 having one or more program modules that are configured to perform various methods or actions of various embodiments of the present disclosure.
[0103] The communication unit 940 implements communication with other electronic devices through a communication medium. Additionally, the functions of the components of the electronic device / server 900 can be implemented with a single computing cluster or multiple computing machines that can communicate through a communication connection. Therefore, the electronic device / server 900 can operate in a networked environment using a logical connection with one or more other servers, a network personal computer (PC), or another network node.
[0104] The input device 950 may be one or more input devices, such as a mouse, keyboard, tracking ball, etc. The output device 960 may be one or more output devices, such as a display, a speaker, a printer, etc. The electronic device / server 900 may also communicate with one or more external devices (not shown) through the communication unit 940 as needed, such as a storage device, a display device, etc., communicate with one or more devices that allow a user to interact with the electronic device / server 900, or communicate with any device (e.g., a network card, a modem, etc.) that allows the electronic device / server 900 to communicate with one or more other electronic devices. Such communication may be performed via an input / output (I / O) interface (not shown).
[0105] According to an exemplary implementation of the present disclosure, a computer-readable storage medium is provided, on which one or more computer instructions are stored, wherein the one or more computer instructions are executed by a processor to implement the method described above.
[0106] Various aspects of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products implemented according to the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.
[0107] These computer-readable program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processing unit of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0108] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0109] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple implementations of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of a module, program segment or instruction includes one or more executable instructions for realizing the logical function of the specification. In some implementations as replacements, the function marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be realized by a special hardware-based system that performs the function or action of the specification, or can be realized by a combination of special hardware and computer instructions.
[0110] The above descriptions of various implementations of the present disclosure are exemplary, non-exhaustive, and not limited to the disclosed implementations. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described implementations. The selection of terms used herein is intended to best explain the principles of the implementations, practical applications, or improvements to the technology in the marketplace, or to enable other persons of ordinary skill in the art to understand the implementations disclosed herein.
Claims
1. A method for interacting in a virtual scene, include: displaying a first set of interface elements specific to the target avatar at a reference location associated with the target avatar in the virtual scene; detecting movement of the target avatar relative to the reference position in the virtual scene; as well as In response to the movement satisfying a preset condition, a second set of interface elements specific to the target avatar is displayed adjacent to the target avatar.
2. The method of claim 1 , wherein a second set of interface elements specific to the target avatar is displayed adjacent to the target avatar. include: Based on the movement, determining that a distance from the target avatar to the reference location is greater than a threshold distance; as well as The second set of interface elements specific to the target avatar is displayed adjacent to the target avatar.
3. The method of claim 1 , wherein a second set of interface elements specific to the target avatar is displayed adjacent to the target avatar. include: determining a motion type of the motion based on the motion; as well as In response to the motion type of the motion matching a preset type, a second set of interface elements specific to the target avatar is displayed adjacent to the target avatar.
4. The method according to claim 1, wherein the first group of interface elements includes at least a first interface element, the second group of interface elements includes at least a second interface element, and the first interface element and the second interface element are associated with the same function in the virtual scene.
5. The method according to claim 1, further comprising: include: Displaying the first set of interface elements specific to the target avatar is stopped. The method of claim 1 , wherein the first set of interface elements and / or the second set of interface elements are visible only to a user corresponding to the target avatar.
7. The method of claim 1 , wherein a second set of interface elements specific to the target avatar is displayed adjacent to the target avatar. include: The second set of interface elements is presented in association with the target avatar, the second set of interface elements being visually worn on the target avatar.
8. The method according to claim 1, further comprising: include: In response to detecting a predetermined operation on a given interface element in the second group of interface elements, a third group of interface elements associated with the given interface element is presented within a predetermined neighborhood of the given interface element.
9. A method for interacting in a virtual scene, include: In a virtual scene, presenting a first set of interface elements in association with a virtual object, the first set of interface elements being visually worn on the virtual object; as well as In response to detecting a predetermined operation on a given interface element in the group of interface elements, a second group of interface elements associated with the given interface element is presented within a predetermined neighborhood of the given interface element.
10. The method according to claim 9, wherein the predetermined operation comprises a predetermined motion of a hand of the target avatar, the predetermined motion being caused by a motion of a user corresponding to the target avatar.
11. The method according to claim 9, wherein presenting the second set of interface elements include: A window is presented for displaying shared content, the shared content being visible to a plurality of users of the virtual scene.
12. The method of claim 9, wherein the first set of interface elements is presented in association with the virtual object include: Detecting the distance between the target avatar and the reference position; as well as In response to the distance exceeding a threshold distance, presenting the first set of interface elements.
13. The method of claim 9, wherein the virtual object is a specific body part of a target avatar in the virtual scene, and wherein the first set of interface elements are arranged around the specific body part.
14. A device for interacting in a virtual scene, include: a first display module configured to display a first set of interface elements specific to the target avatar at a reference position associated with the target avatar in the virtual scene; a motion detection module configured to detect the motion of the target avatar relative to the reference position in the virtual scene; as well as The second display module is configured to display a second group of interface elements specific to the target avatar adjacent to the target avatar in response to the movement satisfying a preset condition.
15. A device for interacting in a virtual scene, include: A first presentation module is configured to present a first group of interface elements in association with a virtual object in a virtual scene, wherein the first group of interface elements is visually worn on the virtual object; as well as The second presentation module is configured to present a second group of interface elements associated with a given interface element in the group of interface elements within a predetermined neighborhood of the given interface element in response to detecting a predetermined operation on the given interface element.
16. An electronic device, include: at least one processing unit; as well as At least one memory, the at least one memory being coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit, the instructions, when executed by the at least one processing unit, causing the device to perform a method according to any one of claims 1 to 8 or claims 9 to 14.
17. A computer-readable storage medium having a computer program stored thereon, wherein when the program is executed by a processor, the method according to any one of claims 1 to 8 or claims 9 to 14 is implemented.
